configure 918 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353
  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. SDL_RLD_FLAGS
  621. SDL_STATIC_LIBS
  622. SDL_LIBS
  623. SDL_CFLAGS
  624. bin_prefix_relpath
  625. cmake_prefix_relpath
  626. SDL_VENDOR_INFO
  627. INSTALL_SDL3_CONFIG
  628. LIBUSB_LIBS
  629. LIBUSB_CFLAGS
  630. IBUS_LIBS
  631. IBUS_CFLAGS
  632. DBUS_LIBS
  633. DBUS_CFLAGS
  634. LIBGBM_LIBS
  635. LIBGBM_CFLAGS
  636. LIBDRM_LIBS
  637. LIBDRM_CFLAGS
  638. X_EXTRA_LIBS
  639. X_LIBS
  640. X_PRE_LIBS
  641. X_CFLAGS
  642. XMKMF
  643. RPI_LIBS
  644. RPI_CFLAGS
  645. DECOR_LIBS
  646. DECOR_CFLAGS
  647. SNDIO_LIBS
  648. SNDIO_CFLAGS
  649. PULSEAUDIO_LIBS
  650. PULSEAUDIO_CFLAGS
  651. PIPEWIRE_LIBS
  652. PIPEWIRE_CFLAGS
  653. JACK_LIBS
  654. JACK_CFLAGS
  655. ALSA_LIBS
  656. ALSA_CFLAGS
  657. ALLOCA
  658. CPP
  659. LIBTOOLLINKERTAG
  660. LINKER
  661. SORT
  662. PKG_CONFIG_LIBDIR
  663. PKG_CONFIG_PATH
  664. PKG_CONFIG
  665. SET_MAKE
  666. INSTALL_DATA
  667. INSTALL_SCRIPT
  668. INSTALL_PROGRAM
  669. CXXCPP
  670. ac_ct_CXX
  671. CXXFLAGS
  672. CXX
  673. LT_AGE
  674. LT_REVISION
  675. LT_CURRENT
  676. LT_RELEASE
  677. RC
  678. LT_SYS_LIBRARY_PATH
  679. OTOOL64
  680. OTOOL
  681. LIPO
  682. NMEDIT
  683. DSYMUTIL
  684. MANIFEST_TOOL
  685. AWK
  686. RANLIB
  687. STRIP
  688. ac_ct_AR
  689. AR
  690. LN_S
  691. NM
  692. ac_ct_DUMPBIN
  693. DUMPBIN
  694. LD
  695. FGREP
  696. EGREP
  697. GREP
  698. SED
  699. OBJEXT
  700. EXEEXT
  701. ac_ct_CC
  702. CPPFLAGS
  703. LDFLAGS
  704. CFLAGS
  705. CC
  706. host_os
  707. host_vendor
  708. host_cpu
  709. host
  710. build_os
  711. build_vendor
  712. build_cpu
  713. build
  714. LIBTOOL
  715. OBJDUMP
  716. DLLTOOL
  717. AS
  718. SDL_VERSION
  719. SDL_BINARY_AGE
  720. SDL_INTERFACE_AGE
  721. SDL_MICRO_VERSION
  722. SDL_MINOR_VERSION
  723. SDL_MAJOR_VERSION
  724. target_alias
  725. host_alias
  726. build_alias
  727. LIBS
  728. ECHO_T
  729. ECHO_N
  730. ECHO_C
  731. DEFS
  732. mandir
  733. localedir
  734. libdir
  735. psdir
  736. pdfdir
  737. dvidir
  738. htmldir
  739. infodir
  740. docdir
  741. oldincludedir
  742. includedir
  743. runstatedir
  744. localstatedir
  745. sharedstatedir
  746. sysconfdir
  747. datadir
  748. datarootdir
  749. libexecdir
  750. sbindir
  751. bindir
  752. program_transform_name
  753. prefix
  754. exec_prefix
  755. PACKAGE_URL
  756. PACKAGE_BUGREPORT
  757. PACKAGE_STRING
  758. PACKAGE_VERSION
  759. PACKAGE_TARNAME
  760. PACKAGE_NAME
  761. PATH_SEPARATOR
  762. SHELL'
  763. ac_subst_files=''
  764. ac_user_opts='
  765. enable_option_checking
  766. enable_shared
  767. enable_static
  768. with_pic
  769. enable_fast_install
  770. with_aix_soname
  771. with_gnu_ld
  772. with_sysroot
  773. enable_libtool_lock
  774. enable_largefile
  775. enable_assertions
  776. enable_dependency_tracking
  777. enable_libc
  778. enable_system_iconv
  779. enable_gcc_atomics
  780. enable_atomic
  781. enable_audio
  782. enable_video
  783. enable_render
  784. enable_events
  785. enable_joystick
  786. enable_haptic
  787. enable_hidapi
  788. enable_sensor
  789. enable_power
  790. enable_filesystem
  791. enable_timers
  792. enable_file
  793. enable_misc
  794. enable_locale
  795. enable_loadso
  796. enable_cpuinfo
  797. enable_assembly
  798. enable_ssemath
  799. enable_mmx
  800. enable_3dnow
  801. enable_sse
  802. enable_sse2
  803. enable_sse3
  804. enable_altivec
  805. enable_lsx
  806. enable_lasx
  807. enable_oss
  808. enable_alsa
  809. with_alsa_prefix
  810. with_alsa_inc_prefix
  811. enable_alsatest
  812. enable_alsa_shared
  813. enable_jack
  814. enable_jack_shared
  815. enable_pipewire
  816. enable_pipewire_shared
  817. enable_pulseaudio
  818. enable_pulseaudio_shared
  819. enable_sndio
  820. enable_sndio_shared
  821. enable_diskaudio
  822. enable_dummyaudio
  823. enable_libsamplerate
  824. enable_libsamplerate_shared
  825. enable_arm_simd
  826. enable_arm_neon
  827. enable_werror
  828. enable_video_wayland
  829. enable_video_wayland_qt_touch
  830. enable_wayland_shared
  831. enable_libdecor
  832. enable_libdecor_shared
  833. enable_video_rpi
  834. enable_video_x11
  835. with_x
  836. enable_x11_shared
  837. enable_video_x11_xcursor
  838. enable_video_x11_xdbe
  839. enable_video_x11_xinput
  840. enable_video_x11_xfixes
  841. enable_video_x11_xrandr
  842. enable_video_x11_scrnsaver
  843. enable_video_x11_xshape
  844. enable_video_vivante
  845. enable_video_cocoa
  846. enable_video_metal
  847. enable_render_metal
  848. enable_video_kmsdrm
  849. enable_kmsdrm_shared
  850. enable_video_dummy
  851. enable_video_offscreen
  852. enable_video_opengl
  853. enable_video_opengles
  854. enable_video_opengles1
  855. enable_video_opengles2
  856. enable_video_vulkan
  857. enable_libudev
  858. enable_dbus
  859. enable_ime
  860. enable_ibus
  861. enable_fcitx
  862. enable_joystick_mfi
  863. enable_pthreads
  864. enable_pthread_sem
  865. enable_directx
  866. enable_xinput
  867. enable_wasapi
  868. enable_hidapi_joystick
  869. enable_hidapi_libusb
  870. enable_clock_gettime
  871. enable_rpath
  872. enable_backgrounding_signal
  873. enable_foregrounding_signal
  874. enable_joystick_virtual
  875. enable_render_d3d
  876. enable_sdl3_config
  877. enable_vendor_info
  878. '
  879. ac_precious_vars='build_alias
  880. host_alias
  881. target_alias
  882. CC
  883. CFLAGS
  884. LDFLAGS
  885. LIBS
  886. CPPFLAGS
  887. LT_SYS_LIBRARY_PATH
  888. CXX
  889. CXXFLAGS
  890. CCC
  891. CXXCPP
  892. PKG_CONFIG
  893. PKG_CONFIG_PATH
  894. PKG_CONFIG_LIBDIR
  895. CPP
  896. JACK_CFLAGS
  897. JACK_LIBS
  898. PIPEWIRE_CFLAGS
  899. PIPEWIRE_LIBS
  900. PULSEAUDIO_CFLAGS
  901. PULSEAUDIO_LIBS
  902. SNDIO_CFLAGS
  903. SNDIO_LIBS
  904. DECOR_CFLAGS
  905. DECOR_LIBS
  906. RPI_CFLAGS
  907. RPI_LIBS
  908. XMKMF
  909. LIBDRM_CFLAGS
  910. LIBDRM_LIBS
  911. LIBGBM_CFLAGS
  912. LIBGBM_LIBS
  913. DBUS_CFLAGS
  914. DBUS_LIBS
  915. IBUS_CFLAGS
  916. IBUS_LIBS
  917. LIBUSB_CFLAGS
  918. LIBUSB_LIBS'
  919. # Initialize some variables set by options.
  920. ac_init_help=
  921. ac_init_version=false
  922. ac_unrecognized_opts=
  923. ac_unrecognized_sep=
  924. # The variables have the same names as the options, with
  925. # dashes changed to underlines.
  926. cache_file=/dev/null
  927. exec_prefix=NONE
  928. no_create=
  929. no_recursion=
  930. prefix=NONE
  931. program_prefix=NONE
  932. program_suffix=NONE
  933. program_transform_name=s,x,x,
  934. silent=
  935. site=
  936. srcdir=
  937. verbose=
  938. x_includes=NONE
  939. x_libraries=NONE
  940. # Installation directory options.
  941. # These are left unexpanded so users can "make install exec_prefix=/foo"
  942. # and all the variables that are supposed to be based on exec_prefix
  943. # by default will actually change.
  944. # Use braces instead of parens because sh, perl, etc. also accept them.
  945. # (The list follows the same order as the GNU Coding Standards.)
  946. bindir='${exec_prefix}/bin'
  947. sbindir='${exec_prefix}/sbin'
  948. libexecdir='${exec_prefix}/libexec'
  949. datarootdir='${prefix}/share'
  950. datadir='${datarootdir}'
  951. sysconfdir='${prefix}/etc'
  952. sharedstatedir='${prefix}/com'
  953. localstatedir='${prefix}/var'
  954. runstatedir='${localstatedir}/run'
  955. includedir='${prefix}/include'
  956. oldincludedir='/usr/include'
  957. docdir='${datarootdir}/doc/${PACKAGE}'
  958. infodir='${datarootdir}/info'
  959. htmldir='${docdir}'
  960. dvidir='${docdir}'
  961. pdfdir='${docdir}'
  962. psdir='${docdir}'
  963. libdir='${exec_prefix}/lib'
  964. localedir='${datarootdir}/locale'
  965. mandir='${datarootdir}/man'
  966. ac_prev=
  967. ac_dashdash=
  968. for ac_option
  969. do
  970. # If the previous option needs an argument, assign it.
  971. if test -n "$ac_prev"; then
  972. eval $ac_prev=\$ac_option
  973. ac_prev=
  974. continue
  975. fi
  976. case $ac_option in
  977. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  978. *=) ac_optarg= ;;
  979. *) ac_optarg=yes ;;
  980. esac
  981. case $ac_dashdash$ac_option in
  982. --)
  983. ac_dashdash=yes ;;
  984. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  985. ac_prev=bindir ;;
  986. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  987. bindir=$ac_optarg ;;
  988. -build | --build | --buil | --bui | --bu)
  989. ac_prev=build_alias ;;
  990. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  991. build_alias=$ac_optarg ;;
  992. -cache-file | --cache-file | --cache-fil | --cache-fi \
  993. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  994. ac_prev=cache_file ;;
  995. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  996. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  997. cache_file=$ac_optarg ;;
  998. --config-cache | -C)
  999. cache_file=config.cache ;;
  1000. -datadir | --datadir | --datadi | --datad)
  1001. ac_prev=datadir ;;
  1002. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1003. datadir=$ac_optarg ;;
  1004. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1005. | --dataroo | --dataro | --datar)
  1006. ac_prev=datarootdir ;;
  1007. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1008. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1009. datarootdir=$ac_optarg ;;
  1010. -disable-* | --disable-*)
  1011. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1012. # Reject names that are not valid shell variable names.
  1013. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1014. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1015. ac_useropt_orig=$ac_useropt
  1016. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1017. case $ac_user_opts in
  1018. *"
  1019. "enable_$ac_useropt"
  1020. "*) ;;
  1021. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1022. ac_unrecognized_sep=', ';;
  1023. esac
  1024. eval enable_$ac_useropt=no ;;
  1025. -docdir | --docdir | --docdi | --doc | --do)
  1026. ac_prev=docdir ;;
  1027. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1028. docdir=$ac_optarg ;;
  1029. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1030. ac_prev=dvidir ;;
  1031. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1032. dvidir=$ac_optarg ;;
  1033. -enable-* | --enable-*)
  1034. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1035. # Reject names that are not valid shell variable names.
  1036. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1037. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1038. ac_useropt_orig=$ac_useropt
  1039. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1040. case $ac_user_opts in
  1041. *"
  1042. "enable_$ac_useropt"
  1043. "*) ;;
  1044. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1045. ac_unrecognized_sep=', ';;
  1046. esac
  1047. eval enable_$ac_useropt=\$ac_optarg ;;
  1048. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1049. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1050. | --exec | --exe | --ex)
  1051. ac_prev=exec_prefix ;;
  1052. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1053. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1054. | --exec=* | --exe=* | --ex=*)
  1055. exec_prefix=$ac_optarg ;;
  1056. -gas | --gas | --ga | --g)
  1057. # Obsolete; use --with-gas.
  1058. with_gas=yes ;;
  1059. -help | --help | --hel | --he | -h)
  1060. ac_init_help=long ;;
  1061. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1062. ac_init_help=recursive ;;
  1063. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1064. ac_init_help=short ;;
  1065. -host | --host | --hos | --ho)
  1066. ac_prev=host_alias ;;
  1067. -host=* | --host=* | --hos=* | --ho=*)
  1068. host_alias=$ac_optarg ;;
  1069. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1070. ac_prev=htmldir ;;
  1071. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1072. | --ht=*)
  1073. htmldir=$ac_optarg ;;
  1074. -includedir | --includedir | --includedi | --included | --include \
  1075. | --includ | --inclu | --incl | --inc)
  1076. ac_prev=includedir ;;
  1077. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1078. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1079. includedir=$ac_optarg ;;
  1080. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1081. ac_prev=infodir ;;
  1082. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1083. infodir=$ac_optarg ;;
  1084. -libdir | --libdir | --libdi | --libd)
  1085. ac_prev=libdir ;;
  1086. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1087. libdir=$ac_optarg ;;
  1088. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1089. | --libexe | --libex | --libe)
  1090. ac_prev=libexecdir ;;
  1091. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1092. | --libexe=* | --libex=* | --libe=*)
  1093. libexecdir=$ac_optarg ;;
  1094. -localedir | --localedir | --localedi | --localed | --locale)
  1095. ac_prev=localedir ;;
  1096. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1097. localedir=$ac_optarg ;;
  1098. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1099. | --localstate | --localstat | --localsta | --localst | --locals)
  1100. ac_prev=localstatedir ;;
  1101. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1102. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1103. localstatedir=$ac_optarg ;;
  1104. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1105. ac_prev=mandir ;;
  1106. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1107. mandir=$ac_optarg ;;
  1108. -nfp | --nfp | --nf)
  1109. # Obsolete; use --without-fp.
  1110. with_fp=no ;;
  1111. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1112. | --no-cr | --no-c | -n)
  1113. no_create=yes ;;
  1114. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1115. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1116. no_recursion=yes ;;
  1117. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1118. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1119. | --oldin | --oldi | --old | --ol | --o)
  1120. ac_prev=oldincludedir ;;
  1121. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1122. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1123. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1124. oldincludedir=$ac_optarg ;;
  1125. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1126. ac_prev=prefix ;;
  1127. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1128. prefix=$ac_optarg ;;
  1129. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1130. | --program-pre | --program-pr | --program-p)
  1131. ac_prev=program_prefix ;;
  1132. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1133. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1134. program_prefix=$ac_optarg ;;
  1135. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1136. | --program-suf | --program-su | --program-s)
  1137. ac_prev=program_suffix ;;
  1138. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1139. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1140. program_suffix=$ac_optarg ;;
  1141. -program-transform-name | --program-transform-name \
  1142. | --program-transform-nam | --program-transform-na \
  1143. | --program-transform-n | --program-transform- \
  1144. | --program-transform | --program-transfor \
  1145. | --program-transfo | --program-transf \
  1146. | --program-trans | --program-tran \
  1147. | --progr-tra | --program-tr | --program-t)
  1148. ac_prev=program_transform_name ;;
  1149. -program-transform-name=* | --program-transform-name=* \
  1150. | --program-transform-nam=* | --program-transform-na=* \
  1151. | --program-transform-n=* | --program-transform-=* \
  1152. | --program-transform=* | --program-transfor=* \
  1153. | --program-transfo=* | --program-transf=* \
  1154. | --program-trans=* | --program-tran=* \
  1155. | --progr-tra=* | --program-tr=* | --program-t=*)
  1156. program_transform_name=$ac_optarg ;;
  1157. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1158. ac_prev=pdfdir ;;
  1159. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1160. pdfdir=$ac_optarg ;;
  1161. -psdir | --psdir | --psdi | --psd | --ps)
  1162. ac_prev=psdir ;;
  1163. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1164. psdir=$ac_optarg ;;
  1165. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1166. | -silent | --silent | --silen | --sile | --sil)
  1167. silent=yes ;;
  1168. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1169. | --runstate | --runstat | --runsta | --runst | --runs \
  1170. | --run | --ru | --r)
  1171. ac_prev=runstatedir ;;
  1172. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1173. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1174. | --run=* | --ru=* | --r=*)
  1175. runstatedir=$ac_optarg ;;
  1176. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1177. ac_prev=sbindir ;;
  1178. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1179. | --sbi=* | --sb=*)
  1180. sbindir=$ac_optarg ;;
  1181. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1182. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1183. | --sharedst | --shareds | --shared | --share | --shar \
  1184. | --sha | --sh)
  1185. ac_prev=sharedstatedir ;;
  1186. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1187. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1188. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1189. | --sha=* | --sh=*)
  1190. sharedstatedir=$ac_optarg ;;
  1191. -site | --site | --sit)
  1192. ac_prev=site ;;
  1193. -site=* | --site=* | --sit=*)
  1194. site=$ac_optarg ;;
  1195. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1196. ac_prev=srcdir ;;
  1197. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1198. srcdir=$ac_optarg ;;
  1199. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1200. | --syscon | --sysco | --sysc | --sys | --sy)
  1201. ac_prev=sysconfdir ;;
  1202. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1203. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1204. sysconfdir=$ac_optarg ;;
  1205. -target | --target | --targe | --targ | --tar | --ta | --t)
  1206. ac_prev=target_alias ;;
  1207. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1208. target_alias=$ac_optarg ;;
  1209. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1210. verbose=yes ;;
  1211. -version | --version | --versio | --versi | --vers | -V)
  1212. ac_init_version=: ;;
  1213. -with-* | --with-*)
  1214. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1215. # Reject names that are not valid shell variable names.
  1216. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1217. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1218. ac_useropt_orig=$ac_useropt
  1219. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1220. case $ac_user_opts in
  1221. *"
  1222. "with_$ac_useropt"
  1223. "*) ;;
  1224. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1225. ac_unrecognized_sep=', ';;
  1226. esac
  1227. eval with_$ac_useropt=\$ac_optarg ;;
  1228. -without-* | --without-*)
  1229. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1230. # Reject names that are not valid shell variable names.
  1231. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1232. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1233. ac_useropt_orig=$ac_useropt
  1234. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1235. case $ac_user_opts in
  1236. *"
  1237. "with_$ac_useropt"
  1238. "*) ;;
  1239. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1240. ac_unrecognized_sep=', ';;
  1241. esac
  1242. eval with_$ac_useropt=no ;;
  1243. --x)
  1244. # Obsolete; use --with-x.
  1245. with_x=yes ;;
  1246. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1247. | --x-incl | --x-inc | --x-in | --x-i)
  1248. ac_prev=x_includes ;;
  1249. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1250. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1251. x_includes=$ac_optarg ;;
  1252. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1253. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1254. ac_prev=x_libraries ;;
  1255. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1256. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1257. x_libraries=$ac_optarg ;;
  1258. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1259. Try \`$0 --help' for more information"
  1260. ;;
  1261. *=*)
  1262. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1263. # Reject names that are not valid shell variable names.
  1264. case $ac_envvar in #(
  1265. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1266. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1267. esac
  1268. eval $ac_envvar=\$ac_optarg
  1269. export $ac_envvar ;;
  1270. *)
  1271. # FIXME: should be removed in autoconf 3.0.
  1272. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1273. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1274. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1275. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1276. ;;
  1277. esac
  1278. done
  1279. if test -n "$ac_prev"; then
  1280. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1281. as_fn_error $? "missing argument to $ac_option"
  1282. fi
  1283. if test -n "$ac_unrecognized_opts"; then
  1284. case $enable_option_checking in
  1285. no) ;;
  1286. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1287. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1288. esac
  1289. fi
  1290. # Check all directory arguments for consistency.
  1291. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1292. datadir sysconfdir sharedstatedir localstatedir includedir \
  1293. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1294. libdir localedir mandir runstatedir
  1295. do
  1296. eval ac_val=\$$ac_var
  1297. # Remove trailing slashes.
  1298. case $ac_val in
  1299. */ )
  1300. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1301. eval $ac_var=\$ac_val;;
  1302. esac
  1303. # Be sure to have absolute directory names.
  1304. case $ac_val in
  1305. [\\/$]* | ?:[\\/]* ) continue;;
  1306. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1307. esac
  1308. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1309. done
  1310. # There might be people who depend on the old broken behavior: `$host'
  1311. # used to hold the argument of --host etc.
  1312. # FIXME: To remove some day.
  1313. build=$build_alias
  1314. host=$host_alias
  1315. target=$target_alias
  1316. # FIXME: To remove some day.
  1317. if test "x$host_alias" != x; then
  1318. if test "x$build_alias" = x; then
  1319. cross_compiling=maybe
  1320. elif test "x$build_alias" != "x$host_alias"; then
  1321. cross_compiling=yes
  1322. fi
  1323. fi
  1324. ac_tool_prefix=
  1325. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1326. test "$silent" = yes && exec 6>/dev/null
  1327. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1328. ac_ls_di=`ls -di .` &&
  1329. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1330. as_fn_error $? "working directory cannot be determined"
  1331. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1332. as_fn_error $? "pwd does not report name of working directory"
  1333. # Find the source files, if location was not specified.
  1334. if test -z "$srcdir"; then
  1335. ac_srcdir_defaulted=yes
  1336. # Try the directory containing this script, then the parent directory.
  1337. ac_confdir=`$as_dirname -- "$as_myself" ||
  1338. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1339. X"$as_myself" : 'X\(//\)[^/]' \| \
  1340. X"$as_myself" : 'X\(//\)$' \| \
  1341. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1342. printf "%s\n" X"$as_myself" |
  1343. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1344. s//\1/
  1345. q
  1346. }
  1347. /^X\(\/\/\)[^/].*/{
  1348. s//\1/
  1349. q
  1350. }
  1351. /^X\(\/\/\)$/{
  1352. s//\1/
  1353. q
  1354. }
  1355. /^X\(\/\).*/{
  1356. s//\1/
  1357. q
  1358. }
  1359. s/.*/./; q'`
  1360. srcdir=$ac_confdir
  1361. if test ! -r "$srcdir/$ac_unique_file"; then
  1362. srcdir=..
  1363. fi
  1364. else
  1365. ac_srcdir_defaulted=no
  1366. fi
  1367. if test ! -r "$srcdir/$ac_unique_file"; then
  1368. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1369. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1370. fi
  1371. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1372. ac_abs_confdir=`(
  1373. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1374. pwd)`
  1375. # When building in place, set srcdir=.
  1376. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1377. srcdir=.
  1378. fi
  1379. # Remove unnecessary trailing slashes from srcdir.
  1380. # Double slashes in file names in object file debugging info
  1381. # mess up M-x gdb in Emacs.
  1382. case $srcdir in
  1383. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1384. esac
  1385. for ac_var in $ac_precious_vars; do
  1386. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1387. eval ac_env_${ac_var}_value=\$${ac_var}
  1388. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1389. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1390. done
  1391. #
  1392. # Report the --help message.
  1393. #
  1394. if test "$ac_init_help" = "long"; then
  1395. # Omit some internal or obsolete options to make the list less imposing.
  1396. # This message is too long to be a string in the A/UX 3.1 sh.
  1397. cat <<_ACEOF
  1398. \`configure' configures this package to adapt to many kinds of systems.
  1399. Usage: $0 [OPTION]... [VAR=VALUE]...
  1400. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1401. VAR=VALUE. See below for descriptions of some of the useful variables.
  1402. Defaults for the options are specified in brackets.
  1403. Configuration:
  1404. -h, --help display this help and exit
  1405. --help=short display options specific to this package
  1406. --help=recursive display the short help of all the included packages
  1407. -V, --version display version information and exit
  1408. -q, --quiet, --silent do not print \`checking ...' messages
  1409. --cache-file=FILE cache test results in FILE [disabled]
  1410. -C, --config-cache alias for \`--cache-file=config.cache'
  1411. -n, --no-create do not create output files
  1412. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1413. Installation directories:
  1414. --prefix=PREFIX install architecture-independent files in PREFIX
  1415. [$ac_default_prefix]
  1416. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1417. [PREFIX]
  1418. By default, \`make install' will install all the files in
  1419. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1420. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1421. for instance \`--prefix=\$HOME'.
  1422. For better control, use the options below.
  1423. Fine tuning of the installation directories:
  1424. --bindir=DIR user executables [EPREFIX/bin]
  1425. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1426. --libexecdir=DIR program executables [EPREFIX/libexec]
  1427. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1428. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1429. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1430. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1431. --libdir=DIR object code libraries [EPREFIX/lib]
  1432. --includedir=DIR C header files [PREFIX/include]
  1433. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1434. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1435. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1436. --infodir=DIR info documentation [DATAROOTDIR/info]
  1437. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1438. --mandir=DIR man documentation [DATAROOTDIR/man]
  1439. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1440. --htmldir=DIR html documentation [DOCDIR]
  1441. --dvidir=DIR dvi documentation [DOCDIR]
  1442. --pdfdir=DIR pdf documentation [DOCDIR]
  1443. --psdir=DIR ps documentation [DOCDIR]
  1444. _ACEOF
  1445. cat <<\_ACEOF
  1446. X features:
  1447. --x-includes=DIR X include files are in DIR
  1448. --x-libraries=DIR X library files are in DIR
  1449. System types:
  1450. --build=BUILD configure for building on BUILD [guessed]
  1451. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1452. _ACEOF
  1453. fi
  1454. if test -n "$ac_init_help"; then
  1455. cat <<\_ACEOF
  1456. Optional Features:
  1457. --disable-option-checking ignore unrecognized --enable/--with options
  1458. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1459. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1460. --enable-shared[=PKGS] build shared libraries [default=yes]
  1461. --enable-static[=PKGS] build static libraries [default=yes]
  1462. --enable-fast-install[=PKGS]
  1463. optimize for fast installation [default=yes]
  1464. --disable-libtool-lock avoid locking (might break parallel builds)
  1465. --disable-largefile omit support for large files
  1466. --enable-assertions Enable internal sanity checks
  1467. (auto/disabled/release/enabled/paranoid)
  1468. [default=auto]
  1469. --enable-dependency-tracking
  1470. Use gcc -MMD -MT dependency tracking [default=yes]
  1471. --enable-libc Use the system C library [default=yes]
  1472. --enable-system-iconv Use iconv() from system-installed libraries
  1473. [default=yes]
  1474. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1475. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1476. --enable-audio Enable the audio subsystem [default=yes]
  1477. --enable-video Enable the video subsystem [default=yes]
  1478. --enable-render Enable the render subsystem [default=yes]
  1479. --enable-events Enable the events subsystem [default=yes]
  1480. --enable-joystick Enable the joystick subsystem [default=yes]
  1481. --enable-haptic Enable the haptic (force feedback) subsystem
  1482. [default=yes]
  1483. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1484. --enable-sensor Enable the sensor subsystem [default=yes]
  1485. --enable-power Enable the power subsystem [default=yes]
  1486. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1487. --enable-timers Enable the timer subsystem [default=yes]
  1488. --enable-file Enable the file subsystem [default=yes]
  1489. --enable-misc Enable the misc subsystem [default=yes]
  1490. --enable-locale Enable the locale subsystem [default=yes]
  1491. --enable-loadso Enable the shared object loading subsystem
  1492. [default=yes]
  1493. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1494. --enable-assembly Enable assembly routines [default=yes]
  1495. --enable-ssemath Allow GCC to use SSE floating point math
  1496. [default=maybe]
  1497. --enable-mmx use MMX assembly routines [default=yes]
  1498. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1499. --enable-sse use SSE assembly routines [default=yes]
  1500. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1501. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1502. --enable-altivec use Altivec assembly routines [default=yes]
  1503. --enable-lsx use LSX assembly routines [default=yes]
  1504. --enable-lasx use LASX assembly routines [default=yes]
  1505. --enable-oss support the OSS audio API [default=maybe]
  1506. --enable-alsa support the ALSA audio API [default=yes]
  1507. --disable-alsatest Do not try to compile and run a test Alsa program
  1508. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1509. --enable-jack use JACK audio [default=yes]
  1510. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1511. --enable-pipewire use Pipewire audio [default=yes]
  1512. --enable-pipewire-shared
  1513. dynamically load Pipewire support [default=yes]
  1514. --enable-pulseaudio use PulseAudio [default=yes]
  1515. --enable-pulseaudio-shared
  1516. dynamically load PulseAudio support [default=yes]
  1517. --enable-sndio support the sndio audio API [default=yes]
  1518. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1519. --enable-diskaudio support the disk writer audio driver [default=yes]
  1520. --enable-dummyaudio support the dummy audio driver [default=yes]
  1521. --enable-libsamplerate use libsamplerate for audio rate conversion
  1522. [default=yes]
  1523. --enable-libsamplerate-shared
  1524. dynamically load libsamplerate [default=yes]
  1525. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1526. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1527. --enable-werror treat warnings as errors [default=no]
  1528. --enable-video-wayland use Wayland video driver [default=yes]
  1529. --enable-video-wayland-qt-touch
  1530. QtWayland server support for Wayland video driver
  1531. [default=yes]
  1532. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1533. --enable-libdecor use libdecor for Wayland client-side decorations
  1534. [default=yes]
  1535. --enable-libdecor-shared
  1536. dynamically load libdecor [default=yes]
  1537. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1538. --enable-video-x11 use X11 video driver [default=maybe]
  1539. --enable-x11-shared dynamically load X11 support [default=maybe]
  1540. --enable-video-x11-xcursor
  1541. enable X11 Xcursor support [default=yes]
  1542. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1543. --enable-video-x11-xinput
  1544. enable X11 XInput extension for manymouse, tablets,
  1545. etc [default=yes]
  1546. --enable-video-x11-xfixes
  1547. enable X11 Xfixes support [default=yes]
  1548. --enable-video-x11-xrandr
  1549. enable X11 Xrandr extension for fullscreen
  1550. [default=yes]
  1551. --enable-video-x11-scrnsaver
  1552. enable X11 screensaver extension [default=yes]
  1553. --enable-video-x11-xshape
  1554. enable X11 XShape support [default=yes]
  1555. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1556. --enable-video-cocoa use Cocoa video driver [default=yes]
  1557. --enable-video-metal include Metal support [default=yes]
  1558. --enable-render-metal enable the Metal render driver [default=yes]
  1559. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1560. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1561. --enable-video-dummy use dummy video driver [default=yes]
  1562. --enable-video-offscreen
  1563. use offscreen video driver [default=yes]
  1564. --enable-video-opengl include OpenGL support [default=yes]
  1565. --enable-video-opengles include OpenGL ES support [default=yes]
  1566. --enable-video-opengles1
  1567. include OpenGL ES 1.1 support [default=yes]
  1568. --enable-video-opengles2
  1569. include OpenGL ES 2.0 support [default=yes]
  1570. --enable-video-vulkan include Vulkan support [default=yes]
  1571. --enable-libudev enable libudev support [default=yes]
  1572. --enable-dbus enable D-Bus support [default=yes]
  1573. --enable-ime enable IME support [default=yes]
  1574. --enable-ibus enable IBus support [default=yes]
  1575. --enable-fcitx enable fcitx support [default=yes]
  1576. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1577. --enable-pthreads use POSIX threads for multi-threading
  1578. [default=maybe]
  1579. --enable-pthread-sem use pthread semaphores [default=maybe]
  1580. --enable-directx use DirectX for Windows audio/video [default=yes]
  1581. --enable-xinput use Xinput for Windows [default=yes]
  1582. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1583. --enable-hidapi-joystick
  1584. use HIDAPI for low level joystick drivers
  1585. [default=yes]
  1586. --enable-hidapi-libusb use libusb for low level joystick drivers
  1587. [default=maybe]
  1588. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1589. UNIX [default=yes]
  1590. --enable-rpath use an rpath when linking SDL [default=yes]
  1591. --enable-backgrounding-signal
  1592. number to use for magic backgrounding signal or 'no'
  1593. [default=no]
  1594. --enable-foregrounding-signal
  1595. number to use for magic foregrounding signal or 'no'
  1596. [default=no]
  1597. --enable-joystick-virtual
  1598. enable virtual joystick APIs [default=yes]
  1599. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1600. --enable-sdl3-config Install sdl3-config [default=yes]
  1601. --enable-vendor-info=STRING
  1602. Add vendor info to SDL_REVISION
  1603. Optional Packages:
  1604. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1605. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1606. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1607. both]
  1608. --with-aix-soname=aix|svr4|both
  1609. shared library versioning (aka "SONAME") variant to
  1610. provide on AIX, [default=aix].
  1611. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1612. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1613. compiler's sysroot if not specified).
  1614. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1615. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1616. --with-x use the X Window System
  1617. Some influential environment variables:
  1618. CC C compiler command
  1619. CFLAGS C compiler flags
  1620. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1621. nonstandard directory <lib dir>
  1622. LIBS libraries to pass to the linker, e.g. -l<library>
  1623. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1624. you have headers in a nonstandard directory <include dir>
  1625. LT_SYS_LIBRARY_PATH
  1626. User-defined run-time library search path.
  1627. CXX C++ compiler command
  1628. CXXFLAGS C++ compiler flags
  1629. CXXCPP C++ preprocessor
  1630. PKG_CONFIG path to pkg-config utility
  1631. PKG_CONFIG_PATH
  1632. directories to add to pkg-config's search path
  1633. PKG_CONFIG_LIBDIR
  1634. path overriding pkg-config's built-in search path
  1635. CPP C preprocessor
  1636. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1637. JACK_LIBS linker flags for JACK, overriding pkg-config
  1638. PIPEWIRE_CFLAGS
  1639. C compiler flags for PIPEWIRE, overriding pkg-config
  1640. PIPEWIRE_LIBS
  1641. linker flags for PIPEWIRE, overriding pkg-config
  1642. PULSEAUDIO_CFLAGS
  1643. C compiler flags for PULSEAUDIO, overriding pkg-config
  1644. PULSEAUDIO_LIBS
  1645. linker flags for PULSEAUDIO, overriding pkg-config
  1646. SNDIO_CFLAGS
  1647. C compiler flags for SNDIO, overriding pkg-config
  1648. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1649. DECOR_CFLAGS
  1650. C compiler flags for DECOR, overriding pkg-config
  1651. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1652. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1653. RPI_LIBS linker flags for RPI, overriding pkg-config
  1654. XMKMF Path to xmkmf, Makefile generator for X Window System
  1655. LIBDRM_CFLAGS
  1656. C compiler flags for LIBDRM, overriding pkg-config
  1657. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1658. LIBGBM_CFLAGS
  1659. C compiler flags for LIBGBM, overriding pkg-config
  1660. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1661. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1662. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1663. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1664. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1665. LIBUSB_CFLAGS
  1666. C compiler flags for LIBUSB, overriding pkg-config
  1667. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1668. Use these variables to override the choices made by `configure' or to help
  1669. it to find libraries and programs with nonstandard names/locations.
  1670. Report bugs to the package provider.
  1671. _ACEOF
  1672. ac_status=$?
  1673. fi
  1674. if test "$ac_init_help" = "recursive"; then
  1675. # If there are subdirs, report their specific --help.
  1676. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1677. test -d "$ac_dir" ||
  1678. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1679. continue
  1680. ac_builddir=.
  1681. case "$ac_dir" in
  1682. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1683. *)
  1684. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1685. # A ".." for each directory in $ac_dir_suffix.
  1686. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1687. case $ac_top_builddir_sub in
  1688. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1689. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1690. esac ;;
  1691. esac
  1692. ac_abs_top_builddir=$ac_pwd
  1693. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1694. # for backward compatibility:
  1695. ac_top_builddir=$ac_top_build_prefix
  1696. case $srcdir in
  1697. .) # We are building in place.
  1698. ac_srcdir=.
  1699. ac_top_srcdir=$ac_top_builddir_sub
  1700. ac_abs_top_srcdir=$ac_pwd ;;
  1701. [\\/]* | ?:[\\/]* ) # Absolute name.
  1702. ac_srcdir=$srcdir$ac_dir_suffix;
  1703. ac_top_srcdir=$srcdir
  1704. ac_abs_top_srcdir=$srcdir ;;
  1705. *) # Relative name.
  1706. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1707. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1708. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1709. esac
  1710. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1711. cd "$ac_dir" || { ac_status=$?; continue; }
  1712. # Check for configure.gnu first; this name is used for a wrapper for
  1713. # Metaconfig's "Configure" on case-insensitive file systems.
  1714. if test -f "$ac_srcdir/configure.gnu"; then
  1715. echo &&
  1716. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1717. elif test -f "$ac_srcdir/configure"; then
  1718. echo &&
  1719. $SHELL "$ac_srcdir/configure" --help=recursive
  1720. else
  1721. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1722. fi || ac_status=$?
  1723. cd "$ac_pwd" || { ac_status=$?; break; }
  1724. done
  1725. fi
  1726. test -n "$ac_init_help" && exit $ac_status
  1727. if $ac_init_version; then
  1728. cat <<\_ACEOF
  1729. configure
  1730. generated by GNU Autoconf 2.71
  1731. Copyright (C) 2021 Free Software Foundation, Inc.
  1732. This configure script is free software; the Free Software Foundation
  1733. gives unlimited permission to copy, distribute and modify it.
  1734. _ACEOF
  1735. exit
  1736. fi
  1737. ## ------------------------ ##
  1738. ## Autoconf initialization. ##
  1739. ## ------------------------ ##
  1740. # ac_fn_c_try_compile LINENO
  1741. # --------------------------
  1742. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1743. ac_fn_c_try_compile ()
  1744. {
  1745. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1746. rm -f conftest.$ac_objext conftest.beam
  1747. if { { ac_try="$ac_compile"
  1748. case "(($ac_try" in
  1749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1750. *) ac_try_echo=$ac_try;;
  1751. esac
  1752. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1753. printf "%s\n" "$ac_try_echo"; } >&5
  1754. (eval "$ac_compile") 2>conftest.err
  1755. ac_status=$?
  1756. if test -s conftest.err; then
  1757. grep -v '^ *+' conftest.err >conftest.er1
  1758. cat conftest.er1 >&5
  1759. mv -f conftest.er1 conftest.err
  1760. fi
  1761. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1762. test $ac_status = 0; } && {
  1763. test -z "$ac_c_werror_flag" ||
  1764. test ! -s conftest.err
  1765. } && test -s conftest.$ac_objext
  1766. then :
  1767. ac_retval=0
  1768. else $as_nop
  1769. printf "%s\n" "$as_me: failed program was:" >&5
  1770. sed 's/^/| /' conftest.$ac_ext >&5
  1771. ac_retval=1
  1772. fi
  1773. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1774. as_fn_set_status $ac_retval
  1775. } # ac_fn_c_try_compile
  1776. # ac_fn_c_try_link LINENO
  1777. # -----------------------
  1778. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1779. ac_fn_c_try_link ()
  1780. {
  1781. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1782. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1783. if { { ac_try="$ac_link"
  1784. case "(($ac_try" in
  1785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1786. *) ac_try_echo=$ac_try;;
  1787. esac
  1788. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1789. printf "%s\n" "$ac_try_echo"; } >&5
  1790. (eval "$ac_link") 2>conftest.err
  1791. ac_status=$?
  1792. if test -s conftest.err; then
  1793. grep -v '^ *+' conftest.err >conftest.er1
  1794. cat conftest.er1 >&5
  1795. mv -f conftest.er1 conftest.err
  1796. fi
  1797. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1798. test $ac_status = 0; } && {
  1799. test -z "$ac_c_werror_flag" ||
  1800. test ! -s conftest.err
  1801. } && test -s conftest$ac_exeext && {
  1802. test "$cross_compiling" = yes ||
  1803. test -x conftest$ac_exeext
  1804. }
  1805. then :
  1806. ac_retval=0
  1807. else $as_nop
  1808. printf "%s\n" "$as_me: failed program was:" >&5
  1809. sed 's/^/| /' conftest.$ac_ext >&5
  1810. ac_retval=1
  1811. fi
  1812. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1813. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1814. # interfere with the next link command; also delete a directory that is
  1815. # left behind by Apple's compiler. We do this before executing the actions.
  1816. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1817. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1818. as_fn_set_status $ac_retval
  1819. } # ac_fn_c_try_link
  1820. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1821. # -------------------------------------------------------
  1822. # Tests whether HEADER exists and can be compiled using the include files in
  1823. # INCLUDES, setting the cache variable VAR accordingly.
  1824. ac_fn_c_check_header_compile ()
  1825. {
  1826. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1828. printf %s "checking for $2... " >&6; }
  1829. if eval test \${$3+y}
  1830. then :
  1831. printf %s "(cached) " >&6
  1832. else $as_nop
  1833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1834. /* end confdefs.h. */
  1835. $4
  1836. #include <$2>
  1837. _ACEOF
  1838. if ac_fn_c_try_compile "$LINENO"
  1839. then :
  1840. eval "$3=yes"
  1841. else $as_nop
  1842. eval "$3=no"
  1843. fi
  1844. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1845. fi
  1846. eval ac_res=\$$3
  1847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1848. printf "%s\n" "$ac_res" >&6; }
  1849. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1850. } # ac_fn_c_check_header_compile
  1851. # ac_fn_c_check_func LINENO FUNC VAR
  1852. # ----------------------------------
  1853. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1854. ac_fn_c_check_func ()
  1855. {
  1856. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1858. printf %s "checking for $2... " >&6; }
  1859. if eval test \${$3+y}
  1860. then :
  1861. printf %s "(cached) " >&6
  1862. else $as_nop
  1863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1864. /* end confdefs.h. */
  1865. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1866. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1867. #define $2 innocuous_$2
  1868. /* System header to define __stub macros and hopefully few prototypes,
  1869. which can conflict with char $2 (); below. */
  1870. #include <limits.h>
  1871. #undef $2
  1872. /* Override any GCC internal prototype to avoid an error.
  1873. Use char because int might match the return type of a GCC
  1874. builtin and then its argument prototype would still apply. */
  1875. #ifdef __cplusplus
  1876. extern "C"
  1877. #endif
  1878. char $2 ();
  1879. /* The GNU C library defines this for functions which it implements
  1880. to always fail with ENOSYS. Some functions are actually named
  1881. something starting with __ and the normal name is an alias. */
  1882. #if defined __stub_$2 || defined __stub___$2
  1883. choke me
  1884. #endif
  1885. int
  1886. main (void)
  1887. {
  1888. return $2 ();
  1889. ;
  1890. return 0;
  1891. }
  1892. _ACEOF
  1893. if ac_fn_c_try_link "$LINENO"
  1894. then :
  1895. eval "$3=yes"
  1896. else $as_nop
  1897. eval "$3=no"
  1898. fi
  1899. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1900. conftest$ac_exeext conftest.$ac_ext
  1901. fi
  1902. eval ac_res=\$$3
  1903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1904. printf "%s\n" "$ac_res" >&6; }
  1905. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1906. } # ac_fn_c_check_func
  1907. # ac_fn_cxx_try_compile LINENO
  1908. # ----------------------------
  1909. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1910. ac_fn_cxx_try_compile ()
  1911. {
  1912. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1913. rm -f conftest.$ac_objext conftest.beam
  1914. if { { ac_try="$ac_compile"
  1915. case "(($ac_try" in
  1916. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1917. *) ac_try_echo=$ac_try;;
  1918. esac
  1919. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1920. printf "%s\n" "$ac_try_echo"; } >&5
  1921. (eval "$ac_compile") 2>conftest.err
  1922. ac_status=$?
  1923. if test -s conftest.err; then
  1924. grep -v '^ *+' conftest.err >conftest.er1
  1925. cat conftest.er1 >&5
  1926. mv -f conftest.er1 conftest.err
  1927. fi
  1928. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1929. test $ac_status = 0; } && {
  1930. test -z "$ac_cxx_werror_flag" ||
  1931. test ! -s conftest.err
  1932. } && test -s conftest.$ac_objext
  1933. then :
  1934. ac_retval=0
  1935. else $as_nop
  1936. printf "%s\n" "$as_me: failed program was:" >&5
  1937. sed 's/^/| /' conftest.$ac_ext >&5
  1938. ac_retval=1
  1939. fi
  1940. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1941. as_fn_set_status $ac_retval
  1942. } # ac_fn_cxx_try_compile
  1943. # ac_fn_cxx_try_cpp LINENO
  1944. # ------------------------
  1945. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1946. ac_fn_cxx_try_cpp ()
  1947. {
  1948. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1949. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1950. case "(($ac_try" in
  1951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1952. *) ac_try_echo=$ac_try;;
  1953. esac
  1954. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1955. printf "%s\n" "$ac_try_echo"; } >&5
  1956. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1957. ac_status=$?
  1958. if test -s conftest.err; then
  1959. grep -v '^ *+' conftest.err >conftest.er1
  1960. cat conftest.er1 >&5
  1961. mv -f conftest.er1 conftest.err
  1962. fi
  1963. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1964. test $ac_status = 0; } > conftest.i && {
  1965. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1966. test ! -s conftest.err
  1967. }
  1968. then :
  1969. ac_retval=0
  1970. else $as_nop
  1971. printf "%s\n" "$as_me: failed program was:" >&5
  1972. sed 's/^/| /' conftest.$ac_ext >&5
  1973. ac_retval=1
  1974. fi
  1975. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1976. as_fn_set_status $ac_retval
  1977. } # ac_fn_cxx_try_cpp
  1978. # ac_fn_cxx_try_link LINENO
  1979. # -------------------------
  1980. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1981. ac_fn_cxx_try_link ()
  1982. {
  1983. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1984. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1985. if { { ac_try="$ac_link"
  1986. case "(($ac_try" in
  1987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1988. *) ac_try_echo=$ac_try;;
  1989. esac
  1990. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1991. printf "%s\n" "$ac_try_echo"; } >&5
  1992. (eval "$ac_link") 2>conftest.err
  1993. ac_status=$?
  1994. if test -s conftest.err; then
  1995. grep -v '^ *+' conftest.err >conftest.er1
  1996. cat conftest.er1 >&5
  1997. mv -f conftest.er1 conftest.err
  1998. fi
  1999. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2000. test $ac_status = 0; } && {
  2001. test -z "$ac_cxx_werror_flag" ||
  2002. test ! -s conftest.err
  2003. } && test -s conftest$ac_exeext && {
  2004. test "$cross_compiling" = yes ||
  2005. test -x conftest$ac_exeext
  2006. }
  2007. then :
  2008. ac_retval=0
  2009. else $as_nop
  2010. printf "%s\n" "$as_me: failed program was:" >&5
  2011. sed 's/^/| /' conftest.$ac_ext >&5
  2012. ac_retval=1
  2013. fi
  2014. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2015. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2016. # interfere with the next link command; also delete a directory that is
  2017. # left behind by Apple's compiler. We do this before executing the actions.
  2018. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2019. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2020. as_fn_set_status $ac_retval
  2021. } # ac_fn_cxx_try_link
  2022. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2023. # -------------------------------------------
  2024. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2025. # variable VAR accordingly.
  2026. ac_fn_c_check_type ()
  2027. {
  2028. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2030. printf %s "checking for $2... " >&6; }
  2031. if eval test \${$3+y}
  2032. then :
  2033. printf %s "(cached) " >&6
  2034. else $as_nop
  2035. eval "$3=no"
  2036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2037. /* end confdefs.h. */
  2038. $4
  2039. int
  2040. main (void)
  2041. {
  2042. if (sizeof ($2))
  2043. return 0;
  2044. ;
  2045. return 0;
  2046. }
  2047. _ACEOF
  2048. if ac_fn_c_try_compile "$LINENO"
  2049. then :
  2050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2051. /* end confdefs.h. */
  2052. $4
  2053. int
  2054. main (void)
  2055. {
  2056. if (sizeof (($2)))
  2057. return 0;
  2058. ;
  2059. return 0;
  2060. }
  2061. _ACEOF
  2062. if ac_fn_c_try_compile "$LINENO"
  2063. then :
  2064. else $as_nop
  2065. eval "$3=yes"
  2066. fi
  2067. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2068. fi
  2069. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2070. fi
  2071. eval ac_res=\$$3
  2072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2073. printf "%s\n" "$ac_res" >&6; }
  2074. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2075. } # ac_fn_c_check_type
  2076. # ac_fn_c_try_cpp LINENO
  2077. # ----------------------
  2078. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2079. ac_fn_c_try_cpp ()
  2080. {
  2081. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2082. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2083. case "(($ac_try" in
  2084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2085. *) ac_try_echo=$ac_try;;
  2086. esac
  2087. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2088. printf "%s\n" "$ac_try_echo"; } >&5
  2089. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2090. ac_status=$?
  2091. if test -s conftest.err; then
  2092. grep -v '^ *+' conftest.err >conftest.er1
  2093. cat conftest.er1 >&5
  2094. mv -f conftest.er1 conftest.err
  2095. fi
  2096. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2097. test $ac_status = 0; } > conftest.i && {
  2098. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2099. test ! -s conftest.err
  2100. }
  2101. then :
  2102. ac_retval=0
  2103. else $as_nop
  2104. printf "%s\n" "$as_me: failed program was:" >&5
  2105. sed 's/^/| /' conftest.$ac_ext >&5
  2106. ac_retval=1
  2107. fi
  2108. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2109. as_fn_set_status $ac_retval
  2110. } # ac_fn_c_try_cpp
  2111. # ac_fn_c_try_run LINENO
  2112. # ----------------------
  2113. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2114. # executables *can* be run.
  2115. ac_fn_c_try_run ()
  2116. {
  2117. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2118. if { { ac_try="$ac_link"
  2119. case "(($ac_try" in
  2120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2121. *) ac_try_echo=$ac_try;;
  2122. esac
  2123. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2124. printf "%s\n" "$ac_try_echo"; } >&5
  2125. (eval "$ac_link") 2>&5
  2126. ac_status=$?
  2127. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2128. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2129. { { case "(($ac_try" in
  2130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2131. *) ac_try_echo=$ac_try;;
  2132. esac
  2133. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2134. printf "%s\n" "$ac_try_echo"; } >&5
  2135. (eval "$ac_try") 2>&5
  2136. ac_status=$?
  2137. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2138. test $ac_status = 0; }; }
  2139. then :
  2140. ac_retval=0
  2141. else $as_nop
  2142. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2143. printf "%s\n" "$as_me: failed program was:" >&5
  2144. sed 's/^/| /' conftest.$ac_ext >&5
  2145. ac_retval=$ac_status
  2146. fi
  2147. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2148. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2149. as_fn_set_status $ac_retval
  2150. } # ac_fn_c_try_run
  2151. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2152. # ----------------------------------------------------
  2153. # Tries to find if the field MEMBER exists in type AGGR, after including
  2154. # INCLUDES, setting cache variable VAR accordingly.
  2155. ac_fn_c_check_member ()
  2156. {
  2157. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2159. printf %s "checking for $2.$3... " >&6; }
  2160. if eval test \${$4+y}
  2161. then :
  2162. printf %s "(cached) " >&6
  2163. else $as_nop
  2164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2165. /* end confdefs.h. */
  2166. $5
  2167. int
  2168. main (void)
  2169. {
  2170. static $2 ac_aggr;
  2171. if (ac_aggr.$3)
  2172. return 0;
  2173. ;
  2174. return 0;
  2175. }
  2176. _ACEOF
  2177. if ac_fn_c_try_compile "$LINENO"
  2178. then :
  2179. eval "$4=yes"
  2180. else $as_nop
  2181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2182. /* end confdefs.h. */
  2183. $5
  2184. int
  2185. main (void)
  2186. {
  2187. static $2 ac_aggr;
  2188. if (sizeof ac_aggr.$3)
  2189. return 0;
  2190. ;
  2191. return 0;
  2192. }
  2193. _ACEOF
  2194. if ac_fn_c_try_compile "$LINENO"
  2195. then :
  2196. eval "$4=yes"
  2197. else $as_nop
  2198. eval "$4=no"
  2199. fi
  2200. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2201. fi
  2202. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2203. fi
  2204. eval ac_res=\$$4
  2205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2206. printf "%s\n" "$ac_res" >&6; }
  2207. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2208. } # ac_fn_c_check_member
  2209. ac_configure_args_raw=
  2210. for ac_arg
  2211. do
  2212. case $ac_arg in
  2213. *\'*)
  2214. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2215. esac
  2216. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2217. done
  2218. case $ac_configure_args_raw in
  2219. *$as_nl*)
  2220. ac_safe_unquote= ;;
  2221. *)
  2222. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2223. ac_unsafe_a="$ac_unsafe_z#~"
  2224. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2225. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2226. esac
  2227. cat >config.log <<_ACEOF
  2228. This file contains any messages produced by compilers while
  2229. running configure, to aid debugging if configure makes a mistake.
  2230. It was created by $as_me, which was
  2231. generated by GNU Autoconf 2.71. Invocation command line was
  2232. $ $0$ac_configure_args_raw
  2233. _ACEOF
  2234. exec 5>>config.log
  2235. {
  2236. cat <<_ASUNAME
  2237. ## --------- ##
  2238. ## Platform. ##
  2239. ## --------- ##
  2240. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2241. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2242. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2243. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2244. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2245. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2246. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2247. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2248. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2249. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2250. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2251. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2252. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2253. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2254. _ASUNAME
  2255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2256. for as_dir in $PATH
  2257. do
  2258. IFS=$as_save_IFS
  2259. case $as_dir in #(((
  2260. '') as_dir=./ ;;
  2261. */) ;;
  2262. *) as_dir=$as_dir/ ;;
  2263. esac
  2264. printf "%s\n" "PATH: $as_dir"
  2265. done
  2266. IFS=$as_save_IFS
  2267. } >&5
  2268. cat >&5 <<_ACEOF
  2269. ## ----------- ##
  2270. ## Core tests. ##
  2271. ## ----------- ##
  2272. _ACEOF
  2273. # Keep a trace of the command line.
  2274. # Strip out --no-create and --no-recursion so they do not pile up.
  2275. # Strip out --silent because we don't want to record it for future runs.
  2276. # Also quote any args containing shell meta-characters.
  2277. # Make two passes to allow for proper duplicate-argument suppression.
  2278. ac_configure_args=
  2279. ac_configure_args0=
  2280. ac_configure_args1=
  2281. ac_must_keep_next=false
  2282. for ac_pass in 1 2
  2283. do
  2284. for ac_arg
  2285. do
  2286. case $ac_arg in
  2287. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2288. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2289. | -silent | --silent | --silen | --sile | --sil)
  2290. continue ;;
  2291. *\'*)
  2292. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2293. esac
  2294. case $ac_pass in
  2295. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2296. 2)
  2297. as_fn_append ac_configure_args1 " '$ac_arg'"
  2298. if test $ac_must_keep_next = true; then
  2299. ac_must_keep_next=false # Got value, back to normal.
  2300. else
  2301. case $ac_arg in
  2302. *=* | --config-cache | -C | -disable-* | --disable-* \
  2303. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2304. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2305. | -with-* | --with-* | -without-* | --without-* | --x)
  2306. case "$ac_configure_args0 " in
  2307. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2308. esac
  2309. ;;
  2310. -* ) ac_must_keep_next=true ;;
  2311. esac
  2312. fi
  2313. as_fn_append ac_configure_args " '$ac_arg'"
  2314. ;;
  2315. esac
  2316. done
  2317. done
  2318. { ac_configure_args0=; unset ac_configure_args0;}
  2319. { ac_configure_args1=; unset ac_configure_args1;}
  2320. # When interrupted or exit'd, cleanup temporary files, and complete
  2321. # config.log. We remove comments because anyway the quotes in there
  2322. # would cause problems or look ugly.
  2323. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2324. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2325. trap 'exit_status=$?
  2326. # Sanitize IFS.
  2327. IFS=" "" $as_nl"
  2328. # Save into config.log some information that might help in debugging.
  2329. {
  2330. echo
  2331. printf "%s\n" "## ---------------- ##
  2332. ## Cache variables. ##
  2333. ## ---------------- ##"
  2334. echo
  2335. # The following way of writing the cache mishandles newlines in values,
  2336. (
  2337. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2338. eval ac_val=\$$ac_var
  2339. case $ac_val in #(
  2340. *${as_nl}*)
  2341. case $ac_var in #(
  2342. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2343. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2344. esac
  2345. case $ac_var in #(
  2346. _ | IFS | as_nl) ;; #(
  2347. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2348. *) { eval $ac_var=; unset $ac_var;} ;;
  2349. esac ;;
  2350. esac
  2351. done
  2352. (set) 2>&1 |
  2353. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2354. *${as_nl}ac_space=\ *)
  2355. sed -n \
  2356. "s/'\''/'\''\\\\'\'''\''/g;
  2357. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2358. ;; #(
  2359. *)
  2360. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2361. ;;
  2362. esac |
  2363. sort
  2364. )
  2365. echo
  2366. printf "%s\n" "## ----------------- ##
  2367. ## Output variables. ##
  2368. ## ----------------- ##"
  2369. echo
  2370. for ac_var in $ac_subst_vars
  2371. do
  2372. eval ac_val=\$$ac_var
  2373. case $ac_val in
  2374. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2375. esac
  2376. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2377. done | sort
  2378. echo
  2379. if test -n "$ac_subst_files"; then
  2380. printf "%s\n" "## ------------------- ##
  2381. ## File substitutions. ##
  2382. ## ------------------- ##"
  2383. echo
  2384. for ac_var in $ac_subst_files
  2385. do
  2386. eval ac_val=\$$ac_var
  2387. case $ac_val in
  2388. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2389. esac
  2390. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2391. done | sort
  2392. echo
  2393. fi
  2394. if test -s confdefs.h; then
  2395. printf "%s\n" "## ----------- ##
  2396. ## confdefs.h. ##
  2397. ## ----------- ##"
  2398. echo
  2399. cat confdefs.h
  2400. echo
  2401. fi
  2402. test "$ac_signal" != 0 &&
  2403. printf "%s\n" "$as_me: caught signal $ac_signal"
  2404. printf "%s\n" "$as_me: exit $exit_status"
  2405. } >&5
  2406. rm -f core *.core core.conftest.* &&
  2407. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2408. exit $exit_status
  2409. ' 0
  2410. for ac_signal in 1 2 13 15; do
  2411. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2412. done
  2413. ac_signal=0
  2414. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2415. rm -f -r conftest* confdefs.h
  2416. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2417. # Predefined preprocessor variables.
  2418. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2419. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2420. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2421. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2422. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2423. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2424. # Let the site file select an alternate cache file if it wants to.
  2425. # Prefer an explicitly selected file to automatically selected ones.
  2426. if test -n "$CONFIG_SITE"; then
  2427. ac_site_files="$CONFIG_SITE"
  2428. elif test "x$prefix" != xNONE; then
  2429. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2430. else
  2431. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2432. fi
  2433. for ac_site_file in $ac_site_files
  2434. do
  2435. case $ac_site_file in #(
  2436. */*) :
  2437. ;; #(
  2438. *) :
  2439. ac_site_file=./$ac_site_file ;;
  2440. esac
  2441. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2443. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2444. sed 's/^/| /' "$ac_site_file" >&5
  2445. . "$ac_site_file" \
  2446. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2447. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2448. as_fn_error $? "failed to load site script $ac_site_file
  2449. See \`config.log' for more details" "$LINENO" 5; }
  2450. fi
  2451. done
  2452. if test -r "$cache_file"; then
  2453. # Some versions of bash will fail to source /dev/null (special files
  2454. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2455. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2457. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2458. case $cache_file in
  2459. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2460. *) . "./$cache_file";;
  2461. esac
  2462. fi
  2463. else
  2464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2465. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2466. >$cache_file
  2467. fi
  2468. # Test code for whether the C compiler supports C89 (global declarations)
  2469. ac_c_conftest_c89_globals='
  2470. /* Does the compiler advertise C89 conformance?
  2471. Do not test the value of __STDC__, because some compilers set it to 0
  2472. while being otherwise adequately conformant. */
  2473. #if !defined __STDC__
  2474. # error "Compiler does not advertise C89 conformance"
  2475. #endif
  2476. #include <stddef.h>
  2477. #include <stdarg.h>
  2478. struct stat;
  2479. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2480. struct buf { int x; };
  2481. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2482. static char *e (p, i)
  2483. char **p;
  2484. int i;
  2485. {
  2486. return p[i];
  2487. }
  2488. static char *f (char * (*g) (char **, int), char **p, ...)
  2489. {
  2490. char *s;
  2491. va_list v;
  2492. va_start (v,p);
  2493. s = g (p, va_arg (v,int));
  2494. va_end (v);
  2495. return s;
  2496. }
  2497. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2498. function prototypes and stuff, but not \xHH hex character constants.
  2499. These do not provoke an error unfortunately, instead are silently treated
  2500. as an "x". The following induces an error, until -std is added to get
  2501. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2502. array size at least. It is necessary to write \x00 == 0 to get something
  2503. that is true only with -std. */
  2504. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2505. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2506. inside strings and character constants. */
  2507. #define FOO(x) '\''x'\''
  2508. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2509. int test (int i, double x);
  2510. struct s1 {int (*f) (int a);};
  2511. struct s2 {int (*f) (double a);};
  2512. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2513. int, int);'
  2514. # Test code for whether the C compiler supports C89 (body of main).
  2515. ac_c_conftest_c89_main='
  2516. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2517. '
  2518. # Test code for whether the C compiler supports C99 (global declarations)
  2519. ac_c_conftest_c99_globals='
  2520. // Does the compiler advertise C99 conformance?
  2521. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2522. # error "Compiler does not advertise C99 conformance"
  2523. #endif
  2524. #include <stdbool.h>
  2525. extern int puts (const char *);
  2526. extern int printf (const char *, ...);
  2527. extern int dprintf (int, const char *, ...);
  2528. extern void *malloc (size_t);
  2529. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2530. // dprintf is used instead of fprintf to avoid needing to declare
  2531. // FILE and stderr.
  2532. #define debug(...) dprintf (2, __VA_ARGS__)
  2533. #define showlist(...) puts (#__VA_ARGS__)
  2534. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2535. static void
  2536. test_varargs_macros (void)
  2537. {
  2538. int x = 1234;
  2539. int y = 5678;
  2540. debug ("Flag");
  2541. debug ("X = %d\n", x);
  2542. showlist (The first, second, and third items.);
  2543. report (x>y, "x is %d but y is %d", x, y);
  2544. }
  2545. // Check long long types.
  2546. #define BIG64 18446744073709551615ull
  2547. #define BIG32 4294967295ul
  2548. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2549. #if !BIG_OK
  2550. #error "your preprocessor is broken"
  2551. #endif
  2552. #if BIG_OK
  2553. #else
  2554. #error "your preprocessor is broken"
  2555. #endif
  2556. static long long int bignum = -9223372036854775807LL;
  2557. static unsigned long long int ubignum = BIG64;
  2558. struct incomplete_array
  2559. {
  2560. int datasize;
  2561. double data[];
  2562. };
  2563. struct named_init {
  2564. int number;
  2565. const wchar_t *name;
  2566. double average;
  2567. };
  2568. typedef const char *ccp;
  2569. static inline int
  2570. test_restrict (ccp restrict text)
  2571. {
  2572. // See if C++-style comments work.
  2573. // Iterate through items via the restricted pointer.
  2574. // Also check for declarations in for loops.
  2575. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2576. continue;
  2577. return 0;
  2578. }
  2579. // Check varargs and va_copy.
  2580. static bool
  2581. test_varargs (const char *format, ...)
  2582. {
  2583. va_list args;
  2584. va_start (args, format);
  2585. va_list args_copy;
  2586. va_copy (args_copy, args);
  2587. const char *str = "";
  2588. int number = 0;
  2589. float fnumber = 0;
  2590. while (*format)
  2591. {
  2592. switch (*format++)
  2593. {
  2594. case '\''s'\'': // string
  2595. str = va_arg (args_copy, const char *);
  2596. break;
  2597. case '\''d'\'': // int
  2598. number = va_arg (args_copy, int);
  2599. break;
  2600. case '\''f'\'': // float
  2601. fnumber = va_arg (args_copy, double);
  2602. break;
  2603. default:
  2604. break;
  2605. }
  2606. }
  2607. va_end (args_copy);
  2608. va_end (args);
  2609. return *str && number && fnumber;
  2610. }
  2611. '
  2612. # Test code for whether the C compiler supports C99 (body of main).
  2613. ac_c_conftest_c99_main='
  2614. // Check bool.
  2615. _Bool success = false;
  2616. success |= (argc != 0);
  2617. // Check restrict.
  2618. if (test_restrict ("String literal") == 0)
  2619. success = true;
  2620. char *restrict newvar = "Another string";
  2621. // Check varargs.
  2622. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2623. test_varargs_macros ();
  2624. // Check flexible array members.
  2625. struct incomplete_array *ia =
  2626. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2627. ia->datasize = 10;
  2628. for (int i = 0; i < ia->datasize; ++i)
  2629. ia->data[i] = i * 1.234;
  2630. // Check named initializers.
  2631. struct named_init ni = {
  2632. .number = 34,
  2633. .name = L"Test wide string",
  2634. .average = 543.34343,
  2635. };
  2636. ni.number = 58;
  2637. int dynamic_array[ni.number];
  2638. dynamic_array[0] = argv[0][0];
  2639. dynamic_array[ni.number - 1] = 543;
  2640. // work around unused variable warnings
  2641. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2642. || dynamic_array[ni.number - 1] != 543);
  2643. '
  2644. # Test code for whether the C compiler supports C11 (global declarations)
  2645. ac_c_conftest_c11_globals='
  2646. // Does the compiler advertise C11 conformance?
  2647. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2648. # error "Compiler does not advertise C11 conformance"
  2649. #endif
  2650. // Check _Alignas.
  2651. char _Alignas (double) aligned_as_double;
  2652. char _Alignas (0) no_special_alignment;
  2653. extern char aligned_as_int;
  2654. char _Alignas (0) _Alignas (int) aligned_as_int;
  2655. // Check _Alignof.
  2656. enum
  2657. {
  2658. int_alignment = _Alignof (int),
  2659. int_array_alignment = _Alignof (int[100]),
  2660. char_alignment = _Alignof (char)
  2661. };
  2662. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2663. // Check _Noreturn.
  2664. int _Noreturn does_not_return (void) { for (;;) continue; }
  2665. // Check _Static_assert.
  2666. struct test_static_assert
  2667. {
  2668. int x;
  2669. _Static_assert (sizeof (int) <= sizeof (long int),
  2670. "_Static_assert does not work in struct");
  2671. long int y;
  2672. };
  2673. // Check UTF-8 literals.
  2674. #define u8 syntax error!
  2675. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2676. // Check duplicate typedefs.
  2677. typedef long *long_ptr;
  2678. typedef long int *long_ptr;
  2679. typedef long_ptr long_ptr;
  2680. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2681. struct anonymous
  2682. {
  2683. union {
  2684. struct { int i; int j; };
  2685. struct { int k; long int l; } w;
  2686. };
  2687. int m;
  2688. } v1;
  2689. '
  2690. # Test code for whether the C compiler supports C11 (body of main).
  2691. ac_c_conftest_c11_main='
  2692. _Static_assert ((offsetof (struct anonymous, i)
  2693. == offsetof (struct anonymous, w.k)),
  2694. "Anonymous union alignment botch");
  2695. v1.i = 2;
  2696. v1.w.k = 5;
  2697. ok |= v1.i != 5;
  2698. '
  2699. # Test code for whether the C compiler supports C11 (complete).
  2700. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2701. ${ac_c_conftest_c99_globals}
  2702. ${ac_c_conftest_c11_globals}
  2703. int
  2704. main (int argc, char **argv)
  2705. {
  2706. int ok = 0;
  2707. ${ac_c_conftest_c89_main}
  2708. ${ac_c_conftest_c99_main}
  2709. ${ac_c_conftest_c11_main}
  2710. return ok;
  2711. }
  2712. "
  2713. # Test code for whether the C compiler supports C99 (complete).
  2714. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2715. ${ac_c_conftest_c99_globals}
  2716. int
  2717. main (int argc, char **argv)
  2718. {
  2719. int ok = 0;
  2720. ${ac_c_conftest_c89_main}
  2721. ${ac_c_conftest_c99_main}
  2722. return ok;
  2723. }
  2724. "
  2725. # Test code for whether the C compiler supports C89 (complete).
  2726. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2727. int
  2728. main (int argc, char **argv)
  2729. {
  2730. int ok = 0;
  2731. ${ac_c_conftest_c89_main}
  2732. return ok;
  2733. }
  2734. "
  2735. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2736. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2737. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2738. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2739. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2740. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2741. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2742. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2743. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2744. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2745. ac_cxx_conftest_cxx98_globals='
  2746. // Does the compiler advertise C++98 conformance?
  2747. #if !defined __cplusplus || __cplusplus < 199711L
  2748. # error "Compiler does not advertise C++98 conformance"
  2749. #endif
  2750. // These inclusions are to reject old compilers that
  2751. // lack the unsuffixed header files.
  2752. #include <cstdlib>
  2753. #include <exception>
  2754. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2755. extern void assert (int);
  2756. namespace std {
  2757. extern int strcmp (const char *, const char *);
  2758. }
  2759. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2760. using std::exception;
  2761. using std::strcmp;
  2762. namespace {
  2763. void test_exception_syntax()
  2764. {
  2765. try {
  2766. throw "test";
  2767. } catch (const char *s) {
  2768. // Extra parentheses suppress a warning when building autoconf itself,
  2769. // due to lint rules shared with more typical C programs.
  2770. assert (!(strcmp) (s, "test"));
  2771. }
  2772. }
  2773. template <typename T> struct test_template
  2774. {
  2775. T const val;
  2776. explicit test_template(T t) : val(t) {}
  2777. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2778. };
  2779. } // anonymous namespace
  2780. '
  2781. # Test code for whether the C++ compiler supports C++98 (body of main)
  2782. ac_cxx_conftest_cxx98_main='
  2783. assert (argc);
  2784. assert (! argv[0]);
  2785. {
  2786. test_exception_syntax ();
  2787. test_template<double> tt (2.0);
  2788. assert (tt.add (4) == 6.0);
  2789. assert (true && !false);
  2790. }
  2791. '
  2792. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2793. ac_cxx_conftest_cxx11_globals='
  2794. // Does the compiler advertise C++ 2011 conformance?
  2795. #if !defined __cplusplus || __cplusplus < 201103L
  2796. # error "Compiler does not advertise C++11 conformance"
  2797. #endif
  2798. namespace cxx11test
  2799. {
  2800. constexpr int get_val() { return 20; }
  2801. struct testinit
  2802. {
  2803. int i;
  2804. double d;
  2805. };
  2806. class delegate
  2807. {
  2808. public:
  2809. delegate(int n) : n(n) {}
  2810. delegate(): delegate(2354) {}
  2811. virtual int getval() { return this->n; };
  2812. protected:
  2813. int n;
  2814. };
  2815. class overridden : public delegate
  2816. {
  2817. public:
  2818. overridden(int n): delegate(n) {}
  2819. virtual int getval() override final { return this->n * 2; }
  2820. };
  2821. class nocopy
  2822. {
  2823. public:
  2824. nocopy(int i): i(i) {}
  2825. nocopy() = default;
  2826. nocopy(const nocopy&) = delete;
  2827. nocopy & operator=(const nocopy&) = delete;
  2828. private:
  2829. int i;
  2830. };
  2831. // for testing lambda expressions
  2832. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2833. {
  2834. return f(v);
  2835. }
  2836. // for testing variadic templates and trailing return types
  2837. template <typename V> auto sum(V first) -> V
  2838. {
  2839. return first;
  2840. }
  2841. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2842. {
  2843. return first + sum(rest...);
  2844. }
  2845. }
  2846. '
  2847. # Test code for whether the C++ compiler supports C++11 (body of main)
  2848. ac_cxx_conftest_cxx11_main='
  2849. {
  2850. // Test auto and decltype
  2851. auto a1 = 6538;
  2852. auto a2 = 48573953.4;
  2853. auto a3 = "String literal";
  2854. int total = 0;
  2855. for (auto i = a3; *i; ++i) { total += *i; }
  2856. decltype(a2) a4 = 34895.034;
  2857. }
  2858. {
  2859. // Test constexpr
  2860. short sa[cxx11test::get_val()] = { 0 };
  2861. }
  2862. {
  2863. // Test initializer lists
  2864. cxx11test::testinit il = { 4323, 435234.23544 };
  2865. }
  2866. {
  2867. // Test range-based for
  2868. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2869. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2870. for (auto &x : array) { x += 23; }
  2871. }
  2872. {
  2873. // Test lambda expressions
  2874. using cxx11test::eval;
  2875. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2876. double d = 2.0;
  2877. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2878. assert (d == 5.0);
  2879. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2880. assert (d == 5.0);
  2881. }
  2882. {
  2883. // Test use of variadic templates
  2884. using cxx11test::sum;
  2885. auto a = sum(1);
  2886. auto b = sum(1, 2);
  2887. auto c = sum(1.0, 2.0, 3.0);
  2888. }
  2889. {
  2890. // Test constructor delegation
  2891. cxx11test::delegate d1;
  2892. cxx11test::delegate d2();
  2893. cxx11test::delegate d3(45);
  2894. }
  2895. {
  2896. // Test override and final
  2897. cxx11test::overridden o1(55464);
  2898. }
  2899. {
  2900. // Test nullptr
  2901. char *c = nullptr;
  2902. }
  2903. {
  2904. // Test template brackets
  2905. test_template<::test_template<int>> v(test_template<int>(12));
  2906. }
  2907. {
  2908. // Unicode literals
  2909. char const *utf8 = u8"UTF-8 string \u2500";
  2910. char16_t const *utf16 = u"UTF-8 string \u2500";
  2911. char32_t const *utf32 = U"UTF-32 string \u2500";
  2912. }
  2913. '
  2914. # Test code for whether the C compiler supports C++11 (complete).
  2915. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2916. ${ac_cxx_conftest_cxx11_globals}
  2917. int
  2918. main (int argc, char **argv)
  2919. {
  2920. int ok = 0;
  2921. ${ac_cxx_conftest_cxx98_main}
  2922. ${ac_cxx_conftest_cxx11_main}
  2923. return ok;
  2924. }
  2925. "
  2926. # Test code for whether the C compiler supports C++98 (complete).
  2927. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2928. int
  2929. main (int argc, char **argv)
  2930. {
  2931. int ok = 0;
  2932. ${ac_cxx_conftest_cxx98_main}
  2933. return ok;
  2934. }
  2935. "
  2936. # Auxiliary files required by this configure script.
  2937. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2938. # Locations in which to look for auxiliary files.
  2939. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2940. # Search for a directory containing all of the required auxiliary files,
  2941. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2942. # If we don't find one directory that contains all the files we need,
  2943. # we report the set of missing files from the *first* directory in
  2944. # $ac_aux_dir_candidates and give up.
  2945. ac_missing_aux_files=""
  2946. ac_first_candidate=:
  2947. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2949. as_found=false
  2950. for as_dir in $ac_aux_dir_candidates
  2951. do
  2952. IFS=$as_save_IFS
  2953. case $as_dir in #(((
  2954. '') as_dir=./ ;;
  2955. */) ;;
  2956. *) as_dir=$as_dir/ ;;
  2957. esac
  2958. as_found=:
  2959. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2960. ac_aux_dir_found=yes
  2961. ac_install_sh=
  2962. for ac_aux in $ac_aux_files
  2963. do
  2964. # As a special case, if "install-sh" is required, that requirement
  2965. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2966. # and $ac_install_sh is set appropriately for whichever one is found.
  2967. if test x"$ac_aux" = x"install-sh"
  2968. then
  2969. if test -f "${as_dir}install-sh"; then
  2970. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2971. ac_install_sh="${as_dir}install-sh -c"
  2972. elif test -f "${as_dir}install.sh"; then
  2973. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2974. ac_install_sh="${as_dir}install.sh -c"
  2975. elif test -f "${as_dir}shtool"; then
  2976. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2977. ac_install_sh="${as_dir}shtool install -c"
  2978. else
  2979. ac_aux_dir_found=no
  2980. if $ac_first_candidate; then
  2981. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2982. else
  2983. break
  2984. fi
  2985. fi
  2986. else
  2987. if test -f "${as_dir}${ac_aux}"; then
  2988. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2989. else
  2990. ac_aux_dir_found=no
  2991. if $ac_first_candidate; then
  2992. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2993. else
  2994. break
  2995. fi
  2996. fi
  2997. fi
  2998. done
  2999. if test "$ac_aux_dir_found" = yes; then
  3000. ac_aux_dir="$as_dir"
  3001. break
  3002. fi
  3003. ac_first_candidate=false
  3004. as_found=false
  3005. done
  3006. IFS=$as_save_IFS
  3007. if $as_found
  3008. then :
  3009. else $as_nop
  3010. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3011. fi
  3012. # These three variables are undocumented and unsupported,
  3013. # and are intended to be withdrawn in a future Autoconf release.
  3014. # They can cause serious problems if a builder's source tree is in a directory
  3015. # whose full name contains unusual characters.
  3016. if test -f "${ac_aux_dir}config.guess"; then
  3017. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3018. fi
  3019. if test -f "${ac_aux_dir}config.sub"; then
  3020. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3021. fi
  3022. if test -f "$ac_aux_dir/configure"; then
  3023. ac_configure="$SHELL ${ac_aux_dir}configure"
  3024. fi
  3025. # Check that the precious variables saved in the cache have kept the same
  3026. # value.
  3027. ac_cache_corrupted=false
  3028. for ac_var in $ac_precious_vars; do
  3029. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3030. eval ac_new_set=\$ac_env_${ac_var}_set
  3031. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3032. eval ac_new_val=\$ac_env_${ac_var}_value
  3033. case $ac_old_set,$ac_new_set in
  3034. set,)
  3035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3036. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3037. ac_cache_corrupted=: ;;
  3038. ,set)
  3039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3040. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3041. ac_cache_corrupted=: ;;
  3042. ,);;
  3043. *)
  3044. if test "x$ac_old_val" != "x$ac_new_val"; then
  3045. # differences in whitespace do not lead to failure.
  3046. ac_old_val_w=`echo x $ac_old_val`
  3047. ac_new_val_w=`echo x $ac_new_val`
  3048. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3050. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3051. ac_cache_corrupted=:
  3052. else
  3053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3054. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3055. eval $ac_var=\$ac_old_val
  3056. fi
  3057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3058. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3060. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3061. fi;;
  3062. esac
  3063. # Pass precious variables to config.status.
  3064. if test "$ac_new_set" = set; then
  3065. case $ac_new_val in
  3066. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3067. *) ac_arg=$ac_var=$ac_new_val ;;
  3068. esac
  3069. case " $ac_configure_args " in
  3070. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3071. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3072. esac
  3073. fi
  3074. done
  3075. if $ac_cache_corrupted; then
  3076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3077. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3079. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3080. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3081. and start over" "$LINENO" 5
  3082. fi
  3083. ## -------------------- ##
  3084. ## Main body of script. ##
  3085. ## -------------------- ##
  3086. ac_ext=c
  3087. ac_cpp='$CPP $CPPFLAGS'
  3088. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3089. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3090. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3091. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3092. orig_CFLAGS="$CFLAGS"
  3093. # See docs/release_checklist.md
  3094. SDL_MAJOR_VERSION=3
  3095. SDL_MINOR_VERSION=0
  3096. SDL_MICRO_VERSION=0
  3097. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3098. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3099. case "$SDL_MINOR_VERSION" in #(
  3100. *[02468]) :
  3101. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3102. *) :
  3103. SDL_INTERFACE_AGE=0 ;; #(
  3104. *) :
  3105. ;;
  3106. esac
  3107. # libtool versioning
  3108. case `pwd` in
  3109. *\ * | *\ *)
  3110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3111. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3112. esac
  3113. macro_version='2.4.6'
  3114. macro_revision='2.4.6'
  3115. ltmain=$ac_aux_dir/ltmain.sh
  3116. # Make sure we can run config.sub.
  3117. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3118. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3120. printf %s "checking build system type... " >&6; }
  3121. if test ${ac_cv_build+y}
  3122. then :
  3123. printf %s "(cached) " >&6
  3124. else $as_nop
  3125. ac_build_alias=$build_alias
  3126. test "x$ac_build_alias" = x &&
  3127. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3128. test "x$ac_build_alias" = x &&
  3129. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3130. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3131. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3132. fi
  3133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3134. printf "%s\n" "$ac_cv_build" >&6; }
  3135. case $ac_cv_build in
  3136. *-*-*) ;;
  3137. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3138. esac
  3139. build=$ac_cv_build
  3140. ac_save_IFS=$IFS; IFS='-'
  3141. set x $ac_cv_build
  3142. shift
  3143. build_cpu=$1
  3144. build_vendor=$2
  3145. shift; shift
  3146. # Remember, the first character of IFS is used to create $*,
  3147. # except with old shells:
  3148. build_os=$*
  3149. IFS=$ac_save_IFS
  3150. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3152. printf %s "checking host system type... " >&6; }
  3153. if test ${ac_cv_host+y}
  3154. then :
  3155. printf %s "(cached) " >&6
  3156. else $as_nop
  3157. if test "x$host_alias" = x; then
  3158. ac_cv_host=$ac_cv_build
  3159. else
  3160. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3161. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3162. fi
  3163. fi
  3164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3165. printf "%s\n" "$ac_cv_host" >&6; }
  3166. case $ac_cv_host in
  3167. *-*-*) ;;
  3168. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3169. esac
  3170. host=$ac_cv_host
  3171. ac_save_IFS=$IFS; IFS='-'
  3172. set x $ac_cv_host
  3173. shift
  3174. host_cpu=$1
  3175. host_vendor=$2
  3176. shift; shift
  3177. # Remember, the first character of IFS is used to create $*,
  3178. # except with old shells:
  3179. host_os=$*
  3180. IFS=$ac_save_IFS
  3181. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3182. # Backslashify metacharacters that are still active within
  3183. # double-quoted strings.
  3184. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3185. # Same as above, but do not quote variable references.
  3186. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3187. # Sed substitution to delay expansion of an escaped shell variable in a
  3188. # double_quote_subst'ed string.
  3189. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3190. # Sed substitution to delay expansion of an escaped single quote.
  3191. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3192. # Sed substitution to avoid accidental globbing in evaled expressions
  3193. no_glob_subst='s/\*/\\\*/g'
  3194. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3195. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3196. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3198. printf %s "checking how to print strings... " >&6; }
  3199. # Test print first, because it will be a builtin if present.
  3200. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3201. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3202. ECHO='print -r --'
  3203. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3204. ECHO='printf %s\n'
  3205. else
  3206. # Use this function as a fallback that always works.
  3207. func_fallback_echo ()
  3208. {
  3209. eval 'cat <<_LTECHO_EOF
  3210. $1
  3211. _LTECHO_EOF'
  3212. }
  3213. ECHO='func_fallback_echo'
  3214. fi
  3215. # func_echo_all arg...
  3216. # Invoke $ECHO with all args, space-separated.
  3217. func_echo_all ()
  3218. {
  3219. $ECHO ""
  3220. }
  3221. case $ECHO in
  3222. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3223. printf "%s\n" "printf" >&6; } ;;
  3224. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3225. printf "%s\n" "print -r" >&6; } ;;
  3226. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3227. printf "%s\n" "cat" >&6; } ;;
  3228. esac
  3229. ac_ext=c
  3230. ac_cpp='$CPP $CPPFLAGS'
  3231. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3232. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3233. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3234. if test -n "$ac_tool_prefix"; then
  3235. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3236. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3238. printf %s "checking for $ac_word... " >&6; }
  3239. if test ${ac_cv_prog_CC+y}
  3240. then :
  3241. printf %s "(cached) " >&6
  3242. else $as_nop
  3243. if test -n "$CC"; then
  3244. ac_cv_prog_CC="$CC" # Let the user override the test.
  3245. else
  3246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3247. for as_dir in $PATH
  3248. do
  3249. IFS=$as_save_IFS
  3250. case $as_dir in #(((
  3251. '') as_dir=./ ;;
  3252. */) ;;
  3253. *) as_dir=$as_dir/ ;;
  3254. esac
  3255. for ac_exec_ext in '' $ac_executable_extensions; do
  3256. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3257. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3258. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3259. break 2
  3260. fi
  3261. done
  3262. done
  3263. IFS=$as_save_IFS
  3264. fi
  3265. fi
  3266. CC=$ac_cv_prog_CC
  3267. if test -n "$CC"; then
  3268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3269. printf "%s\n" "$CC" >&6; }
  3270. else
  3271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3272. printf "%s\n" "no" >&6; }
  3273. fi
  3274. fi
  3275. if test -z "$ac_cv_prog_CC"; then
  3276. ac_ct_CC=$CC
  3277. # Extract the first word of "gcc", so it can be a program name with args.
  3278. set dummy gcc; ac_word=$2
  3279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3280. printf %s "checking for $ac_word... " >&6; }
  3281. if test ${ac_cv_prog_ac_ct_CC+y}
  3282. then :
  3283. printf %s "(cached) " >&6
  3284. else $as_nop
  3285. if test -n "$ac_ct_CC"; then
  3286. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3287. else
  3288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3289. for as_dir in $PATH
  3290. do
  3291. IFS=$as_save_IFS
  3292. case $as_dir in #(((
  3293. '') as_dir=./ ;;
  3294. */) ;;
  3295. *) as_dir=$as_dir/ ;;
  3296. esac
  3297. for ac_exec_ext in '' $ac_executable_extensions; do
  3298. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3299. ac_cv_prog_ac_ct_CC="gcc"
  3300. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3301. break 2
  3302. fi
  3303. done
  3304. done
  3305. IFS=$as_save_IFS
  3306. fi
  3307. fi
  3308. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3309. if test -n "$ac_ct_CC"; then
  3310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3311. printf "%s\n" "$ac_ct_CC" >&6; }
  3312. else
  3313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3314. printf "%s\n" "no" >&6; }
  3315. fi
  3316. if test "x$ac_ct_CC" = x; then
  3317. CC=""
  3318. else
  3319. case $cross_compiling:$ac_tool_warned in
  3320. yes:)
  3321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3322. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3323. ac_tool_warned=yes ;;
  3324. esac
  3325. CC=$ac_ct_CC
  3326. fi
  3327. else
  3328. CC="$ac_cv_prog_CC"
  3329. fi
  3330. if test -z "$CC"; then
  3331. if test -n "$ac_tool_prefix"; then
  3332. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3333. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3335. printf %s "checking for $ac_word... " >&6; }
  3336. if test ${ac_cv_prog_CC+y}
  3337. then :
  3338. printf %s "(cached) " >&6
  3339. else $as_nop
  3340. if test -n "$CC"; then
  3341. ac_cv_prog_CC="$CC" # Let the user override the test.
  3342. else
  3343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3344. for as_dir in $PATH
  3345. do
  3346. IFS=$as_save_IFS
  3347. case $as_dir in #(((
  3348. '') as_dir=./ ;;
  3349. */) ;;
  3350. *) as_dir=$as_dir/ ;;
  3351. esac
  3352. for ac_exec_ext in '' $ac_executable_extensions; do
  3353. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3354. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3355. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3356. break 2
  3357. fi
  3358. done
  3359. done
  3360. IFS=$as_save_IFS
  3361. fi
  3362. fi
  3363. CC=$ac_cv_prog_CC
  3364. if test -n "$CC"; then
  3365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3366. printf "%s\n" "$CC" >&6; }
  3367. else
  3368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3369. printf "%s\n" "no" >&6; }
  3370. fi
  3371. fi
  3372. fi
  3373. if test -z "$CC"; then
  3374. # Extract the first word of "cc", so it can be a program name with args.
  3375. set dummy cc; ac_word=$2
  3376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3377. printf %s "checking for $ac_word... " >&6; }
  3378. if test ${ac_cv_prog_CC+y}
  3379. then :
  3380. printf %s "(cached) " >&6
  3381. else $as_nop
  3382. if test -n "$CC"; then
  3383. ac_cv_prog_CC="$CC" # Let the user override the test.
  3384. else
  3385. ac_prog_rejected=no
  3386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3387. for as_dir in $PATH
  3388. do
  3389. IFS=$as_save_IFS
  3390. case $as_dir in #(((
  3391. '') as_dir=./ ;;
  3392. */) ;;
  3393. *) as_dir=$as_dir/ ;;
  3394. esac
  3395. for ac_exec_ext in '' $ac_executable_extensions; do
  3396. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3397. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3398. ac_prog_rejected=yes
  3399. continue
  3400. fi
  3401. ac_cv_prog_CC="cc"
  3402. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3403. break 2
  3404. fi
  3405. done
  3406. done
  3407. IFS=$as_save_IFS
  3408. if test $ac_prog_rejected = yes; then
  3409. # We found a bogon in the path, so make sure we never use it.
  3410. set dummy $ac_cv_prog_CC
  3411. shift
  3412. if test $# != 0; then
  3413. # We chose a different compiler from the bogus one.
  3414. # However, it has the same basename, so the bogon will be chosen
  3415. # first if we set CC to just the basename; use the full file name.
  3416. shift
  3417. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3418. fi
  3419. fi
  3420. fi
  3421. fi
  3422. CC=$ac_cv_prog_CC
  3423. if test -n "$CC"; then
  3424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3425. printf "%s\n" "$CC" >&6; }
  3426. else
  3427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3428. printf "%s\n" "no" >&6; }
  3429. fi
  3430. fi
  3431. if test -z "$CC"; then
  3432. if test -n "$ac_tool_prefix"; then
  3433. for ac_prog in cl.exe
  3434. do
  3435. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3436. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3438. printf %s "checking for $ac_word... " >&6; }
  3439. if test ${ac_cv_prog_CC+y}
  3440. then :
  3441. printf %s "(cached) " >&6
  3442. else $as_nop
  3443. if test -n "$CC"; then
  3444. ac_cv_prog_CC="$CC" # Let the user override the test.
  3445. else
  3446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3447. for as_dir in $PATH
  3448. do
  3449. IFS=$as_save_IFS
  3450. case $as_dir in #(((
  3451. '') as_dir=./ ;;
  3452. */) ;;
  3453. *) as_dir=$as_dir/ ;;
  3454. esac
  3455. for ac_exec_ext in '' $ac_executable_extensions; do
  3456. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3457. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3458. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3459. break 2
  3460. fi
  3461. done
  3462. done
  3463. IFS=$as_save_IFS
  3464. fi
  3465. fi
  3466. CC=$ac_cv_prog_CC
  3467. if test -n "$CC"; then
  3468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3469. printf "%s\n" "$CC" >&6; }
  3470. else
  3471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3472. printf "%s\n" "no" >&6; }
  3473. fi
  3474. test -n "$CC" && break
  3475. done
  3476. fi
  3477. if test -z "$CC"; then
  3478. ac_ct_CC=$CC
  3479. for ac_prog in cl.exe
  3480. do
  3481. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3482. set dummy $ac_prog; ac_word=$2
  3483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3484. printf %s "checking for $ac_word... " >&6; }
  3485. if test ${ac_cv_prog_ac_ct_CC+y}
  3486. then :
  3487. printf %s "(cached) " >&6
  3488. else $as_nop
  3489. if test -n "$ac_ct_CC"; then
  3490. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3491. else
  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. ac_cv_prog_ac_ct_CC="$ac_prog"
  3504. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3505. break 2
  3506. fi
  3507. done
  3508. done
  3509. IFS=$as_save_IFS
  3510. fi
  3511. fi
  3512. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3513. if test -n "$ac_ct_CC"; then
  3514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3515. printf "%s\n" "$ac_ct_CC" >&6; }
  3516. else
  3517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3518. printf "%s\n" "no" >&6; }
  3519. fi
  3520. test -n "$ac_ct_CC" && break
  3521. done
  3522. if test "x$ac_ct_CC" = x; then
  3523. CC=""
  3524. else
  3525. case $cross_compiling:$ac_tool_warned in
  3526. yes:)
  3527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3528. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3529. ac_tool_warned=yes ;;
  3530. esac
  3531. CC=$ac_ct_CC
  3532. fi
  3533. fi
  3534. fi
  3535. if test -z "$CC"; then
  3536. if test -n "$ac_tool_prefix"; then
  3537. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3538. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3540. printf %s "checking for $ac_word... " >&6; }
  3541. if test ${ac_cv_prog_CC+y}
  3542. then :
  3543. printf %s "(cached) " >&6
  3544. else $as_nop
  3545. if test -n "$CC"; then
  3546. ac_cv_prog_CC="$CC" # Let the user override the test.
  3547. else
  3548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3549. for as_dir in $PATH
  3550. do
  3551. IFS=$as_save_IFS
  3552. case $as_dir in #(((
  3553. '') as_dir=./ ;;
  3554. */) ;;
  3555. *) as_dir=$as_dir/ ;;
  3556. esac
  3557. for ac_exec_ext in '' $ac_executable_extensions; do
  3558. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3559. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3560. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3561. break 2
  3562. fi
  3563. done
  3564. done
  3565. IFS=$as_save_IFS
  3566. fi
  3567. fi
  3568. CC=$ac_cv_prog_CC
  3569. if test -n "$CC"; then
  3570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3571. printf "%s\n" "$CC" >&6; }
  3572. else
  3573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3574. printf "%s\n" "no" >&6; }
  3575. fi
  3576. fi
  3577. if test -z "$ac_cv_prog_CC"; then
  3578. ac_ct_CC=$CC
  3579. # Extract the first word of "clang", so it can be a program name with args.
  3580. set dummy clang; ac_word=$2
  3581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3582. printf %s "checking for $ac_word... " >&6; }
  3583. if test ${ac_cv_prog_ac_ct_CC+y}
  3584. then :
  3585. printf %s "(cached) " >&6
  3586. else $as_nop
  3587. if test -n "$ac_ct_CC"; then
  3588. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3589. else
  3590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3591. for as_dir in $PATH
  3592. do
  3593. IFS=$as_save_IFS
  3594. case $as_dir in #(((
  3595. '') as_dir=./ ;;
  3596. */) ;;
  3597. *) as_dir=$as_dir/ ;;
  3598. esac
  3599. for ac_exec_ext in '' $ac_executable_extensions; do
  3600. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3601. ac_cv_prog_ac_ct_CC="clang"
  3602. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3603. break 2
  3604. fi
  3605. done
  3606. done
  3607. IFS=$as_save_IFS
  3608. fi
  3609. fi
  3610. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3611. if test -n "$ac_ct_CC"; then
  3612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3613. printf "%s\n" "$ac_ct_CC" >&6; }
  3614. else
  3615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3616. printf "%s\n" "no" >&6; }
  3617. fi
  3618. if test "x$ac_ct_CC" = x; then
  3619. CC=""
  3620. else
  3621. case $cross_compiling:$ac_tool_warned in
  3622. yes:)
  3623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3624. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3625. ac_tool_warned=yes ;;
  3626. esac
  3627. CC=$ac_ct_CC
  3628. fi
  3629. else
  3630. CC="$ac_cv_prog_CC"
  3631. fi
  3632. fi
  3633. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3634. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3635. as_fn_error $? "no acceptable C compiler found in \$PATH
  3636. See \`config.log' for more details" "$LINENO" 5; }
  3637. # Provide some information about the compiler.
  3638. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3639. set X $ac_compile
  3640. ac_compiler=$2
  3641. for ac_option in --version -v -V -qversion -version; do
  3642. { { ac_try="$ac_compiler $ac_option >&5"
  3643. case "(($ac_try" in
  3644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3645. *) ac_try_echo=$ac_try;;
  3646. esac
  3647. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3648. printf "%s\n" "$ac_try_echo"; } >&5
  3649. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3650. ac_status=$?
  3651. if test -s conftest.err; then
  3652. sed '10a\
  3653. ... rest of stderr output deleted ...
  3654. 10q' conftest.err >conftest.er1
  3655. cat conftest.er1 >&5
  3656. fi
  3657. rm -f conftest.er1 conftest.err
  3658. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3659. test $ac_status = 0; }
  3660. done
  3661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3662. /* end confdefs.h. */
  3663. int
  3664. main (void)
  3665. {
  3666. ;
  3667. return 0;
  3668. }
  3669. _ACEOF
  3670. ac_clean_files_save=$ac_clean_files
  3671. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3672. # Try to create an executable without -o first, disregard a.out.
  3673. # It will help us diagnose broken compilers, and finding out an intuition
  3674. # of exeext.
  3675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3676. printf %s "checking whether the C compiler works... " >&6; }
  3677. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3678. # The possible output files:
  3679. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3680. ac_rmfiles=
  3681. for ac_file in $ac_files
  3682. do
  3683. case $ac_file in
  3684. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3685. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3686. esac
  3687. done
  3688. rm -f $ac_rmfiles
  3689. if { { ac_try="$ac_link_default"
  3690. case "(($ac_try" in
  3691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3692. *) ac_try_echo=$ac_try;;
  3693. esac
  3694. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3695. printf "%s\n" "$ac_try_echo"; } >&5
  3696. (eval "$ac_link_default") 2>&5
  3697. ac_status=$?
  3698. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3699. test $ac_status = 0; }
  3700. then :
  3701. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3702. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3703. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3704. # so that the user can short-circuit this test for compilers unknown to
  3705. # Autoconf.
  3706. for ac_file in $ac_files ''
  3707. do
  3708. test -f "$ac_file" || continue
  3709. case $ac_file in
  3710. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3711. ;;
  3712. [ab].out )
  3713. # We found the default executable, but exeext='' is most
  3714. # certainly right.
  3715. break;;
  3716. *.* )
  3717. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3718. then :; else
  3719. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3720. fi
  3721. # We set ac_cv_exeext here because the later test for it is not
  3722. # safe: cross compilers may not add the suffix if given an `-o'
  3723. # argument, so we may need to know it at that point already.
  3724. # Even if this section looks crufty: it has the advantage of
  3725. # actually working.
  3726. break;;
  3727. * )
  3728. break;;
  3729. esac
  3730. done
  3731. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3732. else $as_nop
  3733. ac_file=''
  3734. fi
  3735. if test -z "$ac_file"
  3736. then :
  3737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3738. printf "%s\n" "no" >&6; }
  3739. printf "%s\n" "$as_me: failed program was:" >&5
  3740. sed 's/^/| /' conftest.$ac_ext >&5
  3741. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3742. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3743. as_fn_error 77 "C compiler cannot create executables
  3744. See \`config.log' for more details" "$LINENO" 5; }
  3745. else $as_nop
  3746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3747. printf "%s\n" "yes" >&6; }
  3748. fi
  3749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3750. printf %s "checking for C compiler default output file name... " >&6; }
  3751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3752. printf "%s\n" "$ac_file" >&6; }
  3753. ac_exeext=$ac_cv_exeext
  3754. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3755. ac_clean_files=$ac_clean_files_save
  3756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3757. printf %s "checking for suffix of executables... " >&6; }
  3758. if { { ac_try="$ac_link"
  3759. case "(($ac_try" in
  3760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3761. *) ac_try_echo=$ac_try;;
  3762. esac
  3763. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3764. printf "%s\n" "$ac_try_echo"; } >&5
  3765. (eval "$ac_link") 2>&5
  3766. ac_status=$?
  3767. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3768. test $ac_status = 0; }
  3769. then :
  3770. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3771. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3772. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3773. # `rm'.
  3774. for ac_file in conftest.exe conftest conftest.*; do
  3775. test -f "$ac_file" || continue
  3776. case $ac_file in
  3777. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3778. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3779. break;;
  3780. * ) break;;
  3781. esac
  3782. done
  3783. else $as_nop
  3784. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3785. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3786. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3787. See \`config.log' for more details" "$LINENO" 5; }
  3788. fi
  3789. rm -f conftest conftest$ac_cv_exeext
  3790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3791. printf "%s\n" "$ac_cv_exeext" >&6; }
  3792. rm -f conftest.$ac_ext
  3793. EXEEXT=$ac_cv_exeext
  3794. ac_exeext=$EXEEXT
  3795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3796. /* end confdefs.h. */
  3797. #include <stdio.h>
  3798. int
  3799. main (void)
  3800. {
  3801. FILE *f = fopen ("conftest.out", "w");
  3802. return ferror (f) || fclose (f) != 0;
  3803. ;
  3804. return 0;
  3805. }
  3806. _ACEOF
  3807. ac_clean_files="$ac_clean_files conftest.out"
  3808. # Check that the compiler produces executables we can run. If not, either
  3809. # the compiler is broken, or we cross compile.
  3810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3811. printf %s "checking whether we are cross compiling... " >&6; }
  3812. if test "$cross_compiling" != yes; then
  3813. { { ac_try="$ac_link"
  3814. case "(($ac_try" in
  3815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3816. *) ac_try_echo=$ac_try;;
  3817. esac
  3818. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3819. printf "%s\n" "$ac_try_echo"; } >&5
  3820. (eval "$ac_link") 2>&5
  3821. ac_status=$?
  3822. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3823. test $ac_status = 0; }
  3824. if { ac_try='./conftest$ac_cv_exeext'
  3825. { { case "(($ac_try" in
  3826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3827. *) ac_try_echo=$ac_try;;
  3828. esac
  3829. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3830. printf "%s\n" "$ac_try_echo"; } >&5
  3831. (eval "$ac_try") 2>&5
  3832. ac_status=$?
  3833. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3834. test $ac_status = 0; }; }; then
  3835. cross_compiling=no
  3836. else
  3837. if test "$cross_compiling" = maybe; then
  3838. cross_compiling=yes
  3839. else
  3840. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3841. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3842. as_fn_error 77 "cannot run C compiled programs.
  3843. If you meant to cross compile, use \`--host'.
  3844. See \`config.log' for more details" "$LINENO" 5; }
  3845. fi
  3846. fi
  3847. fi
  3848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3849. printf "%s\n" "$cross_compiling" >&6; }
  3850. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3851. ac_clean_files=$ac_clean_files_save
  3852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3853. printf %s "checking for suffix of object files... " >&6; }
  3854. if test ${ac_cv_objext+y}
  3855. then :
  3856. printf %s "(cached) " >&6
  3857. else $as_nop
  3858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3859. /* end confdefs.h. */
  3860. int
  3861. main (void)
  3862. {
  3863. ;
  3864. return 0;
  3865. }
  3866. _ACEOF
  3867. rm -f conftest.o conftest.obj
  3868. if { { ac_try="$ac_compile"
  3869. case "(($ac_try" in
  3870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3871. *) ac_try_echo=$ac_try;;
  3872. esac
  3873. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3874. printf "%s\n" "$ac_try_echo"; } >&5
  3875. (eval "$ac_compile") 2>&5
  3876. ac_status=$?
  3877. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3878. test $ac_status = 0; }
  3879. then :
  3880. for ac_file in conftest.o conftest.obj 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 ) ;;
  3884. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3885. break;;
  3886. esac
  3887. done
  3888. else $as_nop
  3889. printf "%s\n" "$as_me: failed program was:" >&5
  3890. sed 's/^/| /' conftest.$ac_ext >&5
  3891. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3892. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3893. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3894. See \`config.log' for more details" "$LINENO" 5; }
  3895. fi
  3896. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3897. fi
  3898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3899. printf "%s\n" "$ac_cv_objext" >&6; }
  3900. OBJEXT=$ac_cv_objext
  3901. ac_objext=$OBJEXT
  3902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3903. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3904. if test ${ac_cv_c_compiler_gnu+y}
  3905. then :
  3906. printf %s "(cached) " >&6
  3907. else $as_nop
  3908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3909. /* end confdefs.h. */
  3910. int
  3911. main (void)
  3912. {
  3913. #ifndef __GNUC__
  3914. choke me
  3915. #endif
  3916. ;
  3917. return 0;
  3918. }
  3919. _ACEOF
  3920. if ac_fn_c_try_compile "$LINENO"
  3921. then :
  3922. ac_compiler_gnu=yes
  3923. else $as_nop
  3924. ac_compiler_gnu=no
  3925. fi
  3926. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3927. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3928. fi
  3929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3930. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3931. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3932. if test $ac_compiler_gnu = yes; then
  3933. GCC=yes
  3934. else
  3935. GCC=
  3936. fi
  3937. ac_test_CFLAGS=${CFLAGS+y}
  3938. ac_save_CFLAGS=$CFLAGS
  3939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3940. printf %s "checking whether $CC accepts -g... " >&6; }
  3941. if test ${ac_cv_prog_cc_g+y}
  3942. then :
  3943. printf %s "(cached) " >&6
  3944. else $as_nop
  3945. ac_save_c_werror_flag=$ac_c_werror_flag
  3946. ac_c_werror_flag=yes
  3947. ac_cv_prog_cc_g=no
  3948. CFLAGS="-g"
  3949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3950. /* end confdefs.h. */
  3951. int
  3952. main (void)
  3953. {
  3954. ;
  3955. return 0;
  3956. }
  3957. _ACEOF
  3958. if ac_fn_c_try_compile "$LINENO"
  3959. then :
  3960. ac_cv_prog_cc_g=yes
  3961. else $as_nop
  3962. CFLAGS=""
  3963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3964. /* end confdefs.h. */
  3965. int
  3966. main (void)
  3967. {
  3968. ;
  3969. return 0;
  3970. }
  3971. _ACEOF
  3972. if ac_fn_c_try_compile "$LINENO"
  3973. then :
  3974. else $as_nop
  3975. ac_c_werror_flag=$ac_save_c_werror_flag
  3976. CFLAGS="-g"
  3977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3978. /* end confdefs.h. */
  3979. int
  3980. main (void)
  3981. {
  3982. ;
  3983. return 0;
  3984. }
  3985. _ACEOF
  3986. if ac_fn_c_try_compile "$LINENO"
  3987. then :
  3988. ac_cv_prog_cc_g=yes
  3989. fi
  3990. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3991. fi
  3992. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3993. fi
  3994. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3995. ac_c_werror_flag=$ac_save_c_werror_flag
  3996. fi
  3997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3998. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3999. if test $ac_test_CFLAGS; then
  4000. CFLAGS=$ac_save_CFLAGS
  4001. elif test $ac_cv_prog_cc_g = yes; then
  4002. if test "$GCC" = yes; then
  4003. CFLAGS="-g -O2"
  4004. else
  4005. CFLAGS="-g"
  4006. fi
  4007. else
  4008. if test "$GCC" = yes; then
  4009. CFLAGS="-O2"
  4010. else
  4011. CFLAGS=
  4012. fi
  4013. fi
  4014. ac_prog_cc_stdc=no
  4015. if test x$ac_prog_cc_stdc = xno
  4016. then :
  4017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4018. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4019. if test ${ac_cv_prog_cc_c11+y}
  4020. then :
  4021. printf %s "(cached) " >&6
  4022. else $as_nop
  4023. ac_cv_prog_cc_c11=no
  4024. ac_save_CC=$CC
  4025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4026. /* end confdefs.h. */
  4027. $ac_c_conftest_c11_program
  4028. _ACEOF
  4029. for ac_arg in '' -std=gnu11
  4030. do
  4031. CC="$ac_save_CC $ac_arg"
  4032. if ac_fn_c_try_compile "$LINENO"
  4033. then :
  4034. ac_cv_prog_cc_c11=$ac_arg
  4035. fi
  4036. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4037. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4038. done
  4039. rm -f conftest.$ac_ext
  4040. CC=$ac_save_CC
  4041. fi
  4042. if test "x$ac_cv_prog_cc_c11" = xno
  4043. then :
  4044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4045. printf "%s\n" "unsupported" >&6; }
  4046. else $as_nop
  4047. if test "x$ac_cv_prog_cc_c11" = x
  4048. then :
  4049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4050. printf "%s\n" "none needed" >&6; }
  4051. else $as_nop
  4052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4053. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4054. CC="$CC $ac_cv_prog_cc_c11"
  4055. fi
  4056. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4057. ac_prog_cc_stdc=c11
  4058. fi
  4059. fi
  4060. if test x$ac_prog_cc_stdc = xno
  4061. then :
  4062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4063. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4064. if test ${ac_cv_prog_cc_c99+y}
  4065. then :
  4066. printf %s "(cached) " >&6
  4067. else $as_nop
  4068. ac_cv_prog_cc_c99=no
  4069. ac_save_CC=$CC
  4070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4071. /* end confdefs.h. */
  4072. $ac_c_conftest_c99_program
  4073. _ACEOF
  4074. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4075. do
  4076. CC="$ac_save_CC $ac_arg"
  4077. if ac_fn_c_try_compile "$LINENO"
  4078. then :
  4079. ac_cv_prog_cc_c99=$ac_arg
  4080. fi
  4081. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4082. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4083. done
  4084. rm -f conftest.$ac_ext
  4085. CC=$ac_save_CC
  4086. fi
  4087. if test "x$ac_cv_prog_cc_c99" = xno
  4088. then :
  4089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4090. printf "%s\n" "unsupported" >&6; }
  4091. else $as_nop
  4092. if test "x$ac_cv_prog_cc_c99" = x
  4093. then :
  4094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4095. printf "%s\n" "none needed" >&6; }
  4096. else $as_nop
  4097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4098. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4099. CC="$CC $ac_cv_prog_cc_c99"
  4100. fi
  4101. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4102. ac_prog_cc_stdc=c99
  4103. fi
  4104. fi
  4105. if test x$ac_prog_cc_stdc = xno
  4106. then :
  4107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4108. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4109. if test ${ac_cv_prog_cc_c89+y}
  4110. then :
  4111. printf %s "(cached) " >&6
  4112. else $as_nop
  4113. ac_cv_prog_cc_c89=no
  4114. ac_save_CC=$CC
  4115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4116. /* end confdefs.h. */
  4117. $ac_c_conftest_c89_program
  4118. _ACEOF
  4119. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4120. do
  4121. CC="$ac_save_CC $ac_arg"
  4122. if ac_fn_c_try_compile "$LINENO"
  4123. then :
  4124. ac_cv_prog_cc_c89=$ac_arg
  4125. fi
  4126. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4127. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4128. done
  4129. rm -f conftest.$ac_ext
  4130. CC=$ac_save_CC
  4131. fi
  4132. if test "x$ac_cv_prog_cc_c89" = xno
  4133. then :
  4134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4135. printf "%s\n" "unsupported" >&6; }
  4136. else $as_nop
  4137. if test "x$ac_cv_prog_cc_c89" = x
  4138. then :
  4139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4140. printf "%s\n" "none needed" >&6; }
  4141. else $as_nop
  4142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4143. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4144. CC="$CC $ac_cv_prog_cc_c89"
  4145. fi
  4146. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4147. ac_prog_cc_stdc=c89
  4148. fi
  4149. fi
  4150. ac_ext=c
  4151. ac_cpp='$CPP $CPPFLAGS'
  4152. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4153. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4154. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4156. printf %s "checking for a sed that does not truncate output... " >&6; }
  4157. if test ${ac_cv_path_SED+y}
  4158. then :
  4159. printf %s "(cached) " >&6
  4160. else $as_nop
  4161. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4162. for ac_i in 1 2 3 4 5 6 7; do
  4163. ac_script="$ac_script$as_nl$ac_script"
  4164. done
  4165. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4166. { ac_script=; unset ac_script;}
  4167. if test -z "$SED"; then
  4168. ac_path_SED_found=false
  4169. # Loop through the user's path and test for each of PROGNAME-LIST
  4170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4171. for as_dir in $PATH
  4172. do
  4173. IFS=$as_save_IFS
  4174. case $as_dir in #(((
  4175. '') as_dir=./ ;;
  4176. */) ;;
  4177. *) as_dir=$as_dir/ ;;
  4178. esac
  4179. for ac_prog in sed gsed
  4180. do
  4181. for ac_exec_ext in '' $ac_executable_extensions; do
  4182. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4183. as_fn_executable_p "$ac_path_SED" || continue
  4184. # Check for GNU ac_path_SED and select it if it is found.
  4185. # Check for GNU $ac_path_SED
  4186. case `"$ac_path_SED" --version 2>&1` in
  4187. *GNU*)
  4188. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4189. *)
  4190. ac_count=0
  4191. printf %s 0123456789 >"conftest.in"
  4192. while :
  4193. do
  4194. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4195. mv "conftest.tmp" "conftest.in"
  4196. cp "conftest.in" "conftest.nl"
  4197. printf "%s\n" '' >> "conftest.nl"
  4198. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4199. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4200. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4201. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4202. # Best one so far, save it but keep looking for a better one
  4203. ac_cv_path_SED="$ac_path_SED"
  4204. ac_path_SED_max=$ac_count
  4205. fi
  4206. # 10*(2^10) chars as input seems more than enough
  4207. test $ac_count -gt 10 && break
  4208. done
  4209. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4210. esac
  4211. $ac_path_SED_found && break 3
  4212. done
  4213. done
  4214. done
  4215. IFS=$as_save_IFS
  4216. if test -z "$ac_cv_path_SED"; then
  4217. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4218. fi
  4219. else
  4220. ac_cv_path_SED=$SED
  4221. fi
  4222. fi
  4223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4224. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4225. SED="$ac_cv_path_SED"
  4226. rm -f conftest.sed
  4227. test -z "$SED" && SED=sed
  4228. Xsed="$SED -e 1s/^X//"
  4229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4230. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4231. if test ${ac_cv_path_GREP+y}
  4232. then :
  4233. printf %s "(cached) " >&6
  4234. else $as_nop
  4235. if test -z "$GREP"; then
  4236. ac_path_GREP_found=false
  4237. # Loop through the user's path and test for each of PROGNAME-LIST
  4238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4239. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4240. do
  4241. IFS=$as_save_IFS
  4242. case $as_dir in #(((
  4243. '') as_dir=./ ;;
  4244. */) ;;
  4245. *) as_dir=$as_dir/ ;;
  4246. esac
  4247. for ac_prog in grep ggrep
  4248. do
  4249. for ac_exec_ext in '' $ac_executable_extensions; do
  4250. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4251. as_fn_executable_p "$ac_path_GREP" || continue
  4252. # Check for GNU ac_path_GREP and select it if it is found.
  4253. # Check for GNU $ac_path_GREP
  4254. case `"$ac_path_GREP" --version 2>&1` in
  4255. *GNU*)
  4256. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4257. *)
  4258. ac_count=0
  4259. printf %s 0123456789 >"conftest.in"
  4260. while :
  4261. do
  4262. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4263. mv "conftest.tmp" "conftest.in"
  4264. cp "conftest.in" "conftest.nl"
  4265. printf "%s\n" 'GREP' >> "conftest.nl"
  4266. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4267. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4268. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4269. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4270. # Best one so far, save it but keep looking for a better one
  4271. ac_cv_path_GREP="$ac_path_GREP"
  4272. ac_path_GREP_max=$ac_count
  4273. fi
  4274. # 10*(2^10) chars as input seems more than enough
  4275. test $ac_count -gt 10 && break
  4276. done
  4277. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4278. esac
  4279. $ac_path_GREP_found && break 3
  4280. done
  4281. done
  4282. done
  4283. IFS=$as_save_IFS
  4284. if test -z "$ac_cv_path_GREP"; then
  4285. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4286. fi
  4287. else
  4288. ac_cv_path_GREP=$GREP
  4289. fi
  4290. fi
  4291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4292. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4293. GREP="$ac_cv_path_GREP"
  4294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4295. printf %s "checking for egrep... " >&6; }
  4296. if test ${ac_cv_path_EGREP+y}
  4297. then :
  4298. printf %s "(cached) " >&6
  4299. else $as_nop
  4300. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4301. then ac_cv_path_EGREP="$GREP -E"
  4302. else
  4303. if test -z "$EGREP"; then
  4304. ac_path_EGREP_found=false
  4305. # Loop through the user's path and test for each of PROGNAME-LIST
  4306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4307. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4308. do
  4309. IFS=$as_save_IFS
  4310. case $as_dir in #(((
  4311. '') as_dir=./ ;;
  4312. */) ;;
  4313. *) as_dir=$as_dir/ ;;
  4314. esac
  4315. for ac_prog in egrep
  4316. do
  4317. for ac_exec_ext in '' $ac_executable_extensions; do
  4318. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4319. as_fn_executable_p "$ac_path_EGREP" || continue
  4320. # Check for GNU ac_path_EGREP and select it if it is found.
  4321. # Check for GNU $ac_path_EGREP
  4322. case `"$ac_path_EGREP" --version 2>&1` in
  4323. *GNU*)
  4324. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4325. *)
  4326. ac_count=0
  4327. printf %s 0123456789 >"conftest.in"
  4328. while :
  4329. do
  4330. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4331. mv "conftest.tmp" "conftest.in"
  4332. cp "conftest.in" "conftest.nl"
  4333. printf "%s\n" 'EGREP' >> "conftest.nl"
  4334. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4335. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4336. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4337. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4338. # Best one so far, save it but keep looking for a better one
  4339. ac_cv_path_EGREP="$ac_path_EGREP"
  4340. ac_path_EGREP_max=$ac_count
  4341. fi
  4342. # 10*(2^10) chars as input seems more than enough
  4343. test $ac_count -gt 10 && break
  4344. done
  4345. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4346. esac
  4347. $ac_path_EGREP_found && break 3
  4348. done
  4349. done
  4350. done
  4351. IFS=$as_save_IFS
  4352. if test -z "$ac_cv_path_EGREP"; then
  4353. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4354. fi
  4355. else
  4356. ac_cv_path_EGREP=$EGREP
  4357. fi
  4358. fi
  4359. fi
  4360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4361. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4362. EGREP="$ac_cv_path_EGREP"
  4363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4364. printf %s "checking for fgrep... " >&6; }
  4365. if test ${ac_cv_path_FGREP+y}
  4366. then :
  4367. printf %s "(cached) " >&6
  4368. else $as_nop
  4369. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4370. then ac_cv_path_FGREP="$GREP -F"
  4371. else
  4372. if test -z "$FGREP"; then
  4373. ac_path_FGREP_found=false
  4374. # Loop through the user's path and test for each of PROGNAME-LIST
  4375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4376. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4377. do
  4378. IFS=$as_save_IFS
  4379. case $as_dir in #(((
  4380. '') as_dir=./ ;;
  4381. */) ;;
  4382. *) as_dir=$as_dir/ ;;
  4383. esac
  4384. for ac_prog in fgrep
  4385. do
  4386. for ac_exec_ext in '' $ac_executable_extensions; do
  4387. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4388. as_fn_executable_p "$ac_path_FGREP" || continue
  4389. # Check for GNU ac_path_FGREP and select it if it is found.
  4390. # Check for GNU $ac_path_FGREP
  4391. case `"$ac_path_FGREP" --version 2>&1` in
  4392. *GNU*)
  4393. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4394. *)
  4395. ac_count=0
  4396. printf %s 0123456789 >"conftest.in"
  4397. while :
  4398. do
  4399. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4400. mv "conftest.tmp" "conftest.in"
  4401. cp "conftest.in" "conftest.nl"
  4402. printf "%s\n" 'FGREP' >> "conftest.nl"
  4403. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4404. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4405. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4406. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4407. # Best one so far, save it but keep looking for a better one
  4408. ac_cv_path_FGREP="$ac_path_FGREP"
  4409. ac_path_FGREP_max=$ac_count
  4410. fi
  4411. # 10*(2^10) chars as input seems more than enough
  4412. test $ac_count -gt 10 && break
  4413. done
  4414. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4415. esac
  4416. $ac_path_FGREP_found && break 3
  4417. done
  4418. done
  4419. done
  4420. IFS=$as_save_IFS
  4421. if test -z "$ac_cv_path_FGREP"; then
  4422. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4423. fi
  4424. else
  4425. ac_cv_path_FGREP=$FGREP
  4426. fi
  4427. fi
  4428. fi
  4429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4430. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4431. FGREP="$ac_cv_path_FGREP"
  4432. test -z "$GREP" && GREP=grep
  4433. # Check whether --with-gnu-ld was given.
  4434. if test ${with_gnu_ld+y}
  4435. then :
  4436. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4437. else $as_nop
  4438. with_gnu_ld=no
  4439. fi
  4440. ac_prog=ld
  4441. if test yes = "$GCC"; then
  4442. # Check if gcc -print-prog-name=ld gives a path.
  4443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4444. printf %s "checking for ld used by $CC... " >&6; }
  4445. case $host in
  4446. *-*-mingw*)
  4447. # gcc leaves a trailing carriage return, which upsets mingw
  4448. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4449. *)
  4450. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4451. esac
  4452. case $ac_prog in
  4453. # Accept absolute paths.
  4454. [\\/]* | ?:[\\/]*)
  4455. re_direlt='/[^/][^/]*/\.\./'
  4456. # Canonicalize the pathname of ld
  4457. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4458. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4459. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4460. done
  4461. test -z "$LD" && LD=$ac_prog
  4462. ;;
  4463. "")
  4464. # If it fails, then pretend we aren't using GCC.
  4465. ac_prog=ld
  4466. ;;
  4467. *)
  4468. # If it is relative, then search for the first ld in PATH.
  4469. with_gnu_ld=unknown
  4470. ;;
  4471. esac
  4472. elif test yes = "$with_gnu_ld"; then
  4473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4474. printf %s "checking for GNU ld... " >&6; }
  4475. else
  4476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4477. printf %s "checking for non-GNU ld... " >&6; }
  4478. fi
  4479. if test ${lt_cv_path_LD+y}
  4480. then :
  4481. printf %s "(cached) " >&6
  4482. else $as_nop
  4483. if test -z "$LD"; then
  4484. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4485. for ac_dir in $PATH; do
  4486. IFS=$lt_save_ifs
  4487. test -z "$ac_dir" && ac_dir=.
  4488. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4489. lt_cv_path_LD=$ac_dir/$ac_prog
  4490. # Check to see if the program is GNU ld. I'd rather use --version,
  4491. # but apparently some variants of GNU ld only accept -v.
  4492. # Break only if it was the GNU/non-GNU ld that we prefer.
  4493. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4494. *GNU* | *'with BFD'*)
  4495. test no != "$with_gnu_ld" && break
  4496. ;;
  4497. *)
  4498. test yes != "$with_gnu_ld" && break
  4499. ;;
  4500. esac
  4501. fi
  4502. done
  4503. IFS=$lt_save_ifs
  4504. else
  4505. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4506. fi
  4507. fi
  4508. LD=$lt_cv_path_LD
  4509. if test -n "$LD"; then
  4510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4511. printf "%s\n" "$LD" >&6; }
  4512. else
  4513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4514. printf "%s\n" "no" >&6; }
  4515. fi
  4516. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4518. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4519. if test ${lt_cv_prog_gnu_ld+y}
  4520. then :
  4521. printf %s "(cached) " >&6
  4522. else $as_nop
  4523. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4524. case `$LD -v 2>&1 </dev/null` in
  4525. *GNU* | *'with BFD'*)
  4526. lt_cv_prog_gnu_ld=yes
  4527. ;;
  4528. *)
  4529. lt_cv_prog_gnu_ld=no
  4530. ;;
  4531. esac
  4532. fi
  4533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4534. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4535. with_gnu_ld=$lt_cv_prog_gnu_ld
  4536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4537. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4538. if test ${lt_cv_path_NM+y}
  4539. then :
  4540. printf %s "(cached) " >&6
  4541. else $as_nop
  4542. if test -n "$NM"; then
  4543. # Let the user override the test.
  4544. lt_cv_path_NM=$NM
  4545. else
  4546. lt_nm_to_check=${ac_tool_prefix}nm
  4547. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4548. lt_nm_to_check="$lt_nm_to_check nm"
  4549. fi
  4550. for lt_tmp_nm in $lt_nm_to_check; do
  4551. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4552. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4553. IFS=$lt_save_ifs
  4554. test -z "$ac_dir" && ac_dir=.
  4555. tmp_nm=$ac_dir/$lt_tmp_nm
  4556. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4557. # Check to see if the nm accepts a BSD-compat flag.
  4558. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4559. # nm: unknown option "B" ignored
  4560. # Tru64's nm complains that /dev/null is an invalid object file
  4561. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4562. case $build_os in
  4563. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4564. *) lt_bad_file=/dev/null ;;
  4565. esac
  4566. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4567. *$lt_bad_file* | *'Invalid file or object type'*)
  4568. lt_cv_path_NM="$tmp_nm -B"
  4569. break 2
  4570. ;;
  4571. *)
  4572. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4573. */dev/null*)
  4574. lt_cv_path_NM="$tmp_nm -p"
  4575. break 2
  4576. ;;
  4577. *)
  4578. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4579. continue # so that we can try to find one that supports BSD flags
  4580. ;;
  4581. esac
  4582. ;;
  4583. esac
  4584. fi
  4585. done
  4586. IFS=$lt_save_ifs
  4587. done
  4588. : ${lt_cv_path_NM=no}
  4589. fi
  4590. fi
  4591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4592. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4593. if test no != "$lt_cv_path_NM"; then
  4594. NM=$lt_cv_path_NM
  4595. else
  4596. # Didn't find any BSD compatible name lister, look for dumpbin.
  4597. if test -n "$DUMPBIN"; then :
  4598. # Let the user override the test.
  4599. else
  4600. if test -n "$ac_tool_prefix"; then
  4601. for ac_prog in dumpbin "link -dump"
  4602. do
  4603. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4604. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4606. printf %s "checking for $ac_word... " >&6; }
  4607. if test ${ac_cv_prog_DUMPBIN+y}
  4608. then :
  4609. printf %s "(cached) " >&6
  4610. else $as_nop
  4611. if test -n "$DUMPBIN"; then
  4612. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4613. else
  4614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4615. for as_dir in $PATH
  4616. do
  4617. IFS=$as_save_IFS
  4618. case $as_dir in #(((
  4619. '') as_dir=./ ;;
  4620. */) ;;
  4621. *) as_dir=$as_dir/ ;;
  4622. esac
  4623. for ac_exec_ext in '' $ac_executable_extensions; do
  4624. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4625. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4626. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4627. break 2
  4628. fi
  4629. done
  4630. done
  4631. IFS=$as_save_IFS
  4632. fi
  4633. fi
  4634. DUMPBIN=$ac_cv_prog_DUMPBIN
  4635. if test -n "$DUMPBIN"; then
  4636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4637. printf "%s\n" "$DUMPBIN" >&6; }
  4638. else
  4639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4640. printf "%s\n" "no" >&6; }
  4641. fi
  4642. test -n "$DUMPBIN" && break
  4643. done
  4644. fi
  4645. if test -z "$DUMPBIN"; then
  4646. ac_ct_DUMPBIN=$DUMPBIN
  4647. for ac_prog in dumpbin "link -dump"
  4648. do
  4649. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4650. set dummy $ac_prog; ac_word=$2
  4651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4652. printf %s "checking for $ac_word... " >&6; }
  4653. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4654. then :
  4655. printf %s "(cached) " >&6
  4656. else $as_nop
  4657. if test -n "$ac_ct_DUMPBIN"; then
  4658. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4659. else
  4660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4661. for as_dir in $PATH
  4662. do
  4663. IFS=$as_save_IFS
  4664. case $as_dir in #(((
  4665. '') as_dir=./ ;;
  4666. */) ;;
  4667. *) as_dir=$as_dir/ ;;
  4668. esac
  4669. for ac_exec_ext in '' $ac_executable_extensions; do
  4670. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4671. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4672. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4673. break 2
  4674. fi
  4675. done
  4676. done
  4677. IFS=$as_save_IFS
  4678. fi
  4679. fi
  4680. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4681. if test -n "$ac_ct_DUMPBIN"; then
  4682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4683. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4684. else
  4685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4686. printf "%s\n" "no" >&6; }
  4687. fi
  4688. test -n "$ac_ct_DUMPBIN" && break
  4689. done
  4690. if test "x$ac_ct_DUMPBIN" = x; then
  4691. DUMPBIN=":"
  4692. else
  4693. case $cross_compiling:$ac_tool_warned in
  4694. yes:)
  4695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4696. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4697. ac_tool_warned=yes ;;
  4698. esac
  4699. DUMPBIN=$ac_ct_DUMPBIN
  4700. fi
  4701. fi
  4702. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4703. *COFF*)
  4704. DUMPBIN="$DUMPBIN -symbols -headers"
  4705. ;;
  4706. *)
  4707. DUMPBIN=:
  4708. ;;
  4709. esac
  4710. fi
  4711. if test : != "$DUMPBIN"; then
  4712. NM=$DUMPBIN
  4713. fi
  4714. fi
  4715. test -z "$NM" && NM=nm
  4716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4717. printf %s "checking the name lister ($NM) interface... " >&6; }
  4718. if test ${lt_cv_nm_interface+y}
  4719. then :
  4720. printf %s "(cached) " >&6
  4721. else $as_nop
  4722. lt_cv_nm_interface="BSD nm"
  4723. echo "int some_variable = 0;" > conftest.$ac_ext
  4724. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4725. (eval "$ac_compile" 2>conftest.err)
  4726. cat conftest.err >&5
  4727. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4728. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4729. cat conftest.err >&5
  4730. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4731. cat conftest.out >&5
  4732. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4733. lt_cv_nm_interface="MS dumpbin"
  4734. fi
  4735. rm -f conftest*
  4736. fi
  4737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4738. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4740. printf %s "checking whether ln -s works... " >&6; }
  4741. LN_S=$as_ln_s
  4742. if test "$LN_S" = "ln -s"; then
  4743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4744. printf "%s\n" "yes" >&6; }
  4745. else
  4746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4747. printf "%s\n" "no, using $LN_S" >&6; }
  4748. fi
  4749. # find the maximum length of command line arguments
  4750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4751. printf %s "checking the maximum length of command line arguments... " >&6; }
  4752. if test ${lt_cv_sys_max_cmd_len+y}
  4753. then :
  4754. printf %s "(cached) " >&6
  4755. else $as_nop
  4756. i=0
  4757. teststring=ABCD
  4758. case $build_os in
  4759. msdosdjgpp*)
  4760. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4761. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4762. # during glob expansion). Even if it were fixed, the result of this
  4763. # check would be larger than it should be.
  4764. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4765. ;;
  4766. gnu*)
  4767. # Under GNU Hurd, this test is not required because there is
  4768. # no limit to the length of command line arguments.
  4769. # Libtool will interpret -1 as no limit whatsoever
  4770. lt_cv_sys_max_cmd_len=-1;
  4771. ;;
  4772. cygwin* | mingw* | cegcc*)
  4773. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4774. # about 5 minutes as the teststring grows exponentially.
  4775. # Worse, since 9x/ME are not pre-emptively multitasking,
  4776. # you end up with a "frozen" computer, even though with patience
  4777. # the test eventually succeeds (with a max line length of 256k).
  4778. # Instead, let's just punt: use the minimum linelength reported by
  4779. # all of the supported platforms: 8192 (on NT/2K/XP).
  4780. lt_cv_sys_max_cmd_len=8192;
  4781. ;;
  4782. mint*)
  4783. # On MiNT this can take a long time and run out of memory.
  4784. lt_cv_sys_max_cmd_len=8192;
  4785. ;;
  4786. amigaos*)
  4787. # On AmigaOS with pdksh, this test takes hours, literally.
  4788. # So we just punt and use a minimum line length of 8192.
  4789. lt_cv_sys_max_cmd_len=8192;
  4790. ;;
  4791. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4792. # This has been around since 386BSD, at least. Likely further.
  4793. if test -x /sbin/sysctl; then
  4794. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4795. elif test -x /usr/sbin/sysctl; then
  4796. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4797. else
  4798. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4799. fi
  4800. # And add a safety zone
  4801. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4802. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4803. ;;
  4804. interix*)
  4805. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4806. lt_cv_sys_max_cmd_len=196608
  4807. ;;
  4808. os2*)
  4809. # The test takes a long time on OS/2.
  4810. lt_cv_sys_max_cmd_len=8192
  4811. ;;
  4812. osf*)
  4813. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4814. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4815. # nice to cause kernel panics so lets avoid the loop below.
  4816. # First set a reasonable default.
  4817. lt_cv_sys_max_cmd_len=16384
  4818. #
  4819. if test -x /sbin/sysconfig; then
  4820. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4821. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4822. esac
  4823. fi
  4824. ;;
  4825. sco3.2v5*)
  4826. lt_cv_sys_max_cmd_len=102400
  4827. ;;
  4828. sysv5* | sco5v6* | sysv4.2uw2*)
  4829. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4830. if test -n "$kargmax"; then
  4831. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4832. else
  4833. lt_cv_sys_max_cmd_len=32768
  4834. fi
  4835. ;;
  4836. *)
  4837. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4838. if test -n "$lt_cv_sys_max_cmd_len" && \
  4839. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4840. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4841. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4842. else
  4843. # Make teststring a little bigger before we do anything with it.
  4844. # a 1K string should be a reasonable start.
  4845. for i in 1 2 3 4 5 6 7 8; do
  4846. teststring=$teststring$teststring
  4847. done
  4848. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4849. # If test is not a shell built-in, we'll probably end up computing a
  4850. # maximum length that is only half of the actual maximum length, but
  4851. # we can't tell.
  4852. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4853. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4854. test 17 != "$i" # 1/2 MB should be enough
  4855. do
  4856. i=`expr $i + 1`
  4857. teststring=$teststring$teststring
  4858. done
  4859. # Only check the string length outside the loop.
  4860. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4861. teststring=
  4862. # Add a significant safety factor because C++ compilers can tack on
  4863. # massive amounts of additional arguments before passing them to the
  4864. # linker. It appears as though 1/2 is a usable value.
  4865. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4866. fi
  4867. ;;
  4868. esac
  4869. fi
  4870. if test -n "$lt_cv_sys_max_cmd_len"; then
  4871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4872. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4873. else
  4874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4875. printf "%s\n" "none" >&6; }
  4876. fi
  4877. max_cmd_len=$lt_cv_sys_max_cmd_len
  4878. : ${CP="cp -f"}
  4879. : ${MV="mv -f"}
  4880. : ${RM="rm -f"}
  4881. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4882. lt_unset=unset
  4883. else
  4884. lt_unset=false
  4885. fi
  4886. # test EBCDIC or ASCII
  4887. case `echo X|tr X '\101'` in
  4888. A) # ASCII based system
  4889. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4890. lt_SP2NL='tr \040 \012'
  4891. lt_NL2SP='tr \015\012 \040\040'
  4892. ;;
  4893. *) # EBCDIC based system
  4894. lt_SP2NL='tr \100 \n'
  4895. lt_NL2SP='tr \r\n \100\100'
  4896. ;;
  4897. esac
  4898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4899. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4900. if test ${lt_cv_to_host_file_cmd+y}
  4901. then :
  4902. printf %s "(cached) " >&6
  4903. else $as_nop
  4904. case $host in
  4905. *-*-mingw* )
  4906. case $build in
  4907. *-*-mingw* ) # actually msys
  4908. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4909. ;;
  4910. *-*-cygwin* )
  4911. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4912. ;;
  4913. * ) # otherwise, assume *nix
  4914. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4915. ;;
  4916. esac
  4917. ;;
  4918. *-*-cygwin* )
  4919. case $build in
  4920. *-*-mingw* ) # actually msys
  4921. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4922. ;;
  4923. *-*-cygwin* )
  4924. lt_cv_to_host_file_cmd=func_convert_file_noop
  4925. ;;
  4926. * ) # otherwise, assume *nix
  4927. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4928. ;;
  4929. esac
  4930. ;;
  4931. * ) # unhandled hosts (and "normal" native builds)
  4932. lt_cv_to_host_file_cmd=func_convert_file_noop
  4933. ;;
  4934. esac
  4935. fi
  4936. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4938. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4940. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4941. if test ${lt_cv_to_tool_file_cmd+y}
  4942. then :
  4943. printf %s "(cached) " >&6
  4944. else $as_nop
  4945. #assume ordinary cross tools, or native build.
  4946. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4947. case $host in
  4948. *-*-mingw* )
  4949. case $build in
  4950. *-*-mingw* ) # actually msys
  4951. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4952. ;;
  4953. esac
  4954. ;;
  4955. esac
  4956. fi
  4957. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4959. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  4960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4961. printf %s "checking for $LD option to reload object files... " >&6; }
  4962. if test ${lt_cv_ld_reload_flag+y}
  4963. then :
  4964. printf %s "(cached) " >&6
  4965. else $as_nop
  4966. lt_cv_ld_reload_flag='-r'
  4967. fi
  4968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4969. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  4970. reload_flag=$lt_cv_ld_reload_flag
  4971. case $reload_flag in
  4972. "" | " "*) ;;
  4973. *) reload_flag=" $reload_flag" ;;
  4974. esac
  4975. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4976. case $host_os in
  4977. cygwin* | mingw* | pw32* | cegcc*)
  4978. if test yes != "$GCC"; then
  4979. reload_cmds=false
  4980. fi
  4981. ;;
  4982. darwin*)
  4983. if test yes = "$GCC"; then
  4984. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4985. else
  4986. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4987. fi
  4988. ;;
  4989. esac
  4990. if test -n "$ac_tool_prefix"; then
  4991. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4992. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4994. printf %s "checking for $ac_word... " >&6; }
  4995. if test ${ac_cv_prog_OBJDUMP+y}
  4996. then :
  4997. printf %s "(cached) " >&6
  4998. else $as_nop
  4999. if test -n "$OBJDUMP"; then
  5000. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5001. else
  5002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5003. for as_dir in $PATH
  5004. do
  5005. IFS=$as_save_IFS
  5006. case $as_dir in #(((
  5007. '') as_dir=./ ;;
  5008. */) ;;
  5009. *) as_dir=$as_dir/ ;;
  5010. esac
  5011. for ac_exec_ext in '' $ac_executable_extensions; do
  5012. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5013. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5014. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5015. break 2
  5016. fi
  5017. done
  5018. done
  5019. IFS=$as_save_IFS
  5020. fi
  5021. fi
  5022. OBJDUMP=$ac_cv_prog_OBJDUMP
  5023. if test -n "$OBJDUMP"; then
  5024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5025. printf "%s\n" "$OBJDUMP" >&6; }
  5026. else
  5027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5028. printf "%s\n" "no" >&6; }
  5029. fi
  5030. fi
  5031. if test -z "$ac_cv_prog_OBJDUMP"; then
  5032. ac_ct_OBJDUMP=$OBJDUMP
  5033. # Extract the first word of "objdump", so it can be a program name with args.
  5034. set dummy objdump; ac_word=$2
  5035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5036. printf %s "checking for $ac_word... " >&6; }
  5037. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5038. then :
  5039. printf %s "(cached) " >&6
  5040. else $as_nop
  5041. if test -n "$ac_ct_OBJDUMP"; then
  5042. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5043. else
  5044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5045. for as_dir in $PATH
  5046. do
  5047. IFS=$as_save_IFS
  5048. case $as_dir in #(((
  5049. '') as_dir=./ ;;
  5050. */) ;;
  5051. *) as_dir=$as_dir/ ;;
  5052. esac
  5053. for ac_exec_ext in '' $ac_executable_extensions; do
  5054. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5055. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5056. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5057. break 2
  5058. fi
  5059. done
  5060. done
  5061. IFS=$as_save_IFS
  5062. fi
  5063. fi
  5064. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5065. if test -n "$ac_ct_OBJDUMP"; then
  5066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5067. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5068. else
  5069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5070. printf "%s\n" "no" >&6; }
  5071. fi
  5072. if test "x$ac_ct_OBJDUMP" = x; then
  5073. OBJDUMP="false"
  5074. else
  5075. case $cross_compiling:$ac_tool_warned in
  5076. yes:)
  5077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5078. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5079. ac_tool_warned=yes ;;
  5080. esac
  5081. OBJDUMP=$ac_ct_OBJDUMP
  5082. fi
  5083. else
  5084. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5085. fi
  5086. test -z "$OBJDUMP" && OBJDUMP=objdump
  5087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5088. printf %s "checking how to recognize dependent libraries... " >&6; }
  5089. if test ${lt_cv_deplibs_check_method+y}
  5090. then :
  5091. printf %s "(cached) " >&6
  5092. else $as_nop
  5093. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5094. lt_cv_file_magic_test_file=
  5095. lt_cv_deplibs_check_method='unknown'
  5096. # Need to set the preceding variable on all platforms that support
  5097. # interlibrary dependencies.
  5098. # 'none' -- dependencies not supported.
  5099. # 'unknown' -- same as none, but documents that we really don't know.
  5100. # 'pass_all' -- all dependencies passed with no checks.
  5101. # 'test_compile' -- check by making test program.
  5102. # 'file_magic [[regex]]' -- check by looking for files in library path
  5103. # that responds to the $file_magic_cmd with a given extended regex.
  5104. # If you have 'file' or equivalent on your system and you're not sure
  5105. # whether 'pass_all' will *always* work, you probably want this one.
  5106. case $host_os in
  5107. aix[4-9]*)
  5108. lt_cv_deplibs_check_method=pass_all
  5109. ;;
  5110. beos*)
  5111. lt_cv_deplibs_check_method=pass_all
  5112. ;;
  5113. bsdi[45]*)
  5114. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5115. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5116. lt_cv_file_magic_test_file=/shlib/libc.so
  5117. ;;
  5118. cygwin*)
  5119. # func_win32_libid is a shell function defined in ltmain.sh
  5120. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5121. lt_cv_file_magic_cmd='func_win32_libid'
  5122. lt_cv_deplibs_check_method=pass_all # SDL customization
  5123. ;;
  5124. mingw* | pw32*)
  5125. # Base MSYS/MinGW do not provide the 'file' command needed by
  5126. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5127. # unless we find 'file', for example because we are cross-compiling.
  5128. if ( file / ) >/dev/null 2>&1; then
  5129. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5130. lt_cv_file_magic_cmd='func_win32_libid'
  5131. else
  5132. # Keep this pattern in sync with the one in func_win32_libid.
  5133. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5134. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5135. fi
  5136. lt_cv_deplibs_check_method=pass_all # SDL customization
  5137. ;;
  5138. cegcc*)
  5139. # use the weaker test based on 'objdump'. See mingw*.
  5140. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5141. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5142. ;;
  5143. darwin* | rhapsody*)
  5144. lt_cv_deplibs_check_method=pass_all
  5145. ;;
  5146. freebsd* | dragonfly* | midnightbsd*)
  5147. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5148. case $host_cpu in
  5149. i*86 )
  5150. # Not sure whether the presence of OpenBSD here was a mistake.
  5151. # Let's accept both of them until this is cleared up.
  5152. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5153. lt_cv_file_magic_cmd=/usr/bin/file
  5154. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5155. ;;
  5156. esac
  5157. else
  5158. lt_cv_deplibs_check_method=pass_all
  5159. fi
  5160. ;;
  5161. haiku*)
  5162. lt_cv_deplibs_check_method=pass_all
  5163. ;;
  5164. hpux10.20* | hpux11*)
  5165. lt_cv_file_magic_cmd=/usr/bin/file
  5166. case $host_cpu in
  5167. ia64*)
  5168. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5169. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5170. ;;
  5171. hppa*64*)
  5172. 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]'
  5173. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5174. ;;
  5175. *)
  5176. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5177. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5178. ;;
  5179. esac
  5180. ;;
  5181. interix[3-9]*)
  5182. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5183. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5184. ;;
  5185. irix5* | irix6* | nonstopux*)
  5186. case $LD in
  5187. *-32|*"-32 ") libmagic=32-bit;;
  5188. *-n32|*"-n32 ") libmagic=N32;;
  5189. *-64|*"-64 ") libmagic=64-bit;;
  5190. *) libmagic=never-match;;
  5191. esac
  5192. lt_cv_deplibs_check_method=pass_all
  5193. ;;
  5194. # This must be glibc/ELF.
  5195. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5196. lt_cv_deplibs_check_method=pass_all
  5197. ;;
  5198. netbsd*)
  5199. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5200. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5201. else
  5202. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5203. fi
  5204. ;;
  5205. newos6*)
  5206. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5207. lt_cv_file_magic_cmd=/usr/bin/file
  5208. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5209. ;;
  5210. *nto* | *qnx*)
  5211. lt_cv_deplibs_check_method=pass_all
  5212. ;;
  5213. openbsd* | bitrig*)
  5214. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5215. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5216. else
  5217. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5218. fi
  5219. ;;
  5220. osf3* | osf4* | osf5*)
  5221. lt_cv_deplibs_check_method=pass_all
  5222. ;;
  5223. rdos*)
  5224. lt_cv_deplibs_check_method=pass_all
  5225. ;;
  5226. solaris*)
  5227. lt_cv_deplibs_check_method=pass_all
  5228. ;;
  5229. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5230. lt_cv_deplibs_check_method=pass_all
  5231. ;;
  5232. sysv4 | sysv4.3*)
  5233. case $host_vendor in
  5234. motorola)
  5235. 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]'
  5236. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5237. ;;
  5238. ncr)
  5239. lt_cv_deplibs_check_method=pass_all
  5240. ;;
  5241. sequent)
  5242. lt_cv_file_magic_cmd='/bin/file'
  5243. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5244. ;;
  5245. sni)
  5246. lt_cv_file_magic_cmd='/bin/file'
  5247. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5248. lt_cv_file_magic_test_file=/lib/libc.so
  5249. ;;
  5250. siemens)
  5251. lt_cv_deplibs_check_method=pass_all
  5252. ;;
  5253. pc)
  5254. lt_cv_deplibs_check_method=pass_all
  5255. ;;
  5256. esac
  5257. ;;
  5258. tpf*)
  5259. lt_cv_deplibs_check_method=pass_all
  5260. ;;
  5261. os2*)
  5262. lt_cv_deplibs_check_method=pass_all
  5263. ;;
  5264. esac
  5265. fi
  5266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5267. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5268. file_magic_glob=
  5269. want_nocaseglob=no
  5270. if test "$build" = "$host"; then
  5271. case $host_os in
  5272. mingw* | pw32*)
  5273. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5274. want_nocaseglob=yes
  5275. else
  5276. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5277. fi
  5278. ;;
  5279. esac
  5280. fi
  5281. file_magic_cmd=$lt_cv_file_magic_cmd
  5282. deplibs_check_method=$lt_cv_deplibs_check_method
  5283. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5284. if test -n "$ac_tool_prefix"; then
  5285. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5286. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5288. printf %s "checking for $ac_word... " >&6; }
  5289. if test ${ac_cv_prog_DLLTOOL+y}
  5290. then :
  5291. printf %s "(cached) " >&6
  5292. else $as_nop
  5293. if test -n "$DLLTOOL"; then
  5294. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5295. else
  5296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5297. for as_dir in $PATH
  5298. do
  5299. IFS=$as_save_IFS
  5300. case $as_dir in #(((
  5301. '') as_dir=./ ;;
  5302. */) ;;
  5303. *) as_dir=$as_dir/ ;;
  5304. esac
  5305. for ac_exec_ext in '' $ac_executable_extensions; do
  5306. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5307. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5308. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5309. break 2
  5310. fi
  5311. done
  5312. done
  5313. IFS=$as_save_IFS
  5314. fi
  5315. fi
  5316. DLLTOOL=$ac_cv_prog_DLLTOOL
  5317. if test -n "$DLLTOOL"; then
  5318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5319. printf "%s\n" "$DLLTOOL" >&6; }
  5320. else
  5321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5322. printf "%s\n" "no" >&6; }
  5323. fi
  5324. fi
  5325. if test -z "$ac_cv_prog_DLLTOOL"; then
  5326. ac_ct_DLLTOOL=$DLLTOOL
  5327. # Extract the first word of "dlltool", so it can be a program name with args.
  5328. set dummy dlltool; ac_word=$2
  5329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5330. printf %s "checking for $ac_word... " >&6; }
  5331. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5332. then :
  5333. printf %s "(cached) " >&6
  5334. else $as_nop
  5335. if test -n "$ac_ct_DLLTOOL"; then
  5336. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5337. else
  5338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5339. for as_dir in $PATH
  5340. do
  5341. IFS=$as_save_IFS
  5342. case $as_dir in #(((
  5343. '') as_dir=./ ;;
  5344. */) ;;
  5345. *) as_dir=$as_dir/ ;;
  5346. esac
  5347. for ac_exec_ext in '' $ac_executable_extensions; do
  5348. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5349. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5350. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5351. break 2
  5352. fi
  5353. done
  5354. done
  5355. IFS=$as_save_IFS
  5356. fi
  5357. fi
  5358. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5359. if test -n "$ac_ct_DLLTOOL"; then
  5360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5361. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5362. else
  5363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5364. printf "%s\n" "no" >&6; }
  5365. fi
  5366. if test "x$ac_ct_DLLTOOL" = x; then
  5367. DLLTOOL="false"
  5368. else
  5369. case $cross_compiling:$ac_tool_warned in
  5370. yes:)
  5371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5372. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5373. ac_tool_warned=yes ;;
  5374. esac
  5375. DLLTOOL=$ac_ct_DLLTOOL
  5376. fi
  5377. else
  5378. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5379. fi
  5380. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5382. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5383. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5384. then :
  5385. printf %s "(cached) " >&6
  5386. else $as_nop
  5387. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5388. case $host_os in
  5389. cygwin* | mingw* | pw32* | cegcc*)
  5390. # two different shell functions defined in ltmain.sh;
  5391. # decide which one to use based on capabilities of $DLLTOOL
  5392. case `$DLLTOOL --help 2>&1` in
  5393. *--identify-strict*)
  5394. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5395. ;;
  5396. *)
  5397. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5398. ;;
  5399. esac
  5400. ;;
  5401. *)
  5402. # fallback: assume linklib IS sharedlib
  5403. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5404. ;;
  5405. esac
  5406. fi
  5407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5408. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5409. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5410. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5411. if test -n "$ac_tool_prefix"; then
  5412. for ac_prog in ar
  5413. do
  5414. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5415. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5417. printf %s "checking for $ac_word... " >&6; }
  5418. if test ${ac_cv_prog_AR+y}
  5419. then :
  5420. printf %s "(cached) " >&6
  5421. else $as_nop
  5422. if test -n "$AR"; then
  5423. ac_cv_prog_AR="$AR" # Let the user override the test.
  5424. else
  5425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5426. for as_dir in $PATH
  5427. do
  5428. IFS=$as_save_IFS
  5429. case $as_dir in #(((
  5430. '') as_dir=./ ;;
  5431. */) ;;
  5432. *) as_dir=$as_dir/ ;;
  5433. esac
  5434. for ac_exec_ext in '' $ac_executable_extensions; do
  5435. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5436. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5437. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5438. break 2
  5439. fi
  5440. done
  5441. done
  5442. IFS=$as_save_IFS
  5443. fi
  5444. fi
  5445. AR=$ac_cv_prog_AR
  5446. if test -n "$AR"; then
  5447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5448. printf "%s\n" "$AR" >&6; }
  5449. else
  5450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5451. printf "%s\n" "no" >&6; }
  5452. fi
  5453. test -n "$AR" && break
  5454. done
  5455. fi
  5456. if test -z "$AR"; then
  5457. ac_ct_AR=$AR
  5458. for ac_prog in ar
  5459. do
  5460. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5461. set dummy $ac_prog; ac_word=$2
  5462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5463. printf %s "checking for $ac_word... " >&6; }
  5464. if test ${ac_cv_prog_ac_ct_AR+y}
  5465. then :
  5466. printf %s "(cached) " >&6
  5467. else $as_nop
  5468. if test -n "$ac_ct_AR"; then
  5469. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5470. else
  5471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5472. for as_dir in $PATH
  5473. do
  5474. IFS=$as_save_IFS
  5475. case $as_dir in #(((
  5476. '') as_dir=./ ;;
  5477. */) ;;
  5478. *) as_dir=$as_dir/ ;;
  5479. esac
  5480. for ac_exec_ext in '' $ac_executable_extensions; do
  5481. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5482. ac_cv_prog_ac_ct_AR="$ac_prog"
  5483. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5484. break 2
  5485. fi
  5486. done
  5487. done
  5488. IFS=$as_save_IFS
  5489. fi
  5490. fi
  5491. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5492. if test -n "$ac_ct_AR"; then
  5493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5494. printf "%s\n" "$ac_ct_AR" >&6; }
  5495. else
  5496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5497. printf "%s\n" "no" >&6; }
  5498. fi
  5499. test -n "$ac_ct_AR" && break
  5500. done
  5501. if test "x$ac_ct_AR" = x; then
  5502. AR="false"
  5503. else
  5504. case $cross_compiling:$ac_tool_warned in
  5505. yes:)
  5506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5507. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5508. ac_tool_warned=yes ;;
  5509. esac
  5510. AR=$ac_ct_AR
  5511. fi
  5512. fi
  5513. : ${AR=ar}
  5514. : ${AR_FLAGS=cru}
  5515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5516. printf %s "checking for archiver @FILE support... " >&6; }
  5517. if test ${lt_cv_ar_at_file+y}
  5518. then :
  5519. printf %s "(cached) " >&6
  5520. else $as_nop
  5521. lt_cv_ar_at_file=no
  5522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5523. /* end confdefs.h. */
  5524. int
  5525. main (void)
  5526. {
  5527. ;
  5528. return 0;
  5529. }
  5530. _ACEOF
  5531. if ac_fn_c_try_compile "$LINENO"
  5532. then :
  5533. echo conftest.$ac_objext > conftest.lst
  5534. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5535. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5536. (eval $lt_ar_try) 2>&5
  5537. ac_status=$?
  5538. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5539. test $ac_status = 0; }
  5540. if test 0 -eq "$ac_status"; then
  5541. # Ensure the archiver fails upon bogus file names.
  5542. rm -f conftest.$ac_objext libconftest.a
  5543. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5544. (eval $lt_ar_try) 2>&5
  5545. ac_status=$?
  5546. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5547. test $ac_status = 0; }
  5548. if test 0 -ne "$ac_status"; then
  5549. lt_cv_ar_at_file=@
  5550. fi
  5551. fi
  5552. rm -f conftest.* libconftest.a
  5553. fi
  5554. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5555. fi
  5556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5557. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5558. if test no = "$lt_cv_ar_at_file"; then
  5559. archiver_list_spec=
  5560. else
  5561. archiver_list_spec=$lt_cv_ar_at_file
  5562. fi
  5563. if test -n "$ac_tool_prefix"; then
  5564. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5565. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5567. printf %s "checking for $ac_word... " >&6; }
  5568. if test ${ac_cv_prog_STRIP+y}
  5569. then :
  5570. printf %s "(cached) " >&6
  5571. else $as_nop
  5572. if test -n "$STRIP"; then
  5573. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5574. else
  5575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5576. for as_dir in $PATH
  5577. do
  5578. IFS=$as_save_IFS
  5579. case $as_dir in #(((
  5580. '') as_dir=./ ;;
  5581. */) ;;
  5582. *) as_dir=$as_dir/ ;;
  5583. esac
  5584. for ac_exec_ext in '' $ac_executable_extensions; do
  5585. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5586. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5587. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5588. break 2
  5589. fi
  5590. done
  5591. done
  5592. IFS=$as_save_IFS
  5593. fi
  5594. fi
  5595. STRIP=$ac_cv_prog_STRIP
  5596. if test -n "$STRIP"; then
  5597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5598. printf "%s\n" "$STRIP" >&6; }
  5599. else
  5600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5601. printf "%s\n" "no" >&6; }
  5602. fi
  5603. fi
  5604. if test -z "$ac_cv_prog_STRIP"; then
  5605. ac_ct_STRIP=$STRIP
  5606. # Extract the first word of "strip", so it can be a program name with args.
  5607. set dummy strip; ac_word=$2
  5608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5609. printf %s "checking for $ac_word... " >&6; }
  5610. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5611. then :
  5612. printf %s "(cached) " >&6
  5613. else $as_nop
  5614. if test -n "$ac_ct_STRIP"; then
  5615. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5616. else
  5617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5618. for as_dir in $PATH
  5619. do
  5620. IFS=$as_save_IFS
  5621. case $as_dir in #(((
  5622. '') as_dir=./ ;;
  5623. */) ;;
  5624. *) as_dir=$as_dir/ ;;
  5625. esac
  5626. for ac_exec_ext in '' $ac_executable_extensions; do
  5627. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5628. ac_cv_prog_ac_ct_STRIP="strip"
  5629. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5630. break 2
  5631. fi
  5632. done
  5633. done
  5634. IFS=$as_save_IFS
  5635. fi
  5636. fi
  5637. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5638. if test -n "$ac_ct_STRIP"; then
  5639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5640. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5641. else
  5642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5643. printf "%s\n" "no" >&6; }
  5644. fi
  5645. if test "x$ac_ct_STRIP" = x; then
  5646. STRIP=":"
  5647. else
  5648. case $cross_compiling:$ac_tool_warned in
  5649. yes:)
  5650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5651. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5652. ac_tool_warned=yes ;;
  5653. esac
  5654. STRIP=$ac_ct_STRIP
  5655. fi
  5656. else
  5657. STRIP="$ac_cv_prog_STRIP"
  5658. fi
  5659. test -z "$STRIP" && STRIP=:
  5660. if test -n "$ac_tool_prefix"; then
  5661. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5662. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5664. printf %s "checking for $ac_word... " >&6; }
  5665. if test ${ac_cv_prog_RANLIB+y}
  5666. then :
  5667. printf %s "(cached) " >&6
  5668. else $as_nop
  5669. if test -n "$RANLIB"; then
  5670. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5671. else
  5672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5673. for as_dir in $PATH
  5674. do
  5675. IFS=$as_save_IFS
  5676. case $as_dir in #(((
  5677. '') as_dir=./ ;;
  5678. */) ;;
  5679. *) as_dir=$as_dir/ ;;
  5680. esac
  5681. for ac_exec_ext in '' $ac_executable_extensions; do
  5682. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5683. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5684. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5685. break 2
  5686. fi
  5687. done
  5688. done
  5689. IFS=$as_save_IFS
  5690. fi
  5691. fi
  5692. RANLIB=$ac_cv_prog_RANLIB
  5693. if test -n "$RANLIB"; then
  5694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5695. printf "%s\n" "$RANLIB" >&6; }
  5696. else
  5697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5698. printf "%s\n" "no" >&6; }
  5699. fi
  5700. fi
  5701. if test -z "$ac_cv_prog_RANLIB"; then
  5702. ac_ct_RANLIB=$RANLIB
  5703. # Extract the first word of "ranlib", so it can be a program name with args.
  5704. set dummy ranlib; ac_word=$2
  5705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5706. printf %s "checking for $ac_word... " >&6; }
  5707. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5708. then :
  5709. printf %s "(cached) " >&6
  5710. else $as_nop
  5711. if test -n "$ac_ct_RANLIB"; then
  5712. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5713. else
  5714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5715. for as_dir in $PATH
  5716. do
  5717. IFS=$as_save_IFS
  5718. case $as_dir in #(((
  5719. '') as_dir=./ ;;
  5720. */) ;;
  5721. *) as_dir=$as_dir/ ;;
  5722. esac
  5723. for ac_exec_ext in '' $ac_executable_extensions; do
  5724. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5725. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5726. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5727. break 2
  5728. fi
  5729. done
  5730. done
  5731. IFS=$as_save_IFS
  5732. fi
  5733. fi
  5734. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5735. if test -n "$ac_ct_RANLIB"; then
  5736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5737. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5738. else
  5739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5740. printf "%s\n" "no" >&6; }
  5741. fi
  5742. if test "x$ac_ct_RANLIB" = x; then
  5743. RANLIB=":"
  5744. else
  5745. case $cross_compiling:$ac_tool_warned in
  5746. yes:)
  5747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5748. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5749. ac_tool_warned=yes ;;
  5750. esac
  5751. RANLIB=$ac_ct_RANLIB
  5752. fi
  5753. else
  5754. RANLIB="$ac_cv_prog_RANLIB"
  5755. fi
  5756. test -z "$RANLIB" && RANLIB=:
  5757. # Determine commands to create old-style static archives.
  5758. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5759. old_postinstall_cmds='chmod 644 $oldlib'
  5760. old_postuninstall_cmds=
  5761. if test -n "$RANLIB"; then
  5762. case $host_os in
  5763. bitrig* | openbsd*)
  5764. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5765. ;;
  5766. *)
  5767. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5768. ;;
  5769. esac
  5770. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5771. fi
  5772. case $host_os in
  5773. darwin*)
  5774. lock_old_archive_extraction=yes ;;
  5775. *)
  5776. lock_old_archive_extraction=no ;;
  5777. esac
  5778. for ac_prog in gawk mawk nawk awk
  5779. do
  5780. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5781. set dummy $ac_prog; ac_word=$2
  5782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5783. printf %s "checking for $ac_word... " >&6; }
  5784. if test ${ac_cv_prog_AWK+y}
  5785. then :
  5786. printf %s "(cached) " >&6
  5787. else $as_nop
  5788. if test -n "$AWK"; then
  5789. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5790. else
  5791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5792. for as_dir in $PATH
  5793. do
  5794. IFS=$as_save_IFS
  5795. case $as_dir in #(((
  5796. '') as_dir=./ ;;
  5797. */) ;;
  5798. *) as_dir=$as_dir/ ;;
  5799. esac
  5800. for ac_exec_ext in '' $ac_executable_extensions; do
  5801. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5802. ac_cv_prog_AWK="$ac_prog"
  5803. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5804. break 2
  5805. fi
  5806. done
  5807. done
  5808. IFS=$as_save_IFS
  5809. fi
  5810. fi
  5811. AWK=$ac_cv_prog_AWK
  5812. if test -n "$AWK"; then
  5813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5814. printf "%s\n" "$AWK" >&6; }
  5815. else
  5816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5817. printf "%s\n" "no" >&6; }
  5818. fi
  5819. test -n "$AWK" && break
  5820. done
  5821. # If no C compiler was specified, use CC.
  5822. LTCC=${LTCC-"$CC"}
  5823. # If no C compiler flags were specified, use CFLAGS.
  5824. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5825. # Allow CC to be a program name with arguments.
  5826. compiler=$CC
  5827. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5829. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5830. if test ${lt_cv_sys_global_symbol_pipe+y}
  5831. then :
  5832. printf %s "(cached) " >&6
  5833. else $as_nop
  5834. # These are sane defaults that work on at least a few old systems.
  5835. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5836. # Character class describing NM global symbol codes.
  5837. symcode='[BCDEGRST]'
  5838. # Regexp to match symbols that can be accessed directly from C.
  5839. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5840. # Define system-specific variables.
  5841. case $host_os in
  5842. aix*)
  5843. symcode='[BCDT]'
  5844. ;;
  5845. cygwin* | mingw* | pw32* | cegcc*)
  5846. symcode='[ABCDGISTW]'
  5847. ;;
  5848. hpux*)
  5849. if test ia64 = "$host_cpu"; then
  5850. symcode='[ABCDEGRST]'
  5851. fi
  5852. ;;
  5853. irix* | nonstopux*)
  5854. symcode='[BCDEGRST]'
  5855. ;;
  5856. osf*)
  5857. symcode='[BCDEGQRST]'
  5858. ;;
  5859. solaris*)
  5860. symcode='[BCDRT]'
  5861. ;;
  5862. sco3.2v5*)
  5863. symcode='[DT]'
  5864. ;;
  5865. sysv4.2uw2*)
  5866. symcode='[DT]'
  5867. ;;
  5868. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5869. symcode='[ABDT]'
  5870. ;;
  5871. sysv4)
  5872. symcode='[DFNSTU]'
  5873. ;;
  5874. esac
  5875. # If we're using GNU nm, then use its standard symbol codes.
  5876. case `$NM -V 2>&1` in
  5877. *GNU* | *'with BFD'*)
  5878. symcode='[ABCDGIRSTW]' ;;
  5879. esac
  5880. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5881. # Gets list of data symbols to import.
  5882. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5883. # Adjust the below global symbol transforms to fixup imported variables.
  5884. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5885. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5886. lt_c_name_lib_hook="\
  5887. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5888. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5889. else
  5890. # Disable hooks by default.
  5891. lt_cv_sys_global_symbol_to_import=
  5892. lt_cdecl_hook=
  5893. lt_c_name_hook=
  5894. lt_c_name_lib_hook=
  5895. fi
  5896. # Transform an extracted symbol line into a proper C declaration.
  5897. # Some systems (esp. on ia64) link data and code symbols differently,
  5898. # so use this general approach.
  5899. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5900. $lt_cdecl_hook\
  5901. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5902. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5903. # Transform an extracted symbol line into symbol name and symbol address
  5904. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5905. $lt_c_name_hook\
  5906. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5907. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5908. # Transform an extracted symbol line into symbol name with lib prefix and
  5909. # symbol address.
  5910. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5911. $lt_c_name_lib_hook\
  5912. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5913. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5914. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5915. # Handle CRLF in mingw tool chain
  5916. opt_cr=
  5917. case $build_os in
  5918. mingw*)
  5919. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5920. ;;
  5921. esac
  5922. # Try without a prefix underscore, then with it.
  5923. for ac_symprfx in "" "_"; do
  5924. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5925. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5926. # Write the raw and C identifiers.
  5927. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5928. # Fake it for dumpbin and say T for any non-static function,
  5929. # D for any global variable and I for any imported variable.
  5930. # Also find C++ and __fastcall symbols from MSVC++,
  5931. # which start with @ or ?.
  5932. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5933. " {last_section=section; section=\$ 3};"\
  5934. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5935. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5936. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5937. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5938. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5939. " \$ 0!~/External *\|/{next};"\
  5940. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5941. " {if(hide[section]) next};"\
  5942. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5943. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5944. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5945. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5946. " ' prfx=^$ac_symprfx"
  5947. else
  5948. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5949. fi
  5950. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5951. # Check to see that the pipe works correctly.
  5952. pipe_works=no
  5953. rm -f conftest*
  5954. cat > conftest.$ac_ext <<_LT_EOF
  5955. #ifdef __cplusplus
  5956. extern "C" {
  5957. #endif
  5958. char nm_test_var;
  5959. void nm_test_func(void);
  5960. void nm_test_func(void){}
  5961. #ifdef __cplusplus
  5962. }
  5963. #endif
  5964. int main(){nm_test_var='a';nm_test_func();return(0);}
  5965. _LT_EOF
  5966. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5967. (eval $ac_compile) 2>&5
  5968. ac_status=$?
  5969. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5970. test $ac_status = 0; }; then
  5971. # Now try to grab the symbols.
  5972. nlist=conftest.nm
  5973. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5974. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5975. ac_status=$?
  5976. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5977. test $ac_status = 0; } && test -s "$nlist"; then
  5978. # Try sorting and uniquifying the output.
  5979. if sort "$nlist" | uniq > "$nlist"T; then
  5980. mv -f "$nlist"T "$nlist"
  5981. else
  5982. rm -f "$nlist"T
  5983. fi
  5984. # Make sure that we snagged all the symbols we need.
  5985. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5986. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5987. cat <<_LT_EOF > conftest.$ac_ext
  5988. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5989. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5990. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5991. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5992. # define LT_DLSYM_CONST
  5993. #elif defined __osf__
  5994. /* This system does not cope well with relocations in const data. */
  5995. # define LT_DLSYM_CONST
  5996. #else
  5997. # define LT_DLSYM_CONST const
  5998. #endif
  5999. #ifdef __cplusplus
  6000. extern "C" {
  6001. #endif
  6002. _LT_EOF
  6003. # Now generate the symbol file.
  6004. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6005. cat <<_LT_EOF >> conftest.$ac_ext
  6006. /* The mapping between symbol names and symbols. */
  6007. LT_DLSYM_CONST struct {
  6008. const char *name;
  6009. void *address;
  6010. }
  6011. lt__PROGRAM__LTX_preloaded_symbols[] =
  6012. {
  6013. { "@PROGRAM@", (void *) 0 },
  6014. _LT_EOF
  6015. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6016. cat <<\_LT_EOF >> conftest.$ac_ext
  6017. {0, (void *) 0}
  6018. };
  6019. /* This works around a problem in FreeBSD linker */
  6020. #ifdef FREEBSD_WORKAROUND
  6021. static const void *lt_preloaded_setup() {
  6022. return lt__PROGRAM__LTX_preloaded_symbols;
  6023. }
  6024. #endif
  6025. #ifdef __cplusplus
  6026. }
  6027. #endif
  6028. _LT_EOF
  6029. # Now try linking the two files.
  6030. mv conftest.$ac_objext conftstm.$ac_objext
  6031. lt_globsym_save_LIBS=$LIBS
  6032. lt_globsym_save_CFLAGS=$CFLAGS
  6033. LIBS=conftstm.$ac_objext
  6034. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6035. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6036. (eval $ac_link) 2>&5
  6037. ac_status=$?
  6038. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6039. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6040. pipe_works=yes
  6041. fi
  6042. LIBS=$lt_globsym_save_LIBS
  6043. CFLAGS=$lt_globsym_save_CFLAGS
  6044. else
  6045. echo "cannot find nm_test_func in $nlist" >&5
  6046. fi
  6047. else
  6048. echo "cannot find nm_test_var in $nlist" >&5
  6049. fi
  6050. else
  6051. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6052. fi
  6053. else
  6054. echo "$progname: failed program was:" >&5
  6055. cat conftest.$ac_ext >&5
  6056. fi
  6057. rm -rf conftest* conftst*
  6058. # Do not use the global_symbol_pipe unless it works.
  6059. if test yes = "$pipe_works"; then
  6060. break
  6061. else
  6062. lt_cv_sys_global_symbol_pipe=
  6063. fi
  6064. done
  6065. fi
  6066. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6067. lt_cv_sys_global_symbol_to_cdecl=
  6068. fi
  6069. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6071. printf "%s\n" "failed" >&6; }
  6072. else
  6073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6074. printf "%s\n" "ok" >&6; }
  6075. fi
  6076. # Response file support.
  6077. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6078. nm_file_list_spec='@'
  6079. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6080. nm_file_list_spec='@'
  6081. fi
  6082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6083. printf %s "checking for sysroot... " >&6; }
  6084. # Check whether --with-sysroot was given.
  6085. if test ${with_sysroot+y}
  6086. then :
  6087. withval=$with_sysroot;
  6088. else $as_nop
  6089. with_sysroot=no
  6090. fi
  6091. lt_sysroot=
  6092. case $with_sysroot in #(
  6093. yes)
  6094. if test yes = "$GCC"; then
  6095. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6096. fi
  6097. ;; #(
  6098. /*)
  6099. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6100. ;; #(
  6101. no|'')
  6102. ;; #(
  6103. *)
  6104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6105. printf "%s\n" "$with_sysroot" >&6; }
  6106. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6107. ;;
  6108. esac
  6109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6110. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6112. printf %s "checking for a working dd... " >&6; }
  6113. if test ${ac_cv_path_lt_DD+y}
  6114. then :
  6115. printf %s "(cached) " >&6
  6116. else $as_nop
  6117. printf 0123456789abcdef0123456789abcdef >conftest.i
  6118. cat conftest.i conftest.i >conftest2.i
  6119. : ${lt_DD:=$DD}
  6120. if test -z "$lt_DD"; then
  6121. ac_path_lt_DD_found=false
  6122. # Loop through the user's path and test for each of PROGNAME-LIST
  6123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6124. for as_dir in $PATH
  6125. do
  6126. IFS=$as_save_IFS
  6127. case $as_dir in #(((
  6128. '') as_dir=./ ;;
  6129. */) ;;
  6130. *) as_dir=$as_dir/ ;;
  6131. esac
  6132. for ac_prog in dd
  6133. do
  6134. for ac_exec_ext in '' $ac_executable_extensions; do
  6135. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6136. as_fn_executable_p "$ac_path_lt_DD" || continue
  6137. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6138. cmp -s conftest.i conftest.out \
  6139. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6140. fi
  6141. $ac_path_lt_DD_found && break 3
  6142. done
  6143. done
  6144. done
  6145. IFS=$as_save_IFS
  6146. if test -z "$ac_cv_path_lt_DD"; then
  6147. :
  6148. fi
  6149. else
  6150. ac_cv_path_lt_DD=$lt_DD
  6151. fi
  6152. rm -f conftest.i conftest2.i conftest.out
  6153. fi
  6154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6155. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6157. printf %s "checking how to truncate binary pipes... " >&6; }
  6158. if test ${lt_cv_truncate_bin+y}
  6159. then :
  6160. printf %s "(cached) " >&6
  6161. else $as_nop
  6162. printf 0123456789abcdef0123456789abcdef >conftest.i
  6163. cat conftest.i conftest.i >conftest2.i
  6164. lt_cv_truncate_bin=
  6165. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6166. cmp -s conftest.i conftest.out \
  6167. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6168. fi
  6169. rm -f conftest.i conftest2.i conftest.out
  6170. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6171. fi
  6172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6173. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6174. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6175. func_cc_basename ()
  6176. {
  6177. for cc_temp in $*""; do
  6178. case $cc_temp in
  6179. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6180. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6181. \-*) ;;
  6182. *) break;;
  6183. esac
  6184. done
  6185. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6186. }
  6187. # Check whether --enable-libtool-lock was given.
  6188. if test ${enable_libtool_lock+y}
  6189. then :
  6190. enableval=$enable_libtool_lock;
  6191. fi
  6192. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6193. # Some flags need to be propagated to the compiler or linker for good
  6194. # libtool support.
  6195. case $host in
  6196. ia64-*-hpux*)
  6197. # Find out what ABI is being produced by ac_compile, and set mode
  6198. # options accordingly.
  6199. echo 'int i;' > conftest.$ac_ext
  6200. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6201. (eval $ac_compile) 2>&5
  6202. ac_status=$?
  6203. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6204. test $ac_status = 0; }; then
  6205. case `/usr/bin/file conftest.$ac_objext` in
  6206. *ELF-32*)
  6207. HPUX_IA64_MODE=32
  6208. ;;
  6209. *ELF-64*)
  6210. HPUX_IA64_MODE=64
  6211. ;;
  6212. esac
  6213. fi
  6214. rm -rf conftest*
  6215. ;;
  6216. *-*-irix6*)
  6217. # Find out what ABI is being produced by ac_compile, and set linker
  6218. # options accordingly.
  6219. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6220. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6221. (eval $ac_compile) 2>&5
  6222. ac_status=$?
  6223. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6224. test $ac_status = 0; }; then
  6225. if test yes = "$lt_cv_prog_gnu_ld"; then
  6226. case `/usr/bin/file conftest.$ac_objext` in
  6227. *32-bit*)
  6228. LD="${LD-ld} -melf32bsmip"
  6229. ;;
  6230. *N32*)
  6231. LD="${LD-ld} -melf32bmipn32"
  6232. ;;
  6233. *64-bit*)
  6234. LD="${LD-ld} -melf64bmip"
  6235. ;;
  6236. esac
  6237. else
  6238. case `/usr/bin/file conftest.$ac_objext` in
  6239. *32-bit*)
  6240. LD="${LD-ld} -32"
  6241. ;;
  6242. *N32*)
  6243. LD="${LD-ld} -n32"
  6244. ;;
  6245. *64-bit*)
  6246. LD="${LD-ld} -64"
  6247. ;;
  6248. esac
  6249. fi
  6250. fi
  6251. rm -rf conftest*
  6252. ;;
  6253. mips64*-*linux*)
  6254. # Find out what ABI is being produced by ac_compile, and set linker
  6255. # options accordingly.
  6256. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6257. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6258. (eval $ac_compile) 2>&5
  6259. ac_status=$?
  6260. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6261. test $ac_status = 0; }; then
  6262. emul=elf
  6263. case `/usr/bin/file conftest.$ac_objext` in
  6264. *32-bit*)
  6265. emul="${emul}32"
  6266. ;;
  6267. *64-bit*)
  6268. emul="${emul}64"
  6269. ;;
  6270. esac
  6271. case `/usr/bin/file conftest.$ac_objext` in
  6272. *MSB*)
  6273. emul="${emul}btsmip"
  6274. ;;
  6275. *LSB*)
  6276. emul="${emul}ltsmip"
  6277. ;;
  6278. esac
  6279. case `/usr/bin/file conftest.$ac_objext` in
  6280. *N32*)
  6281. emul="${emul}n32"
  6282. ;;
  6283. esac
  6284. LD="${LD-ld} -m $emul"
  6285. fi
  6286. rm -rf conftest*
  6287. ;;
  6288. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6289. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6290. # Find out what ABI is being produced by ac_compile, and set linker
  6291. # options accordingly. Note that the listed cases only cover the
  6292. # situations where additional linker options are needed (such as when
  6293. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6294. # vice versa); the common cases where no linker options are needed do
  6295. # not appear in the list.
  6296. echo 'int i;' > conftest.$ac_ext
  6297. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6298. (eval $ac_compile) 2>&5
  6299. ac_status=$?
  6300. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6301. test $ac_status = 0; }; then
  6302. case `/usr/bin/file conftest.o` in
  6303. *32-bit*)
  6304. case $host in
  6305. x86_64-*kfreebsd*-gnu)
  6306. LD="${LD-ld} -m elf_i386_fbsd"
  6307. ;;
  6308. x86_64-*linux*)
  6309. case `/usr/bin/file conftest.o` in
  6310. *x86-64*)
  6311. LD="${LD-ld} -m elf32_x86_64"
  6312. ;;
  6313. *)
  6314. LD="${LD-ld} -m elf_i386"
  6315. ;;
  6316. esac
  6317. ;;
  6318. powerpc64le-*linux*)
  6319. LD="${LD-ld} -m elf32lppclinux"
  6320. ;;
  6321. powerpc64-*linux*)
  6322. LD="${LD-ld} -m elf32ppclinux"
  6323. ;;
  6324. s390x-*linux*)
  6325. LD="${LD-ld} -m elf_s390"
  6326. ;;
  6327. sparc64-*linux*)
  6328. LD="${LD-ld} -m elf32_sparc"
  6329. ;;
  6330. esac
  6331. ;;
  6332. *64-bit*)
  6333. case $host in
  6334. x86_64-*kfreebsd*-gnu)
  6335. LD="${LD-ld} -m elf_x86_64_fbsd"
  6336. ;;
  6337. x86_64-*linux*)
  6338. LD="${LD-ld} -m elf_x86_64"
  6339. ;;
  6340. powerpcle-*linux*|powerpc64le-*linux*)
  6341. LD="${LD-ld} -m elf64lppc"
  6342. ;;
  6343. powerpc-*linux*|powerpc64-*linux*)
  6344. LD="${LD-ld} -m elf64ppc"
  6345. ;;
  6346. s390*-*linux*|s390*-*tpf*)
  6347. LD="${LD-ld} -m elf64_s390"
  6348. ;;
  6349. sparc*-*linux*)
  6350. LD="${LD-ld} -m elf64_sparc"
  6351. ;;
  6352. esac
  6353. ;;
  6354. esac
  6355. fi
  6356. rm -rf conftest*
  6357. ;;
  6358. *-*-sco3.2v5*)
  6359. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6360. SAVE_CFLAGS=$CFLAGS
  6361. CFLAGS="$CFLAGS -belf"
  6362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6363. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6364. if test ${lt_cv_cc_needs_belf+y}
  6365. then :
  6366. printf %s "(cached) " >&6
  6367. else $as_nop
  6368. ac_ext=c
  6369. ac_cpp='$CPP $CPPFLAGS'
  6370. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6371. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6372. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6374. /* end confdefs.h. */
  6375. int
  6376. main (void)
  6377. {
  6378. ;
  6379. return 0;
  6380. }
  6381. _ACEOF
  6382. if ac_fn_c_try_link "$LINENO"
  6383. then :
  6384. lt_cv_cc_needs_belf=yes
  6385. else $as_nop
  6386. lt_cv_cc_needs_belf=no
  6387. fi
  6388. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6389. conftest$ac_exeext conftest.$ac_ext
  6390. ac_ext=c
  6391. ac_cpp='$CPP $CPPFLAGS'
  6392. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6393. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6394. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6395. fi
  6396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6397. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6398. if test yes != "$lt_cv_cc_needs_belf"; then
  6399. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6400. CFLAGS=$SAVE_CFLAGS
  6401. fi
  6402. ;;
  6403. *-*solaris*)
  6404. # Find out what ABI is being produced by ac_compile, and set linker
  6405. # options accordingly.
  6406. echo 'int i;' > conftest.$ac_ext
  6407. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6408. (eval $ac_compile) 2>&5
  6409. ac_status=$?
  6410. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6411. test $ac_status = 0; }; then
  6412. case `/usr/bin/file conftest.o` in
  6413. *64-bit*)
  6414. case $lt_cv_prog_gnu_ld in
  6415. yes*)
  6416. case $host in
  6417. i?86-*-solaris*|x86_64-*-solaris*)
  6418. LD="${LD-ld} -m elf_x86_64"
  6419. ;;
  6420. sparc*-*-solaris*)
  6421. LD="${LD-ld} -m elf64_sparc"
  6422. ;;
  6423. esac
  6424. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6425. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6426. LD=${LD-ld}_sol2
  6427. fi
  6428. ;;
  6429. *)
  6430. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6431. LD="${LD-ld} -64"
  6432. fi
  6433. ;;
  6434. esac
  6435. ;;
  6436. esac
  6437. fi
  6438. rm -rf conftest*
  6439. ;;
  6440. esac
  6441. need_locks=$enable_libtool_lock
  6442. if test -n "$ac_tool_prefix"; then
  6443. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6444. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6446. printf %s "checking for $ac_word... " >&6; }
  6447. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6448. then :
  6449. printf %s "(cached) " >&6
  6450. else $as_nop
  6451. if test -n "$MANIFEST_TOOL"; then
  6452. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6453. else
  6454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6455. for as_dir in $PATH
  6456. do
  6457. IFS=$as_save_IFS
  6458. case $as_dir in #(((
  6459. '') as_dir=./ ;;
  6460. */) ;;
  6461. *) as_dir=$as_dir/ ;;
  6462. esac
  6463. for ac_exec_ext in '' $ac_executable_extensions; do
  6464. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6465. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6466. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6467. break 2
  6468. fi
  6469. done
  6470. done
  6471. IFS=$as_save_IFS
  6472. fi
  6473. fi
  6474. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6475. if test -n "$MANIFEST_TOOL"; then
  6476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6477. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6478. else
  6479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6480. printf "%s\n" "no" >&6; }
  6481. fi
  6482. fi
  6483. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6484. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6485. # Extract the first word of "mt", so it can be a program name with args.
  6486. set dummy mt; ac_word=$2
  6487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6488. printf %s "checking for $ac_word... " >&6; }
  6489. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6490. then :
  6491. printf %s "(cached) " >&6
  6492. else $as_nop
  6493. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6494. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6495. else
  6496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6497. for as_dir in $PATH
  6498. do
  6499. IFS=$as_save_IFS
  6500. case $as_dir in #(((
  6501. '') as_dir=./ ;;
  6502. */) ;;
  6503. *) as_dir=$as_dir/ ;;
  6504. esac
  6505. for ac_exec_ext in '' $ac_executable_extensions; do
  6506. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6507. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6508. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6509. break 2
  6510. fi
  6511. done
  6512. done
  6513. IFS=$as_save_IFS
  6514. fi
  6515. fi
  6516. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6517. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6519. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6520. else
  6521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6522. printf "%s\n" "no" >&6; }
  6523. fi
  6524. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6525. MANIFEST_TOOL=":"
  6526. else
  6527. case $cross_compiling:$ac_tool_warned in
  6528. yes:)
  6529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6530. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6531. ac_tool_warned=yes ;;
  6532. esac
  6533. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6534. fi
  6535. else
  6536. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6537. fi
  6538. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6540. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6541. if test ${lt_cv_path_mainfest_tool+y}
  6542. then :
  6543. printf %s "(cached) " >&6
  6544. else $as_nop
  6545. lt_cv_path_mainfest_tool=no
  6546. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6547. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6548. cat conftest.err >&5
  6549. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6550. lt_cv_path_mainfest_tool=yes
  6551. fi
  6552. rm -f conftest*
  6553. fi
  6554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6555. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6556. if test yes != "$lt_cv_path_mainfest_tool"; then
  6557. MANIFEST_TOOL=:
  6558. fi
  6559. case $host_os in
  6560. rhapsody* | darwin*)
  6561. if test -n "$ac_tool_prefix"; then
  6562. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6563. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6565. printf %s "checking for $ac_word... " >&6; }
  6566. if test ${ac_cv_prog_DSYMUTIL+y}
  6567. then :
  6568. printf %s "(cached) " >&6
  6569. else $as_nop
  6570. if test -n "$DSYMUTIL"; then
  6571. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6572. else
  6573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6574. for as_dir in $PATH
  6575. do
  6576. IFS=$as_save_IFS
  6577. case $as_dir in #(((
  6578. '') as_dir=./ ;;
  6579. */) ;;
  6580. *) as_dir=$as_dir/ ;;
  6581. esac
  6582. for ac_exec_ext in '' $ac_executable_extensions; do
  6583. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6584. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6585. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6586. break 2
  6587. fi
  6588. done
  6589. done
  6590. IFS=$as_save_IFS
  6591. fi
  6592. fi
  6593. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6594. if test -n "$DSYMUTIL"; then
  6595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6596. printf "%s\n" "$DSYMUTIL" >&6; }
  6597. else
  6598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6599. printf "%s\n" "no" >&6; }
  6600. fi
  6601. fi
  6602. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6603. ac_ct_DSYMUTIL=$DSYMUTIL
  6604. # Extract the first word of "dsymutil", so it can be a program name with args.
  6605. set dummy dsymutil; ac_word=$2
  6606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6607. printf %s "checking for $ac_word... " >&6; }
  6608. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6609. then :
  6610. printf %s "(cached) " >&6
  6611. else $as_nop
  6612. if test -n "$ac_ct_DSYMUTIL"; then
  6613. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6614. else
  6615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6616. for as_dir in $PATH
  6617. do
  6618. IFS=$as_save_IFS
  6619. case $as_dir in #(((
  6620. '') as_dir=./ ;;
  6621. */) ;;
  6622. *) as_dir=$as_dir/ ;;
  6623. esac
  6624. for ac_exec_ext in '' $ac_executable_extensions; do
  6625. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6626. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6627. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6628. break 2
  6629. fi
  6630. done
  6631. done
  6632. IFS=$as_save_IFS
  6633. fi
  6634. fi
  6635. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6636. if test -n "$ac_ct_DSYMUTIL"; then
  6637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6638. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6639. else
  6640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6641. printf "%s\n" "no" >&6; }
  6642. fi
  6643. if test "x$ac_ct_DSYMUTIL" = x; then
  6644. DSYMUTIL=":"
  6645. else
  6646. case $cross_compiling:$ac_tool_warned in
  6647. yes:)
  6648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6649. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6650. ac_tool_warned=yes ;;
  6651. esac
  6652. DSYMUTIL=$ac_ct_DSYMUTIL
  6653. fi
  6654. else
  6655. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6656. fi
  6657. if test -n "$ac_tool_prefix"; then
  6658. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6659. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6661. printf %s "checking for $ac_word... " >&6; }
  6662. if test ${ac_cv_prog_NMEDIT+y}
  6663. then :
  6664. printf %s "(cached) " >&6
  6665. else $as_nop
  6666. if test -n "$NMEDIT"; then
  6667. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6668. else
  6669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6670. for as_dir in $PATH
  6671. do
  6672. IFS=$as_save_IFS
  6673. case $as_dir in #(((
  6674. '') as_dir=./ ;;
  6675. */) ;;
  6676. *) as_dir=$as_dir/ ;;
  6677. esac
  6678. for ac_exec_ext in '' $ac_executable_extensions; do
  6679. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6680. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6681. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6682. break 2
  6683. fi
  6684. done
  6685. done
  6686. IFS=$as_save_IFS
  6687. fi
  6688. fi
  6689. NMEDIT=$ac_cv_prog_NMEDIT
  6690. if test -n "$NMEDIT"; then
  6691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6692. printf "%s\n" "$NMEDIT" >&6; }
  6693. else
  6694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6695. printf "%s\n" "no" >&6; }
  6696. fi
  6697. fi
  6698. if test -z "$ac_cv_prog_NMEDIT"; then
  6699. ac_ct_NMEDIT=$NMEDIT
  6700. # Extract the first word of "nmedit", so it can be a program name with args.
  6701. set dummy nmedit; ac_word=$2
  6702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6703. printf %s "checking for $ac_word... " >&6; }
  6704. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6705. then :
  6706. printf %s "(cached) " >&6
  6707. else $as_nop
  6708. if test -n "$ac_ct_NMEDIT"; then
  6709. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6710. else
  6711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6712. for as_dir in $PATH
  6713. do
  6714. IFS=$as_save_IFS
  6715. case $as_dir in #(((
  6716. '') as_dir=./ ;;
  6717. */) ;;
  6718. *) as_dir=$as_dir/ ;;
  6719. esac
  6720. for ac_exec_ext in '' $ac_executable_extensions; do
  6721. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6722. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6723. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6724. break 2
  6725. fi
  6726. done
  6727. done
  6728. IFS=$as_save_IFS
  6729. fi
  6730. fi
  6731. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6732. if test -n "$ac_ct_NMEDIT"; then
  6733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6734. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6735. else
  6736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6737. printf "%s\n" "no" >&6; }
  6738. fi
  6739. if test "x$ac_ct_NMEDIT" = x; then
  6740. NMEDIT=":"
  6741. else
  6742. case $cross_compiling:$ac_tool_warned in
  6743. yes:)
  6744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6745. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6746. ac_tool_warned=yes ;;
  6747. esac
  6748. NMEDIT=$ac_ct_NMEDIT
  6749. fi
  6750. else
  6751. NMEDIT="$ac_cv_prog_NMEDIT"
  6752. fi
  6753. if test -n "$ac_tool_prefix"; then
  6754. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6755. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6757. printf %s "checking for $ac_word... " >&6; }
  6758. if test ${ac_cv_prog_LIPO+y}
  6759. then :
  6760. printf %s "(cached) " >&6
  6761. else $as_nop
  6762. if test -n "$LIPO"; then
  6763. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6764. else
  6765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6766. for as_dir in $PATH
  6767. do
  6768. IFS=$as_save_IFS
  6769. case $as_dir in #(((
  6770. '') as_dir=./ ;;
  6771. */) ;;
  6772. *) as_dir=$as_dir/ ;;
  6773. esac
  6774. for ac_exec_ext in '' $ac_executable_extensions; do
  6775. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6776. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6777. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6778. break 2
  6779. fi
  6780. done
  6781. done
  6782. IFS=$as_save_IFS
  6783. fi
  6784. fi
  6785. LIPO=$ac_cv_prog_LIPO
  6786. if test -n "$LIPO"; then
  6787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6788. printf "%s\n" "$LIPO" >&6; }
  6789. else
  6790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6791. printf "%s\n" "no" >&6; }
  6792. fi
  6793. fi
  6794. if test -z "$ac_cv_prog_LIPO"; then
  6795. ac_ct_LIPO=$LIPO
  6796. # Extract the first word of "lipo", so it can be a program name with args.
  6797. set dummy lipo; ac_word=$2
  6798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6799. printf %s "checking for $ac_word... " >&6; }
  6800. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6801. then :
  6802. printf %s "(cached) " >&6
  6803. else $as_nop
  6804. if test -n "$ac_ct_LIPO"; then
  6805. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6806. else
  6807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6808. for as_dir in $PATH
  6809. do
  6810. IFS=$as_save_IFS
  6811. case $as_dir in #(((
  6812. '') as_dir=./ ;;
  6813. */) ;;
  6814. *) as_dir=$as_dir/ ;;
  6815. esac
  6816. for ac_exec_ext in '' $ac_executable_extensions; do
  6817. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6818. ac_cv_prog_ac_ct_LIPO="lipo"
  6819. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6820. break 2
  6821. fi
  6822. done
  6823. done
  6824. IFS=$as_save_IFS
  6825. fi
  6826. fi
  6827. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6828. if test -n "$ac_ct_LIPO"; then
  6829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6830. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6831. else
  6832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6833. printf "%s\n" "no" >&6; }
  6834. fi
  6835. if test "x$ac_ct_LIPO" = x; then
  6836. LIPO=":"
  6837. else
  6838. case $cross_compiling:$ac_tool_warned in
  6839. yes:)
  6840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6841. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6842. ac_tool_warned=yes ;;
  6843. esac
  6844. LIPO=$ac_ct_LIPO
  6845. fi
  6846. else
  6847. LIPO="$ac_cv_prog_LIPO"
  6848. fi
  6849. if test -n "$ac_tool_prefix"; then
  6850. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6851. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6853. printf %s "checking for $ac_word... " >&6; }
  6854. if test ${ac_cv_prog_OTOOL+y}
  6855. then :
  6856. printf %s "(cached) " >&6
  6857. else $as_nop
  6858. if test -n "$OTOOL"; then
  6859. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6860. else
  6861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6862. for as_dir in $PATH
  6863. do
  6864. IFS=$as_save_IFS
  6865. case $as_dir in #(((
  6866. '') as_dir=./ ;;
  6867. */) ;;
  6868. *) as_dir=$as_dir/ ;;
  6869. esac
  6870. for ac_exec_ext in '' $ac_executable_extensions; do
  6871. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6872. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6873. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6874. break 2
  6875. fi
  6876. done
  6877. done
  6878. IFS=$as_save_IFS
  6879. fi
  6880. fi
  6881. OTOOL=$ac_cv_prog_OTOOL
  6882. if test -n "$OTOOL"; then
  6883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6884. printf "%s\n" "$OTOOL" >&6; }
  6885. else
  6886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6887. printf "%s\n" "no" >&6; }
  6888. fi
  6889. fi
  6890. if test -z "$ac_cv_prog_OTOOL"; then
  6891. ac_ct_OTOOL=$OTOOL
  6892. # Extract the first word of "otool", so it can be a program name with args.
  6893. set dummy otool; ac_word=$2
  6894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6895. printf %s "checking for $ac_word... " >&6; }
  6896. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6897. then :
  6898. printf %s "(cached) " >&6
  6899. else $as_nop
  6900. if test -n "$ac_ct_OTOOL"; then
  6901. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6902. else
  6903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6904. for as_dir in $PATH
  6905. do
  6906. IFS=$as_save_IFS
  6907. case $as_dir in #(((
  6908. '') as_dir=./ ;;
  6909. */) ;;
  6910. *) as_dir=$as_dir/ ;;
  6911. esac
  6912. for ac_exec_ext in '' $ac_executable_extensions; do
  6913. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6914. ac_cv_prog_ac_ct_OTOOL="otool"
  6915. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6916. break 2
  6917. fi
  6918. done
  6919. done
  6920. IFS=$as_save_IFS
  6921. fi
  6922. fi
  6923. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6924. if test -n "$ac_ct_OTOOL"; then
  6925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6926. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6927. else
  6928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6929. printf "%s\n" "no" >&6; }
  6930. fi
  6931. if test "x$ac_ct_OTOOL" = x; then
  6932. OTOOL=":"
  6933. else
  6934. case $cross_compiling:$ac_tool_warned in
  6935. yes:)
  6936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6937. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6938. ac_tool_warned=yes ;;
  6939. esac
  6940. OTOOL=$ac_ct_OTOOL
  6941. fi
  6942. else
  6943. OTOOL="$ac_cv_prog_OTOOL"
  6944. fi
  6945. if test -n "$ac_tool_prefix"; then
  6946. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6947. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6949. printf %s "checking for $ac_word... " >&6; }
  6950. if test ${ac_cv_prog_OTOOL64+y}
  6951. then :
  6952. printf %s "(cached) " >&6
  6953. else $as_nop
  6954. if test -n "$OTOOL64"; then
  6955. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6956. else
  6957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6958. for as_dir in $PATH
  6959. do
  6960. IFS=$as_save_IFS
  6961. case $as_dir in #(((
  6962. '') as_dir=./ ;;
  6963. */) ;;
  6964. *) as_dir=$as_dir/ ;;
  6965. esac
  6966. for ac_exec_ext in '' $ac_executable_extensions; do
  6967. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6968. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6969. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6970. break 2
  6971. fi
  6972. done
  6973. done
  6974. IFS=$as_save_IFS
  6975. fi
  6976. fi
  6977. OTOOL64=$ac_cv_prog_OTOOL64
  6978. if test -n "$OTOOL64"; then
  6979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6980. printf "%s\n" "$OTOOL64" >&6; }
  6981. else
  6982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6983. printf "%s\n" "no" >&6; }
  6984. fi
  6985. fi
  6986. if test -z "$ac_cv_prog_OTOOL64"; then
  6987. ac_ct_OTOOL64=$OTOOL64
  6988. # Extract the first word of "otool64", so it can be a program name with args.
  6989. set dummy otool64; ac_word=$2
  6990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6991. printf %s "checking for $ac_word... " >&6; }
  6992. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  6993. then :
  6994. printf %s "(cached) " >&6
  6995. else $as_nop
  6996. if test -n "$ac_ct_OTOOL64"; then
  6997. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6998. else
  6999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7000. for as_dir in $PATH
  7001. do
  7002. IFS=$as_save_IFS
  7003. case $as_dir in #(((
  7004. '') as_dir=./ ;;
  7005. */) ;;
  7006. *) as_dir=$as_dir/ ;;
  7007. esac
  7008. for ac_exec_ext in '' $ac_executable_extensions; do
  7009. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7010. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7011. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7012. break 2
  7013. fi
  7014. done
  7015. done
  7016. IFS=$as_save_IFS
  7017. fi
  7018. fi
  7019. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7020. if test -n "$ac_ct_OTOOL64"; then
  7021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7022. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7023. else
  7024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7025. printf "%s\n" "no" >&6; }
  7026. fi
  7027. if test "x$ac_ct_OTOOL64" = x; then
  7028. OTOOL64=":"
  7029. else
  7030. case $cross_compiling:$ac_tool_warned in
  7031. yes:)
  7032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7033. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7034. ac_tool_warned=yes ;;
  7035. esac
  7036. OTOOL64=$ac_ct_OTOOL64
  7037. fi
  7038. else
  7039. OTOOL64="$ac_cv_prog_OTOOL64"
  7040. fi
  7041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7042. printf %s "checking for -single_module linker flag... " >&6; }
  7043. if test ${lt_cv_apple_cc_single_mod+y}
  7044. then :
  7045. printf %s "(cached) " >&6
  7046. else $as_nop
  7047. lt_cv_apple_cc_single_mod=no
  7048. if test -z "$LT_MULTI_MODULE"; then
  7049. # By default we will add the -single_module flag. You can override
  7050. # by either setting the environment variable LT_MULTI_MODULE
  7051. # non-empty at configure time, or by adding -multi_module to the
  7052. # link flags.
  7053. rm -rf libconftest.dylib*
  7054. echo "int foo(void){return 1;}" > conftest.c
  7055. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7056. -dynamiclib -Wl,-single_module conftest.c" >&5
  7057. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7058. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7059. _lt_result=$?
  7060. # If there is a non-empty error log, and "single_module"
  7061. # appears in it, assume the flag caused a linker warning
  7062. if test -s conftest.err && $GREP single_module conftest.err; then
  7063. cat conftest.err >&5
  7064. # Otherwise, if the output was created with a 0 exit code from
  7065. # the compiler, it worked.
  7066. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7067. lt_cv_apple_cc_single_mod=yes
  7068. else
  7069. cat conftest.err >&5
  7070. fi
  7071. rm -rf libconftest.dylib*
  7072. rm -f conftest.*
  7073. fi
  7074. fi
  7075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7076. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7078. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7079. if test ${lt_cv_ld_exported_symbols_list+y}
  7080. then :
  7081. printf %s "(cached) " >&6
  7082. else $as_nop
  7083. lt_cv_ld_exported_symbols_list=no
  7084. save_LDFLAGS=$LDFLAGS
  7085. echo "_main" > conftest.sym
  7086. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7088. /* end confdefs.h. */
  7089. int
  7090. main (void)
  7091. {
  7092. ;
  7093. return 0;
  7094. }
  7095. _ACEOF
  7096. if ac_fn_c_try_link "$LINENO"
  7097. then :
  7098. lt_cv_ld_exported_symbols_list=yes
  7099. else $as_nop
  7100. lt_cv_ld_exported_symbols_list=no
  7101. fi
  7102. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7103. conftest$ac_exeext conftest.$ac_ext
  7104. LDFLAGS=$save_LDFLAGS
  7105. fi
  7106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7107. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7109. printf %s "checking for -force_load linker flag... " >&6; }
  7110. if test ${lt_cv_ld_force_load+y}
  7111. then :
  7112. printf %s "(cached) " >&6
  7113. else $as_nop
  7114. lt_cv_ld_force_load=no
  7115. cat > conftest.c << _LT_EOF
  7116. int forced_loaded() { return 2;}
  7117. _LT_EOF
  7118. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7119. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7120. echo "$AR cru libconftest.a conftest.o" >&5
  7121. $AR cru libconftest.a conftest.o 2>&5
  7122. echo "$RANLIB libconftest.a" >&5
  7123. $RANLIB libconftest.a 2>&5
  7124. cat > conftest.c << _LT_EOF
  7125. int main() { return 0;}
  7126. _LT_EOF
  7127. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7128. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7129. _lt_result=$?
  7130. if test -s conftest.err && $GREP force_load conftest.err; then
  7131. cat conftest.err >&5
  7132. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7133. lt_cv_ld_force_load=yes
  7134. else
  7135. cat conftest.err >&5
  7136. fi
  7137. rm -f conftest.err libconftest.a conftest conftest.c
  7138. rm -rf conftest.dSYM
  7139. fi
  7140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7141. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7142. case $host_os in
  7143. rhapsody* | darwin1.[012])
  7144. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7145. darwin1.*)
  7146. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7147. darwin*)
  7148. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7149. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7150. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7151. *)
  7152. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7153. esac
  7154. ;;
  7155. esac
  7156. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7157. _lt_dar_single_mod='$single_module'
  7158. fi
  7159. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7160. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7161. else
  7162. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7163. fi
  7164. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7165. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7166. else
  7167. _lt_dsymutil=
  7168. fi
  7169. ;;
  7170. esac
  7171. # func_munge_path_list VARIABLE PATH
  7172. # -----------------------------------
  7173. # VARIABLE is name of variable containing _space_ separated list of
  7174. # directories to be munged by the contents of PATH, which is string
  7175. # having a format:
  7176. # "DIR[:DIR]:"
  7177. # string "DIR[ DIR]" will be prepended to VARIABLE
  7178. # ":DIR[:DIR]"
  7179. # string "DIR[ DIR]" will be appended to VARIABLE
  7180. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7181. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7182. # "DIRA[ DIRA]" will be appended to VARIABLE
  7183. # "DIR[:DIR]"
  7184. # VARIABLE will be replaced by "DIR[ DIR]"
  7185. func_munge_path_list ()
  7186. {
  7187. case x$2 in
  7188. x)
  7189. ;;
  7190. *:)
  7191. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7192. ;;
  7193. x:*)
  7194. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7195. ;;
  7196. *::*)
  7197. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7198. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7199. ;;
  7200. *)
  7201. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7202. ;;
  7203. esac
  7204. }
  7205. ac_header= ac_cache=
  7206. for ac_item in $ac_header_c_list
  7207. do
  7208. if test $ac_cache; then
  7209. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7210. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7211. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7212. fi
  7213. ac_header= ac_cache=
  7214. elif test $ac_header; then
  7215. ac_cache=$ac_item
  7216. else
  7217. ac_header=$ac_item
  7218. fi
  7219. done
  7220. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7221. then :
  7222. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7223. fi
  7224. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7225. "
  7226. if test "x$ac_cv_header_dlfcn_h" = xyes
  7227. then :
  7228. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7229. fi
  7230. # Set options
  7231. enable_win32_dll=yes
  7232. case $host in
  7233. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7234. if test -n "$ac_tool_prefix"; then
  7235. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7236. set dummy ${ac_tool_prefix}as; ac_word=$2
  7237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7238. printf %s "checking for $ac_word... " >&6; }
  7239. if test ${ac_cv_prog_AS+y}
  7240. then :
  7241. printf %s "(cached) " >&6
  7242. else $as_nop
  7243. if test -n "$AS"; then
  7244. ac_cv_prog_AS="$AS" # Let the user override the test.
  7245. else
  7246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7247. for as_dir in $PATH
  7248. do
  7249. IFS=$as_save_IFS
  7250. case $as_dir in #(((
  7251. '') as_dir=./ ;;
  7252. */) ;;
  7253. *) as_dir=$as_dir/ ;;
  7254. esac
  7255. for ac_exec_ext in '' $ac_executable_extensions; do
  7256. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7257. ac_cv_prog_AS="${ac_tool_prefix}as"
  7258. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7259. break 2
  7260. fi
  7261. done
  7262. done
  7263. IFS=$as_save_IFS
  7264. fi
  7265. fi
  7266. AS=$ac_cv_prog_AS
  7267. if test -n "$AS"; then
  7268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7269. printf "%s\n" "$AS" >&6; }
  7270. else
  7271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7272. printf "%s\n" "no" >&6; }
  7273. fi
  7274. fi
  7275. if test -z "$ac_cv_prog_AS"; then
  7276. ac_ct_AS=$AS
  7277. # Extract the first word of "as", so it can be a program name with args.
  7278. set dummy as; ac_word=$2
  7279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7280. printf %s "checking for $ac_word... " >&6; }
  7281. if test ${ac_cv_prog_ac_ct_AS+y}
  7282. then :
  7283. printf %s "(cached) " >&6
  7284. else $as_nop
  7285. if test -n "$ac_ct_AS"; then
  7286. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7287. else
  7288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7289. for as_dir in $PATH
  7290. do
  7291. IFS=$as_save_IFS
  7292. case $as_dir in #(((
  7293. '') as_dir=./ ;;
  7294. */) ;;
  7295. *) as_dir=$as_dir/ ;;
  7296. esac
  7297. for ac_exec_ext in '' $ac_executable_extensions; do
  7298. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7299. ac_cv_prog_ac_ct_AS="as"
  7300. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7301. break 2
  7302. fi
  7303. done
  7304. done
  7305. IFS=$as_save_IFS
  7306. fi
  7307. fi
  7308. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7309. if test -n "$ac_ct_AS"; then
  7310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7311. printf "%s\n" "$ac_ct_AS" >&6; }
  7312. else
  7313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7314. printf "%s\n" "no" >&6; }
  7315. fi
  7316. if test "x$ac_ct_AS" = x; then
  7317. AS="false"
  7318. else
  7319. case $cross_compiling:$ac_tool_warned in
  7320. yes:)
  7321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7322. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7323. ac_tool_warned=yes ;;
  7324. esac
  7325. AS=$ac_ct_AS
  7326. fi
  7327. else
  7328. AS="$ac_cv_prog_AS"
  7329. fi
  7330. if test -n "$ac_tool_prefix"; then
  7331. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7332. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7334. printf %s "checking for $ac_word... " >&6; }
  7335. if test ${ac_cv_prog_DLLTOOL+y}
  7336. then :
  7337. printf %s "(cached) " >&6
  7338. else $as_nop
  7339. if test -n "$DLLTOOL"; then
  7340. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7341. else
  7342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7343. for as_dir in $PATH
  7344. do
  7345. IFS=$as_save_IFS
  7346. case $as_dir in #(((
  7347. '') as_dir=./ ;;
  7348. */) ;;
  7349. *) as_dir=$as_dir/ ;;
  7350. esac
  7351. for ac_exec_ext in '' $ac_executable_extensions; do
  7352. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7353. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7354. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7355. break 2
  7356. fi
  7357. done
  7358. done
  7359. IFS=$as_save_IFS
  7360. fi
  7361. fi
  7362. DLLTOOL=$ac_cv_prog_DLLTOOL
  7363. if test -n "$DLLTOOL"; then
  7364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7365. printf "%s\n" "$DLLTOOL" >&6; }
  7366. else
  7367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7368. printf "%s\n" "no" >&6; }
  7369. fi
  7370. fi
  7371. if test -z "$ac_cv_prog_DLLTOOL"; then
  7372. ac_ct_DLLTOOL=$DLLTOOL
  7373. # Extract the first word of "dlltool", so it can be a program name with args.
  7374. set dummy dlltool; ac_word=$2
  7375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7376. printf %s "checking for $ac_word... " >&6; }
  7377. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7378. then :
  7379. printf %s "(cached) " >&6
  7380. else $as_nop
  7381. if test -n "$ac_ct_DLLTOOL"; then
  7382. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7383. else
  7384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7385. for as_dir in $PATH
  7386. do
  7387. IFS=$as_save_IFS
  7388. case $as_dir in #(((
  7389. '') as_dir=./ ;;
  7390. */) ;;
  7391. *) as_dir=$as_dir/ ;;
  7392. esac
  7393. for ac_exec_ext in '' $ac_executable_extensions; do
  7394. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7395. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7396. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7397. break 2
  7398. fi
  7399. done
  7400. done
  7401. IFS=$as_save_IFS
  7402. fi
  7403. fi
  7404. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7405. if test -n "$ac_ct_DLLTOOL"; then
  7406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7407. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7408. else
  7409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7410. printf "%s\n" "no" >&6; }
  7411. fi
  7412. if test "x$ac_ct_DLLTOOL" = x; then
  7413. DLLTOOL="false"
  7414. else
  7415. case $cross_compiling:$ac_tool_warned in
  7416. yes:)
  7417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7418. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7419. ac_tool_warned=yes ;;
  7420. esac
  7421. DLLTOOL=$ac_ct_DLLTOOL
  7422. fi
  7423. else
  7424. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7425. fi
  7426. if test -n "$ac_tool_prefix"; then
  7427. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7428. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7430. printf %s "checking for $ac_word... " >&6; }
  7431. if test ${ac_cv_prog_OBJDUMP+y}
  7432. then :
  7433. printf %s "(cached) " >&6
  7434. else $as_nop
  7435. if test -n "$OBJDUMP"; then
  7436. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7437. else
  7438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7439. for as_dir in $PATH
  7440. do
  7441. IFS=$as_save_IFS
  7442. case $as_dir in #(((
  7443. '') as_dir=./ ;;
  7444. */) ;;
  7445. *) as_dir=$as_dir/ ;;
  7446. esac
  7447. for ac_exec_ext in '' $ac_executable_extensions; do
  7448. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7449. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7450. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7451. break 2
  7452. fi
  7453. done
  7454. done
  7455. IFS=$as_save_IFS
  7456. fi
  7457. fi
  7458. OBJDUMP=$ac_cv_prog_OBJDUMP
  7459. if test -n "$OBJDUMP"; then
  7460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7461. printf "%s\n" "$OBJDUMP" >&6; }
  7462. else
  7463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7464. printf "%s\n" "no" >&6; }
  7465. fi
  7466. fi
  7467. if test -z "$ac_cv_prog_OBJDUMP"; then
  7468. ac_ct_OBJDUMP=$OBJDUMP
  7469. # Extract the first word of "objdump", so it can be a program name with args.
  7470. set dummy objdump; ac_word=$2
  7471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7472. printf %s "checking for $ac_word... " >&6; }
  7473. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7474. then :
  7475. printf %s "(cached) " >&6
  7476. else $as_nop
  7477. if test -n "$ac_ct_OBJDUMP"; then
  7478. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7479. else
  7480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7481. for as_dir in $PATH
  7482. do
  7483. IFS=$as_save_IFS
  7484. case $as_dir in #(((
  7485. '') as_dir=./ ;;
  7486. */) ;;
  7487. *) as_dir=$as_dir/ ;;
  7488. esac
  7489. for ac_exec_ext in '' $ac_executable_extensions; do
  7490. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7491. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7492. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7493. break 2
  7494. fi
  7495. done
  7496. done
  7497. IFS=$as_save_IFS
  7498. fi
  7499. fi
  7500. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7501. if test -n "$ac_ct_OBJDUMP"; then
  7502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7503. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7504. else
  7505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7506. printf "%s\n" "no" >&6; }
  7507. fi
  7508. if test "x$ac_ct_OBJDUMP" = x; then
  7509. OBJDUMP="false"
  7510. else
  7511. case $cross_compiling:$ac_tool_warned in
  7512. yes:)
  7513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7514. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7515. ac_tool_warned=yes ;;
  7516. esac
  7517. OBJDUMP=$ac_ct_OBJDUMP
  7518. fi
  7519. else
  7520. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7521. fi
  7522. ;;
  7523. esac
  7524. test -z "$AS" && AS=as
  7525. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7526. test -z "$OBJDUMP" && OBJDUMP=objdump
  7527. enable_dlopen=no
  7528. # Check whether --enable-shared was given.
  7529. if test ${enable_shared+y}
  7530. then :
  7531. enableval=$enable_shared; p=${PACKAGE-default}
  7532. case $enableval in
  7533. yes) enable_shared=yes ;;
  7534. no) enable_shared=no ;;
  7535. *)
  7536. enable_shared=no
  7537. # Look at the argument we got. We use all the common list separators.
  7538. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7539. for pkg in $enableval; do
  7540. IFS=$lt_save_ifs
  7541. if test "X$pkg" = "X$p"; then
  7542. enable_shared=yes
  7543. fi
  7544. done
  7545. IFS=$lt_save_ifs
  7546. ;;
  7547. esac
  7548. else $as_nop
  7549. enable_shared=yes
  7550. fi
  7551. # Check whether --enable-static was given.
  7552. if test ${enable_static+y}
  7553. then :
  7554. enableval=$enable_static; p=${PACKAGE-default}
  7555. case $enableval in
  7556. yes) enable_static=yes ;;
  7557. no) enable_static=no ;;
  7558. *)
  7559. enable_static=no
  7560. # Look at the argument we got. We use all the common list separators.
  7561. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7562. for pkg in $enableval; do
  7563. IFS=$lt_save_ifs
  7564. if test "X$pkg" = "X$p"; then
  7565. enable_static=yes
  7566. fi
  7567. done
  7568. IFS=$lt_save_ifs
  7569. ;;
  7570. esac
  7571. else $as_nop
  7572. enable_static=yes
  7573. fi
  7574. # Check whether --with-pic was given.
  7575. if test ${with_pic+y}
  7576. then :
  7577. withval=$with_pic; lt_p=${PACKAGE-default}
  7578. case $withval in
  7579. yes|no) pic_mode=$withval ;;
  7580. *)
  7581. pic_mode=default
  7582. # Look at the argument we got. We use all the common list separators.
  7583. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7584. for lt_pkg in $withval; do
  7585. IFS=$lt_save_ifs
  7586. if test "X$lt_pkg" = "X$lt_p"; then
  7587. pic_mode=yes
  7588. fi
  7589. done
  7590. IFS=$lt_save_ifs
  7591. ;;
  7592. esac
  7593. else $as_nop
  7594. pic_mode=default
  7595. fi
  7596. # Check whether --enable-fast-install was given.
  7597. if test ${enable_fast_install+y}
  7598. then :
  7599. enableval=$enable_fast_install; p=${PACKAGE-default}
  7600. case $enableval in
  7601. yes) enable_fast_install=yes ;;
  7602. no) enable_fast_install=no ;;
  7603. *)
  7604. enable_fast_install=no
  7605. # Look at the argument we got. We use all the common list separators.
  7606. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7607. for pkg in $enableval; do
  7608. IFS=$lt_save_ifs
  7609. if test "X$pkg" = "X$p"; then
  7610. enable_fast_install=yes
  7611. fi
  7612. done
  7613. IFS=$lt_save_ifs
  7614. ;;
  7615. esac
  7616. else $as_nop
  7617. enable_fast_install=yes
  7618. fi
  7619. shared_archive_member_spec=
  7620. case $host,$enable_shared in
  7621. power*-*-aix[5-9]*,yes)
  7622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7623. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7624. # Check whether --with-aix-soname was given.
  7625. if test ${with_aix_soname+y}
  7626. then :
  7627. withval=$with_aix_soname; case $withval in
  7628. aix|svr4|both)
  7629. ;;
  7630. *)
  7631. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7632. ;;
  7633. esac
  7634. lt_cv_with_aix_soname=$with_aix_soname
  7635. else $as_nop
  7636. if test ${lt_cv_with_aix_soname+y}
  7637. then :
  7638. printf %s "(cached) " >&6
  7639. else $as_nop
  7640. lt_cv_with_aix_soname=aix
  7641. fi
  7642. with_aix_soname=$lt_cv_with_aix_soname
  7643. fi
  7644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7645. printf "%s\n" "$with_aix_soname" >&6; }
  7646. if test aix != "$with_aix_soname"; then
  7647. # For the AIX way of multilib, we name the shared archive member
  7648. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7649. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7650. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7651. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7652. if test 64 = "${OBJECT_MODE-32}"; then
  7653. shared_archive_member_spec=shr_64
  7654. else
  7655. shared_archive_member_spec=shr
  7656. fi
  7657. fi
  7658. ;;
  7659. *)
  7660. with_aix_soname=aix
  7661. ;;
  7662. esac
  7663. # This can be used to rebuild libtool when needed
  7664. LIBTOOL_DEPS=$ltmain
  7665. # Always use our own libtool.
  7666. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7667. test -z "$LN_S" && LN_S="ln -s"
  7668. if test -n "${ZSH_VERSION+set}"; then
  7669. setopt NO_GLOB_SUBST
  7670. fi
  7671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7672. printf %s "checking for objdir... " >&6; }
  7673. if test ${lt_cv_objdir+y}
  7674. then :
  7675. printf %s "(cached) " >&6
  7676. else $as_nop
  7677. rm -f .libs 2>/dev/null
  7678. mkdir .libs 2>/dev/null
  7679. if test -d .libs; then
  7680. lt_cv_objdir=.libs
  7681. else
  7682. # MS-DOS does not allow filenames that begin with a dot.
  7683. lt_cv_objdir=_libs
  7684. fi
  7685. rmdir .libs 2>/dev/null
  7686. fi
  7687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7688. printf "%s\n" "$lt_cv_objdir" >&6; }
  7689. objdir=$lt_cv_objdir
  7690. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7691. case $host_os in
  7692. aix3*)
  7693. # AIX sometimes has problems with the GCC collect2 program. For some
  7694. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7695. # vanish in a puff of smoke.
  7696. if test set != "${COLLECT_NAMES+set}"; then
  7697. COLLECT_NAMES=
  7698. export COLLECT_NAMES
  7699. fi
  7700. ;;
  7701. esac
  7702. # Global variables:
  7703. ofile=libtool
  7704. can_build_shared=yes
  7705. # All known linkers require a '.a' archive for static linking (except MSVC,
  7706. # which needs '.lib').
  7707. libext=a
  7708. with_gnu_ld=$lt_cv_prog_gnu_ld
  7709. old_CC=$CC
  7710. old_CFLAGS=$CFLAGS
  7711. # Set sane defaults for various variables
  7712. test -z "$CC" && CC=cc
  7713. test -z "$LTCC" && LTCC=$CC
  7714. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7715. test -z "$LD" && LD=ld
  7716. test -z "$ac_objext" && ac_objext=o
  7717. func_cc_basename $compiler
  7718. cc_basename=$func_cc_basename_result
  7719. # Only perform the check for file, if the check method requires it
  7720. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7721. case $deplibs_check_method in
  7722. file_magic*)
  7723. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7725. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7726. if test ${lt_cv_path_MAGIC_CMD+y}
  7727. then :
  7728. printf %s "(cached) " >&6
  7729. else $as_nop
  7730. case $MAGIC_CMD in
  7731. [\\/*] | ?:[\\/]*)
  7732. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7733. ;;
  7734. *)
  7735. lt_save_MAGIC_CMD=$MAGIC_CMD
  7736. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7737. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7738. for ac_dir in $ac_dummy; do
  7739. IFS=$lt_save_ifs
  7740. test -z "$ac_dir" && ac_dir=.
  7741. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7742. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7743. if test -n "$file_magic_test_file"; then
  7744. case $deplibs_check_method in
  7745. "file_magic "*)
  7746. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7747. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7748. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7749. $EGREP "$file_magic_regex" > /dev/null; then
  7750. :
  7751. else
  7752. cat <<_LT_EOF 1>&2
  7753. *** Warning: the command libtool uses to detect shared libraries,
  7754. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7755. *** The result is that libtool may fail to recognize shared libraries
  7756. *** as such. This will affect the creation of libtool libraries that
  7757. *** depend on shared libraries, but programs linked with such libtool
  7758. *** libraries will work regardless of this problem. Nevertheless, you
  7759. *** may want to report the problem to your system manager and/or to
  7760. *** bug-libtool@gnu.org
  7761. _LT_EOF
  7762. fi ;;
  7763. esac
  7764. fi
  7765. break
  7766. fi
  7767. done
  7768. IFS=$lt_save_ifs
  7769. MAGIC_CMD=$lt_save_MAGIC_CMD
  7770. ;;
  7771. esac
  7772. fi
  7773. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7774. if test -n "$MAGIC_CMD"; then
  7775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7776. printf "%s\n" "$MAGIC_CMD" >&6; }
  7777. else
  7778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7779. printf "%s\n" "no" >&6; }
  7780. fi
  7781. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7782. if test -n "$ac_tool_prefix"; then
  7783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7784. printf %s "checking for file... " >&6; }
  7785. if test ${lt_cv_path_MAGIC_CMD+y}
  7786. then :
  7787. printf %s "(cached) " >&6
  7788. else $as_nop
  7789. case $MAGIC_CMD in
  7790. [\\/*] | ?:[\\/]*)
  7791. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7792. ;;
  7793. *)
  7794. lt_save_MAGIC_CMD=$MAGIC_CMD
  7795. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7796. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7797. for ac_dir in $ac_dummy; do
  7798. IFS=$lt_save_ifs
  7799. test -z "$ac_dir" && ac_dir=.
  7800. if test -f "$ac_dir/file"; then
  7801. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7802. if test -n "$file_magic_test_file"; then
  7803. case $deplibs_check_method in
  7804. "file_magic "*)
  7805. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7806. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7807. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7808. $EGREP "$file_magic_regex" > /dev/null; then
  7809. :
  7810. else
  7811. cat <<_LT_EOF 1>&2
  7812. *** Warning: the command libtool uses to detect shared libraries,
  7813. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7814. *** The result is that libtool may fail to recognize shared libraries
  7815. *** as such. This will affect the creation of libtool libraries that
  7816. *** depend on shared libraries, but programs linked with such libtool
  7817. *** libraries will work regardless of this problem. Nevertheless, you
  7818. *** may want to report the problem to your system manager and/or to
  7819. *** bug-libtool@gnu.org
  7820. _LT_EOF
  7821. fi ;;
  7822. esac
  7823. fi
  7824. break
  7825. fi
  7826. done
  7827. IFS=$lt_save_ifs
  7828. MAGIC_CMD=$lt_save_MAGIC_CMD
  7829. ;;
  7830. esac
  7831. fi
  7832. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7833. if test -n "$MAGIC_CMD"; then
  7834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7835. printf "%s\n" "$MAGIC_CMD" >&6; }
  7836. else
  7837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7838. printf "%s\n" "no" >&6; }
  7839. fi
  7840. else
  7841. MAGIC_CMD=:
  7842. fi
  7843. fi
  7844. fi
  7845. ;;
  7846. esac
  7847. # Use C for the default configuration in the libtool script
  7848. lt_save_CC=$CC
  7849. ac_ext=c
  7850. ac_cpp='$CPP $CPPFLAGS'
  7851. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7852. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7853. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7854. # Source file extension for C test sources.
  7855. ac_ext=c
  7856. # Object file extension for compiled C test sources.
  7857. objext=o
  7858. objext=$objext
  7859. # Code to be used in simple compile tests
  7860. lt_simple_compile_test_code="int some_variable = 0;"
  7861. # Code to be used in simple link tests
  7862. lt_simple_link_test_code='int main(){return(0);}'
  7863. # If no C compiler was specified, use CC.
  7864. LTCC=${LTCC-"$CC"}
  7865. # If no C compiler flags were specified, use CFLAGS.
  7866. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7867. # Allow CC to be a program name with arguments.
  7868. compiler=$CC
  7869. # Save the default compiler, since it gets overwritten when the other
  7870. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7871. compiler_DEFAULT=$CC
  7872. # save warnings/boilerplate of simple test code
  7873. ac_outfile=conftest.$ac_objext
  7874. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7875. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7876. _lt_compiler_boilerplate=`cat conftest.err`
  7877. $RM conftest*
  7878. ac_outfile=conftest.$ac_objext
  7879. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7880. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7881. _lt_linker_boilerplate=`cat conftest.err`
  7882. $RM -r conftest*
  7883. ## CAVEAT EMPTOR:
  7884. ## There is no encapsulation within the following macros, do not change
  7885. ## the running order or otherwise move them around unless you know exactly
  7886. ## what you are doing...
  7887. if test -n "$compiler"; then
  7888. lt_prog_compiler_no_builtin_flag=
  7889. if test yes = "$GCC"; then
  7890. case $cc_basename in
  7891. nvcc*)
  7892. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7893. *)
  7894. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7895. esac
  7896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7897. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7898. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7899. then :
  7900. printf %s "(cached) " >&6
  7901. else $as_nop
  7902. lt_cv_prog_compiler_rtti_exceptions=no
  7903. ac_outfile=conftest.$ac_objext
  7904. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7905. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7906. # Insert the option either (1) after the last *FLAGS variable, or
  7907. # (2) before a word containing "conftest.", or (3) at the end.
  7908. # Note that $ac_compile itself does not contain backslashes and begins
  7909. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7910. # The option is referenced via a variable to avoid confusing sed.
  7911. lt_compile=`echo "$ac_compile" | $SED \
  7912. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7913. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7914. -e 's:$: $lt_compiler_flag:'`
  7915. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7916. (eval "$lt_compile" 2>conftest.err)
  7917. ac_status=$?
  7918. cat conftest.err >&5
  7919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7920. if (exit $ac_status) && test -s "$ac_outfile"; then
  7921. # The compiler can only warn and ignore the option if not recognized
  7922. # So say no if there are warnings other than the usual output.
  7923. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7924. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7925. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7926. lt_cv_prog_compiler_rtti_exceptions=yes
  7927. fi
  7928. fi
  7929. $RM conftest*
  7930. fi
  7931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7932. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7933. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7934. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7935. else
  7936. :
  7937. fi
  7938. fi
  7939. lt_prog_compiler_wl=
  7940. lt_prog_compiler_pic=
  7941. lt_prog_compiler_static=
  7942. if test yes = "$GCC"; then
  7943. lt_prog_compiler_wl='-Wl,'
  7944. lt_prog_compiler_static='-static'
  7945. case $host_os in
  7946. aix*)
  7947. # All AIX code is PIC.
  7948. if test ia64 = "$host_cpu"; then
  7949. # AIX 5 now supports IA64 processor
  7950. lt_prog_compiler_static='-Bstatic'
  7951. fi
  7952. lt_prog_compiler_pic='-fPIC'
  7953. ;;
  7954. amigaos*)
  7955. case $host_cpu in
  7956. powerpc)
  7957. # see comment about AmigaOS4 .so support
  7958. lt_prog_compiler_pic='-fPIC'
  7959. ;;
  7960. m68k)
  7961. # FIXME: we need at least 68020 code to build shared libraries, but
  7962. # adding the '-m68020' flag to GCC prevents building anything better,
  7963. # like '-m68040'.
  7964. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7965. ;;
  7966. esac
  7967. ;;
  7968. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7969. # PIC is the default for these OSes.
  7970. ;;
  7971. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7972. # This hack is so that the source file can tell whether it is being
  7973. # built for inclusion in a dll (and should export symbols for example).
  7974. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7975. # (--disable-auto-import) libraries
  7976. lt_prog_compiler_pic='-DDLL_EXPORT'
  7977. case $host_os in
  7978. os2*)
  7979. lt_prog_compiler_static='$wl-static'
  7980. ;;
  7981. esac
  7982. ;;
  7983. darwin* | rhapsody*)
  7984. # PIC is the default on this platform
  7985. # Common symbols not allowed in MH_DYLIB files
  7986. lt_prog_compiler_pic='-fno-common'
  7987. ;;
  7988. haiku*)
  7989. # PIC is the default for Haiku.
  7990. # The "-static" flag exists, but is broken.
  7991. lt_prog_compiler_static=
  7992. ;;
  7993. hpux*)
  7994. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7995. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7996. # sets the default TLS model and affects inlining.
  7997. case $host_cpu in
  7998. hppa*64*)
  7999. # +Z the default
  8000. ;;
  8001. *)
  8002. lt_prog_compiler_pic='-fPIC'
  8003. ;;
  8004. esac
  8005. ;;
  8006. interix[3-9]*)
  8007. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8008. # Instead, we relocate shared libraries at runtime.
  8009. ;;
  8010. msdosdjgpp*)
  8011. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8012. # on systems that don't support them.
  8013. lt_prog_compiler_can_build_shared=no
  8014. enable_shared=no
  8015. ;;
  8016. *nto* | *qnx*)
  8017. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8018. # it will coredump.
  8019. lt_prog_compiler_pic='-fPIC -shared'
  8020. ;;
  8021. sysv4*MP*)
  8022. if test -d /usr/nec; then
  8023. lt_prog_compiler_pic=-Kconform_pic
  8024. fi
  8025. ;;
  8026. *)
  8027. lt_prog_compiler_pic='-fPIC'
  8028. ;;
  8029. esac
  8030. case $cc_basename in
  8031. nvcc*) # Cuda Compiler Driver 2.2
  8032. lt_prog_compiler_wl='-Xlinker '
  8033. if test -n "$lt_prog_compiler_pic"; then
  8034. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8035. fi
  8036. ;;
  8037. esac
  8038. else
  8039. # PORTME Check for flag to pass linker flags through the system compiler.
  8040. case $host_os in
  8041. aix*)
  8042. lt_prog_compiler_wl='-Wl,'
  8043. if test ia64 = "$host_cpu"; then
  8044. # AIX 5 now supports IA64 processor
  8045. lt_prog_compiler_static='-Bstatic'
  8046. else
  8047. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8048. fi
  8049. ;;
  8050. darwin* | rhapsody*)
  8051. # PIC is the default on this platform
  8052. # Common symbols not allowed in MH_DYLIB files
  8053. lt_prog_compiler_pic='-fno-common'
  8054. case $cc_basename in
  8055. nagfor*)
  8056. # NAG Fortran compiler
  8057. lt_prog_compiler_wl='-Wl,-Wl,,'
  8058. lt_prog_compiler_pic='-PIC'
  8059. lt_prog_compiler_static='-Bstatic'
  8060. ;;
  8061. esac
  8062. ;;
  8063. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8064. # This hack is so that the source file can tell whether it is being
  8065. # built for inclusion in a dll (and should export symbols for example).
  8066. lt_prog_compiler_pic='-DDLL_EXPORT'
  8067. case $host_os in
  8068. os2*)
  8069. lt_prog_compiler_static='$wl-static'
  8070. ;;
  8071. esac
  8072. ;;
  8073. hpux9* | hpux10* | hpux11*)
  8074. lt_prog_compiler_wl='-Wl,'
  8075. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8076. # not for PA HP-UX.
  8077. case $host_cpu in
  8078. hppa*64*|ia64*)
  8079. # +Z the default
  8080. ;;
  8081. *)
  8082. lt_prog_compiler_pic='+Z'
  8083. ;;
  8084. esac
  8085. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8086. lt_prog_compiler_static='$wl-a ${wl}archive'
  8087. ;;
  8088. irix5* | irix6* | nonstopux*)
  8089. lt_prog_compiler_wl='-Wl,'
  8090. # PIC (with -KPIC) is the default.
  8091. lt_prog_compiler_static='-non_shared'
  8092. ;;
  8093. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8094. case $cc_basename in
  8095. # old Intel for x86_64, which still supported -KPIC.
  8096. ecc*)
  8097. lt_prog_compiler_wl='-Wl,'
  8098. lt_prog_compiler_pic='-KPIC'
  8099. lt_prog_compiler_static='-static'
  8100. ;;
  8101. # icc used to be incompatible with GCC.
  8102. # ICC 10 doesn't accept -KPIC any more.
  8103. icc* | ifort*)
  8104. lt_prog_compiler_wl='-Wl,'
  8105. lt_prog_compiler_pic='-fPIC'
  8106. lt_prog_compiler_static='-static'
  8107. ;;
  8108. # Lahey Fortran 8.1.
  8109. lf95*)
  8110. lt_prog_compiler_wl='-Wl,'
  8111. lt_prog_compiler_pic='--shared'
  8112. lt_prog_compiler_static='--static'
  8113. ;;
  8114. nagfor*)
  8115. # NAG Fortran compiler
  8116. lt_prog_compiler_wl='-Wl,-Wl,,'
  8117. lt_prog_compiler_pic='-PIC'
  8118. lt_prog_compiler_static='-Bstatic'
  8119. ;;
  8120. tcc*)
  8121. # Fabrice Bellard et al's Tiny C Compiler
  8122. lt_prog_compiler_wl='-Wl,'
  8123. lt_prog_compiler_pic='-fPIC'
  8124. lt_prog_compiler_static='-static'
  8125. ;;
  8126. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8127. # Portland Group compilers (*not* the Pentium gcc compiler,
  8128. # which looks to be a dead project)
  8129. lt_prog_compiler_wl='-Wl,'
  8130. lt_prog_compiler_pic='-fpic'
  8131. lt_prog_compiler_static='-Bstatic'
  8132. ;;
  8133. ccc*)
  8134. lt_prog_compiler_wl='-Wl,'
  8135. # All Alpha code is PIC.
  8136. lt_prog_compiler_static='-non_shared'
  8137. ;;
  8138. xl* | bgxl* | bgf* | mpixl*)
  8139. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8140. lt_prog_compiler_wl='-Wl,'
  8141. lt_prog_compiler_pic='-qpic'
  8142. lt_prog_compiler_static='-qstaticlink'
  8143. ;;
  8144. *)
  8145. case `$CC -V 2>&1 | sed 5q` in
  8146. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8147. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8148. lt_prog_compiler_pic='-KPIC'
  8149. lt_prog_compiler_static='-Bstatic'
  8150. lt_prog_compiler_wl=''
  8151. ;;
  8152. *Sun\ F* | *Sun*Fortran*)
  8153. lt_prog_compiler_pic='-KPIC'
  8154. lt_prog_compiler_static='-Bstatic'
  8155. lt_prog_compiler_wl='-Qoption ld '
  8156. ;;
  8157. *Sun\ C*)
  8158. # Sun C 5.9
  8159. lt_prog_compiler_pic='-KPIC'
  8160. lt_prog_compiler_static='-Bstatic'
  8161. lt_prog_compiler_wl='-Wl,'
  8162. ;;
  8163. *Intel*\ [CF]*Compiler*)
  8164. lt_prog_compiler_wl='-Wl,'
  8165. lt_prog_compiler_pic='-fPIC'
  8166. lt_prog_compiler_static='-static'
  8167. ;;
  8168. *Portland\ Group*)
  8169. lt_prog_compiler_wl='-Wl,'
  8170. lt_prog_compiler_pic='-fpic'
  8171. lt_prog_compiler_static='-Bstatic'
  8172. ;;
  8173. esac
  8174. ;;
  8175. esac
  8176. ;;
  8177. newsos6)
  8178. lt_prog_compiler_pic='-KPIC'
  8179. lt_prog_compiler_static='-Bstatic'
  8180. ;;
  8181. *nto* | *qnx*)
  8182. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8183. # it will coredump.
  8184. lt_prog_compiler_pic='-fPIC -shared'
  8185. ;;
  8186. osf3* | osf4* | osf5*)
  8187. lt_prog_compiler_wl='-Wl,'
  8188. # All OSF/1 code is PIC.
  8189. lt_prog_compiler_static='-non_shared'
  8190. ;;
  8191. rdos*)
  8192. lt_prog_compiler_static='-non_shared'
  8193. ;;
  8194. solaris*)
  8195. lt_prog_compiler_pic='-KPIC'
  8196. lt_prog_compiler_static='-Bstatic'
  8197. case $cc_basename in
  8198. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8199. lt_prog_compiler_wl='-Qoption ld ';;
  8200. *)
  8201. lt_prog_compiler_wl='-Wl,';;
  8202. esac
  8203. ;;
  8204. sunos4*)
  8205. lt_prog_compiler_wl='-Qoption ld '
  8206. lt_prog_compiler_pic='-PIC'
  8207. lt_prog_compiler_static='-Bstatic'
  8208. ;;
  8209. sysv4 | sysv4.2uw2* | sysv4.3*)
  8210. lt_prog_compiler_wl='-Wl,'
  8211. lt_prog_compiler_pic='-KPIC'
  8212. lt_prog_compiler_static='-Bstatic'
  8213. ;;
  8214. sysv4*MP*)
  8215. if test -d /usr/nec; then
  8216. lt_prog_compiler_pic='-Kconform_pic'
  8217. lt_prog_compiler_static='-Bstatic'
  8218. fi
  8219. ;;
  8220. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8221. lt_prog_compiler_wl='-Wl,'
  8222. lt_prog_compiler_pic='-KPIC'
  8223. lt_prog_compiler_static='-Bstatic'
  8224. ;;
  8225. unicos*)
  8226. lt_prog_compiler_wl='-Wl,'
  8227. lt_prog_compiler_can_build_shared=no
  8228. ;;
  8229. uts4*)
  8230. lt_prog_compiler_pic='-pic'
  8231. lt_prog_compiler_static='-Bstatic'
  8232. ;;
  8233. *)
  8234. lt_prog_compiler_can_build_shared=no
  8235. ;;
  8236. esac
  8237. fi
  8238. case $host_os in
  8239. # For platforms that do not support PIC, -DPIC is meaningless:
  8240. *djgpp*)
  8241. lt_prog_compiler_pic=
  8242. ;;
  8243. *)
  8244. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8245. ;;
  8246. esac
  8247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8248. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8249. if test ${lt_cv_prog_compiler_pic+y}
  8250. then :
  8251. printf %s "(cached) " >&6
  8252. else $as_nop
  8253. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8254. fi
  8255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8256. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8257. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8258. #
  8259. # Check to make sure the PIC flag actually works.
  8260. #
  8261. if test -n "$lt_prog_compiler_pic"; then
  8262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8263. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8264. if test ${lt_cv_prog_compiler_pic_works+y}
  8265. then :
  8266. printf %s "(cached) " >&6
  8267. else $as_nop
  8268. lt_cv_prog_compiler_pic_works=no
  8269. ac_outfile=conftest.$ac_objext
  8270. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8271. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8272. # Insert the option either (1) after the last *FLAGS variable, or
  8273. # (2) before a word containing "conftest.", or (3) at the end.
  8274. # Note that $ac_compile itself does not contain backslashes and begins
  8275. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8276. # The option is referenced via a variable to avoid confusing sed.
  8277. lt_compile=`echo "$ac_compile" | $SED \
  8278. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8279. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8280. -e 's:$: $lt_compiler_flag:'`
  8281. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8282. (eval "$lt_compile" 2>conftest.err)
  8283. ac_status=$?
  8284. cat conftest.err >&5
  8285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8286. if (exit $ac_status) && test -s "$ac_outfile"; then
  8287. # The compiler can only warn and ignore the option if not recognized
  8288. # So say no if there are warnings other than the usual output.
  8289. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8290. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8291. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8292. lt_cv_prog_compiler_pic_works=yes
  8293. fi
  8294. fi
  8295. $RM conftest*
  8296. fi
  8297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8298. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8299. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8300. case $lt_prog_compiler_pic in
  8301. "" | " "*) ;;
  8302. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8303. esac
  8304. else
  8305. lt_prog_compiler_pic=
  8306. lt_prog_compiler_can_build_shared=no
  8307. fi
  8308. fi
  8309. #
  8310. # Check to make sure the static flag actually works.
  8311. #
  8312. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8314. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8315. if test ${lt_cv_prog_compiler_static_works+y}
  8316. then :
  8317. printf %s "(cached) " >&6
  8318. else $as_nop
  8319. lt_cv_prog_compiler_static_works=no
  8320. save_LDFLAGS=$LDFLAGS
  8321. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8322. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8323. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8324. # The linker can only warn and ignore the option if not recognized
  8325. # So say no if there are warnings
  8326. if test -s conftest.err; then
  8327. # Append any errors to the config.log.
  8328. cat conftest.err 1>&5
  8329. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8330. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8331. if diff conftest.exp conftest.er2 >/dev/null; then
  8332. lt_cv_prog_compiler_static_works=yes
  8333. fi
  8334. else
  8335. lt_cv_prog_compiler_static_works=yes
  8336. fi
  8337. fi
  8338. $RM -r conftest*
  8339. LDFLAGS=$save_LDFLAGS
  8340. fi
  8341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8342. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8343. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8344. :
  8345. else
  8346. lt_prog_compiler_static=
  8347. fi
  8348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8349. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8350. if test ${lt_cv_prog_compiler_c_o+y}
  8351. then :
  8352. printf %s "(cached) " >&6
  8353. else $as_nop
  8354. lt_cv_prog_compiler_c_o=no
  8355. $RM -r conftest 2>/dev/null
  8356. mkdir conftest
  8357. cd conftest
  8358. mkdir out
  8359. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8360. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8361. # Insert the option either (1) after the last *FLAGS variable, or
  8362. # (2) before a word containing "conftest.", or (3) at the end.
  8363. # Note that $ac_compile itself does not contain backslashes and begins
  8364. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8365. lt_compile=`echo "$ac_compile" | $SED \
  8366. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8367. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8368. -e 's:$: $lt_compiler_flag:'`
  8369. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8370. (eval "$lt_compile" 2>out/conftest.err)
  8371. ac_status=$?
  8372. cat out/conftest.err >&5
  8373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8374. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8375. then
  8376. # The compiler can only warn and ignore the option if not recognized
  8377. # So say no if there are warnings
  8378. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8379. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8380. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8381. lt_cv_prog_compiler_c_o=yes
  8382. fi
  8383. fi
  8384. chmod u+w . 2>&5
  8385. $RM conftest*
  8386. # SGI C++ compiler will create directory out/ii_files/ for
  8387. # template instantiation
  8388. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8389. $RM out/* && rmdir out
  8390. cd ..
  8391. $RM -r conftest
  8392. $RM conftest*
  8393. fi
  8394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8395. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8397. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8398. if test ${lt_cv_prog_compiler_c_o+y}
  8399. then :
  8400. printf %s "(cached) " >&6
  8401. else $as_nop
  8402. lt_cv_prog_compiler_c_o=no
  8403. $RM -r conftest 2>/dev/null
  8404. mkdir conftest
  8405. cd conftest
  8406. mkdir out
  8407. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8408. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8409. # Insert the option either (1) after the last *FLAGS variable, or
  8410. # (2) before a word containing "conftest.", or (3) at the end.
  8411. # Note that $ac_compile itself does not contain backslashes and begins
  8412. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8413. lt_compile=`echo "$ac_compile" | $SED \
  8414. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8415. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8416. -e 's:$: $lt_compiler_flag:'`
  8417. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8418. (eval "$lt_compile" 2>out/conftest.err)
  8419. ac_status=$?
  8420. cat out/conftest.err >&5
  8421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8422. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8423. then
  8424. # The compiler can only warn and ignore the option if not recognized
  8425. # So say no if there are warnings
  8426. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8427. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8428. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8429. lt_cv_prog_compiler_c_o=yes
  8430. fi
  8431. fi
  8432. chmod u+w . 2>&5
  8433. $RM conftest*
  8434. # SGI C++ compiler will create directory out/ii_files/ for
  8435. # template instantiation
  8436. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8437. $RM out/* && rmdir out
  8438. cd ..
  8439. $RM -r conftest
  8440. $RM conftest*
  8441. fi
  8442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8443. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8444. hard_links=nottested
  8445. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8446. # do not overwrite the value of need_locks provided by the user
  8447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8448. printf %s "checking if we can lock with hard links... " >&6; }
  8449. hard_links=yes
  8450. $RM conftest*
  8451. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8452. touch conftest.a
  8453. ln conftest.a conftest.b 2>&5 || hard_links=no
  8454. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8456. printf "%s\n" "$hard_links" >&6; }
  8457. if test no = "$hard_links"; then
  8458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8459. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8460. need_locks=warn
  8461. fi
  8462. else
  8463. need_locks=no
  8464. fi
  8465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8466. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8467. runpath_var=
  8468. allow_undefined_flag=
  8469. always_export_symbols=no
  8470. archive_cmds=
  8471. archive_expsym_cmds=
  8472. compiler_needs_object=no
  8473. enable_shared_with_static_runtimes=no
  8474. export_dynamic_flag_spec=
  8475. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8476. hardcode_automatic=no
  8477. hardcode_direct=no
  8478. hardcode_direct_absolute=no
  8479. hardcode_libdir_flag_spec=
  8480. hardcode_libdir_separator=
  8481. hardcode_minus_L=no
  8482. hardcode_shlibpath_var=unsupported
  8483. inherit_rpath=no
  8484. link_all_deplibs=unknown
  8485. module_cmds=
  8486. module_expsym_cmds=
  8487. old_archive_from_new_cmds=
  8488. old_archive_from_expsyms_cmds=
  8489. thread_safe_flag_spec=
  8490. whole_archive_flag_spec=
  8491. # include_expsyms should be a list of space-separated symbols to be *always*
  8492. # included in the symbol list
  8493. include_expsyms=
  8494. # exclude_expsyms can be an extended regexp of symbols to exclude
  8495. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8496. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8497. # as well as any symbol that contains 'd'.
  8498. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8499. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8500. # platforms (ab)use it in PIC code, but their linkers get confused if
  8501. # the symbol is explicitly referenced. Since portable code cannot
  8502. # rely on this symbol name, it's probably fine to never include it in
  8503. # preloaded symbol tables.
  8504. # Exclude shared library initialization/finalization symbols.
  8505. extract_expsyms_cmds=
  8506. case $host_os in
  8507. cygwin* | mingw* | pw32* | cegcc*)
  8508. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8509. # When not using gcc, we currently assume that we are using
  8510. # Microsoft Visual C++.
  8511. if test yes != "$GCC"; then
  8512. with_gnu_ld=no
  8513. fi
  8514. ;;
  8515. interix*)
  8516. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8517. with_gnu_ld=yes
  8518. ;;
  8519. openbsd* | bitrig*)
  8520. with_gnu_ld=no
  8521. ;;
  8522. esac
  8523. ld_shlibs=yes
  8524. # On some targets, GNU ld is compatible enough with the native linker
  8525. # that we're better off using the native interface for both.
  8526. lt_use_gnu_ld_interface=no
  8527. if test yes = "$with_gnu_ld"; then
  8528. case $host_os in
  8529. aix*)
  8530. # The AIX port of GNU ld has always aspired to compatibility
  8531. # with the native linker. However, as the warning in the GNU ld
  8532. # block says, versions before 2.19.5* couldn't really create working
  8533. # shared libraries, regardless of the interface used.
  8534. case `$LD -v 2>&1` in
  8535. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8536. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8537. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8538. *)
  8539. lt_use_gnu_ld_interface=yes
  8540. ;;
  8541. esac
  8542. ;;
  8543. *)
  8544. lt_use_gnu_ld_interface=yes
  8545. ;;
  8546. esac
  8547. fi
  8548. if test yes = "$lt_use_gnu_ld_interface"; then
  8549. # If archive_cmds runs LD, not CC, wlarc should be empty
  8550. wlarc='$wl'
  8551. # Set some defaults for GNU ld with shared library support. These
  8552. # are reset later if shared libraries are not supported. Putting them
  8553. # here allows them to be overridden if necessary.
  8554. runpath_var=LD_RUN_PATH
  8555. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8556. export_dynamic_flag_spec='$wl--export-dynamic'
  8557. # ancient GNU ld didn't support --whole-archive et. al.
  8558. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8559. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8560. else
  8561. whole_archive_flag_spec=
  8562. fi
  8563. supports_anon_versioning=no
  8564. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8565. *GNU\ gold*) supports_anon_versioning=yes ;;
  8566. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8567. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8568. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8569. *\ 2.11.*) ;; # other 2.11 versions
  8570. *) supports_anon_versioning=yes ;;
  8571. esac
  8572. # See if GNU ld supports shared libraries.
  8573. case $host_os in
  8574. aix[3-9]*)
  8575. # On AIX/PPC, the GNU linker is very broken
  8576. if test ia64 != "$host_cpu"; then
  8577. ld_shlibs=no
  8578. cat <<_LT_EOF 1>&2
  8579. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8580. *** to be unable to reliably create shared libraries on AIX.
  8581. *** Therefore, libtool is disabling shared libraries support. If you
  8582. *** really care for shared libraries, you may want to install binutils
  8583. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8584. *** You will then need to restart the configuration process.
  8585. _LT_EOF
  8586. fi
  8587. ;;
  8588. amigaos*)
  8589. case $host_cpu in
  8590. powerpc)
  8591. # see comment about AmigaOS4 .so support
  8592. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8593. archive_expsym_cmds=''
  8594. ;;
  8595. m68k)
  8596. 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)'
  8597. hardcode_libdir_flag_spec='-L$libdir'
  8598. hardcode_minus_L=yes
  8599. ;;
  8600. esac
  8601. ;;
  8602. beos*)
  8603. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8604. allow_undefined_flag=unsupported
  8605. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8606. # support --undefined. This deserves some investigation. FIXME
  8607. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8608. else
  8609. ld_shlibs=no
  8610. fi
  8611. ;;
  8612. cygwin* | mingw* | pw32* | cegcc*)
  8613. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8614. # as there is no search path for DLLs.
  8615. hardcode_libdir_flag_spec='-L$libdir'
  8616. export_dynamic_flag_spec='$wl--export-all-symbols'
  8617. allow_undefined_flag=unsupported
  8618. always_export_symbols=no
  8619. enable_shared_with_static_runtimes=yes
  8620. 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'
  8621. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8622. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8623. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8624. # If the export-symbols file already is a .def file, use it as
  8625. # is; otherwise, prepend EXPORTS...
  8626. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8627. cp $export_symbols $output_objdir/$soname.def;
  8628. else
  8629. echo EXPORTS > $output_objdir/$soname.def;
  8630. cat $export_symbols >> $output_objdir/$soname.def;
  8631. fi~
  8632. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8633. else
  8634. ld_shlibs=no
  8635. fi
  8636. ;;
  8637. haiku*)
  8638. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8639. link_all_deplibs=yes
  8640. ;;
  8641. os2*)
  8642. hardcode_libdir_flag_spec='-L$libdir'
  8643. hardcode_minus_L=yes
  8644. allow_undefined_flag=unsupported
  8645. shrext_cmds=.dll
  8646. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8647. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8648. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8649. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8650. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8651. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8652. emximp -o $lib $output_objdir/$libname.def'
  8653. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8654. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8655. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8656. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8657. prefix_cmds="$SED"~
  8658. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8659. prefix_cmds="$prefix_cmds -e 1d";
  8660. fi~
  8661. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8662. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8663. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8664. emximp -o $lib $output_objdir/$libname.def'
  8665. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8666. enable_shared_with_static_runtimes=yes
  8667. file_list_spec='@'
  8668. ;;
  8669. interix[3-9]*)
  8670. hardcode_direct=no
  8671. hardcode_shlibpath_var=no
  8672. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8673. export_dynamic_flag_spec='$wl-E'
  8674. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8675. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8676. # default) and relocated if they conflict, which is a slow very memory
  8677. # consuming and fragmenting process. To avoid this, we pick a random,
  8678. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8679. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8680. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8681. 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'
  8682. ;;
  8683. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8684. tmp_diet=no
  8685. if test linux-dietlibc = "$host_os"; then
  8686. case $cc_basename in
  8687. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8688. esac
  8689. fi
  8690. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8691. && test no = "$tmp_diet"
  8692. then
  8693. tmp_addflag=' $pic_flag'
  8694. tmp_sharedflag='-shared'
  8695. case $cc_basename,$host_cpu in
  8696. pgcc*) # Portland Group C compiler
  8697. 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'
  8698. tmp_addflag=' $pic_flag'
  8699. ;;
  8700. pgf77* | pgf90* | pgf95* | pgfortran*)
  8701. # Portland Group f77 and f90 compilers
  8702. 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'
  8703. tmp_addflag=' $pic_flag -Mnomain' ;;
  8704. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8705. tmp_addflag=' -i_dynamic' ;;
  8706. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8707. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8708. ifc* | ifort*) # Intel Fortran compiler
  8709. tmp_addflag=' -nofor_main' ;;
  8710. lf95*) # Lahey Fortran 8.1
  8711. whole_archive_flag_spec=
  8712. tmp_sharedflag='--shared' ;;
  8713. nagfor*) # NAGFOR 5.3
  8714. tmp_sharedflag='-Wl,-shared' ;;
  8715. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8716. tmp_sharedflag='-qmkshrobj'
  8717. tmp_addflag= ;;
  8718. nvcc*) # Cuda Compiler Driver 2.2
  8719. 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'
  8720. compiler_needs_object=yes
  8721. ;;
  8722. esac
  8723. case `$CC -V 2>&1 | sed 5q` in
  8724. *Sun\ C*) # Sun C 5.9
  8725. 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'
  8726. compiler_needs_object=yes
  8727. tmp_sharedflag='-G' ;;
  8728. *Sun\ F*) # Sun Fortran 8.3
  8729. tmp_sharedflag='-G' ;;
  8730. esac
  8731. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8732. if test yes = "$supports_anon_versioning"; then
  8733. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8734. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8735. echo "local: *; };" >> $output_objdir/$libname.ver~
  8736. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8737. fi
  8738. case $cc_basename in
  8739. tcc*)
  8740. export_dynamic_flag_spec='-rdynamic'
  8741. ;;
  8742. xlf* | bgf* | bgxlf* | mpixlf*)
  8743. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8744. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8745. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8746. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8747. if test yes = "$supports_anon_versioning"; then
  8748. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8749. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8750. echo "local: *; };" >> $output_objdir/$libname.ver~
  8751. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8752. fi
  8753. ;;
  8754. esac
  8755. else
  8756. ld_shlibs=no
  8757. fi
  8758. ;;
  8759. netbsd*)
  8760. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8761. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8762. wlarc=
  8763. else
  8764. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8765. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8766. fi
  8767. ;;
  8768. solaris*)
  8769. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8770. ld_shlibs=no
  8771. cat <<_LT_EOF 1>&2
  8772. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8773. *** create shared libraries on Solaris systems. Therefore, libtool
  8774. *** is disabling shared libraries support. We urge you to upgrade GNU
  8775. *** binutils to release 2.9.1 or newer. Another option is to modify
  8776. *** your PATH or compiler configuration so that the native linker is
  8777. *** used, and then restart.
  8778. _LT_EOF
  8779. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8780. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8781. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8782. else
  8783. ld_shlibs=no
  8784. fi
  8785. ;;
  8786. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8787. case `$LD -v 2>&1` in
  8788. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8789. ld_shlibs=no
  8790. cat <<_LT_EOF 1>&2
  8791. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8792. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8793. *** is disabling shared libraries support. We urge you to upgrade GNU
  8794. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8795. *** your PATH or compiler configuration so that the native linker is
  8796. *** used, and then restart.
  8797. _LT_EOF
  8798. ;;
  8799. *)
  8800. # For security reasons, it is highly recommended that you always
  8801. # use absolute paths for naming shared libraries, and exclude the
  8802. # DT_RUNPATH tag from executables and libraries. But doing so
  8803. # requires that you compile everything twice, which is a pain.
  8804. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8805. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8806. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8807. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8808. else
  8809. ld_shlibs=no
  8810. fi
  8811. ;;
  8812. esac
  8813. ;;
  8814. sunos4*)
  8815. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8816. wlarc=
  8817. hardcode_direct=yes
  8818. hardcode_shlibpath_var=no
  8819. ;;
  8820. *)
  8821. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8822. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8823. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8824. else
  8825. ld_shlibs=no
  8826. fi
  8827. ;;
  8828. esac
  8829. if test no = "$ld_shlibs"; then
  8830. runpath_var=
  8831. hardcode_libdir_flag_spec=
  8832. export_dynamic_flag_spec=
  8833. whole_archive_flag_spec=
  8834. fi
  8835. else
  8836. # PORTME fill in a description of your system's linker (not GNU ld)
  8837. case $host_os in
  8838. aix3*)
  8839. allow_undefined_flag=unsupported
  8840. always_export_symbols=yes
  8841. 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'
  8842. # Note: this linker hardcodes the directories in LIBPATH if there
  8843. # are no directories specified by -L.
  8844. hardcode_minus_L=yes
  8845. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8846. # Neither direct hardcoding nor static linking is supported with a
  8847. # broken collect2.
  8848. hardcode_direct=unsupported
  8849. fi
  8850. ;;
  8851. aix[4-9]*)
  8852. if test ia64 = "$host_cpu"; then
  8853. # On IA64, the linker does run time linking by default, so we don't
  8854. # have to do anything special.
  8855. aix_use_runtimelinking=no
  8856. exp_sym_flag='-Bexport'
  8857. no_entry_flag=
  8858. else
  8859. # If we're using GNU nm, then we don't want the "-C" option.
  8860. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8861. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8862. # weak defined symbols like other global defined symbols, whereas
  8863. # GNU nm marks them as "W".
  8864. # While the 'weak' keyword is ignored in the Export File, we need
  8865. # it in the Import File for the 'aix-soname' feature, so we have
  8866. # to replace the "-B" option with "-P" for AIX nm.
  8867. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8868. 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'
  8869. else
  8870. 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'
  8871. fi
  8872. aix_use_runtimelinking=no
  8873. # Test if we are trying to use run time linking or normal
  8874. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8875. # have runtime linking enabled, and use it for executables.
  8876. # For shared libraries, we enable/disable runtime linking
  8877. # depending on the kind of the shared library created -
  8878. # when "with_aix_soname,aix_use_runtimelinking" is:
  8879. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8880. # "aix,yes" lib.so shared, rtl:yes, for executables
  8881. # lib.a static archive
  8882. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8883. # lib.a(lib.so.V) shared, rtl:no, for executables
  8884. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8885. # lib.a(lib.so.V) shared, rtl:no
  8886. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8887. # lib.a static archive
  8888. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8889. for ld_flag in $LDFLAGS; do
  8890. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8891. aix_use_runtimelinking=yes
  8892. break
  8893. fi
  8894. done
  8895. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8896. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8897. # so we don't have lib.a shared libs to link our executables.
  8898. # We have to force runtime linking in this case.
  8899. aix_use_runtimelinking=yes
  8900. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8901. fi
  8902. ;;
  8903. esac
  8904. exp_sym_flag='-bexport'
  8905. no_entry_flag='-bnoentry'
  8906. fi
  8907. # When large executables or shared objects are built, AIX ld can
  8908. # have problems creating the table of contents. If linking a library
  8909. # or program results in "error TOC overflow" add -mminimal-toc to
  8910. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8911. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8912. archive_cmds=''
  8913. hardcode_direct=yes
  8914. hardcode_direct_absolute=yes
  8915. hardcode_libdir_separator=':'
  8916. link_all_deplibs=yes
  8917. file_list_spec='$wl-f,'
  8918. case $with_aix_soname,$aix_use_runtimelinking in
  8919. aix,*) ;; # traditional, no import file
  8920. svr4,* | *,yes) # use import file
  8921. # The Import File defines what to hardcode.
  8922. hardcode_direct=no
  8923. hardcode_direct_absolute=no
  8924. ;;
  8925. esac
  8926. if test yes = "$GCC"; then
  8927. case $host_os in aix4.[012]|aix4.[012].*)
  8928. # We only want to do this on AIX 4.2 and lower, the check
  8929. # below for broken collect2 doesn't work under 4.3+
  8930. collect2name=`$CC -print-prog-name=collect2`
  8931. if test -f "$collect2name" &&
  8932. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8933. then
  8934. # We have reworked collect2
  8935. :
  8936. else
  8937. # We have old collect2
  8938. hardcode_direct=unsupported
  8939. # It fails to find uninstalled libraries when the uninstalled
  8940. # path is not listed in the libpath. Setting hardcode_minus_L
  8941. # to unsupported forces relinking
  8942. hardcode_minus_L=yes
  8943. hardcode_libdir_flag_spec='-L$libdir'
  8944. hardcode_libdir_separator=
  8945. fi
  8946. ;;
  8947. esac
  8948. shared_flag='-shared'
  8949. if test yes = "$aix_use_runtimelinking"; then
  8950. shared_flag="$shared_flag "'$wl-G'
  8951. fi
  8952. # Need to ensure runtime linking is disabled for the traditional
  8953. # shared library, or the linker may eventually find shared libraries
  8954. # /with/ Import File - we do not want to mix them.
  8955. shared_flag_aix='-shared'
  8956. shared_flag_svr4='-shared $wl-G'
  8957. else
  8958. # not using gcc
  8959. if test ia64 = "$host_cpu"; then
  8960. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8961. # chokes on -Wl,-G. The following line is correct:
  8962. shared_flag='-G'
  8963. else
  8964. if test yes = "$aix_use_runtimelinking"; then
  8965. shared_flag='$wl-G'
  8966. else
  8967. shared_flag='$wl-bM:SRE'
  8968. fi
  8969. shared_flag_aix='$wl-bM:SRE'
  8970. shared_flag_svr4='$wl-G'
  8971. fi
  8972. fi
  8973. export_dynamic_flag_spec='$wl-bexpall'
  8974. # It seems that -bexpall does not export symbols beginning with
  8975. # underscore (_), so it is better to generate a list of symbols to export.
  8976. always_export_symbols=yes
  8977. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8978. # Warning - without using the other runtime loading flags (-brtl),
  8979. # -berok will link without error, but may produce a broken library.
  8980. allow_undefined_flag='-berok'
  8981. # Determine the default libpath from the value encoded in an
  8982. # empty executable.
  8983. if test set = "${lt_cv_aix_libpath+set}"; then
  8984. aix_libpath=$lt_cv_aix_libpath
  8985. else
  8986. if test ${lt_cv_aix_libpath_+y}
  8987. then :
  8988. printf %s "(cached) " >&6
  8989. else $as_nop
  8990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8991. /* end confdefs.h. */
  8992. int
  8993. main (void)
  8994. {
  8995. ;
  8996. return 0;
  8997. }
  8998. _ACEOF
  8999. if ac_fn_c_try_link "$LINENO"
  9000. then :
  9001. lt_aix_libpath_sed='
  9002. /Import File Strings/,/^$/ {
  9003. /^0/ {
  9004. s/^0 *\([^ ]*\) *$/\1/
  9005. p
  9006. }
  9007. }'
  9008. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9009. # Check for a 64-bit object if we didn't find anything.
  9010. if test -z "$lt_cv_aix_libpath_"; then
  9011. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9012. fi
  9013. fi
  9014. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9015. conftest$ac_exeext conftest.$ac_ext
  9016. if test -z "$lt_cv_aix_libpath_"; then
  9017. lt_cv_aix_libpath_=/usr/lib:/lib
  9018. fi
  9019. fi
  9020. aix_libpath=$lt_cv_aix_libpath_
  9021. fi
  9022. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9023. 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
  9024. else
  9025. if test ia64 = "$host_cpu"; then
  9026. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9027. allow_undefined_flag="-z nodefs"
  9028. 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"
  9029. else
  9030. # Determine the default libpath from the value encoded in an
  9031. # empty executable.
  9032. if test set = "${lt_cv_aix_libpath+set}"; then
  9033. aix_libpath=$lt_cv_aix_libpath
  9034. else
  9035. if test ${lt_cv_aix_libpath_+y}
  9036. then :
  9037. printf %s "(cached) " >&6
  9038. else $as_nop
  9039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9040. /* end confdefs.h. */
  9041. int
  9042. main (void)
  9043. {
  9044. ;
  9045. return 0;
  9046. }
  9047. _ACEOF
  9048. if ac_fn_c_try_link "$LINENO"
  9049. then :
  9050. lt_aix_libpath_sed='
  9051. /Import File Strings/,/^$/ {
  9052. /^0/ {
  9053. s/^0 *\([^ ]*\) *$/\1/
  9054. p
  9055. }
  9056. }'
  9057. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9058. # Check for a 64-bit object if we didn't find anything.
  9059. if test -z "$lt_cv_aix_libpath_"; then
  9060. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9061. fi
  9062. fi
  9063. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9064. conftest$ac_exeext conftest.$ac_ext
  9065. if test -z "$lt_cv_aix_libpath_"; then
  9066. lt_cv_aix_libpath_=/usr/lib:/lib
  9067. fi
  9068. fi
  9069. aix_libpath=$lt_cv_aix_libpath_
  9070. fi
  9071. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9072. # Warning - without using the other run time loading flags,
  9073. # -berok will link without error, but may produce a broken library.
  9074. no_undefined_flag=' $wl-bernotok'
  9075. allow_undefined_flag=' $wl-berok'
  9076. if test yes = "$with_gnu_ld"; then
  9077. # We only use this code for GNU lds that support --whole-archive.
  9078. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9079. else
  9080. # Exported symbols can be pulled into shared objects from archives
  9081. whole_archive_flag_spec='$convenience'
  9082. fi
  9083. archive_cmds_need_lc=yes
  9084. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9085. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9086. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9087. if test svr4 != "$with_aix_soname"; then
  9088. # This is similar to how AIX traditionally builds its shared libraries.
  9089. 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'
  9090. fi
  9091. if test aix != "$with_aix_soname"; then
  9092. 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'
  9093. else
  9094. # used by -dlpreopen to get the symbols
  9095. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9096. fi
  9097. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9098. fi
  9099. fi
  9100. ;;
  9101. amigaos*)
  9102. case $host_cpu in
  9103. powerpc)
  9104. # see comment about AmigaOS4 .so support
  9105. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9106. archive_expsym_cmds=''
  9107. ;;
  9108. m68k)
  9109. 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)'
  9110. hardcode_libdir_flag_spec='-L$libdir'
  9111. hardcode_minus_L=yes
  9112. ;;
  9113. esac
  9114. ;;
  9115. bsdi[45]*)
  9116. export_dynamic_flag_spec=-rdynamic
  9117. ;;
  9118. cygwin* | mingw* | pw32* | cegcc*)
  9119. # When not using gcc, we currently assume that we are using
  9120. # Microsoft Visual C++.
  9121. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9122. # no search path for DLLs.
  9123. case $cc_basename in
  9124. cl*)
  9125. # Native MSVC
  9126. hardcode_libdir_flag_spec=' '
  9127. allow_undefined_flag=unsupported
  9128. always_export_symbols=yes
  9129. file_list_spec='@'
  9130. # Tell ltmain to make .lib files, not .a files.
  9131. libext=lib
  9132. # Tell ltmain to make .dll files, not .so files.
  9133. shrext_cmds=.dll
  9134. # FIXME: Setting linknames here is a bad hack.
  9135. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9136. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9137. cp "$export_symbols" "$output_objdir/$soname.def";
  9138. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9139. else
  9140. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9141. fi~
  9142. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9143. linknames='
  9144. # The linker will not automatically build a static lib if we build a DLL.
  9145. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9146. enable_shared_with_static_runtimes=yes
  9147. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9148. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9149. # Don't use ranlib
  9150. old_postinstall_cmds='chmod 644 $oldlib'
  9151. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9152. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9153. case $lt_outputfile in
  9154. *.exe|*.EXE) ;;
  9155. *)
  9156. lt_outputfile=$lt_outputfile.exe
  9157. lt_tool_outputfile=$lt_tool_outputfile.exe
  9158. ;;
  9159. esac~
  9160. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9161. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9162. $RM "$lt_outputfile.manifest";
  9163. fi'
  9164. ;;
  9165. *)
  9166. # Assume MSVC wrapper
  9167. hardcode_libdir_flag_spec=' '
  9168. allow_undefined_flag=unsupported
  9169. # Tell ltmain to make .lib files, not .a files.
  9170. libext=lib
  9171. # Tell ltmain to make .dll files, not .so files.
  9172. shrext_cmds=.dll
  9173. # FIXME: Setting linknames here is a bad hack.
  9174. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9175. # The linker will automatically build a .lib file if we build a DLL.
  9176. old_archive_from_new_cmds='true'
  9177. # FIXME: Should let the user specify the lib program.
  9178. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9179. enable_shared_with_static_runtimes=yes
  9180. ;;
  9181. esac
  9182. ;;
  9183. darwin* | rhapsody*)
  9184. archive_cmds_need_lc=no
  9185. hardcode_direct=no
  9186. hardcode_automatic=yes
  9187. hardcode_shlibpath_var=unsupported
  9188. if test yes = "$lt_cv_ld_force_load"; then
  9189. 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\"`'
  9190. else
  9191. whole_archive_flag_spec=''
  9192. fi
  9193. link_all_deplibs=yes
  9194. allow_undefined_flag=$_lt_dar_allow_undefined
  9195. case $cc_basename in
  9196. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9197. *) _lt_dar_can_shared=$GCC ;;
  9198. esac
  9199. if test yes = "$_lt_dar_can_shared"; then
  9200. output_verbose_link_cmd=func_echo_all
  9201. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9202. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9203. 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"
  9204. 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"
  9205. else
  9206. ld_shlibs=no
  9207. fi
  9208. ;;
  9209. dgux*)
  9210. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9211. hardcode_libdir_flag_spec='-L$libdir'
  9212. hardcode_shlibpath_var=no
  9213. ;;
  9214. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9215. # support. Future versions do this automatically, but an explicit c++rt0.o
  9216. # does not break anything, and helps significantly (at the cost of a little
  9217. # extra space).
  9218. freebsd2.2*)
  9219. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9220. hardcode_libdir_flag_spec='-R$libdir'
  9221. hardcode_direct=yes
  9222. hardcode_shlibpath_var=no
  9223. ;;
  9224. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9225. freebsd2.*)
  9226. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9227. hardcode_direct=yes
  9228. hardcode_minus_L=yes
  9229. hardcode_shlibpath_var=no
  9230. ;;
  9231. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9232. freebsd* | dragonfly* | midnightbsd*)
  9233. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9234. hardcode_libdir_flag_spec='-R$libdir'
  9235. hardcode_direct=yes
  9236. hardcode_shlibpath_var=no
  9237. ;;
  9238. hpux9*)
  9239. if test yes = "$GCC"; then
  9240. 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'
  9241. else
  9242. 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'
  9243. fi
  9244. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9245. hardcode_libdir_separator=:
  9246. hardcode_direct=yes
  9247. # hardcode_minus_L: Not really in the search PATH,
  9248. # but as the default location of the library.
  9249. hardcode_minus_L=yes
  9250. export_dynamic_flag_spec='$wl-E'
  9251. ;;
  9252. hpux10*)
  9253. if test yes,no = "$GCC,$with_gnu_ld"; then
  9254. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9255. else
  9256. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9257. fi
  9258. if test no = "$with_gnu_ld"; then
  9259. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9260. hardcode_libdir_separator=:
  9261. hardcode_direct=yes
  9262. hardcode_direct_absolute=yes
  9263. export_dynamic_flag_spec='$wl-E'
  9264. # hardcode_minus_L: Not really in the search PATH,
  9265. # but as the default location of the library.
  9266. hardcode_minus_L=yes
  9267. fi
  9268. ;;
  9269. hpux11*)
  9270. if test yes,no = "$GCC,$with_gnu_ld"; then
  9271. case $host_cpu in
  9272. hppa*64*)
  9273. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9274. ;;
  9275. ia64*)
  9276. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9277. ;;
  9278. *)
  9279. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9280. ;;
  9281. esac
  9282. else
  9283. case $host_cpu in
  9284. hppa*64*)
  9285. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9286. ;;
  9287. ia64*)
  9288. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9289. ;;
  9290. *)
  9291. # Older versions of the 11.00 compiler do not understand -b yet
  9292. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9294. printf %s "checking if $CC understands -b... " >&6; }
  9295. if test ${lt_cv_prog_compiler__b+y}
  9296. then :
  9297. printf %s "(cached) " >&6
  9298. else $as_nop
  9299. lt_cv_prog_compiler__b=no
  9300. save_LDFLAGS=$LDFLAGS
  9301. LDFLAGS="$LDFLAGS -b"
  9302. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9303. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9304. # The linker can only warn and ignore the option if not recognized
  9305. # So say no if there are warnings
  9306. if test -s conftest.err; then
  9307. # Append any errors to the config.log.
  9308. cat conftest.err 1>&5
  9309. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9310. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9311. if diff conftest.exp conftest.er2 >/dev/null; then
  9312. lt_cv_prog_compiler__b=yes
  9313. fi
  9314. else
  9315. lt_cv_prog_compiler__b=yes
  9316. fi
  9317. fi
  9318. $RM -r conftest*
  9319. LDFLAGS=$save_LDFLAGS
  9320. fi
  9321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9322. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9323. if test yes = "$lt_cv_prog_compiler__b"; then
  9324. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9325. else
  9326. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9327. fi
  9328. ;;
  9329. esac
  9330. fi
  9331. if test no = "$with_gnu_ld"; then
  9332. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9333. hardcode_libdir_separator=:
  9334. case $host_cpu in
  9335. hppa*64*|ia64*)
  9336. hardcode_direct=no
  9337. hardcode_shlibpath_var=no
  9338. ;;
  9339. *)
  9340. hardcode_direct=yes
  9341. hardcode_direct_absolute=yes
  9342. export_dynamic_flag_spec='$wl-E'
  9343. # hardcode_minus_L: Not really in the search PATH,
  9344. # but as the default location of the library.
  9345. hardcode_minus_L=yes
  9346. ;;
  9347. esac
  9348. fi
  9349. ;;
  9350. irix5* | irix6* | nonstopux*)
  9351. if test yes = "$GCC"; then
  9352. 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'
  9353. # Try to use the -exported_symbol ld option, if it does not
  9354. # work, assume that -exports_file does not work either and
  9355. # implicitly export all symbols.
  9356. # This should be the same for all languages, so no per-tag cache variable.
  9357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9358. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9359. if test ${lt_cv_irix_exported_symbol+y}
  9360. then :
  9361. printf %s "(cached) " >&6
  9362. else $as_nop
  9363. save_LDFLAGS=$LDFLAGS
  9364. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9366. /* end confdefs.h. */
  9367. int foo (void) { return 0; }
  9368. _ACEOF
  9369. if ac_fn_c_try_link "$LINENO"
  9370. then :
  9371. lt_cv_irix_exported_symbol=yes
  9372. else $as_nop
  9373. lt_cv_irix_exported_symbol=no
  9374. fi
  9375. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9376. conftest$ac_exeext conftest.$ac_ext
  9377. LDFLAGS=$save_LDFLAGS
  9378. fi
  9379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9380. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9381. if test yes = "$lt_cv_irix_exported_symbol"; then
  9382. 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'
  9383. fi
  9384. else
  9385. 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'
  9386. 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'
  9387. fi
  9388. archive_cmds_need_lc='no'
  9389. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9390. hardcode_libdir_separator=:
  9391. inherit_rpath=yes
  9392. link_all_deplibs=yes
  9393. ;;
  9394. linux*)
  9395. case $cc_basename in
  9396. tcc*)
  9397. # Fabrice Bellard et al's Tiny C Compiler
  9398. ld_shlibs=yes
  9399. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9400. ;;
  9401. esac
  9402. ;;
  9403. netbsd*)
  9404. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9405. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9406. else
  9407. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9408. fi
  9409. hardcode_libdir_flag_spec='-R$libdir'
  9410. hardcode_direct=yes
  9411. hardcode_shlibpath_var=no
  9412. ;;
  9413. newsos6)
  9414. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9415. hardcode_direct=yes
  9416. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9417. hardcode_libdir_separator=:
  9418. hardcode_shlibpath_var=no
  9419. ;;
  9420. *nto* | *qnx*)
  9421. ;;
  9422. openbsd* | bitrig*)
  9423. if test -f /usr/libexec/ld.so; then
  9424. hardcode_direct=yes
  9425. hardcode_shlibpath_var=no
  9426. hardcode_direct_absolute=yes
  9427. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9428. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9429. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9430. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9431. export_dynamic_flag_spec='$wl-E'
  9432. else
  9433. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9434. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9435. fi
  9436. else
  9437. ld_shlibs=no
  9438. fi
  9439. ;;
  9440. os2*)
  9441. hardcode_libdir_flag_spec='-L$libdir'
  9442. hardcode_minus_L=yes
  9443. allow_undefined_flag=unsupported
  9444. shrext_cmds=.dll
  9445. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9446. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9447. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9448. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9449. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9450. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9451. emximp -o $lib $output_objdir/$libname.def'
  9452. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9453. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9454. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9455. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9456. prefix_cmds="$SED"~
  9457. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9458. prefix_cmds="$prefix_cmds -e 1d";
  9459. fi~
  9460. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9461. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9462. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9463. emximp -o $lib $output_objdir/$libname.def'
  9464. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9465. enable_shared_with_static_runtimes=yes
  9466. file_list_spec='@'
  9467. ;;
  9468. osf3*)
  9469. if test yes = "$GCC"; then
  9470. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9471. 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'
  9472. else
  9473. allow_undefined_flag=' -expect_unresolved \*'
  9474. 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'
  9475. fi
  9476. archive_cmds_need_lc='no'
  9477. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9478. hardcode_libdir_separator=:
  9479. ;;
  9480. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9481. if test yes = "$GCC"; then
  9482. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9483. 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'
  9484. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9485. else
  9486. allow_undefined_flag=' -expect_unresolved \*'
  9487. 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'
  9488. 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~
  9489. $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'
  9490. # Both c and cxx compiler support -rpath directly
  9491. hardcode_libdir_flag_spec='-rpath $libdir'
  9492. fi
  9493. archive_cmds_need_lc='no'
  9494. hardcode_libdir_separator=:
  9495. ;;
  9496. solaris*)
  9497. no_undefined_flag=' -z defs'
  9498. if test yes = "$GCC"; then
  9499. wlarc='$wl'
  9500. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9501. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9502. $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'
  9503. else
  9504. case `$CC -V 2>&1` in
  9505. *"Compilers 5.0"*)
  9506. wlarc=''
  9507. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9508. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9509. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9510. ;;
  9511. *)
  9512. wlarc='$wl'
  9513. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9514. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9515. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9516. ;;
  9517. esac
  9518. fi
  9519. hardcode_libdir_flag_spec='-R$libdir'
  9520. hardcode_shlibpath_var=no
  9521. case $host_os in
  9522. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9523. *)
  9524. # The compiler driver will combine and reorder linker options,
  9525. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9526. # but is careful enough not to reorder.
  9527. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9528. if test yes = "$GCC"; then
  9529. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9530. else
  9531. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9532. fi
  9533. ;;
  9534. esac
  9535. link_all_deplibs=yes
  9536. ;;
  9537. sunos4*)
  9538. if test sequent = "$host_vendor"; then
  9539. # Use $CC to link under sequent, because it throws in some extra .o
  9540. # files that make .init and .fini sections work.
  9541. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9542. else
  9543. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9544. fi
  9545. hardcode_libdir_flag_spec='-L$libdir'
  9546. hardcode_direct=yes
  9547. hardcode_minus_L=yes
  9548. hardcode_shlibpath_var=no
  9549. ;;
  9550. sysv4)
  9551. case $host_vendor in
  9552. sni)
  9553. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9554. hardcode_direct=yes # is this really true???
  9555. ;;
  9556. siemens)
  9557. ## LD is ld it makes a PLAMLIB
  9558. ## CC just makes a GrossModule.
  9559. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9560. reload_cmds='$CC -r -o $output$reload_objs'
  9561. hardcode_direct=no
  9562. ;;
  9563. motorola)
  9564. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9565. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9566. ;;
  9567. esac
  9568. runpath_var='LD_RUN_PATH'
  9569. hardcode_shlibpath_var=no
  9570. ;;
  9571. sysv4.3*)
  9572. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9573. hardcode_shlibpath_var=no
  9574. export_dynamic_flag_spec='-Bexport'
  9575. ;;
  9576. sysv4*MP*)
  9577. if test -d /usr/nec; then
  9578. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9579. hardcode_shlibpath_var=no
  9580. runpath_var=LD_RUN_PATH
  9581. hardcode_runpath_var=yes
  9582. ld_shlibs=yes
  9583. fi
  9584. ;;
  9585. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9586. no_undefined_flag='$wl-z,text'
  9587. archive_cmds_need_lc=no
  9588. hardcode_shlibpath_var=no
  9589. runpath_var='LD_RUN_PATH'
  9590. if test yes = "$GCC"; then
  9591. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9592. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9593. else
  9594. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9595. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9596. fi
  9597. ;;
  9598. sysv5* | sco3.2v5* | sco5v6*)
  9599. # Note: We CANNOT use -z defs as we might desire, because we do not
  9600. # link with -lc, and that would cause any symbols used from libc to
  9601. # always be unresolved, which means just about no library would
  9602. # ever link correctly. If we're not using GNU ld we use -z text
  9603. # though, which does catch some bad symbols but isn't as heavy-handed
  9604. # as -z defs.
  9605. no_undefined_flag='$wl-z,text'
  9606. allow_undefined_flag='$wl-z,nodefs'
  9607. archive_cmds_need_lc=no
  9608. hardcode_shlibpath_var=no
  9609. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9610. hardcode_libdir_separator=':'
  9611. link_all_deplibs=yes
  9612. export_dynamic_flag_spec='$wl-Bexport'
  9613. runpath_var='LD_RUN_PATH'
  9614. if test yes = "$GCC"; then
  9615. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9616. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9617. else
  9618. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9619. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9620. fi
  9621. ;;
  9622. uts4*)
  9623. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9624. hardcode_libdir_flag_spec='-L$libdir'
  9625. hardcode_shlibpath_var=no
  9626. ;;
  9627. *)
  9628. ld_shlibs=no
  9629. ;;
  9630. esac
  9631. if test sni = "$host_vendor"; then
  9632. case $host in
  9633. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9634. export_dynamic_flag_spec='$wl-Blargedynsym'
  9635. ;;
  9636. esac
  9637. fi
  9638. fi
  9639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9640. printf "%s\n" "$ld_shlibs" >&6; }
  9641. test no = "$ld_shlibs" && can_build_shared=no
  9642. with_gnu_ld=$with_gnu_ld
  9643. #
  9644. # Do we need to explicitly link libc?
  9645. #
  9646. case "x$archive_cmds_need_lc" in
  9647. x|xyes)
  9648. # Assume -lc should be added
  9649. archive_cmds_need_lc=yes
  9650. if test yes,yes = "$GCC,$enable_shared"; then
  9651. case $archive_cmds in
  9652. *'~'*)
  9653. # FIXME: we may have to deal with multi-command sequences.
  9654. ;;
  9655. '$CC '*)
  9656. # Test whether the compiler implicitly links with -lc since on some
  9657. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9658. # to ld, don't add -lc before -lgcc.
  9659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9660. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9661. if test ${lt_cv_archive_cmds_need_lc+y}
  9662. then :
  9663. printf %s "(cached) " >&6
  9664. else $as_nop
  9665. $RM conftest*
  9666. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9667. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9668. (eval $ac_compile) 2>&5
  9669. ac_status=$?
  9670. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9671. test $ac_status = 0; } 2>conftest.err; then
  9672. soname=conftest
  9673. lib=conftest
  9674. libobjs=conftest.$ac_objext
  9675. deplibs=
  9676. wl=$lt_prog_compiler_wl
  9677. pic_flag=$lt_prog_compiler_pic
  9678. compiler_flags=-v
  9679. linker_flags=-v
  9680. verstring=
  9681. output_objdir=.
  9682. libname=conftest
  9683. lt_save_allow_undefined_flag=$allow_undefined_flag
  9684. allow_undefined_flag=
  9685. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9686. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9687. ac_status=$?
  9688. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9689. test $ac_status = 0; }
  9690. then
  9691. lt_cv_archive_cmds_need_lc=no
  9692. else
  9693. lt_cv_archive_cmds_need_lc=yes
  9694. fi
  9695. allow_undefined_flag=$lt_save_allow_undefined_flag
  9696. else
  9697. cat conftest.err 1>&5
  9698. fi
  9699. $RM conftest*
  9700. fi
  9701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9702. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9703. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9704. ;;
  9705. esac
  9706. fi
  9707. ;;
  9708. esac
  9709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9710. printf %s "checking dynamic linker characteristics... " >&6; }
  9711. if test yes = "$GCC"; then
  9712. case $host_os in
  9713. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9714. *) lt_awk_arg='/^libraries:/' ;;
  9715. esac
  9716. case $host_os in
  9717. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9718. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9719. esac
  9720. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9721. case $lt_search_path_spec in
  9722. *\;*)
  9723. # if the path contains ";" then we assume it to be the separator
  9724. # otherwise default to the standard path separator (i.e. ":") - it is
  9725. # assumed that no part of a normal pathname contains ";" but that should
  9726. # okay in the real world where ";" in dirpaths is itself problematic.
  9727. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9728. ;;
  9729. *)
  9730. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9731. ;;
  9732. esac
  9733. # Ok, now we have the path, separated by spaces, we can step through it
  9734. # and add multilib dir if necessary...
  9735. lt_tmp_lt_search_path_spec=
  9736. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9737. # ...but if some path component already ends with the multilib dir we assume
  9738. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9739. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9740. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9741. lt_multi_os_dir=
  9742. ;;
  9743. esac
  9744. for lt_sys_path in $lt_search_path_spec; do
  9745. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9746. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9747. elif test -n "$lt_multi_os_dir"; then
  9748. test -d "$lt_sys_path" && \
  9749. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9750. fi
  9751. done
  9752. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9753. BEGIN {RS = " "; FS = "/|\n";} {
  9754. lt_foo = "";
  9755. lt_count = 0;
  9756. for (lt_i = NF; lt_i > 0; lt_i--) {
  9757. if ($lt_i != "" && $lt_i != ".") {
  9758. if ($lt_i == "..") {
  9759. lt_count++;
  9760. } else {
  9761. if (lt_count == 0) {
  9762. lt_foo = "/" $lt_i lt_foo;
  9763. } else {
  9764. lt_count--;
  9765. }
  9766. }
  9767. }
  9768. }
  9769. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9770. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9771. }'`
  9772. # AWK program above erroneously prepends '/' to C:/dos/paths
  9773. # for these hosts.
  9774. case $host_os in
  9775. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9776. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9777. esac
  9778. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9779. else
  9780. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9781. fi
  9782. library_names_spec=
  9783. libname_spec='lib$name'
  9784. soname_spec=
  9785. shrext_cmds=.so
  9786. postinstall_cmds=
  9787. postuninstall_cmds=
  9788. finish_cmds=
  9789. finish_eval=
  9790. shlibpath_var=
  9791. shlibpath_overrides_runpath=unknown
  9792. version_type=none
  9793. dynamic_linker="$host_os ld.so"
  9794. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9795. need_lib_prefix=unknown
  9796. hardcode_into_libs=no
  9797. # when you set need_version to no, make sure it does not cause -set_version
  9798. # flags to be left without arguments
  9799. need_version=unknown
  9800. case $host_os in
  9801. aix3*)
  9802. version_type=linux # correct to gnu/linux during the next big refactor
  9803. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9804. shlibpath_var=LIBPATH
  9805. # AIX 3 has no versioning support, so we append a major version to the name.
  9806. soname_spec='$libname$release$shared_ext$major'
  9807. ;;
  9808. aix[4-9]*)
  9809. version_type=linux # correct to gnu/linux during the next big refactor
  9810. need_lib_prefix=no
  9811. need_version=no
  9812. hardcode_into_libs=yes
  9813. if test ia64 = "$host_cpu"; then
  9814. # AIX 5 supports IA64
  9815. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9816. shlibpath_var=LD_LIBRARY_PATH
  9817. else
  9818. # With GCC up to 2.95.x, collect2 would create an import file
  9819. # for dependence libraries. The import file would start with
  9820. # the line '#! .'. This would cause the generated library to
  9821. # depend on '.', always an invalid library. This was fixed in
  9822. # development snapshots of GCC prior to 3.0.
  9823. case $host_os in
  9824. aix4 | aix4.[01] | aix4.[01].*)
  9825. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9826. echo ' yes '
  9827. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9828. :
  9829. else
  9830. can_build_shared=no
  9831. fi
  9832. ;;
  9833. esac
  9834. # Using Import Files as archive members, it is possible to support
  9835. # filename-based versioning of shared library archives on AIX. While
  9836. # this would work for both with and without runtime linking, it will
  9837. # prevent static linking of such archives. So we do filename-based
  9838. # shared library versioning with .so extension only, which is used
  9839. # when both runtime linking and shared linking is enabled.
  9840. # Unfortunately, runtime linking may impact performance, so we do
  9841. # not want this to be the default eventually. Also, we use the
  9842. # versioned .so libs for executables only if there is the -brtl
  9843. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9844. # To allow for filename-based versioning support, we need to create
  9845. # libNAME.so.V as an archive file, containing:
  9846. # *) an Import File, referring to the versioned filename of the
  9847. # archive as well as the shared archive member, telling the
  9848. # bitwidth (32 or 64) of that shared object, and providing the
  9849. # list of exported symbols of that shared object, eventually
  9850. # decorated with the 'weak' keyword
  9851. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9852. # it being seen by the linker.
  9853. # At run time we better use the real file rather than another symlink,
  9854. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9855. case $with_aix_soname,$aix_use_runtimelinking in
  9856. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9857. # soname into executable. Probably we can add versioning support to
  9858. # collect2, so additional links can be useful in future.
  9859. aix,yes) # traditional libtool
  9860. dynamic_linker='AIX unversionable lib.so'
  9861. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9862. # instead of lib<name>.a to let people know that these are not
  9863. # typical AIX shared libraries.
  9864. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9865. ;;
  9866. aix,no) # traditional AIX only
  9867. dynamic_linker='AIX lib.a(lib.so.V)'
  9868. # We preserve .a as extension for shared libraries through AIX4.2
  9869. # and later when we are not doing run time linking.
  9870. library_names_spec='$libname$release.a $libname.a'
  9871. soname_spec='$libname$release$shared_ext$major'
  9872. ;;
  9873. svr4,*) # full svr4 only
  9874. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9875. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9876. # We do not specify a path in Import Files, so LIBPATH fires.
  9877. shlibpath_overrides_runpath=yes
  9878. ;;
  9879. *,yes) # both, prefer svr4
  9880. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9881. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9882. # unpreferred sharedlib libNAME.a needs extra handling
  9883. 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"'
  9884. 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"'
  9885. # We do not specify a path in Import Files, so LIBPATH fires.
  9886. shlibpath_overrides_runpath=yes
  9887. ;;
  9888. *,no) # both, prefer aix
  9889. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9890. library_names_spec='$libname$release.a $libname.a'
  9891. soname_spec='$libname$release$shared_ext$major'
  9892. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9893. 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)'
  9894. 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"'
  9895. ;;
  9896. esac
  9897. shlibpath_var=LIBPATH
  9898. fi
  9899. ;;
  9900. amigaos*)
  9901. case $host_cpu in
  9902. powerpc)
  9903. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9904. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9905. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9906. ;;
  9907. m68k)
  9908. library_names_spec='$libname.ixlibrary $libname.a'
  9909. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9910. 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'
  9911. ;;
  9912. esac
  9913. ;;
  9914. beos*)
  9915. library_names_spec='$libname$shared_ext'
  9916. dynamic_linker="$host_os ld.so"
  9917. shlibpath_var=LIBRARY_PATH
  9918. ;;
  9919. bsdi[45]*)
  9920. version_type=linux # correct to gnu/linux during the next big refactor
  9921. need_version=no
  9922. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9923. soname_spec='$libname$release$shared_ext$major'
  9924. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9925. shlibpath_var=LD_LIBRARY_PATH
  9926. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9927. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9928. # the default ld.so.conf also contains /usr/contrib/lib and
  9929. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9930. # libtool to hard-code these into programs
  9931. ;;
  9932. cygwin* | mingw* | pw32* | cegcc*)
  9933. version_type=windows
  9934. shrext_cmds=.dll
  9935. need_version=no
  9936. need_lib_prefix=no
  9937. case $GCC,$cc_basename in
  9938. yes,*)
  9939. # gcc
  9940. library_names_spec='$libname.dll.a'
  9941. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9942. postinstall_cmds='base_file=`basename \$file`~
  9943. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9944. dldir=$destdir/`dirname \$dlpath`~
  9945. test -d \$dldir || mkdir -p \$dldir~
  9946. $install_prog $dir/$dlname \$dldir/$dlname~
  9947. chmod a+x \$dldir/$dlname~
  9948. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9949. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9950. fi'
  9951. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9952. dlpath=$dir/\$dldll~
  9953. $RM \$dlpath'
  9954. shlibpath_overrides_runpath=yes
  9955. case $host_os in
  9956. cygwin*)
  9957. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9958. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9959. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9960. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9961. ;;
  9962. mingw* | cegcc*)
  9963. # MinGW DLLs use traditional 'lib' prefix
  9964. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9965. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9966. ;;
  9967. pw32*)
  9968. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9969. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9970. ;;
  9971. esac
  9972. dynamic_linker='Win32 ld.exe'
  9973. ;;
  9974. *,cl*)
  9975. # Native MSVC
  9976. libname_spec='$name'
  9977. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9978. library_names_spec='$libname.dll.lib'
  9979. case $build_os in
  9980. mingw*)
  9981. sys_lib_search_path_spec=
  9982. lt_save_ifs=$IFS
  9983. IFS=';'
  9984. for lt_path in $LIB
  9985. do
  9986. IFS=$lt_save_ifs
  9987. # Let DOS variable expansion print the short 8.3 style file name.
  9988. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9989. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9990. done
  9991. IFS=$lt_save_ifs
  9992. # Convert to MSYS style.
  9993. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9994. ;;
  9995. cygwin*)
  9996. # Convert to unix form, then to dos form, then back to unix form
  9997. # but this time dos style (no spaces!) so that the unix form looks
  9998. # like /cygdrive/c/PROGRA~1:/cygdr...
  9999. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10000. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10001. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10002. ;;
  10003. *)
  10004. sys_lib_search_path_spec=$LIB
  10005. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10006. # It is most probably a Windows format PATH.
  10007. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10008. else
  10009. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10010. fi
  10011. # FIXME: find the short name or the path components, as spaces are
  10012. # common. (e.g. "Program Files" -> "PROGRA~1")
  10013. ;;
  10014. esac
  10015. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10016. postinstall_cmds='base_file=`basename \$file`~
  10017. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10018. dldir=$destdir/`dirname \$dlpath`~
  10019. test -d \$dldir || mkdir -p \$dldir~
  10020. $install_prog $dir/$dlname \$dldir/$dlname'
  10021. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10022. dlpath=$dir/\$dldll~
  10023. $RM \$dlpath'
  10024. shlibpath_overrides_runpath=yes
  10025. dynamic_linker='Win32 link.exe'
  10026. ;;
  10027. *)
  10028. # Assume MSVC wrapper
  10029. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10030. dynamic_linker='Win32 ld.exe'
  10031. ;;
  10032. esac
  10033. # FIXME: first we should search . and the directory the executable is in
  10034. shlibpath_var=PATH
  10035. ;;
  10036. darwin* | rhapsody*)
  10037. dynamic_linker="$host_os dyld"
  10038. version_type=darwin
  10039. need_lib_prefix=no
  10040. need_version=no
  10041. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10042. soname_spec='$libname$release$major$shared_ext'
  10043. shlibpath_overrides_runpath=yes
  10044. shlibpath_var=DYLD_LIBRARY_PATH
  10045. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10046. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10047. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10048. ;;
  10049. dgux*)
  10050. version_type=linux # correct to gnu/linux during the next big refactor
  10051. need_lib_prefix=no
  10052. need_version=no
  10053. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10054. soname_spec='$libname$release$shared_ext$major'
  10055. shlibpath_var=LD_LIBRARY_PATH
  10056. ;;
  10057. freebsd* | dragonfly* | midnightbsd*)
  10058. # DragonFly does not have aout. When/if they implement a new
  10059. # versioning mechanism, adjust this.
  10060. if test -x /usr/bin/objformat; then
  10061. objformat=`/usr/bin/objformat`
  10062. else
  10063. case $host_os in
  10064. freebsd[23].*) objformat=aout ;;
  10065. *) objformat=elf ;;
  10066. esac
  10067. fi
  10068. version_type=freebsd-$objformat
  10069. case $version_type in
  10070. freebsd-elf*)
  10071. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10072. soname_spec='$libname$release$shared_ext$major'
  10073. need_version=no
  10074. need_lib_prefix=no
  10075. ;;
  10076. freebsd-*)
  10077. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10078. need_version=yes
  10079. ;;
  10080. esac
  10081. shlibpath_var=LD_LIBRARY_PATH
  10082. case $host_os in
  10083. freebsd2.*)
  10084. shlibpath_overrides_runpath=yes
  10085. ;;
  10086. freebsd3.[01]* | freebsdelf3.[01]*)
  10087. shlibpath_overrides_runpath=yes
  10088. hardcode_into_libs=yes
  10089. ;;
  10090. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10091. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10092. shlibpath_overrides_runpath=no
  10093. hardcode_into_libs=yes
  10094. ;;
  10095. *) # from 4.6 on, and DragonFly
  10096. shlibpath_overrides_runpath=yes
  10097. hardcode_into_libs=yes
  10098. ;;
  10099. esac
  10100. ;;
  10101. haiku*)
  10102. version_type=linux # correct to gnu/linux during the next big refactor
  10103. need_lib_prefix=no
  10104. need_version=no
  10105. dynamic_linker="$host_os runtime_loader"
  10106. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10107. soname_spec='$libname$release$shared_ext$major'
  10108. shlibpath_var=LIBRARY_PATH
  10109. shlibpath_overrides_runpath=no
  10110. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10111. hardcode_into_libs=yes
  10112. ;;
  10113. hpux9* | hpux10* | hpux11*)
  10114. # Give a soname corresponding to the major version so that dld.sl refuses to
  10115. # link against other versions.
  10116. version_type=sunos
  10117. need_lib_prefix=no
  10118. need_version=no
  10119. case $host_cpu in
  10120. ia64*)
  10121. shrext_cmds='.so'
  10122. hardcode_into_libs=yes
  10123. dynamic_linker="$host_os dld.so"
  10124. shlibpath_var=LD_LIBRARY_PATH
  10125. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10126. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10127. soname_spec='$libname$release$shared_ext$major'
  10128. if test 32 = "$HPUX_IA64_MODE"; then
  10129. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10130. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10131. else
  10132. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10133. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10134. fi
  10135. ;;
  10136. hppa*64*)
  10137. shrext_cmds='.sl'
  10138. hardcode_into_libs=yes
  10139. dynamic_linker="$host_os dld.sl"
  10140. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10141. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10142. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10143. soname_spec='$libname$release$shared_ext$major'
  10144. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10145. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10146. ;;
  10147. *)
  10148. shrext_cmds='.sl'
  10149. dynamic_linker="$host_os dld.sl"
  10150. shlibpath_var=SHLIB_PATH
  10151. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  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. ;;
  10155. esac
  10156. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10157. postinstall_cmds='chmod 555 $lib'
  10158. # or fails outright, so override atomically:
  10159. install_override_mode=555
  10160. ;;
  10161. interix[3-9]*)
  10162. version_type=linux # correct to gnu/linux during the next big refactor
  10163. need_lib_prefix=no
  10164. need_version=no
  10165. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10166. soname_spec='$libname$release$shared_ext$major'
  10167. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10168. shlibpath_var=LD_LIBRARY_PATH
  10169. shlibpath_overrides_runpath=no
  10170. hardcode_into_libs=yes
  10171. ;;
  10172. irix5* | irix6* | nonstopux*)
  10173. case $host_os in
  10174. nonstopux*) version_type=nonstopux ;;
  10175. *)
  10176. if test yes = "$lt_cv_prog_gnu_ld"; then
  10177. version_type=linux # correct to gnu/linux during the next big refactor
  10178. else
  10179. version_type=irix
  10180. fi ;;
  10181. esac
  10182. need_lib_prefix=no
  10183. need_version=no
  10184. soname_spec='$libname$release$shared_ext$major'
  10185. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10186. case $host_os in
  10187. irix5* | nonstopux*)
  10188. libsuff= shlibsuff=
  10189. ;;
  10190. *)
  10191. case $LD in # libtool.m4 will add one of these switches to LD
  10192. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10193. libsuff= shlibsuff= libmagic=32-bit;;
  10194. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10195. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10196. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10197. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10198. *) libsuff= shlibsuff= libmagic=never-match;;
  10199. esac
  10200. ;;
  10201. esac
  10202. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10203. shlibpath_overrides_runpath=no
  10204. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10205. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10206. hardcode_into_libs=yes
  10207. ;;
  10208. # No shared lib support for Linux oldld, aout, or coff.
  10209. linux*oldld* | linux*aout* | linux*coff*)
  10210. dynamic_linker=no
  10211. ;;
  10212. linux*android*)
  10213. version_type=none # Android doesn't support versioned libraries.
  10214. need_lib_prefix=no
  10215. need_version=no
  10216. library_names_spec='$libname$release$shared_ext'
  10217. soname_spec='$libname$release$shared_ext'
  10218. finish_cmds=
  10219. shlibpath_var=LD_LIBRARY_PATH
  10220. shlibpath_overrides_runpath=yes
  10221. # This implies no fast_install, which is unacceptable.
  10222. # Some rework will be needed to allow for fast_install
  10223. # before this can be enabled.
  10224. hardcode_into_libs=yes
  10225. dynamic_linker='Android linker'
  10226. # Don't embed -rpath directories since the linker doesn't support them.
  10227. hardcode_libdir_flag_spec='-L$libdir'
  10228. ;;
  10229. # This must be glibc/ELF.
  10230. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10231. version_type=linux # correct to gnu/linux during the next big refactor
  10232. need_lib_prefix=no
  10233. need_version=no
  10234. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10235. soname_spec='$libname$release$shared_ext$major'
  10236. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10237. shlibpath_var=LD_LIBRARY_PATH
  10238. shlibpath_overrides_runpath=no
  10239. # Some binutils ld are patched to set DT_RUNPATH
  10240. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10241. then :
  10242. printf %s "(cached) " >&6
  10243. else $as_nop
  10244. lt_cv_shlibpath_overrides_runpath=no
  10245. save_LDFLAGS=$LDFLAGS
  10246. save_libdir=$libdir
  10247. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10248. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10250. /* end confdefs.h. */
  10251. int
  10252. main (void)
  10253. {
  10254. ;
  10255. return 0;
  10256. }
  10257. _ACEOF
  10258. if ac_fn_c_try_link "$LINENO"
  10259. then :
  10260. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10261. then :
  10262. lt_cv_shlibpath_overrides_runpath=yes
  10263. fi
  10264. fi
  10265. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10266. conftest$ac_exeext conftest.$ac_ext
  10267. LDFLAGS=$save_LDFLAGS
  10268. libdir=$save_libdir
  10269. fi
  10270. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10271. # This implies no fast_install, which is unacceptable.
  10272. # Some rework will be needed to allow for fast_install
  10273. # before this can be enabled.
  10274. hardcode_into_libs=yes
  10275. # Add ABI-specific directories to the system library path.
  10276. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10277. # Ideally, we could use ldconfig to report *all* directores which are
  10278. # searched for libraries, however this is still not possible. Aside from not
  10279. # being certain /sbin/ldconfig is available, command
  10280. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10281. # even though it is searched at run-time. Try to do the best guess by
  10282. # appending ld.so.conf contents (and includes) to the search path.
  10283. if test -f /etc/ld.so.conf; then
  10284. 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' ' '`
  10285. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10286. fi
  10287. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10288. # powerpc, because MkLinux only supported shared libraries with the
  10289. # GNU dynamic linker. Since this was broken with cross compilers,
  10290. # most powerpc-linux boxes support dynamic linking these days and
  10291. # people can always --disable-shared, the test was removed, and we
  10292. # assume the GNU/Linux dynamic linker is in use.
  10293. dynamic_linker='GNU/Linux ld.so'
  10294. ;;
  10295. netbsd*)
  10296. version_type=sunos
  10297. need_lib_prefix=no
  10298. need_version=no
  10299. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10300. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10301. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10302. dynamic_linker='NetBSD (a.out) ld.so'
  10303. else
  10304. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10305. soname_spec='$libname$release$shared_ext$major'
  10306. dynamic_linker='NetBSD ld.elf_so'
  10307. fi
  10308. shlibpath_var=LD_LIBRARY_PATH
  10309. shlibpath_overrides_runpath=yes
  10310. hardcode_into_libs=yes
  10311. ;;
  10312. newsos6)
  10313. version_type=linux # correct to gnu/linux during the next big refactor
  10314. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10315. shlibpath_var=LD_LIBRARY_PATH
  10316. shlibpath_overrides_runpath=yes
  10317. ;;
  10318. *nto* | *qnx*)
  10319. version_type=qnx
  10320. need_lib_prefix=no
  10321. need_version=no
  10322. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10323. soname_spec='$libname$release$shared_ext$major'
  10324. shlibpath_var=LD_LIBRARY_PATH
  10325. shlibpath_overrides_runpath=no
  10326. hardcode_into_libs=yes
  10327. dynamic_linker='ldqnx.so'
  10328. ;;
  10329. openbsd* | bitrig*)
  10330. version_type=sunos
  10331. sys_lib_dlsearch_path_spec=/usr/lib
  10332. need_lib_prefix=no
  10333. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10334. need_version=no
  10335. else
  10336. need_version=yes
  10337. fi
  10338. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10339. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10340. shlibpath_var=LD_LIBRARY_PATH
  10341. shlibpath_overrides_runpath=yes
  10342. ;;
  10343. os2*)
  10344. libname_spec='$name'
  10345. shrext_cmds=.dll
  10346. need_lib_prefix=no
  10347. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10348. # SDL customization: removed versioning support.
  10349. # version_type=windows
  10350. # need_version=no
  10351. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10352. # v=$($ECHO $release$versuffix | tr -d .-);
  10353. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10354. # $ECHO $n$v`$shared_ext'
  10355. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10356. library_names_spec='${libname}_dll.$libext'
  10357. dynamic_linker='OS/2 ld.exe'
  10358. shlibpath_var=BEGINLIBPATH
  10359. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10360. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10361. postinstall_cmds='base_file=`basename \$file`~
  10362. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10363. dldir=$destdir/`dirname \$dlpath`~
  10364. test -d \$dldir || mkdir -p \$dldir~
  10365. $install_prog $dir/$dlname \$dldir/$dlname~
  10366. chmod a+x \$dldir/$dlname~
  10367. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10368. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10369. fi'
  10370. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10371. dlpath=$dir/\$dldll~
  10372. $RM \$dlpath'
  10373. ;;
  10374. osf3* | osf4* | osf5*)
  10375. version_type=osf
  10376. need_lib_prefix=no
  10377. need_version=no
  10378. soname_spec='$libname$release$shared_ext$major'
  10379. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10380. shlibpath_var=LD_LIBRARY_PATH
  10381. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10382. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10383. ;;
  10384. rdos*)
  10385. dynamic_linker=no
  10386. ;;
  10387. solaris*)
  10388. version_type=linux # correct to gnu/linux during the next big refactor
  10389. need_lib_prefix=no
  10390. need_version=no
  10391. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10392. soname_spec='$libname$release$shared_ext$major'
  10393. shlibpath_var=LD_LIBRARY_PATH
  10394. shlibpath_overrides_runpath=yes
  10395. hardcode_into_libs=yes
  10396. # ldd complains unless libraries are executable
  10397. postinstall_cmds='chmod +x $lib'
  10398. ;;
  10399. sunos4*)
  10400. version_type=sunos
  10401. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10402. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10403. shlibpath_var=LD_LIBRARY_PATH
  10404. shlibpath_overrides_runpath=yes
  10405. if test yes = "$with_gnu_ld"; then
  10406. need_lib_prefix=no
  10407. fi
  10408. need_version=yes
  10409. ;;
  10410. sysv4 | sysv4.3*)
  10411. version_type=linux # correct to gnu/linux during the next big refactor
  10412. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10413. soname_spec='$libname$release$shared_ext$major'
  10414. shlibpath_var=LD_LIBRARY_PATH
  10415. case $host_vendor in
  10416. sni)
  10417. shlibpath_overrides_runpath=no
  10418. need_lib_prefix=no
  10419. runpath_var=LD_RUN_PATH
  10420. ;;
  10421. siemens)
  10422. need_lib_prefix=no
  10423. ;;
  10424. motorola)
  10425. need_lib_prefix=no
  10426. need_version=no
  10427. shlibpath_overrides_runpath=no
  10428. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10429. ;;
  10430. esac
  10431. ;;
  10432. sysv4*MP*)
  10433. if test -d /usr/nec; then
  10434. version_type=linux # correct to gnu/linux during the next big refactor
  10435. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10436. soname_spec='$libname$shared_ext.$major'
  10437. shlibpath_var=LD_LIBRARY_PATH
  10438. fi
  10439. ;;
  10440. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10441. version_type=sco
  10442. need_lib_prefix=no
  10443. need_version=no
  10444. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10445. soname_spec='$libname$release$shared_ext$major'
  10446. shlibpath_var=LD_LIBRARY_PATH
  10447. shlibpath_overrides_runpath=yes
  10448. hardcode_into_libs=yes
  10449. if test yes = "$with_gnu_ld"; then
  10450. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10451. else
  10452. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10453. case $host_os in
  10454. sco3.2v5*)
  10455. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10456. ;;
  10457. esac
  10458. fi
  10459. sys_lib_dlsearch_path_spec='/usr/lib'
  10460. ;;
  10461. tpf*)
  10462. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10463. version_type=linux # correct to gnu/linux during the next big refactor
  10464. need_lib_prefix=no
  10465. need_version=no
  10466. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10467. shlibpath_var=LD_LIBRARY_PATH
  10468. shlibpath_overrides_runpath=no
  10469. hardcode_into_libs=yes
  10470. ;;
  10471. uts4*)
  10472. version_type=linux # correct to gnu/linux during the next big refactor
  10473. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10474. soname_spec='$libname$release$shared_ext$major'
  10475. shlibpath_var=LD_LIBRARY_PATH
  10476. ;;
  10477. *)
  10478. dynamic_linker=no
  10479. ;;
  10480. esac
  10481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10482. printf "%s\n" "$dynamic_linker" >&6; }
  10483. test no = "$dynamic_linker" && can_build_shared=no
  10484. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10485. if test yes = "$GCC"; then
  10486. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10487. fi
  10488. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10489. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10490. fi
  10491. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10492. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10493. fi
  10494. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10495. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10496. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10497. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10498. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10499. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10501. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10502. hardcode_action=
  10503. if test -n "$hardcode_libdir_flag_spec" ||
  10504. test -n "$runpath_var" ||
  10505. test yes = "$hardcode_automatic"; then
  10506. # We can hardcode non-existent directories.
  10507. if test no != "$hardcode_direct" &&
  10508. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10509. # have to relink, otherwise we might link with an installed library
  10510. # when we should be linking with a yet-to-be-installed one
  10511. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10512. test no != "$hardcode_minus_L"; then
  10513. # Linking always hardcodes the temporary library directory.
  10514. hardcode_action=relink
  10515. else
  10516. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10517. hardcode_action=immediate
  10518. fi
  10519. else
  10520. # We cannot hardcode anything, or else we can only hardcode existing
  10521. # directories.
  10522. hardcode_action=unsupported
  10523. fi
  10524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10525. printf "%s\n" "$hardcode_action" >&6; }
  10526. if test relink = "$hardcode_action" ||
  10527. test yes = "$inherit_rpath"; then
  10528. # Fast installation is not supported
  10529. enable_fast_install=no
  10530. elif test yes = "$shlibpath_overrides_runpath" ||
  10531. test no = "$enable_shared"; then
  10532. # Fast installation is not necessary
  10533. enable_fast_install=needless
  10534. fi
  10535. if test yes != "$enable_dlopen"; then
  10536. enable_dlopen=unknown
  10537. enable_dlopen_self=unknown
  10538. enable_dlopen_self_static=unknown
  10539. else
  10540. lt_cv_dlopen=no
  10541. lt_cv_dlopen_libs=
  10542. case $host_os in
  10543. beos*)
  10544. lt_cv_dlopen=load_add_on
  10545. lt_cv_dlopen_libs=
  10546. lt_cv_dlopen_self=yes
  10547. ;;
  10548. mingw* | pw32* | cegcc*)
  10549. lt_cv_dlopen=LoadLibrary
  10550. lt_cv_dlopen_libs=
  10551. ;;
  10552. cygwin*)
  10553. lt_cv_dlopen=dlopen
  10554. lt_cv_dlopen_libs=
  10555. ;;
  10556. darwin*)
  10557. # if libdl is installed we need to link against it
  10558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10559. printf %s "checking for dlopen in -ldl... " >&6; }
  10560. if test ${ac_cv_lib_dl_dlopen+y}
  10561. then :
  10562. printf %s "(cached) " >&6
  10563. else $as_nop
  10564. ac_check_lib_save_LIBS=$LIBS
  10565. LIBS="-ldl $LIBS"
  10566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10567. /* end confdefs.h. */
  10568. /* Override any GCC internal prototype to avoid an error.
  10569. Use char because int might match the return type of a GCC
  10570. builtin and then its argument prototype would still apply. */
  10571. char dlopen ();
  10572. int
  10573. main (void)
  10574. {
  10575. return dlopen ();
  10576. ;
  10577. return 0;
  10578. }
  10579. _ACEOF
  10580. if ac_fn_c_try_link "$LINENO"
  10581. then :
  10582. ac_cv_lib_dl_dlopen=yes
  10583. else $as_nop
  10584. ac_cv_lib_dl_dlopen=no
  10585. fi
  10586. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10587. conftest$ac_exeext conftest.$ac_ext
  10588. LIBS=$ac_check_lib_save_LIBS
  10589. fi
  10590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10591. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10592. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10593. then :
  10594. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10595. else $as_nop
  10596. lt_cv_dlopen=dyld
  10597. lt_cv_dlopen_libs=
  10598. lt_cv_dlopen_self=yes
  10599. fi
  10600. ;;
  10601. tpf*)
  10602. # Don't try to run any link tests for TPF. We know it's impossible
  10603. # because TPF is a cross-compiler, and we know how we open DSOs.
  10604. lt_cv_dlopen=dlopen
  10605. lt_cv_dlopen_libs=
  10606. lt_cv_dlopen_self=no
  10607. ;;
  10608. *)
  10609. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10610. if test "x$ac_cv_func_shl_load" = xyes
  10611. then :
  10612. lt_cv_dlopen=shl_load
  10613. else $as_nop
  10614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10615. printf %s "checking for shl_load in -ldld... " >&6; }
  10616. if test ${ac_cv_lib_dld_shl_load+y}
  10617. then :
  10618. printf %s "(cached) " >&6
  10619. else $as_nop
  10620. ac_check_lib_save_LIBS=$LIBS
  10621. LIBS="-ldld $LIBS"
  10622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10623. /* end confdefs.h. */
  10624. /* Override any GCC internal prototype to avoid an error.
  10625. Use char because int might match the return type of a GCC
  10626. builtin and then its argument prototype would still apply. */
  10627. char shl_load ();
  10628. int
  10629. main (void)
  10630. {
  10631. return shl_load ();
  10632. ;
  10633. return 0;
  10634. }
  10635. _ACEOF
  10636. if ac_fn_c_try_link "$LINENO"
  10637. then :
  10638. ac_cv_lib_dld_shl_load=yes
  10639. else $as_nop
  10640. ac_cv_lib_dld_shl_load=no
  10641. fi
  10642. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10643. conftest$ac_exeext conftest.$ac_ext
  10644. LIBS=$ac_check_lib_save_LIBS
  10645. fi
  10646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10647. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10648. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10649. then :
  10650. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10651. else $as_nop
  10652. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10653. if test "x$ac_cv_func_dlopen" = xyes
  10654. then :
  10655. lt_cv_dlopen=dlopen
  10656. else $as_nop
  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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10696. printf %s "checking for dlopen in -lsvld... " >&6; }
  10697. if test ${ac_cv_lib_svld_dlopen+y}
  10698. then :
  10699. printf %s "(cached) " >&6
  10700. else $as_nop
  10701. ac_check_lib_save_LIBS=$LIBS
  10702. LIBS="-lsvld $LIBS"
  10703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10704. /* end confdefs.h. */
  10705. /* Override any GCC internal prototype to avoid an error.
  10706. Use char because int might match the return type of a GCC
  10707. builtin and then its argument prototype would still apply. */
  10708. char dlopen ();
  10709. int
  10710. main (void)
  10711. {
  10712. return dlopen ();
  10713. ;
  10714. return 0;
  10715. }
  10716. _ACEOF
  10717. if ac_fn_c_try_link "$LINENO"
  10718. then :
  10719. ac_cv_lib_svld_dlopen=yes
  10720. else $as_nop
  10721. ac_cv_lib_svld_dlopen=no
  10722. fi
  10723. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10724. conftest$ac_exeext conftest.$ac_ext
  10725. LIBS=$ac_check_lib_save_LIBS
  10726. fi
  10727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10728. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10729. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10730. then :
  10731. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10732. else $as_nop
  10733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10734. printf %s "checking for dld_link in -ldld... " >&6; }
  10735. if test ${ac_cv_lib_dld_dld_link+y}
  10736. then :
  10737. printf %s "(cached) " >&6
  10738. else $as_nop
  10739. ac_check_lib_save_LIBS=$LIBS
  10740. LIBS="-ldld $LIBS"
  10741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10742. /* end confdefs.h. */
  10743. /* Override any GCC internal prototype to avoid an error.
  10744. Use char because int might match the return type of a GCC
  10745. builtin and then its argument prototype would still apply. */
  10746. char dld_link ();
  10747. int
  10748. main (void)
  10749. {
  10750. return dld_link ();
  10751. ;
  10752. return 0;
  10753. }
  10754. _ACEOF
  10755. if ac_fn_c_try_link "$LINENO"
  10756. then :
  10757. ac_cv_lib_dld_dld_link=yes
  10758. else $as_nop
  10759. ac_cv_lib_dld_dld_link=no
  10760. fi
  10761. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10762. conftest$ac_exeext conftest.$ac_ext
  10763. LIBS=$ac_check_lib_save_LIBS
  10764. fi
  10765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10766. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10767. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10768. then :
  10769. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10770. fi
  10771. fi
  10772. fi
  10773. fi
  10774. fi
  10775. fi
  10776. ;;
  10777. esac
  10778. if test no = "$lt_cv_dlopen"; then
  10779. enable_dlopen=no
  10780. else
  10781. enable_dlopen=yes
  10782. fi
  10783. case $lt_cv_dlopen in
  10784. dlopen)
  10785. save_CPPFLAGS=$CPPFLAGS
  10786. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10787. save_LDFLAGS=$LDFLAGS
  10788. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10789. save_LIBS=$LIBS
  10790. LIBS="$lt_cv_dlopen_libs $LIBS"
  10791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10792. printf %s "checking whether a program can dlopen itself... " >&6; }
  10793. if test ${lt_cv_dlopen_self+y}
  10794. then :
  10795. printf %s "(cached) " >&6
  10796. else $as_nop
  10797. if test yes = "$cross_compiling"; then :
  10798. lt_cv_dlopen_self=cross
  10799. else
  10800. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10801. lt_status=$lt_dlunknown
  10802. cat > conftest.$ac_ext <<_LT_EOF
  10803. #line $LINENO "configure"
  10804. #include "confdefs.h"
  10805. #if HAVE_DLFCN_H
  10806. #include <dlfcn.h>
  10807. #endif
  10808. #include <stdio.h>
  10809. #ifdef RTLD_GLOBAL
  10810. # define LT_DLGLOBAL RTLD_GLOBAL
  10811. #else
  10812. # ifdef DL_GLOBAL
  10813. # define LT_DLGLOBAL DL_GLOBAL
  10814. # else
  10815. # define LT_DLGLOBAL 0
  10816. # endif
  10817. #endif
  10818. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10819. find out it does not work in some platform. */
  10820. #ifndef LT_DLLAZY_OR_NOW
  10821. # ifdef RTLD_LAZY
  10822. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10823. # else
  10824. # ifdef DL_LAZY
  10825. # define LT_DLLAZY_OR_NOW DL_LAZY
  10826. # else
  10827. # ifdef RTLD_NOW
  10828. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10829. # else
  10830. # ifdef DL_NOW
  10831. # define LT_DLLAZY_OR_NOW DL_NOW
  10832. # else
  10833. # define LT_DLLAZY_OR_NOW 0
  10834. # endif
  10835. # endif
  10836. # endif
  10837. # endif
  10838. #endif
  10839. /* When -fvisibility=hidden is used, assume the code has been annotated
  10840. correspondingly for the symbols needed. */
  10841. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10842. int fnord () __attribute__((visibility("default")));
  10843. #endif
  10844. int fnord () { return 42; }
  10845. int main ()
  10846. {
  10847. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10848. int status = $lt_dlunknown;
  10849. if (self)
  10850. {
  10851. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10852. else
  10853. {
  10854. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10855. else puts (dlerror ());
  10856. }
  10857. /* dlclose (self); */
  10858. }
  10859. else
  10860. puts (dlerror ());
  10861. return status;
  10862. }
  10863. _LT_EOF
  10864. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10865. (eval $ac_link) 2>&5
  10866. ac_status=$?
  10867. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10868. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10869. (./conftest; exit; ) >&5 2>/dev/null
  10870. lt_status=$?
  10871. case x$lt_status in
  10872. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10873. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10874. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10875. esac
  10876. else :
  10877. # compilation failed
  10878. lt_cv_dlopen_self=no
  10879. fi
  10880. fi
  10881. rm -fr conftest*
  10882. fi
  10883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10884. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10885. if test yes = "$lt_cv_dlopen_self"; then
  10886. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10888. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10889. if test ${lt_cv_dlopen_self_static+y}
  10890. then :
  10891. printf %s "(cached) " >&6
  10892. else $as_nop
  10893. if test yes = "$cross_compiling"; then :
  10894. lt_cv_dlopen_self_static=cross
  10895. else
  10896. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10897. lt_status=$lt_dlunknown
  10898. cat > conftest.$ac_ext <<_LT_EOF
  10899. #line $LINENO "configure"
  10900. #include "confdefs.h"
  10901. #if HAVE_DLFCN_H
  10902. #include <dlfcn.h>
  10903. #endif
  10904. #include <stdio.h>
  10905. #ifdef RTLD_GLOBAL
  10906. # define LT_DLGLOBAL RTLD_GLOBAL
  10907. #else
  10908. # ifdef DL_GLOBAL
  10909. # define LT_DLGLOBAL DL_GLOBAL
  10910. # else
  10911. # define LT_DLGLOBAL 0
  10912. # endif
  10913. #endif
  10914. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10915. find out it does not work in some platform. */
  10916. #ifndef LT_DLLAZY_OR_NOW
  10917. # ifdef RTLD_LAZY
  10918. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10919. # else
  10920. # ifdef DL_LAZY
  10921. # define LT_DLLAZY_OR_NOW DL_LAZY
  10922. # else
  10923. # ifdef RTLD_NOW
  10924. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10925. # else
  10926. # ifdef DL_NOW
  10927. # define LT_DLLAZY_OR_NOW DL_NOW
  10928. # else
  10929. # define LT_DLLAZY_OR_NOW 0
  10930. # endif
  10931. # endif
  10932. # endif
  10933. # endif
  10934. #endif
  10935. /* When -fvisibility=hidden is used, assume the code has been annotated
  10936. correspondingly for the symbols needed. */
  10937. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10938. int fnord () __attribute__((visibility("default")));
  10939. #endif
  10940. int fnord () { return 42; }
  10941. int main ()
  10942. {
  10943. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10944. int status = $lt_dlunknown;
  10945. if (self)
  10946. {
  10947. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10948. else
  10949. {
  10950. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10951. else puts (dlerror ());
  10952. }
  10953. /* dlclose (self); */
  10954. }
  10955. else
  10956. puts (dlerror ());
  10957. return status;
  10958. }
  10959. _LT_EOF
  10960. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10961. (eval $ac_link) 2>&5
  10962. ac_status=$?
  10963. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10964. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10965. (./conftest; exit; ) >&5 2>/dev/null
  10966. lt_status=$?
  10967. case x$lt_status in
  10968. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10969. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10970. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10971. esac
  10972. else :
  10973. # compilation failed
  10974. lt_cv_dlopen_self_static=no
  10975. fi
  10976. fi
  10977. rm -fr conftest*
  10978. fi
  10979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10980. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  10981. fi
  10982. CPPFLAGS=$save_CPPFLAGS
  10983. LDFLAGS=$save_LDFLAGS
  10984. LIBS=$save_LIBS
  10985. ;;
  10986. esac
  10987. case $lt_cv_dlopen_self in
  10988. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10989. *) enable_dlopen_self=unknown ;;
  10990. esac
  10991. case $lt_cv_dlopen_self_static in
  10992. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10993. *) enable_dlopen_self_static=unknown ;;
  10994. esac
  10995. fi
  10996. striplib=
  10997. old_striplib=
  10998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10999. printf %s "checking whether stripping libraries is possible... " >&6; }
  11000. if test -z "$STRIP"; then
  11001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11002. printf "%s\n" "no" >&6; }
  11003. else
  11004. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11005. old_striplib="$STRIP --strip-debug"
  11006. striplib="$STRIP --strip-unneeded"
  11007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11008. printf "%s\n" "yes" >&6; }
  11009. else
  11010. case $host_os in
  11011. darwin*)
  11012. # FIXME - insert some real tests, host_os isn't really good enough
  11013. striplib="$STRIP -x"
  11014. old_striplib="$STRIP -S"
  11015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11016. printf "%s\n" "yes" >&6; }
  11017. ;;
  11018. freebsd*)
  11019. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11020. old_striplib="$STRIP --strip-debug"
  11021. striplib="$STRIP --strip-unneeded"
  11022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11023. printf "%s\n" "yes" >&6; }
  11024. else
  11025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11026. printf "%s\n" "no" >&6; }
  11027. fi
  11028. ;;
  11029. *)
  11030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11031. printf "%s\n" "no" >&6; }
  11032. ;;
  11033. esac
  11034. fi
  11035. fi
  11036. # Report what library types will actually be built
  11037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11038. printf %s "checking if libtool supports shared libraries... " >&6; }
  11039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11040. printf "%s\n" "$can_build_shared" >&6; }
  11041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11042. printf %s "checking whether to build shared libraries... " >&6; }
  11043. test no = "$can_build_shared" && enable_shared=no
  11044. # On AIX, shared libraries and static libraries use the same namespace, and
  11045. # are all built from PIC.
  11046. case $host_os in
  11047. aix3*)
  11048. test yes = "$enable_shared" && enable_static=no
  11049. if test -n "$RANLIB"; then
  11050. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11051. postinstall_cmds='$RANLIB $lib'
  11052. fi
  11053. ;;
  11054. aix[4-9]*)
  11055. if test ia64 != "$host_cpu"; then
  11056. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11057. yes,aix,yes) ;; # shared object as lib.so file only
  11058. yes,svr4,*) ;; # shared object as lib.so archive member only
  11059. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11060. esac
  11061. fi
  11062. ;;
  11063. esac
  11064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11065. printf "%s\n" "$enable_shared" >&6; }
  11066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11067. printf %s "checking whether to build static libraries... " >&6; }
  11068. # Make sure either enable_shared or enable_static is yes.
  11069. test yes = "$enable_shared" || enable_static=yes
  11070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11071. printf "%s\n" "$enable_static" >&6; }
  11072. fi
  11073. ac_ext=c
  11074. ac_cpp='$CPP $CPPFLAGS'
  11075. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11076. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11077. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11078. CC=$lt_save_CC
  11079. ac_config_commands="$ac_config_commands libtool"
  11080. # Only expand once:
  11081. if test -n "$ac_tool_prefix"; then
  11082. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11083. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11085. printf %s "checking for $ac_word... " >&6; }
  11086. if test ${ac_cv_prog_RC+y}
  11087. then :
  11088. printf %s "(cached) " >&6
  11089. else $as_nop
  11090. if test -n "$RC"; then
  11091. ac_cv_prog_RC="$RC" # Let the user override the test.
  11092. else
  11093. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11094. for as_dir in $PATH
  11095. do
  11096. IFS=$as_save_IFS
  11097. case $as_dir in #(((
  11098. '') as_dir=./ ;;
  11099. */) ;;
  11100. *) as_dir=$as_dir/ ;;
  11101. esac
  11102. for ac_exec_ext in '' $ac_executable_extensions; do
  11103. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11104. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11105. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11106. break 2
  11107. fi
  11108. done
  11109. done
  11110. IFS=$as_save_IFS
  11111. fi
  11112. fi
  11113. RC=$ac_cv_prog_RC
  11114. if test -n "$RC"; then
  11115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11116. printf "%s\n" "$RC" >&6; }
  11117. else
  11118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11119. printf "%s\n" "no" >&6; }
  11120. fi
  11121. fi
  11122. if test -z "$ac_cv_prog_RC"; then
  11123. ac_ct_RC=$RC
  11124. # Extract the first word of "windres", so it can be a program name with args.
  11125. set dummy windres; ac_word=$2
  11126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11127. printf %s "checking for $ac_word... " >&6; }
  11128. if test ${ac_cv_prog_ac_ct_RC+y}
  11129. then :
  11130. printf %s "(cached) " >&6
  11131. else $as_nop
  11132. if test -n "$ac_ct_RC"; then
  11133. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11134. else
  11135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11136. for as_dir in $PATH
  11137. do
  11138. IFS=$as_save_IFS
  11139. case $as_dir in #(((
  11140. '') as_dir=./ ;;
  11141. */) ;;
  11142. *) as_dir=$as_dir/ ;;
  11143. esac
  11144. for ac_exec_ext in '' $ac_executable_extensions; do
  11145. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11146. ac_cv_prog_ac_ct_RC="windres"
  11147. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11148. break 2
  11149. fi
  11150. done
  11151. done
  11152. IFS=$as_save_IFS
  11153. fi
  11154. fi
  11155. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11156. if test -n "$ac_ct_RC"; then
  11157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11158. printf "%s\n" "$ac_ct_RC" >&6; }
  11159. else
  11160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11161. printf "%s\n" "no" >&6; }
  11162. fi
  11163. if test "x$ac_ct_RC" = x; then
  11164. RC=""
  11165. else
  11166. case $cross_compiling:$ac_tool_warned in
  11167. yes:)
  11168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11169. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11170. ac_tool_warned=yes ;;
  11171. esac
  11172. RC=$ac_ct_RC
  11173. fi
  11174. else
  11175. RC="$ac_cv_prog_RC"
  11176. fi
  11177. # Source file extension for RC test sources.
  11178. ac_ext=rc
  11179. # Object file extension for compiled RC test sources.
  11180. objext=o
  11181. objext_RC=$objext
  11182. # Code to be used in simple compile tests
  11183. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11184. # Code to be used in simple link tests
  11185. lt_simple_link_test_code=$lt_simple_compile_test_code
  11186. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11187. # If no C compiler was specified, use CC.
  11188. LTCC=${LTCC-"$CC"}
  11189. # If no C compiler flags were specified, use CFLAGS.
  11190. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11191. # Allow CC to be a program name with arguments.
  11192. compiler=$CC
  11193. # save warnings/boilerplate of simple test code
  11194. ac_outfile=conftest.$ac_objext
  11195. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11196. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11197. _lt_compiler_boilerplate=`cat conftest.err`
  11198. $RM conftest*
  11199. ac_outfile=conftest.$ac_objext
  11200. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11201. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11202. _lt_linker_boilerplate=`cat conftest.err`
  11203. $RM -r conftest*
  11204. # Allow CC to be a program name with arguments.
  11205. lt_save_CC=$CC
  11206. lt_save_CFLAGS=$CFLAGS
  11207. lt_save_GCC=$GCC
  11208. GCC=
  11209. CC=${RC-"windres"}
  11210. CFLAGS=
  11211. compiler=$CC
  11212. compiler_RC=$CC
  11213. func_cc_basename $compiler
  11214. cc_basename=$func_cc_basename_result
  11215. lt_cv_prog_compiler_c_o_RC=yes
  11216. if test -n "$compiler"; then
  11217. :
  11218. fi
  11219. GCC=$lt_save_GCC
  11220. ac_ext=c
  11221. ac_cpp='$CPP $CPPFLAGS'
  11222. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11223. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11224. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11225. CC=$lt_save_CC
  11226. CFLAGS=$lt_save_CFLAGS
  11227. # For historical reasons, the library name redundantly includes the major
  11228. # version twice: libSDL3-3.0.so.0.
  11229. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11230. LT_RELEASE=3.0
  11231. # Increment this if there is an incompatible change - but if that happens,
  11232. # we should rename the library from SDL2 to SDL3, at which point this would
  11233. # reset to 0 anyway.
  11234. LT_MAJOR=0
  11235. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11236. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11237. LT_REVISION=$SDL_INTERFACE_AGE
  11238. for ac_prog in gawk mawk nawk awk
  11239. do
  11240. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11241. set dummy $ac_prog; ac_word=$2
  11242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11243. printf %s "checking for $ac_word... " >&6; }
  11244. if test ${ac_cv_prog_AWK+y}
  11245. then :
  11246. printf %s "(cached) " >&6
  11247. else $as_nop
  11248. if test -n "$AWK"; then
  11249. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11250. else
  11251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11252. for as_dir in $PATH
  11253. do
  11254. IFS=$as_save_IFS
  11255. case $as_dir in #(((
  11256. '') as_dir=./ ;;
  11257. */) ;;
  11258. *) as_dir=$as_dir/ ;;
  11259. esac
  11260. for ac_exec_ext in '' $ac_executable_extensions; do
  11261. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11262. ac_cv_prog_AWK="$ac_prog"
  11263. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11264. break 2
  11265. fi
  11266. done
  11267. done
  11268. IFS=$as_save_IFS
  11269. fi
  11270. fi
  11271. AWK=$ac_cv_prog_AWK
  11272. if test -n "$AWK"; then
  11273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11274. printf "%s\n" "$AWK" >&6; }
  11275. else
  11276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11277. printf "%s\n" "no" >&6; }
  11278. fi
  11279. test -n "$AWK" && break
  11280. done
  11281. ac_ext=c
  11282. ac_cpp='$CPP $CPPFLAGS'
  11283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11286. if test -n "$ac_tool_prefix"; then
  11287. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11288. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11290. printf %s "checking for $ac_word... " >&6; }
  11291. if test ${ac_cv_prog_CC+y}
  11292. then :
  11293. printf %s "(cached) " >&6
  11294. else $as_nop
  11295. if test -n "$CC"; then
  11296. ac_cv_prog_CC="$CC" # Let the user override the test.
  11297. else
  11298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11299. for as_dir in $PATH
  11300. do
  11301. IFS=$as_save_IFS
  11302. case $as_dir in #(((
  11303. '') as_dir=./ ;;
  11304. */) ;;
  11305. *) as_dir=$as_dir/ ;;
  11306. esac
  11307. for ac_exec_ext in '' $ac_executable_extensions; do
  11308. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11309. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11310. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11311. break 2
  11312. fi
  11313. done
  11314. done
  11315. IFS=$as_save_IFS
  11316. fi
  11317. fi
  11318. CC=$ac_cv_prog_CC
  11319. if test -n "$CC"; then
  11320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11321. printf "%s\n" "$CC" >&6; }
  11322. else
  11323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11324. printf "%s\n" "no" >&6; }
  11325. fi
  11326. fi
  11327. if test -z "$ac_cv_prog_CC"; then
  11328. ac_ct_CC=$CC
  11329. # Extract the first word of "gcc", so it can be a program name with args.
  11330. set dummy gcc; ac_word=$2
  11331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11332. printf %s "checking for $ac_word... " >&6; }
  11333. if test ${ac_cv_prog_ac_ct_CC+y}
  11334. then :
  11335. printf %s "(cached) " >&6
  11336. else $as_nop
  11337. if test -n "$ac_ct_CC"; then
  11338. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11339. else
  11340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11341. for as_dir in $PATH
  11342. do
  11343. IFS=$as_save_IFS
  11344. case $as_dir in #(((
  11345. '') as_dir=./ ;;
  11346. */) ;;
  11347. *) as_dir=$as_dir/ ;;
  11348. esac
  11349. for ac_exec_ext in '' $ac_executable_extensions; do
  11350. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11351. ac_cv_prog_ac_ct_CC="gcc"
  11352. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11353. break 2
  11354. fi
  11355. done
  11356. done
  11357. IFS=$as_save_IFS
  11358. fi
  11359. fi
  11360. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11361. if test -n "$ac_ct_CC"; then
  11362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11363. printf "%s\n" "$ac_ct_CC" >&6; }
  11364. else
  11365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11366. printf "%s\n" "no" >&6; }
  11367. fi
  11368. if test "x$ac_ct_CC" = x; then
  11369. CC=""
  11370. else
  11371. case $cross_compiling:$ac_tool_warned in
  11372. yes:)
  11373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11374. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11375. ac_tool_warned=yes ;;
  11376. esac
  11377. CC=$ac_ct_CC
  11378. fi
  11379. else
  11380. CC="$ac_cv_prog_CC"
  11381. fi
  11382. if test -z "$CC"; then
  11383. if test -n "$ac_tool_prefix"; then
  11384. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11385. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11387. printf %s "checking for $ac_word... " >&6; }
  11388. if test ${ac_cv_prog_CC+y}
  11389. then :
  11390. printf %s "(cached) " >&6
  11391. else $as_nop
  11392. if test -n "$CC"; then
  11393. ac_cv_prog_CC="$CC" # Let the user override the test.
  11394. else
  11395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11396. for as_dir in $PATH
  11397. do
  11398. IFS=$as_save_IFS
  11399. case $as_dir in #(((
  11400. '') as_dir=./ ;;
  11401. */) ;;
  11402. *) as_dir=$as_dir/ ;;
  11403. esac
  11404. for ac_exec_ext in '' $ac_executable_extensions; do
  11405. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11406. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11407. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11408. break 2
  11409. fi
  11410. done
  11411. done
  11412. IFS=$as_save_IFS
  11413. fi
  11414. fi
  11415. CC=$ac_cv_prog_CC
  11416. if test -n "$CC"; then
  11417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11418. printf "%s\n" "$CC" >&6; }
  11419. else
  11420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11421. printf "%s\n" "no" >&6; }
  11422. fi
  11423. fi
  11424. fi
  11425. if test -z "$CC"; then
  11426. # Extract the first word of "cc", so it can be a program name with args.
  11427. set dummy cc; ac_word=$2
  11428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11429. printf %s "checking for $ac_word... " >&6; }
  11430. if test ${ac_cv_prog_CC+y}
  11431. then :
  11432. printf %s "(cached) " >&6
  11433. else $as_nop
  11434. if test -n "$CC"; then
  11435. ac_cv_prog_CC="$CC" # Let the user override the test.
  11436. else
  11437. ac_prog_rejected=no
  11438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11439. for as_dir in $PATH
  11440. do
  11441. IFS=$as_save_IFS
  11442. case $as_dir in #(((
  11443. '') as_dir=./ ;;
  11444. */) ;;
  11445. *) as_dir=$as_dir/ ;;
  11446. esac
  11447. for ac_exec_ext in '' $ac_executable_extensions; do
  11448. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11449. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11450. ac_prog_rejected=yes
  11451. continue
  11452. fi
  11453. ac_cv_prog_CC="cc"
  11454. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11455. break 2
  11456. fi
  11457. done
  11458. done
  11459. IFS=$as_save_IFS
  11460. if test $ac_prog_rejected = yes; then
  11461. # We found a bogon in the path, so make sure we never use it.
  11462. set dummy $ac_cv_prog_CC
  11463. shift
  11464. if test $# != 0; then
  11465. # We chose a different compiler from the bogus one.
  11466. # However, it has the same basename, so the bogon will be chosen
  11467. # first if we set CC to just the basename; use the full file name.
  11468. shift
  11469. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11470. fi
  11471. fi
  11472. fi
  11473. fi
  11474. CC=$ac_cv_prog_CC
  11475. if test -n "$CC"; then
  11476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11477. printf "%s\n" "$CC" >&6; }
  11478. else
  11479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11480. printf "%s\n" "no" >&6; }
  11481. fi
  11482. fi
  11483. if test -z "$CC"; then
  11484. if test -n "$ac_tool_prefix"; then
  11485. for ac_prog in cl.exe
  11486. do
  11487. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11488. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11490. printf %s "checking for $ac_word... " >&6; }
  11491. if test ${ac_cv_prog_CC+y}
  11492. then :
  11493. printf %s "(cached) " >&6
  11494. else $as_nop
  11495. if test -n "$CC"; then
  11496. ac_cv_prog_CC="$CC" # Let the user override the test.
  11497. else
  11498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11499. for as_dir in $PATH
  11500. do
  11501. IFS=$as_save_IFS
  11502. case $as_dir in #(((
  11503. '') as_dir=./ ;;
  11504. */) ;;
  11505. *) as_dir=$as_dir/ ;;
  11506. esac
  11507. for ac_exec_ext in '' $ac_executable_extensions; do
  11508. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11509. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11510. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11511. break 2
  11512. fi
  11513. done
  11514. done
  11515. IFS=$as_save_IFS
  11516. fi
  11517. fi
  11518. CC=$ac_cv_prog_CC
  11519. if test -n "$CC"; then
  11520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11521. printf "%s\n" "$CC" >&6; }
  11522. else
  11523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11524. printf "%s\n" "no" >&6; }
  11525. fi
  11526. test -n "$CC" && break
  11527. done
  11528. fi
  11529. if test -z "$CC"; then
  11530. ac_ct_CC=$CC
  11531. for ac_prog in cl.exe
  11532. do
  11533. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11534. set dummy $ac_prog; ac_word=$2
  11535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11536. printf %s "checking for $ac_word... " >&6; }
  11537. if test ${ac_cv_prog_ac_ct_CC+y}
  11538. then :
  11539. printf %s "(cached) " >&6
  11540. else $as_nop
  11541. if test -n "$ac_ct_CC"; then
  11542. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11543. else
  11544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11545. for as_dir in $PATH
  11546. do
  11547. IFS=$as_save_IFS
  11548. case $as_dir in #(((
  11549. '') as_dir=./ ;;
  11550. */) ;;
  11551. *) as_dir=$as_dir/ ;;
  11552. esac
  11553. for ac_exec_ext in '' $ac_executable_extensions; do
  11554. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11555. ac_cv_prog_ac_ct_CC="$ac_prog"
  11556. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11557. break 2
  11558. fi
  11559. done
  11560. done
  11561. IFS=$as_save_IFS
  11562. fi
  11563. fi
  11564. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11565. if test -n "$ac_ct_CC"; then
  11566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11567. printf "%s\n" "$ac_ct_CC" >&6; }
  11568. else
  11569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11570. printf "%s\n" "no" >&6; }
  11571. fi
  11572. test -n "$ac_ct_CC" && break
  11573. done
  11574. if test "x$ac_ct_CC" = x; then
  11575. CC=""
  11576. else
  11577. case $cross_compiling:$ac_tool_warned in
  11578. yes:)
  11579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11580. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11581. ac_tool_warned=yes ;;
  11582. esac
  11583. CC=$ac_ct_CC
  11584. fi
  11585. fi
  11586. fi
  11587. if test -z "$CC"; then
  11588. if test -n "$ac_tool_prefix"; then
  11589. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11590. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11592. printf %s "checking for $ac_word... " >&6; }
  11593. if test ${ac_cv_prog_CC+y}
  11594. then :
  11595. printf %s "(cached) " >&6
  11596. else $as_nop
  11597. if test -n "$CC"; then
  11598. ac_cv_prog_CC="$CC" # Let the user override the test.
  11599. else
  11600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11601. for as_dir in $PATH
  11602. do
  11603. IFS=$as_save_IFS
  11604. case $as_dir in #(((
  11605. '') as_dir=./ ;;
  11606. */) ;;
  11607. *) as_dir=$as_dir/ ;;
  11608. esac
  11609. for ac_exec_ext in '' $ac_executable_extensions; do
  11610. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11611. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11612. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11613. break 2
  11614. fi
  11615. done
  11616. done
  11617. IFS=$as_save_IFS
  11618. fi
  11619. fi
  11620. CC=$ac_cv_prog_CC
  11621. if test -n "$CC"; then
  11622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11623. printf "%s\n" "$CC" >&6; }
  11624. else
  11625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11626. printf "%s\n" "no" >&6; }
  11627. fi
  11628. fi
  11629. if test -z "$ac_cv_prog_CC"; then
  11630. ac_ct_CC=$CC
  11631. # Extract the first word of "clang", so it can be a program name with args.
  11632. set dummy clang; ac_word=$2
  11633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11634. printf %s "checking for $ac_word... " >&6; }
  11635. if test ${ac_cv_prog_ac_ct_CC+y}
  11636. then :
  11637. printf %s "(cached) " >&6
  11638. else $as_nop
  11639. if test -n "$ac_ct_CC"; then
  11640. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11641. else
  11642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11643. for as_dir in $PATH
  11644. do
  11645. IFS=$as_save_IFS
  11646. case $as_dir in #(((
  11647. '') as_dir=./ ;;
  11648. */) ;;
  11649. *) as_dir=$as_dir/ ;;
  11650. esac
  11651. for ac_exec_ext in '' $ac_executable_extensions; do
  11652. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11653. ac_cv_prog_ac_ct_CC="clang"
  11654. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11655. break 2
  11656. fi
  11657. done
  11658. done
  11659. IFS=$as_save_IFS
  11660. fi
  11661. fi
  11662. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11663. if test -n "$ac_ct_CC"; then
  11664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11665. printf "%s\n" "$ac_ct_CC" >&6; }
  11666. else
  11667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11668. printf "%s\n" "no" >&6; }
  11669. fi
  11670. if test "x$ac_ct_CC" = x; then
  11671. CC=""
  11672. else
  11673. case $cross_compiling:$ac_tool_warned in
  11674. yes:)
  11675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11676. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11677. ac_tool_warned=yes ;;
  11678. esac
  11679. CC=$ac_ct_CC
  11680. fi
  11681. else
  11682. CC="$ac_cv_prog_CC"
  11683. fi
  11684. fi
  11685. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11686. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11687. as_fn_error $? "no acceptable C compiler found in \$PATH
  11688. See \`config.log' for more details" "$LINENO" 5; }
  11689. # Provide some information about the compiler.
  11690. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11691. set X $ac_compile
  11692. ac_compiler=$2
  11693. for ac_option in --version -v -V -qversion -version; do
  11694. { { ac_try="$ac_compiler $ac_option >&5"
  11695. case "(($ac_try" in
  11696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11697. *) ac_try_echo=$ac_try;;
  11698. esac
  11699. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11700. printf "%s\n" "$ac_try_echo"; } >&5
  11701. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11702. ac_status=$?
  11703. if test -s conftest.err; then
  11704. sed '10a\
  11705. ... rest of stderr output deleted ...
  11706. 10q' conftest.err >conftest.er1
  11707. cat conftest.er1 >&5
  11708. fi
  11709. rm -f conftest.er1 conftest.err
  11710. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11711. test $ac_status = 0; }
  11712. done
  11713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11714. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11715. if test ${ac_cv_c_compiler_gnu+y}
  11716. then :
  11717. printf %s "(cached) " >&6
  11718. else $as_nop
  11719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11720. /* end confdefs.h. */
  11721. int
  11722. main (void)
  11723. {
  11724. #ifndef __GNUC__
  11725. choke me
  11726. #endif
  11727. ;
  11728. return 0;
  11729. }
  11730. _ACEOF
  11731. if ac_fn_c_try_compile "$LINENO"
  11732. then :
  11733. ac_compiler_gnu=yes
  11734. else $as_nop
  11735. ac_compiler_gnu=no
  11736. fi
  11737. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11738. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11739. fi
  11740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11741. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11742. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11743. if test $ac_compiler_gnu = yes; then
  11744. GCC=yes
  11745. else
  11746. GCC=
  11747. fi
  11748. ac_test_CFLAGS=${CFLAGS+y}
  11749. ac_save_CFLAGS=$CFLAGS
  11750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11751. printf %s "checking whether $CC accepts -g... " >&6; }
  11752. if test ${ac_cv_prog_cc_g+y}
  11753. then :
  11754. printf %s "(cached) " >&6
  11755. else $as_nop
  11756. ac_save_c_werror_flag=$ac_c_werror_flag
  11757. ac_c_werror_flag=yes
  11758. ac_cv_prog_cc_g=no
  11759. CFLAGS="-g"
  11760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11761. /* end confdefs.h. */
  11762. int
  11763. main (void)
  11764. {
  11765. ;
  11766. return 0;
  11767. }
  11768. _ACEOF
  11769. if ac_fn_c_try_compile "$LINENO"
  11770. then :
  11771. ac_cv_prog_cc_g=yes
  11772. else $as_nop
  11773. CFLAGS=""
  11774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11775. /* end confdefs.h. */
  11776. int
  11777. main (void)
  11778. {
  11779. ;
  11780. return 0;
  11781. }
  11782. _ACEOF
  11783. if ac_fn_c_try_compile "$LINENO"
  11784. then :
  11785. else $as_nop
  11786. ac_c_werror_flag=$ac_save_c_werror_flag
  11787. CFLAGS="-g"
  11788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11789. /* end confdefs.h. */
  11790. int
  11791. main (void)
  11792. {
  11793. ;
  11794. return 0;
  11795. }
  11796. _ACEOF
  11797. if ac_fn_c_try_compile "$LINENO"
  11798. then :
  11799. ac_cv_prog_cc_g=yes
  11800. fi
  11801. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11802. fi
  11803. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11804. fi
  11805. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11806. ac_c_werror_flag=$ac_save_c_werror_flag
  11807. fi
  11808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11809. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11810. if test $ac_test_CFLAGS; then
  11811. CFLAGS=$ac_save_CFLAGS
  11812. elif test $ac_cv_prog_cc_g = yes; then
  11813. if test "$GCC" = yes; then
  11814. CFLAGS="-g -O2"
  11815. else
  11816. CFLAGS="-g"
  11817. fi
  11818. else
  11819. if test "$GCC" = yes; then
  11820. CFLAGS="-O2"
  11821. else
  11822. CFLAGS=
  11823. fi
  11824. fi
  11825. ac_prog_cc_stdc=no
  11826. if test x$ac_prog_cc_stdc = xno
  11827. then :
  11828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11829. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11830. if test ${ac_cv_prog_cc_c11+y}
  11831. then :
  11832. printf %s "(cached) " >&6
  11833. else $as_nop
  11834. ac_cv_prog_cc_c11=no
  11835. ac_save_CC=$CC
  11836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11837. /* end confdefs.h. */
  11838. $ac_c_conftest_c11_program
  11839. _ACEOF
  11840. for ac_arg in '' -std=gnu11
  11841. do
  11842. CC="$ac_save_CC $ac_arg"
  11843. if ac_fn_c_try_compile "$LINENO"
  11844. then :
  11845. ac_cv_prog_cc_c11=$ac_arg
  11846. fi
  11847. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11848. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11849. done
  11850. rm -f conftest.$ac_ext
  11851. CC=$ac_save_CC
  11852. fi
  11853. if test "x$ac_cv_prog_cc_c11" = xno
  11854. then :
  11855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11856. printf "%s\n" "unsupported" >&6; }
  11857. else $as_nop
  11858. if test "x$ac_cv_prog_cc_c11" = x
  11859. then :
  11860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11861. printf "%s\n" "none needed" >&6; }
  11862. else $as_nop
  11863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11864. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11865. CC="$CC $ac_cv_prog_cc_c11"
  11866. fi
  11867. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11868. ac_prog_cc_stdc=c11
  11869. fi
  11870. fi
  11871. if test x$ac_prog_cc_stdc = xno
  11872. then :
  11873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11874. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11875. if test ${ac_cv_prog_cc_c99+y}
  11876. then :
  11877. printf %s "(cached) " >&6
  11878. else $as_nop
  11879. ac_cv_prog_cc_c99=no
  11880. ac_save_CC=$CC
  11881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11882. /* end confdefs.h. */
  11883. $ac_c_conftest_c99_program
  11884. _ACEOF
  11885. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11886. do
  11887. CC="$ac_save_CC $ac_arg"
  11888. if ac_fn_c_try_compile "$LINENO"
  11889. then :
  11890. ac_cv_prog_cc_c99=$ac_arg
  11891. fi
  11892. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11893. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11894. done
  11895. rm -f conftest.$ac_ext
  11896. CC=$ac_save_CC
  11897. fi
  11898. if test "x$ac_cv_prog_cc_c99" = xno
  11899. then :
  11900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11901. printf "%s\n" "unsupported" >&6; }
  11902. else $as_nop
  11903. if test "x$ac_cv_prog_cc_c99" = x
  11904. then :
  11905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11906. printf "%s\n" "none needed" >&6; }
  11907. else $as_nop
  11908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11909. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11910. CC="$CC $ac_cv_prog_cc_c99"
  11911. fi
  11912. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11913. ac_prog_cc_stdc=c99
  11914. fi
  11915. fi
  11916. if test x$ac_prog_cc_stdc = xno
  11917. then :
  11918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11919. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11920. if test ${ac_cv_prog_cc_c89+y}
  11921. then :
  11922. printf %s "(cached) " >&6
  11923. else $as_nop
  11924. ac_cv_prog_cc_c89=no
  11925. ac_save_CC=$CC
  11926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11927. /* end confdefs.h. */
  11928. $ac_c_conftest_c89_program
  11929. _ACEOF
  11930. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11931. do
  11932. CC="$ac_save_CC $ac_arg"
  11933. if ac_fn_c_try_compile "$LINENO"
  11934. then :
  11935. ac_cv_prog_cc_c89=$ac_arg
  11936. fi
  11937. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11938. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11939. done
  11940. rm -f conftest.$ac_ext
  11941. CC=$ac_save_CC
  11942. fi
  11943. if test "x$ac_cv_prog_cc_c89" = xno
  11944. then :
  11945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11946. printf "%s\n" "unsupported" >&6; }
  11947. else $as_nop
  11948. if test "x$ac_cv_prog_cc_c89" = x
  11949. then :
  11950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11951. printf "%s\n" "none needed" >&6; }
  11952. else $as_nop
  11953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11954. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  11955. CC="$CC $ac_cv_prog_cc_c89"
  11956. fi
  11957. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  11958. ac_prog_cc_stdc=c89
  11959. fi
  11960. fi
  11961. ac_ext=c
  11962. ac_cpp='$CPP $CPPFLAGS'
  11963. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11964. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11965. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11966. ac_ext=cpp
  11967. ac_cpp='$CXXCPP $CPPFLAGS'
  11968. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11969. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11970. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11971. if test -z "$CXX"; then
  11972. if test -n "$CCC"; then
  11973. CXX=$CCC
  11974. else
  11975. if test -n "$ac_tool_prefix"; then
  11976. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  11977. do
  11978. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11979. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11981. printf %s "checking for $ac_word... " >&6; }
  11982. if test ${ac_cv_prog_CXX+y}
  11983. then :
  11984. printf %s "(cached) " >&6
  11985. else $as_nop
  11986. if test -n "$CXX"; then
  11987. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11988. else
  11989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11990. for as_dir in $PATH
  11991. do
  11992. IFS=$as_save_IFS
  11993. case $as_dir in #(((
  11994. '') as_dir=./ ;;
  11995. */) ;;
  11996. *) as_dir=$as_dir/ ;;
  11997. esac
  11998. for ac_exec_ext in '' $ac_executable_extensions; do
  11999. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12000. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12001. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12002. break 2
  12003. fi
  12004. done
  12005. done
  12006. IFS=$as_save_IFS
  12007. fi
  12008. fi
  12009. CXX=$ac_cv_prog_CXX
  12010. if test -n "$CXX"; then
  12011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12012. printf "%s\n" "$CXX" >&6; }
  12013. else
  12014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12015. printf "%s\n" "no" >&6; }
  12016. fi
  12017. test -n "$CXX" && break
  12018. done
  12019. fi
  12020. if test -z "$CXX"; then
  12021. ac_ct_CXX=$CXX
  12022. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12023. do
  12024. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12025. set dummy $ac_prog; ac_word=$2
  12026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12027. printf %s "checking for $ac_word... " >&6; }
  12028. if test ${ac_cv_prog_ac_ct_CXX+y}
  12029. then :
  12030. printf %s "(cached) " >&6
  12031. else $as_nop
  12032. if test -n "$ac_ct_CXX"; then
  12033. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12034. else
  12035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12036. for as_dir in $PATH
  12037. do
  12038. IFS=$as_save_IFS
  12039. case $as_dir in #(((
  12040. '') as_dir=./ ;;
  12041. */) ;;
  12042. *) as_dir=$as_dir/ ;;
  12043. esac
  12044. for ac_exec_ext in '' $ac_executable_extensions; do
  12045. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12046. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12047. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12048. break 2
  12049. fi
  12050. done
  12051. done
  12052. IFS=$as_save_IFS
  12053. fi
  12054. fi
  12055. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12056. if test -n "$ac_ct_CXX"; then
  12057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12058. printf "%s\n" "$ac_ct_CXX" >&6; }
  12059. else
  12060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12061. printf "%s\n" "no" >&6; }
  12062. fi
  12063. test -n "$ac_ct_CXX" && break
  12064. done
  12065. if test "x$ac_ct_CXX" = x; then
  12066. CXX="g++"
  12067. else
  12068. case $cross_compiling:$ac_tool_warned in
  12069. yes:)
  12070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12071. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12072. ac_tool_warned=yes ;;
  12073. esac
  12074. CXX=$ac_ct_CXX
  12075. fi
  12076. fi
  12077. fi
  12078. fi
  12079. # Provide some information about the compiler.
  12080. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12081. set X $ac_compile
  12082. ac_compiler=$2
  12083. for ac_option in --version -v -V -qversion; do
  12084. { { ac_try="$ac_compiler $ac_option >&5"
  12085. case "(($ac_try" in
  12086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12087. *) ac_try_echo=$ac_try;;
  12088. esac
  12089. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12090. printf "%s\n" "$ac_try_echo"; } >&5
  12091. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12092. ac_status=$?
  12093. if test -s conftest.err; then
  12094. sed '10a\
  12095. ... rest of stderr output deleted ...
  12096. 10q' conftest.err >conftest.er1
  12097. cat conftest.er1 >&5
  12098. fi
  12099. rm -f conftest.er1 conftest.err
  12100. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12101. test $ac_status = 0; }
  12102. done
  12103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12104. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12105. if test ${ac_cv_cxx_compiler_gnu+y}
  12106. then :
  12107. printf %s "(cached) " >&6
  12108. else $as_nop
  12109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12110. /* end confdefs.h. */
  12111. int
  12112. main (void)
  12113. {
  12114. #ifndef __GNUC__
  12115. choke me
  12116. #endif
  12117. ;
  12118. return 0;
  12119. }
  12120. _ACEOF
  12121. if ac_fn_cxx_try_compile "$LINENO"
  12122. then :
  12123. ac_compiler_gnu=yes
  12124. else $as_nop
  12125. ac_compiler_gnu=no
  12126. fi
  12127. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12128. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12129. fi
  12130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12131. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12132. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12133. if test $ac_compiler_gnu = yes; then
  12134. GXX=yes
  12135. else
  12136. GXX=
  12137. fi
  12138. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12139. ac_save_CXXFLAGS=$CXXFLAGS
  12140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12141. printf %s "checking whether $CXX accepts -g... " >&6; }
  12142. if test ${ac_cv_prog_cxx_g+y}
  12143. then :
  12144. printf %s "(cached) " >&6
  12145. else $as_nop
  12146. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12147. ac_cxx_werror_flag=yes
  12148. ac_cv_prog_cxx_g=no
  12149. CXXFLAGS="-g"
  12150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12151. /* end confdefs.h. */
  12152. int
  12153. main (void)
  12154. {
  12155. ;
  12156. return 0;
  12157. }
  12158. _ACEOF
  12159. if ac_fn_cxx_try_compile "$LINENO"
  12160. then :
  12161. ac_cv_prog_cxx_g=yes
  12162. else $as_nop
  12163. CXXFLAGS=""
  12164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12165. /* end confdefs.h. */
  12166. int
  12167. main (void)
  12168. {
  12169. ;
  12170. return 0;
  12171. }
  12172. _ACEOF
  12173. if ac_fn_cxx_try_compile "$LINENO"
  12174. then :
  12175. else $as_nop
  12176. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12177. CXXFLAGS="-g"
  12178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12179. /* end confdefs.h. */
  12180. int
  12181. main (void)
  12182. {
  12183. ;
  12184. return 0;
  12185. }
  12186. _ACEOF
  12187. if ac_fn_cxx_try_compile "$LINENO"
  12188. then :
  12189. ac_cv_prog_cxx_g=yes
  12190. fi
  12191. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12192. fi
  12193. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12194. fi
  12195. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12196. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12197. fi
  12198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12199. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12200. if test $ac_test_CXXFLAGS; then
  12201. CXXFLAGS=$ac_save_CXXFLAGS
  12202. elif test $ac_cv_prog_cxx_g = yes; then
  12203. if test "$GXX" = yes; then
  12204. CXXFLAGS="-g -O2"
  12205. else
  12206. CXXFLAGS="-g"
  12207. fi
  12208. else
  12209. if test "$GXX" = yes; then
  12210. CXXFLAGS="-O2"
  12211. else
  12212. CXXFLAGS=
  12213. fi
  12214. fi
  12215. ac_prog_cxx_stdcxx=no
  12216. if test x$ac_prog_cxx_stdcxx = xno
  12217. then :
  12218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12219. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12220. if test ${ac_cv_prog_cxx_11+y}
  12221. then :
  12222. printf %s "(cached) " >&6
  12223. else $as_nop
  12224. ac_cv_prog_cxx_11=no
  12225. ac_save_CXX=$CXX
  12226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12227. /* end confdefs.h. */
  12228. $ac_cxx_conftest_cxx11_program
  12229. _ACEOF
  12230. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12231. do
  12232. CXX="$ac_save_CXX $ac_arg"
  12233. if ac_fn_cxx_try_compile "$LINENO"
  12234. then :
  12235. ac_cv_prog_cxx_cxx11=$ac_arg
  12236. fi
  12237. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12238. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12239. done
  12240. rm -f conftest.$ac_ext
  12241. CXX=$ac_save_CXX
  12242. fi
  12243. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12244. then :
  12245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12246. printf "%s\n" "unsupported" >&6; }
  12247. else $as_nop
  12248. if test "x$ac_cv_prog_cxx_cxx11" = x
  12249. then :
  12250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12251. printf "%s\n" "none needed" >&6; }
  12252. else $as_nop
  12253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12254. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12255. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12256. fi
  12257. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12258. ac_prog_cxx_stdcxx=cxx11
  12259. fi
  12260. fi
  12261. if test x$ac_prog_cxx_stdcxx = xno
  12262. then :
  12263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12264. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12265. if test ${ac_cv_prog_cxx_98+y}
  12266. then :
  12267. printf %s "(cached) " >&6
  12268. else $as_nop
  12269. ac_cv_prog_cxx_98=no
  12270. ac_save_CXX=$CXX
  12271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12272. /* end confdefs.h. */
  12273. $ac_cxx_conftest_cxx98_program
  12274. _ACEOF
  12275. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12276. do
  12277. CXX="$ac_save_CXX $ac_arg"
  12278. if ac_fn_cxx_try_compile "$LINENO"
  12279. then :
  12280. ac_cv_prog_cxx_cxx98=$ac_arg
  12281. fi
  12282. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12283. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12284. done
  12285. rm -f conftest.$ac_ext
  12286. CXX=$ac_save_CXX
  12287. fi
  12288. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12289. then :
  12290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12291. printf "%s\n" "unsupported" >&6; }
  12292. else $as_nop
  12293. if test "x$ac_cv_prog_cxx_cxx98" = x
  12294. then :
  12295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12296. printf "%s\n" "none needed" >&6; }
  12297. else $as_nop
  12298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12299. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12300. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12301. fi
  12302. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12303. ac_prog_cxx_stdcxx=cxx98
  12304. fi
  12305. fi
  12306. ac_ext=c
  12307. ac_cpp='$CPP $CPPFLAGS'
  12308. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12309. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12310. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12311. func_stripname_cnf ()
  12312. {
  12313. case $2 in
  12314. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12315. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12316. esac
  12317. } # func_stripname_cnf
  12318. if test -n "$CXX" && ( test no != "$CXX" &&
  12319. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12320. (test g++ != "$CXX"))); then
  12321. ac_ext=cpp
  12322. ac_cpp='$CXXCPP $CPPFLAGS'
  12323. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12324. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12325. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12327. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12328. if test -z "$CXXCPP"; then
  12329. if test ${ac_cv_prog_CXXCPP+y}
  12330. then :
  12331. printf %s "(cached) " >&6
  12332. else $as_nop
  12333. # Double quotes because $CXX needs to be expanded
  12334. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12335. do
  12336. ac_preproc_ok=false
  12337. for ac_cxx_preproc_warn_flag in '' yes
  12338. do
  12339. # Use a header file that comes with gcc, so configuring glibc
  12340. # with a fresh cross-compiler works.
  12341. # On the NeXT, cc -E runs the code through the compiler's parser,
  12342. # not just through cpp. "Syntax error" is here to catch this case.
  12343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12344. /* end confdefs.h. */
  12345. #include <limits.h>
  12346. Syntax error
  12347. _ACEOF
  12348. if ac_fn_cxx_try_cpp "$LINENO"
  12349. then :
  12350. else $as_nop
  12351. # Broken: fails on valid input.
  12352. continue
  12353. fi
  12354. rm -f conftest.err conftest.i conftest.$ac_ext
  12355. # OK, works on sane cases. Now check whether nonexistent headers
  12356. # can be detected and how.
  12357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12358. /* end confdefs.h. */
  12359. #include <ac_nonexistent.h>
  12360. _ACEOF
  12361. if ac_fn_cxx_try_cpp "$LINENO"
  12362. then :
  12363. # Broken: success on invalid input.
  12364. continue
  12365. else $as_nop
  12366. # Passes both tests.
  12367. ac_preproc_ok=:
  12368. break
  12369. fi
  12370. rm -f conftest.err conftest.i conftest.$ac_ext
  12371. done
  12372. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12373. rm -f conftest.i conftest.err conftest.$ac_ext
  12374. if $ac_preproc_ok
  12375. then :
  12376. break
  12377. fi
  12378. done
  12379. ac_cv_prog_CXXCPP=$CXXCPP
  12380. fi
  12381. CXXCPP=$ac_cv_prog_CXXCPP
  12382. else
  12383. ac_cv_prog_CXXCPP=$CXXCPP
  12384. fi
  12385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12386. printf "%s\n" "$CXXCPP" >&6; }
  12387. ac_preproc_ok=false
  12388. for ac_cxx_preproc_warn_flag in '' yes
  12389. do
  12390. # Use a header file that comes with gcc, so configuring glibc
  12391. # with a fresh cross-compiler works.
  12392. # On the NeXT, cc -E runs the code through the compiler's parser,
  12393. # not just through cpp. "Syntax error" is here to catch this case.
  12394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12395. /* end confdefs.h. */
  12396. #include <limits.h>
  12397. Syntax error
  12398. _ACEOF
  12399. if ac_fn_cxx_try_cpp "$LINENO"
  12400. then :
  12401. else $as_nop
  12402. # Broken: fails on valid input.
  12403. continue
  12404. fi
  12405. rm -f conftest.err conftest.i conftest.$ac_ext
  12406. # OK, works on sane cases. Now check whether nonexistent headers
  12407. # can be detected and how.
  12408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12409. /* end confdefs.h. */
  12410. #include <ac_nonexistent.h>
  12411. _ACEOF
  12412. if ac_fn_cxx_try_cpp "$LINENO"
  12413. then :
  12414. # Broken: success on invalid input.
  12415. continue
  12416. else $as_nop
  12417. # Passes both tests.
  12418. ac_preproc_ok=:
  12419. break
  12420. fi
  12421. rm -f conftest.err conftest.i conftest.$ac_ext
  12422. done
  12423. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12424. rm -f conftest.i conftest.err conftest.$ac_ext
  12425. if $ac_preproc_ok
  12426. then :
  12427. else $as_nop
  12428. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12429. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12430. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12431. See \`config.log' for more details" "$LINENO" 5; }
  12432. fi
  12433. ac_ext=c
  12434. ac_cpp='$CPP $CPPFLAGS'
  12435. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12436. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12437. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12438. else
  12439. _lt_caught_CXX_error=yes
  12440. fi
  12441. ac_ext=cpp
  12442. ac_cpp='$CXXCPP $CPPFLAGS'
  12443. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12444. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12445. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12446. archive_cmds_need_lc_CXX=no
  12447. allow_undefined_flag_CXX=
  12448. always_export_symbols_CXX=no
  12449. archive_expsym_cmds_CXX=
  12450. compiler_needs_object_CXX=no
  12451. export_dynamic_flag_spec_CXX=
  12452. hardcode_direct_CXX=no
  12453. hardcode_direct_absolute_CXX=no
  12454. hardcode_libdir_flag_spec_CXX=
  12455. hardcode_libdir_separator_CXX=
  12456. hardcode_minus_L_CXX=no
  12457. hardcode_shlibpath_var_CXX=unsupported
  12458. hardcode_automatic_CXX=no
  12459. inherit_rpath_CXX=no
  12460. module_cmds_CXX=
  12461. module_expsym_cmds_CXX=
  12462. link_all_deplibs_CXX=unknown
  12463. old_archive_cmds_CXX=$old_archive_cmds
  12464. reload_flag_CXX=$reload_flag
  12465. reload_cmds_CXX=$reload_cmds
  12466. no_undefined_flag_CXX=
  12467. whole_archive_flag_spec_CXX=
  12468. enable_shared_with_static_runtimes_CXX=no
  12469. # Source file extension for C++ test sources.
  12470. ac_ext=cpp
  12471. # Object file extension for compiled C++ test sources.
  12472. objext=o
  12473. objext_CXX=$objext
  12474. # No sense in running all these tests if we already determined that
  12475. # the CXX compiler isn't working. Some variables (like enable_shared)
  12476. # are currently assumed to apply to all compilers on this platform,
  12477. # and will be corrupted by setting them based on a non-working compiler.
  12478. if test yes != "$_lt_caught_CXX_error"; then
  12479. # Code to be used in simple compile tests
  12480. lt_simple_compile_test_code="int some_variable = 0;"
  12481. # Code to be used in simple link tests
  12482. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12483. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12484. # If no C compiler was specified, use CC.
  12485. LTCC=${LTCC-"$CC"}
  12486. # If no C compiler flags were specified, use CFLAGS.
  12487. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12488. # Allow CC to be a program name with arguments.
  12489. compiler=$CC
  12490. # save warnings/boilerplate of simple test code
  12491. ac_outfile=conftest.$ac_objext
  12492. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12493. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12494. _lt_compiler_boilerplate=`cat conftest.err`
  12495. $RM conftest*
  12496. ac_outfile=conftest.$ac_objext
  12497. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12498. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12499. _lt_linker_boilerplate=`cat conftest.err`
  12500. $RM -r conftest*
  12501. # Allow CC to be a program name with arguments.
  12502. lt_save_CC=$CC
  12503. lt_save_CFLAGS=$CFLAGS
  12504. lt_save_LD=$LD
  12505. lt_save_GCC=$GCC
  12506. GCC=$GXX
  12507. lt_save_with_gnu_ld=$with_gnu_ld
  12508. lt_save_path_LD=$lt_cv_path_LD
  12509. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12510. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12511. else
  12512. $as_unset lt_cv_prog_gnu_ld
  12513. fi
  12514. if test -n "${lt_cv_path_LDCXX+set}"; then
  12515. lt_cv_path_LD=$lt_cv_path_LDCXX
  12516. else
  12517. $as_unset lt_cv_path_LD
  12518. fi
  12519. test -z "${LDCXX+set}" || LD=$LDCXX
  12520. CC=${CXX-"c++"}
  12521. CFLAGS=$CXXFLAGS
  12522. compiler=$CC
  12523. compiler_CXX=$CC
  12524. func_cc_basename $compiler
  12525. cc_basename=$func_cc_basename_result
  12526. if test -n "$compiler"; then
  12527. # We don't want -fno-exception when compiling C++ code, so set the
  12528. # no_builtin_flag separately
  12529. if test yes = "$GXX"; then
  12530. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12531. else
  12532. lt_prog_compiler_no_builtin_flag_CXX=
  12533. fi
  12534. if test yes = "$GXX"; then
  12535. # Set up default GNU C++ configuration
  12536. # Check whether --with-gnu-ld was given.
  12537. if test ${with_gnu_ld+y}
  12538. then :
  12539. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12540. else $as_nop
  12541. with_gnu_ld=no
  12542. fi
  12543. ac_prog=ld
  12544. if test yes = "$GCC"; then
  12545. # Check if gcc -print-prog-name=ld gives a path.
  12546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12547. printf %s "checking for ld used by $CC... " >&6; }
  12548. case $host in
  12549. *-*-mingw*)
  12550. # gcc leaves a trailing carriage return, which upsets mingw
  12551. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12552. *)
  12553. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12554. esac
  12555. case $ac_prog in
  12556. # Accept absolute paths.
  12557. [\\/]* | ?:[\\/]*)
  12558. re_direlt='/[^/][^/]*/\.\./'
  12559. # Canonicalize the pathname of ld
  12560. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12561. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12562. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12563. done
  12564. test -z "$LD" && LD=$ac_prog
  12565. ;;
  12566. "")
  12567. # If it fails, then pretend we aren't using GCC.
  12568. ac_prog=ld
  12569. ;;
  12570. *)
  12571. # If it is relative, then search for the first ld in PATH.
  12572. with_gnu_ld=unknown
  12573. ;;
  12574. esac
  12575. elif test yes = "$with_gnu_ld"; then
  12576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12577. printf %s "checking for GNU ld... " >&6; }
  12578. else
  12579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12580. printf %s "checking for non-GNU ld... " >&6; }
  12581. fi
  12582. if test ${lt_cv_path_LD+y}
  12583. then :
  12584. printf %s "(cached) " >&6
  12585. else $as_nop
  12586. if test -z "$LD"; then
  12587. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12588. for ac_dir in $PATH; do
  12589. IFS=$lt_save_ifs
  12590. test -z "$ac_dir" && ac_dir=.
  12591. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12592. lt_cv_path_LD=$ac_dir/$ac_prog
  12593. # Check to see if the program is GNU ld. I'd rather use --version,
  12594. # but apparently some variants of GNU ld only accept -v.
  12595. # Break only if it was the GNU/non-GNU ld that we prefer.
  12596. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12597. *GNU* | *'with BFD'*)
  12598. test no != "$with_gnu_ld" && break
  12599. ;;
  12600. *)
  12601. test yes != "$with_gnu_ld" && break
  12602. ;;
  12603. esac
  12604. fi
  12605. done
  12606. IFS=$lt_save_ifs
  12607. else
  12608. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12609. fi
  12610. fi
  12611. LD=$lt_cv_path_LD
  12612. if test -n "$LD"; then
  12613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12614. printf "%s\n" "$LD" >&6; }
  12615. else
  12616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12617. printf "%s\n" "no" >&6; }
  12618. fi
  12619. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12621. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12622. if test ${lt_cv_prog_gnu_ld+y}
  12623. then :
  12624. printf %s "(cached) " >&6
  12625. else $as_nop
  12626. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12627. case `$LD -v 2>&1 </dev/null` in
  12628. *GNU* | *'with BFD'*)
  12629. lt_cv_prog_gnu_ld=yes
  12630. ;;
  12631. *)
  12632. lt_cv_prog_gnu_ld=no
  12633. ;;
  12634. esac
  12635. fi
  12636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12637. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12638. with_gnu_ld=$lt_cv_prog_gnu_ld
  12639. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12640. # archiving commands below assume that GNU ld is being used.
  12641. if test yes = "$with_gnu_ld"; then
  12642. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12643. 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'
  12644. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12645. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12646. # If archive_cmds runs LD, not CC, wlarc should be empty
  12647. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12648. # investigate it a little bit more. (MM)
  12649. wlarc='$wl'
  12650. # ancient GNU ld didn't support --whole-archive et. al.
  12651. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12652. $GREP 'no-whole-archive' > /dev/null; then
  12653. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12654. else
  12655. whole_archive_flag_spec_CXX=
  12656. fi
  12657. else
  12658. with_gnu_ld=no
  12659. wlarc=
  12660. # A generic and very simple default shared library creation
  12661. # command for GNU C++ for the case where it uses the native
  12662. # linker, instead of GNU ld. If possible, this setting should
  12663. # overridden to take advantage of the native linker features on
  12664. # the platform it is being used on.
  12665. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12666. fi
  12667. # Commands to make compiler produce verbose output that lists
  12668. # what "hidden" libraries, object files and flags are used when
  12669. # linking a shared library.
  12670. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12671. else
  12672. GXX=no
  12673. with_gnu_ld=no
  12674. wlarc=
  12675. fi
  12676. # PORTME: fill in a description of your system's C++ link characteristics
  12677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12678. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12679. ld_shlibs_CXX=yes
  12680. case $host_os in
  12681. aix3*)
  12682. # FIXME: insert proper C++ library support
  12683. ld_shlibs_CXX=no
  12684. ;;
  12685. aix[4-9]*)
  12686. if test ia64 = "$host_cpu"; then
  12687. # On IA64, the linker does run time linking by default, so we don't
  12688. # have to do anything special.
  12689. aix_use_runtimelinking=no
  12690. exp_sym_flag='-Bexport'
  12691. no_entry_flag=
  12692. else
  12693. aix_use_runtimelinking=no
  12694. # Test if we are trying to use run time linking or normal
  12695. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12696. # have runtime linking enabled, and use it for executables.
  12697. # For shared libraries, we enable/disable runtime linking
  12698. # depending on the kind of the shared library created -
  12699. # when "with_aix_soname,aix_use_runtimelinking" is:
  12700. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12701. # "aix,yes" lib.so shared, rtl:yes, for executables
  12702. # lib.a static archive
  12703. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12704. # lib.a(lib.so.V) shared, rtl:no, for executables
  12705. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12706. # lib.a(lib.so.V) shared, rtl:no
  12707. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12708. # lib.a static archive
  12709. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12710. for ld_flag in $LDFLAGS; do
  12711. case $ld_flag in
  12712. *-brtl*)
  12713. aix_use_runtimelinking=yes
  12714. break
  12715. ;;
  12716. esac
  12717. done
  12718. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12719. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12720. # so we don't have lib.a shared libs to link our executables.
  12721. # We have to force runtime linking in this case.
  12722. aix_use_runtimelinking=yes
  12723. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12724. fi
  12725. ;;
  12726. esac
  12727. exp_sym_flag='-bexport'
  12728. no_entry_flag='-bnoentry'
  12729. fi
  12730. # When large executables or shared objects are built, AIX ld can
  12731. # have problems creating the table of contents. If linking a library
  12732. # or program results in "error TOC overflow" add -mminimal-toc to
  12733. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12734. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12735. archive_cmds_CXX=''
  12736. hardcode_direct_CXX=yes
  12737. hardcode_direct_absolute_CXX=yes
  12738. hardcode_libdir_separator_CXX=':'
  12739. link_all_deplibs_CXX=yes
  12740. file_list_spec_CXX='$wl-f,'
  12741. case $with_aix_soname,$aix_use_runtimelinking in
  12742. aix,*) ;; # no import file
  12743. svr4,* | *,yes) # use import file
  12744. # The Import File defines what to hardcode.
  12745. hardcode_direct_CXX=no
  12746. hardcode_direct_absolute_CXX=no
  12747. ;;
  12748. esac
  12749. if test yes = "$GXX"; then
  12750. case $host_os in aix4.[012]|aix4.[012].*)
  12751. # We only want to do this on AIX 4.2 and lower, the check
  12752. # below for broken collect2 doesn't work under 4.3+
  12753. collect2name=`$CC -print-prog-name=collect2`
  12754. if test -f "$collect2name" &&
  12755. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12756. then
  12757. # We have reworked collect2
  12758. :
  12759. else
  12760. # We have old collect2
  12761. hardcode_direct_CXX=unsupported
  12762. # It fails to find uninstalled libraries when the uninstalled
  12763. # path is not listed in the libpath. Setting hardcode_minus_L
  12764. # to unsupported forces relinking
  12765. hardcode_minus_L_CXX=yes
  12766. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12767. hardcode_libdir_separator_CXX=
  12768. fi
  12769. esac
  12770. shared_flag='-shared'
  12771. if test yes = "$aix_use_runtimelinking"; then
  12772. shared_flag=$shared_flag' $wl-G'
  12773. fi
  12774. # Need to ensure runtime linking is disabled for the traditional
  12775. # shared library, or the linker may eventually find shared libraries
  12776. # /with/ Import File - we do not want to mix them.
  12777. shared_flag_aix='-shared'
  12778. shared_flag_svr4='-shared $wl-G'
  12779. else
  12780. # not using gcc
  12781. if test ia64 = "$host_cpu"; then
  12782. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12783. # chokes on -Wl,-G. The following line is correct:
  12784. shared_flag='-G'
  12785. else
  12786. if test yes = "$aix_use_runtimelinking"; then
  12787. shared_flag='$wl-G'
  12788. else
  12789. shared_flag='$wl-bM:SRE'
  12790. fi
  12791. shared_flag_aix='$wl-bM:SRE'
  12792. shared_flag_svr4='$wl-G'
  12793. fi
  12794. fi
  12795. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12796. # It seems that -bexpall does not export symbols beginning with
  12797. # underscore (_), so it is better to generate a list of symbols to
  12798. # export.
  12799. always_export_symbols_CXX=yes
  12800. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12801. # Warning - without using the other runtime loading flags (-brtl),
  12802. # -berok will link without error, but may produce a broken library.
  12803. # The "-G" linker flag allows undefined symbols.
  12804. no_undefined_flag_CXX='-bernotok'
  12805. # Determine the default libpath from the value encoded in an empty
  12806. # executable.
  12807. if test set = "${lt_cv_aix_libpath+set}"; then
  12808. aix_libpath=$lt_cv_aix_libpath
  12809. else
  12810. if test ${lt_cv_aix_libpath__CXX+y}
  12811. then :
  12812. printf %s "(cached) " >&6
  12813. else $as_nop
  12814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12815. /* end confdefs.h. */
  12816. int
  12817. main (void)
  12818. {
  12819. ;
  12820. return 0;
  12821. }
  12822. _ACEOF
  12823. if ac_fn_cxx_try_link "$LINENO"
  12824. then :
  12825. lt_aix_libpath_sed='
  12826. /Import File Strings/,/^$/ {
  12827. /^0/ {
  12828. s/^0 *\([^ ]*\) *$/\1/
  12829. p
  12830. }
  12831. }'
  12832. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12833. # Check for a 64-bit object if we didn't find anything.
  12834. if test -z "$lt_cv_aix_libpath__CXX"; then
  12835. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12836. fi
  12837. fi
  12838. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12839. conftest$ac_exeext conftest.$ac_ext
  12840. if test -z "$lt_cv_aix_libpath__CXX"; then
  12841. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12842. fi
  12843. fi
  12844. aix_libpath=$lt_cv_aix_libpath__CXX
  12845. fi
  12846. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12847. 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
  12848. else
  12849. if test ia64 = "$host_cpu"; then
  12850. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12851. allow_undefined_flag_CXX="-z nodefs"
  12852. 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"
  12853. else
  12854. # Determine the default libpath from the value encoded in an
  12855. # empty executable.
  12856. if test set = "${lt_cv_aix_libpath+set}"; then
  12857. aix_libpath=$lt_cv_aix_libpath
  12858. else
  12859. if test ${lt_cv_aix_libpath__CXX+y}
  12860. then :
  12861. printf %s "(cached) " >&6
  12862. else $as_nop
  12863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12864. /* end confdefs.h. */
  12865. int
  12866. main (void)
  12867. {
  12868. ;
  12869. return 0;
  12870. }
  12871. _ACEOF
  12872. if ac_fn_cxx_try_link "$LINENO"
  12873. then :
  12874. lt_aix_libpath_sed='
  12875. /Import File Strings/,/^$/ {
  12876. /^0/ {
  12877. s/^0 *\([^ ]*\) *$/\1/
  12878. p
  12879. }
  12880. }'
  12881. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12882. # Check for a 64-bit object if we didn't find anything.
  12883. if test -z "$lt_cv_aix_libpath__CXX"; then
  12884. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12885. fi
  12886. fi
  12887. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12888. conftest$ac_exeext conftest.$ac_ext
  12889. if test -z "$lt_cv_aix_libpath__CXX"; then
  12890. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12891. fi
  12892. fi
  12893. aix_libpath=$lt_cv_aix_libpath__CXX
  12894. fi
  12895. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12896. # Warning - without using the other run time loading flags,
  12897. # -berok will link without error, but may produce a broken library.
  12898. no_undefined_flag_CXX=' $wl-bernotok'
  12899. allow_undefined_flag_CXX=' $wl-berok'
  12900. if test yes = "$with_gnu_ld"; then
  12901. # We only use this code for GNU lds that support --whole-archive.
  12902. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12903. else
  12904. # Exported symbols can be pulled into shared objects from archives
  12905. whole_archive_flag_spec_CXX='$convenience'
  12906. fi
  12907. archive_cmds_need_lc_CXX=yes
  12908. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12909. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12910. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12911. if test svr4 != "$with_aix_soname"; then
  12912. # This is similar to how AIX traditionally builds its shared
  12913. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12914. 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'
  12915. fi
  12916. if test aix != "$with_aix_soname"; then
  12917. 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'
  12918. else
  12919. # used by -dlpreopen to get the symbols
  12920. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12921. fi
  12922. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12923. fi
  12924. fi
  12925. ;;
  12926. beos*)
  12927. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12928. allow_undefined_flag_CXX=unsupported
  12929. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12930. # support --undefined. This deserves some investigation. FIXME
  12931. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12932. else
  12933. ld_shlibs_CXX=no
  12934. fi
  12935. ;;
  12936. chorus*)
  12937. case $cc_basename in
  12938. *)
  12939. # FIXME: insert proper C++ library support
  12940. ld_shlibs_CXX=no
  12941. ;;
  12942. esac
  12943. ;;
  12944. cygwin* | mingw* | pw32* | cegcc*)
  12945. case $GXX,$cc_basename in
  12946. ,cl* | no,cl*)
  12947. # Native MSVC
  12948. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12949. # no search path for DLLs.
  12950. hardcode_libdir_flag_spec_CXX=' '
  12951. allow_undefined_flag_CXX=unsupported
  12952. always_export_symbols_CXX=yes
  12953. file_list_spec_CXX='@'
  12954. # Tell ltmain to make .lib files, not .a files.
  12955. libext=lib
  12956. # Tell ltmain to make .dll files, not .so files.
  12957. shrext_cmds=.dll
  12958. # FIXME: Setting linknames here is a bad hack.
  12959. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12960. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12961. cp "$export_symbols" "$output_objdir/$soname.def";
  12962. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12963. else
  12964. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12965. fi~
  12966. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12967. linknames='
  12968. # The linker will not automatically build a static lib if we build a DLL.
  12969. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12970. enable_shared_with_static_runtimes_CXX=yes
  12971. # Don't use ranlib
  12972. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12973. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12974. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12975. case $lt_outputfile in
  12976. *.exe|*.EXE) ;;
  12977. *)
  12978. lt_outputfile=$lt_outputfile.exe
  12979. lt_tool_outputfile=$lt_tool_outputfile.exe
  12980. ;;
  12981. esac~
  12982. func_to_tool_file "$lt_outputfile"~
  12983. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12984. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12985. $RM "$lt_outputfile.manifest";
  12986. fi'
  12987. ;;
  12988. *)
  12989. # g++
  12990. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12991. # as there is no search path for DLLs.
  12992. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12993. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12994. allow_undefined_flag_CXX=unsupported
  12995. always_export_symbols_CXX=no
  12996. enable_shared_with_static_runtimes_CXX=yes
  12997. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12998. 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'
  12999. # If the export-symbols file already is a .def file, use it as
  13000. # is; otherwise, prepend EXPORTS...
  13001. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13002. cp $export_symbols $output_objdir/$soname.def;
  13003. else
  13004. echo EXPORTS > $output_objdir/$soname.def;
  13005. cat $export_symbols >> $output_objdir/$soname.def;
  13006. fi~
  13007. $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'
  13008. else
  13009. ld_shlibs_CXX=no
  13010. fi
  13011. ;;
  13012. esac
  13013. ;;
  13014. darwin* | rhapsody*)
  13015. archive_cmds_need_lc_CXX=no
  13016. hardcode_direct_CXX=no
  13017. hardcode_automatic_CXX=yes
  13018. hardcode_shlibpath_var_CXX=unsupported
  13019. if test yes = "$lt_cv_ld_force_load"; then
  13020. 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\"`'
  13021. else
  13022. whole_archive_flag_spec_CXX=''
  13023. fi
  13024. link_all_deplibs_CXX=yes
  13025. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13026. case $cc_basename in
  13027. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13028. *) _lt_dar_can_shared=$GCC ;;
  13029. esac
  13030. if test yes = "$_lt_dar_can_shared"; then
  13031. output_verbose_link_cmd=func_echo_all
  13032. 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"
  13033. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13034. 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"
  13035. 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"
  13036. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13037. 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"
  13038. 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"
  13039. fi
  13040. else
  13041. ld_shlibs_CXX=no
  13042. fi
  13043. ;;
  13044. os2*)
  13045. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13046. hardcode_minus_L_CXX=yes
  13047. allow_undefined_flag_CXX=unsupported
  13048. shrext_cmds=.dll
  13049. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13050. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13051. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13052. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13053. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13054. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13055. emximp -o $lib $output_objdir/$libname.def'
  13056. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13057. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13058. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13059. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13060. prefix_cmds="$SED"~
  13061. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13062. prefix_cmds="$prefix_cmds -e 1d";
  13063. fi~
  13064. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13065. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13066. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13067. emximp -o $lib $output_objdir/$libname.def'
  13068. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13069. enable_shared_with_static_runtimes_CXX=yes
  13070. file_list_spec_CXX='@'
  13071. ;;
  13072. dgux*)
  13073. case $cc_basename in
  13074. ec++*)
  13075. # FIXME: insert proper C++ library support
  13076. ld_shlibs_CXX=no
  13077. ;;
  13078. ghcx*)
  13079. # Green Hills C++ Compiler
  13080. # FIXME: insert proper C++ library support
  13081. ld_shlibs_CXX=no
  13082. ;;
  13083. *)
  13084. # FIXME: insert proper C++ library support
  13085. ld_shlibs_CXX=no
  13086. ;;
  13087. esac
  13088. ;;
  13089. freebsd2.*)
  13090. # C++ shared libraries reported to be fairly broken before
  13091. # switch to ELF
  13092. ld_shlibs_CXX=no
  13093. ;;
  13094. freebsd-elf*)
  13095. archive_cmds_need_lc_CXX=no
  13096. ;;
  13097. freebsd* | dragonfly* | midnightbsd*)
  13098. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13099. # conventions
  13100. ld_shlibs_CXX=yes
  13101. ;;
  13102. haiku*)
  13103. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13104. link_all_deplibs_CXX=yes
  13105. ;;
  13106. hpux9*)
  13107. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13108. hardcode_libdir_separator_CXX=:
  13109. export_dynamic_flag_spec_CXX='$wl-E'
  13110. hardcode_direct_CXX=yes
  13111. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13112. # but as the default
  13113. # location of the library.
  13114. case $cc_basename in
  13115. CC*)
  13116. # FIXME: insert proper C++ library support
  13117. ld_shlibs_CXX=no
  13118. ;;
  13119. aCC*)
  13120. 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'
  13121. # Commands to make compiler produce verbose output that lists
  13122. # what "hidden" libraries, object files and flags are used when
  13123. # linking a shared library.
  13124. #
  13125. # There doesn't appear to be a way to prevent this compiler from
  13126. # explicitly linking system object files so we need to strip them
  13127. # from the output so that they don't get included in the library
  13128. # dependencies.
  13129. 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"'
  13130. ;;
  13131. *)
  13132. if test yes = "$GXX"; then
  13133. 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'
  13134. else
  13135. # FIXME: insert proper C++ library support
  13136. ld_shlibs_CXX=no
  13137. fi
  13138. ;;
  13139. esac
  13140. ;;
  13141. hpux10*|hpux11*)
  13142. if test no = "$with_gnu_ld"; then
  13143. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13144. hardcode_libdir_separator_CXX=:
  13145. case $host_cpu in
  13146. hppa*64*|ia64*)
  13147. ;;
  13148. *)
  13149. export_dynamic_flag_spec_CXX='$wl-E'
  13150. ;;
  13151. esac
  13152. fi
  13153. case $host_cpu in
  13154. hppa*64*|ia64*)
  13155. hardcode_direct_CXX=no
  13156. hardcode_shlibpath_var_CXX=no
  13157. ;;
  13158. *)
  13159. hardcode_direct_CXX=yes
  13160. hardcode_direct_absolute_CXX=yes
  13161. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13162. # but as the default
  13163. # location of the library.
  13164. ;;
  13165. esac
  13166. case $cc_basename in
  13167. CC*)
  13168. # FIXME: insert proper C++ library support
  13169. ld_shlibs_CXX=no
  13170. ;;
  13171. aCC*)
  13172. case $host_cpu in
  13173. hppa*64*)
  13174. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13175. ;;
  13176. ia64*)
  13177. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13178. ;;
  13179. *)
  13180. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13181. ;;
  13182. esac
  13183. # Commands to make compiler produce verbose output that lists
  13184. # what "hidden" libraries, object files and flags are used when
  13185. # linking a shared library.
  13186. #
  13187. # There doesn't appear to be a way to prevent this compiler from
  13188. # explicitly linking system object files so we need to strip them
  13189. # from the output so that they don't get included in the library
  13190. # dependencies.
  13191. 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"'
  13192. ;;
  13193. *)
  13194. if test yes = "$GXX"; then
  13195. if test no = "$with_gnu_ld"; then
  13196. case $host_cpu in
  13197. hppa*64*)
  13198. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13199. ;;
  13200. ia64*)
  13201. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13202. ;;
  13203. *)
  13204. 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'
  13205. ;;
  13206. esac
  13207. fi
  13208. else
  13209. # FIXME: insert proper C++ library support
  13210. ld_shlibs_CXX=no
  13211. fi
  13212. ;;
  13213. esac
  13214. ;;
  13215. interix[3-9]*)
  13216. hardcode_direct_CXX=no
  13217. hardcode_shlibpath_var_CXX=no
  13218. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13219. export_dynamic_flag_spec_CXX='$wl-E'
  13220. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13221. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13222. # default) and relocated if they conflict, which is a slow very memory
  13223. # consuming and fragmenting process. To avoid this, we pick a random,
  13224. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13225. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13226. 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'
  13227. 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'
  13228. ;;
  13229. irix5* | irix6*)
  13230. case $cc_basename in
  13231. CC*)
  13232. # SGI C++
  13233. 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'
  13234. # Archives containing C++ object files must be created using
  13235. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13236. # necessary to make sure instantiated templates are included
  13237. # in the archive.
  13238. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13239. ;;
  13240. *)
  13241. if test yes = "$GXX"; then
  13242. if test no = "$with_gnu_ld"; then
  13243. 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'
  13244. else
  13245. 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'
  13246. fi
  13247. fi
  13248. link_all_deplibs_CXX=yes
  13249. ;;
  13250. esac
  13251. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13252. hardcode_libdir_separator_CXX=:
  13253. inherit_rpath_CXX=yes
  13254. ;;
  13255. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13256. case $cc_basename in
  13257. KCC*)
  13258. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13259. # KCC will only create a shared library if the output file
  13260. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13261. # to its proper name (with version) after linking.
  13262. 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'
  13263. 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'
  13264. # Commands to make compiler produce verbose output that lists
  13265. # what "hidden" libraries, object files and flags are used when
  13266. # linking a shared library.
  13267. #
  13268. # There doesn't appear to be a way to prevent this compiler from
  13269. # explicitly linking system object files so we need to strip them
  13270. # from the output so that they don't get included in the library
  13271. # dependencies.
  13272. 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"'
  13273. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13274. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13275. # Archives containing C++ object files must be created using
  13276. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13277. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13278. ;;
  13279. icpc* | ecpc* )
  13280. # Intel C++
  13281. with_gnu_ld=yes
  13282. # version 8.0 and above of icpc choke on multiply defined symbols
  13283. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13284. # earlier do not add the objects themselves.
  13285. case `$CC -V 2>&1` in
  13286. *"Version 7."*)
  13287. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13288. 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'
  13289. ;;
  13290. *) # Version 8.0 or newer
  13291. tmp_idyn=
  13292. case $host_cpu in
  13293. ia64*) tmp_idyn=' -i_dynamic';;
  13294. esac
  13295. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13296. 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'
  13297. ;;
  13298. esac
  13299. archive_cmds_need_lc_CXX=no
  13300. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13301. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13302. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13303. ;;
  13304. pgCC* | pgcpp*)
  13305. # Portland Group C++ compiler
  13306. case `$CC -V` in
  13307. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13308. prelink_cmds_CXX='tpldir=Template.dir~
  13309. rm -rf $tpldir~
  13310. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13311. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13312. old_archive_cmds_CXX='tpldir=Template.dir~
  13313. rm -rf $tpldir~
  13314. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13315. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13316. $RANLIB $oldlib'
  13317. archive_cmds_CXX='tpldir=Template.dir~
  13318. rm -rf $tpldir~
  13319. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13320. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13321. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13322. rm -rf $tpldir~
  13323. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13324. $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'
  13325. ;;
  13326. *) # Version 6 and above use weak symbols
  13327. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13328. 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'
  13329. ;;
  13330. esac
  13331. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13332. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13333. 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'
  13334. ;;
  13335. cxx*)
  13336. # Compaq C++
  13337. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13338. 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'
  13339. runpath_var=LD_RUN_PATH
  13340. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13341. hardcode_libdir_separator_CXX=:
  13342. # Commands to make compiler produce verbose output that lists
  13343. # what "hidden" libraries, object files and flags are used when
  13344. # linking a shared library.
  13345. #
  13346. # There doesn't appear to be a way to prevent this compiler from
  13347. # explicitly linking system object files so we need to strip them
  13348. # from the output so that they don't get included in the library
  13349. # dependencies.
  13350. 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'
  13351. ;;
  13352. xl* | mpixl* | bgxl*)
  13353. # IBM XL 8.0 on PPC, with GNU ld
  13354. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13355. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13356. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13357. if test yes = "$supports_anon_versioning"; then
  13358. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13359. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13360. echo "local: *; };" >> $output_objdir/$libname.ver~
  13361. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13362. fi
  13363. ;;
  13364. *)
  13365. case `$CC -V 2>&1 | sed 5q` in
  13366. *Sun\ C*)
  13367. # Sun C++ 5.9
  13368. no_undefined_flag_CXX=' -zdefs'
  13369. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13370. 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'
  13371. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13372. 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'
  13373. compiler_needs_object_CXX=yes
  13374. # Not sure whether something based on
  13375. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13376. # would be better.
  13377. output_verbose_link_cmd='func_echo_all'
  13378. # Archives containing C++ object files must be created using
  13379. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13380. # necessary to make sure instantiated templates are included
  13381. # in the archive.
  13382. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13383. ;;
  13384. esac
  13385. ;;
  13386. esac
  13387. ;;
  13388. lynxos*)
  13389. # FIXME: insert proper C++ library support
  13390. ld_shlibs_CXX=no
  13391. ;;
  13392. m88k*)
  13393. # FIXME: insert proper C++ library support
  13394. ld_shlibs_CXX=no
  13395. ;;
  13396. mvs*)
  13397. case $cc_basename in
  13398. cxx*)
  13399. # FIXME: insert proper C++ library support
  13400. ld_shlibs_CXX=no
  13401. ;;
  13402. *)
  13403. # FIXME: insert proper C++ library support
  13404. ld_shlibs_CXX=no
  13405. ;;
  13406. esac
  13407. ;;
  13408. netbsd*)
  13409. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13410. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13411. wlarc=
  13412. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13413. hardcode_direct_CXX=yes
  13414. hardcode_shlibpath_var_CXX=no
  13415. fi
  13416. # Workaround some broken pre-1.5 toolchains
  13417. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13418. ;;
  13419. *nto* | *qnx*)
  13420. ld_shlibs_CXX=yes
  13421. ;;
  13422. openbsd* | bitrig*)
  13423. if test -f /usr/libexec/ld.so; then
  13424. hardcode_direct_CXX=yes
  13425. hardcode_shlibpath_var_CXX=no
  13426. hardcode_direct_absolute_CXX=yes
  13427. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13428. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13429. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13430. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13431. export_dynamic_flag_spec_CXX='$wl-E'
  13432. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13433. fi
  13434. output_verbose_link_cmd=func_echo_all
  13435. else
  13436. ld_shlibs_CXX=no
  13437. fi
  13438. ;;
  13439. osf3* | osf4* | osf5*)
  13440. case $cc_basename in
  13441. KCC*)
  13442. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13443. # KCC will only create a shared library if the output file
  13444. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13445. # to its proper name (with version) after linking.
  13446. 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'
  13447. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13448. hardcode_libdir_separator_CXX=:
  13449. # Archives containing C++ object files must be created using
  13450. # the KAI C++ compiler.
  13451. case $host in
  13452. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13453. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13454. esac
  13455. ;;
  13456. RCC*)
  13457. # Rational C++ 2.4.1
  13458. # FIXME: insert proper C++ library support
  13459. ld_shlibs_CXX=no
  13460. ;;
  13461. cxx*)
  13462. case $host in
  13463. osf3*)
  13464. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13465. 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'
  13466. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13467. ;;
  13468. *)
  13469. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13470. 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'
  13471. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13472. echo "-hidden">> $lib.exp~
  13473. $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~
  13474. $RM $lib.exp'
  13475. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13476. ;;
  13477. esac
  13478. hardcode_libdir_separator_CXX=:
  13479. # Commands to make compiler produce verbose output that lists
  13480. # what "hidden" libraries, object files and flags are used when
  13481. # linking a shared library.
  13482. #
  13483. # There doesn't appear to be a way to prevent this compiler from
  13484. # explicitly linking system object files so we need to strip them
  13485. # from the output so that they don't get included in the library
  13486. # dependencies.
  13487. 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"'
  13488. ;;
  13489. *)
  13490. if test yes,no = "$GXX,$with_gnu_ld"; then
  13491. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13492. case $host in
  13493. osf3*)
  13494. 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'
  13495. ;;
  13496. *)
  13497. 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'
  13498. ;;
  13499. esac
  13500. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13501. hardcode_libdir_separator_CXX=:
  13502. # Commands to make compiler produce verbose output that lists
  13503. # what "hidden" libraries, object files and flags are used when
  13504. # linking a shared library.
  13505. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13506. else
  13507. # FIXME: insert proper C++ library support
  13508. ld_shlibs_CXX=no
  13509. fi
  13510. ;;
  13511. esac
  13512. ;;
  13513. psos*)
  13514. # FIXME: insert proper C++ library support
  13515. ld_shlibs_CXX=no
  13516. ;;
  13517. sunos4*)
  13518. case $cc_basename in
  13519. CC*)
  13520. # Sun C++ 4.x
  13521. # FIXME: insert proper C++ library support
  13522. ld_shlibs_CXX=no
  13523. ;;
  13524. lcc*)
  13525. # Lucid
  13526. # FIXME: insert proper C++ library support
  13527. ld_shlibs_CXX=no
  13528. ;;
  13529. *)
  13530. # FIXME: insert proper C++ library support
  13531. ld_shlibs_CXX=no
  13532. ;;
  13533. esac
  13534. ;;
  13535. solaris*)
  13536. case $cc_basename in
  13537. CC* | sunCC*)
  13538. # Sun C++ 4.2, 5.x and Centerline C++
  13539. archive_cmds_need_lc_CXX=yes
  13540. no_undefined_flag_CXX=' -zdefs'
  13541. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13542. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13543. $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'
  13544. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13545. hardcode_shlibpath_var_CXX=no
  13546. case $host_os in
  13547. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13548. *)
  13549. # The compiler driver will combine and reorder linker options,
  13550. # but understands '-z linker_flag'.
  13551. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13552. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13553. ;;
  13554. esac
  13555. link_all_deplibs_CXX=yes
  13556. output_verbose_link_cmd='func_echo_all'
  13557. # Archives containing C++ object files must be created using
  13558. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13559. # necessary to make sure instantiated templates are included
  13560. # in the archive.
  13561. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13562. ;;
  13563. gcx*)
  13564. # Green Hills C++ Compiler
  13565. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13566. # The C++ compiler must be used to create the archive.
  13567. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13568. ;;
  13569. *)
  13570. # GNU C++ compiler with Solaris linker
  13571. if test yes,no = "$GXX,$with_gnu_ld"; then
  13572. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13573. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13574. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13575. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13576. $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'
  13577. # Commands to make compiler produce verbose output that lists
  13578. # what "hidden" libraries, object files and flags are used when
  13579. # linking a shared library.
  13580. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13581. else
  13582. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13583. # platform.
  13584. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13585. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13586. $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'
  13587. # Commands to make compiler produce verbose output that lists
  13588. # what "hidden" libraries, object files and flags are used when
  13589. # linking a shared library.
  13590. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13591. fi
  13592. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13593. case $host_os in
  13594. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13595. *)
  13596. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13597. ;;
  13598. esac
  13599. fi
  13600. ;;
  13601. esac
  13602. ;;
  13603. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13604. no_undefined_flag_CXX='$wl-z,text'
  13605. archive_cmds_need_lc_CXX=no
  13606. hardcode_shlibpath_var_CXX=no
  13607. runpath_var='LD_RUN_PATH'
  13608. case $cc_basename in
  13609. CC*)
  13610. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13611. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13612. ;;
  13613. *)
  13614. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13615. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13616. ;;
  13617. esac
  13618. ;;
  13619. sysv5* | sco3.2v5* | sco5v6*)
  13620. # Note: We CANNOT use -z defs as we might desire, because we do not
  13621. # link with -lc, and that would cause any symbols used from libc to
  13622. # always be unresolved, which means just about no library would
  13623. # ever link correctly. If we're not using GNU ld we use -z text
  13624. # though, which does catch some bad symbols but isn't as heavy-handed
  13625. # as -z defs.
  13626. no_undefined_flag_CXX='$wl-z,text'
  13627. allow_undefined_flag_CXX='$wl-z,nodefs'
  13628. archive_cmds_need_lc_CXX=no
  13629. hardcode_shlibpath_var_CXX=no
  13630. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13631. hardcode_libdir_separator_CXX=':'
  13632. link_all_deplibs_CXX=yes
  13633. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13634. runpath_var='LD_RUN_PATH'
  13635. case $cc_basename in
  13636. CC*)
  13637. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13638. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13639. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13640. '"$old_archive_cmds_CXX"
  13641. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13642. '"$reload_cmds_CXX"
  13643. ;;
  13644. *)
  13645. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13646. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13647. ;;
  13648. esac
  13649. ;;
  13650. tandem*)
  13651. case $cc_basename in
  13652. NCC*)
  13653. # NonStop-UX NCC 3.20
  13654. # FIXME: insert proper C++ library support
  13655. ld_shlibs_CXX=no
  13656. ;;
  13657. *)
  13658. # FIXME: insert proper C++ library support
  13659. ld_shlibs_CXX=no
  13660. ;;
  13661. esac
  13662. ;;
  13663. vxworks*)
  13664. # FIXME: insert proper C++ library support
  13665. ld_shlibs_CXX=no
  13666. ;;
  13667. *)
  13668. # FIXME: insert proper C++ library support
  13669. ld_shlibs_CXX=no
  13670. ;;
  13671. esac
  13672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13673. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13674. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13675. GCC_CXX=$GXX
  13676. LD_CXX=$LD
  13677. ## CAVEAT EMPTOR:
  13678. ## There is no encapsulation within the following macros, do not change
  13679. ## the running order or otherwise move them around unless you know exactly
  13680. ## what you are doing...
  13681. # Dependencies to place before and after the object being linked:
  13682. predep_objects_CXX=
  13683. postdep_objects_CXX=
  13684. predeps_CXX=
  13685. postdeps_CXX=
  13686. compiler_lib_search_path_CXX=
  13687. cat > conftest.$ac_ext <<_LT_EOF
  13688. class Foo
  13689. {
  13690. public:
  13691. Foo (void) { a = 0; }
  13692. private:
  13693. int a;
  13694. };
  13695. _LT_EOF
  13696. _lt_libdeps_save_CFLAGS=$CFLAGS
  13697. case "$CC $CFLAGS " in #(
  13698. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13699. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13700. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13701. esac
  13702. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13703. (eval $ac_compile) 2>&5
  13704. ac_status=$?
  13705. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13706. test $ac_status = 0; }; then
  13707. # Parse the compiler output and extract the necessary
  13708. # objects, libraries and library flags.
  13709. # Sentinel used to keep track of whether or not we are before
  13710. # the conftest object file.
  13711. pre_test_object_deps_done=no
  13712. for p in `eval "$output_verbose_link_cmd"`; do
  13713. case $prev$p in
  13714. -L* | -R* | -l*)
  13715. # Some compilers place space between "-{L,R}" and the path.
  13716. # Remove the space.
  13717. if test x-L = "x$p" ||
  13718. test x-R = "x$p" ||
  13719. test x-l = "x$p"; then
  13720. prev=$p
  13721. continue
  13722. fi
  13723. # Expand the sysroot to ease extracting the directories later.
  13724. if test -z "$prev"; then
  13725. case $p in
  13726. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13727. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13728. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13729. esac
  13730. fi
  13731. case $p in
  13732. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13733. esac
  13734. if test no = "$pre_test_object_deps_done"; then
  13735. case $prev in
  13736. -L | -R)
  13737. # Internal compiler library paths should come after those
  13738. # provided the user. The postdeps already come after the
  13739. # user supplied libs so there is no need to process them.
  13740. if test -z "$compiler_lib_search_path_CXX"; then
  13741. compiler_lib_search_path_CXX=$prev$p
  13742. else
  13743. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13744. fi
  13745. ;;
  13746. # The "-l" case would never come before the object being
  13747. # linked, so don't bother handling this case.
  13748. esac
  13749. else
  13750. if test -z "$postdeps_CXX"; then
  13751. postdeps_CXX=$prev$p
  13752. else
  13753. postdeps_CXX="${postdeps_CXX} $prev$p"
  13754. fi
  13755. fi
  13756. prev=
  13757. ;;
  13758. *.lto.$objext) ;; # Ignore GCC LTO objects
  13759. *.$objext)
  13760. # This assumes that the test object file only shows up
  13761. # once in the compiler output.
  13762. if test "$p" = "conftest.$objext"; then
  13763. pre_test_object_deps_done=yes
  13764. continue
  13765. fi
  13766. if test no = "$pre_test_object_deps_done"; then
  13767. if test -z "$predep_objects_CXX"; then
  13768. predep_objects_CXX=$p
  13769. else
  13770. predep_objects_CXX="$predep_objects_CXX $p"
  13771. fi
  13772. else
  13773. if test -z "$postdep_objects_CXX"; then
  13774. postdep_objects_CXX=$p
  13775. else
  13776. postdep_objects_CXX="$postdep_objects_CXX $p"
  13777. fi
  13778. fi
  13779. ;;
  13780. *) ;; # Ignore the rest.
  13781. esac
  13782. done
  13783. # Clean up.
  13784. rm -f a.out a.exe
  13785. else
  13786. echo "libtool.m4: error: problem compiling CXX test program"
  13787. fi
  13788. $RM -f confest.$objext
  13789. CFLAGS=$_lt_libdeps_save_CFLAGS
  13790. # PORTME: override above test on systems where it is broken
  13791. case $host_os in
  13792. interix[3-9]*)
  13793. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13794. # hack all around it, let's just trust "g++" to DTRT.
  13795. predep_objects_CXX=
  13796. postdep_objects_CXX=
  13797. postdeps_CXX=
  13798. ;;
  13799. esac
  13800. case " $postdeps_CXX " in
  13801. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13802. esac
  13803. compiler_lib_search_dirs_CXX=
  13804. if test -n "${compiler_lib_search_path_CXX}"; then
  13805. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13806. fi
  13807. lt_prog_compiler_wl_CXX=
  13808. lt_prog_compiler_pic_CXX=
  13809. lt_prog_compiler_static_CXX=
  13810. # C++ specific cases for pic, static, wl, etc.
  13811. if test yes = "$GXX"; then
  13812. lt_prog_compiler_wl_CXX='-Wl,'
  13813. lt_prog_compiler_static_CXX='-static'
  13814. case $host_os in
  13815. aix*)
  13816. # All AIX code is PIC.
  13817. if test ia64 = "$host_cpu"; then
  13818. # AIX 5 now supports IA64 processor
  13819. lt_prog_compiler_static_CXX='-Bstatic'
  13820. fi
  13821. lt_prog_compiler_pic_CXX='-fPIC'
  13822. ;;
  13823. amigaos*)
  13824. case $host_cpu in
  13825. powerpc)
  13826. # see comment about AmigaOS4 .so support
  13827. lt_prog_compiler_pic_CXX='-fPIC'
  13828. ;;
  13829. m68k)
  13830. # FIXME: we need at least 68020 code to build shared libraries, but
  13831. # adding the '-m68020' flag to GCC prevents building anything better,
  13832. # like '-m68040'.
  13833. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13834. ;;
  13835. esac
  13836. ;;
  13837. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13838. # PIC is the default for these OSes.
  13839. ;;
  13840. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13841. # This hack is so that the source file can tell whether it is being
  13842. # built for inclusion in a dll (and should export symbols for example).
  13843. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13844. # (--disable-auto-import) libraries
  13845. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13846. case $host_os in
  13847. os2*)
  13848. lt_prog_compiler_static_CXX='$wl-static'
  13849. ;;
  13850. esac
  13851. ;;
  13852. darwin* | rhapsody*)
  13853. # PIC is the default on this platform
  13854. # Common symbols not allowed in MH_DYLIB files
  13855. lt_prog_compiler_pic_CXX='-fno-common'
  13856. ;;
  13857. *djgpp*)
  13858. # DJGPP does not support shared libraries at all
  13859. lt_prog_compiler_pic_CXX=
  13860. ;;
  13861. haiku*)
  13862. # PIC is the default for Haiku.
  13863. # The "-static" flag exists, but is broken.
  13864. lt_prog_compiler_static_CXX=
  13865. ;;
  13866. interix[3-9]*)
  13867. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13868. # Instead, we relocate shared libraries at runtime.
  13869. ;;
  13870. sysv4*MP*)
  13871. if test -d /usr/nec; then
  13872. lt_prog_compiler_pic_CXX=-Kconform_pic
  13873. fi
  13874. ;;
  13875. hpux*)
  13876. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13877. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13878. # sets the default TLS model and affects inlining.
  13879. case $host_cpu in
  13880. hppa*64*)
  13881. ;;
  13882. *)
  13883. lt_prog_compiler_pic_CXX='-fPIC'
  13884. ;;
  13885. esac
  13886. ;;
  13887. *qnx* | *nto*)
  13888. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13889. # it will coredump.
  13890. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13891. ;;
  13892. *)
  13893. lt_prog_compiler_pic_CXX='-fPIC'
  13894. ;;
  13895. esac
  13896. else
  13897. case $host_os in
  13898. aix[4-9]*)
  13899. # All AIX code is PIC.
  13900. if test ia64 = "$host_cpu"; then
  13901. # AIX 5 now supports IA64 processor
  13902. lt_prog_compiler_static_CXX='-Bstatic'
  13903. else
  13904. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13905. fi
  13906. ;;
  13907. chorus*)
  13908. case $cc_basename in
  13909. cxch68*)
  13910. # Green Hills C++ Compiler
  13911. # _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"
  13912. ;;
  13913. esac
  13914. ;;
  13915. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13916. # This hack is so that the source file can tell whether it is being
  13917. # built for inclusion in a dll (and should export symbols for example).
  13918. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13919. ;;
  13920. dgux*)
  13921. case $cc_basename in
  13922. ec++*)
  13923. lt_prog_compiler_pic_CXX='-KPIC'
  13924. ;;
  13925. ghcx*)
  13926. # Green Hills C++ Compiler
  13927. lt_prog_compiler_pic_CXX='-pic'
  13928. ;;
  13929. *)
  13930. ;;
  13931. esac
  13932. ;;
  13933. freebsd* | dragonfly* | midnightbsd*)
  13934. # FreeBSD uses GNU C++
  13935. ;;
  13936. hpux9* | hpux10* | hpux11*)
  13937. case $cc_basename in
  13938. CC*)
  13939. lt_prog_compiler_wl_CXX='-Wl,'
  13940. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13941. if test ia64 != "$host_cpu"; then
  13942. lt_prog_compiler_pic_CXX='+Z'
  13943. fi
  13944. ;;
  13945. aCC*)
  13946. lt_prog_compiler_wl_CXX='-Wl,'
  13947. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13948. case $host_cpu in
  13949. hppa*64*|ia64*)
  13950. # +Z the default
  13951. ;;
  13952. *)
  13953. lt_prog_compiler_pic_CXX='+Z'
  13954. ;;
  13955. esac
  13956. ;;
  13957. *)
  13958. ;;
  13959. esac
  13960. ;;
  13961. interix*)
  13962. # This is c89, which is MS Visual C++ (no shared libs)
  13963. # Anyone wants to do a port?
  13964. ;;
  13965. irix5* | irix6* | nonstopux*)
  13966. case $cc_basename in
  13967. CC*)
  13968. lt_prog_compiler_wl_CXX='-Wl,'
  13969. lt_prog_compiler_static_CXX='-non_shared'
  13970. # CC pic flag -KPIC is the default.
  13971. ;;
  13972. *)
  13973. ;;
  13974. esac
  13975. ;;
  13976. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13977. case $cc_basename in
  13978. KCC*)
  13979. # KAI C++ Compiler
  13980. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13981. lt_prog_compiler_pic_CXX='-fPIC'
  13982. ;;
  13983. ecpc* )
  13984. # old Intel C++ for x86_64, which still supported -KPIC.
  13985. lt_prog_compiler_wl_CXX='-Wl,'
  13986. lt_prog_compiler_pic_CXX='-KPIC'
  13987. lt_prog_compiler_static_CXX='-static'
  13988. ;;
  13989. icpc* )
  13990. # Intel C++, used to be incompatible with GCC.
  13991. # ICC 10 doesn't accept -KPIC any more.
  13992. lt_prog_compiler_wl_CXX='-Wl,'
  13993. lt_prog_compiler_pic_CXX='-fPIC'
  13994. lt_prog_compiler_static_CXX='-static'
  13995. ;;
  13996. pgCC* | pgcpp*)
  13997. # Portland Group C++ compiler
  13998. lt_prog_compiler_wl_CXX='-Wl,'
  13999. lt_prog_compiler_pic_CXX='-fpic'
  14000. lt_prog_compiler_static_CXX='-Bstatic'
  14001. ;;
  14002. cxx*)
  14003. # Compaq C++
  14004. # Make sure the PIC flag is empty. It appears that all Alpha
  14005. # Linux and Compaq Tru64 Unix objects are PIC.
  14006. lt_prog_compiler_pic_CXX=
  14007. lt_prog_compiler_static_CXX='-non_shared'
  14008. ;;
  14009. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14010. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14011. lt_prog_compiler_wl_CXX='-Wl,'
  14012. lt_prog_compiler_pic_CXX='-qpic'
  14013. lt_prog_compiler_static_CXX='-qstaticlink'
  14014. ;;
  14015. *)
  14016. case `$CC -V 2>&1 | sed 5q` in
  14017. *Sun\ C*)
  14018. # Sun C++ 5.9
  14019. lt_prog_compiler_pic_CXX='-KPIC'
  14020. lt_prog_compiler_static_CXX='-Bstatic'
  14021. lt_prog_compiler_wl_CXX='-Qoption ld '
  14022. ;;
  14023. esac
  14024. ;;
  14025. esac
  14026. ;;
  14027. lynxos*)
  14028. ;;
  14029. m88k*)
  14030. ;;
  14031. mvs*)
  14032. case $cc_basename in
  14033. cxx*)
  14034. lt_prog_compiler_pic_CXX='-W c,exportall'
  14035. ;;
  14036. *)
  14037. ;;
  14038. esac
  14039. ;;
  14040. netbsd*)
  14041. ;;
  14042. *qnx* | *nto*)
  14043. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14044. # it will coredump.
  14045. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14046. ;;
  14047. osf3* | osf4* | osf5*)
  14048. case $cc_basename in
  14049. KCC*)
  14050. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14051. ;;
  14052. RCC*)
  14053. # Rational C++ 2.4.1
  14054. lt_prog_compiler_pic_CXX='-pic'
  14055. ;;
  14056. cxx*)
  14057. # Digital/Compaq C++
  14058. lt_prog_compiler_wl_CXX='-Wl,'
  14059. # Make sure the PIC flag is empty. It appears that all Alpha
  14060. # Linux and Compaq Tru64 Unix objects are PIC.
  14061. lt_prog_compiler_pic_CXX=
  14062. lt_prog_compiler_static_CXX='-non_shared'
  14063. ;;
  14064. *)
  14065. ;;
  14066. esac
  14067. ;;
  14068. psos*)
  14069. ;;
  14070. solaris*)
  14071. case $cc_basename in
  14072. CC* | sunCC*)
  14073. # Sun C++ 4.2, 5.x and Centerline C++
  14074. lt_prog_compiler_pic_CXX='-KPIC'
  14075. lt_prog_compiler_static_CXX='-Bstatic'
  14076. lt_prog_compiler_wl_CXX='-Qoption ld '
  14077. ;;
  14078. gcx*)
  14079. # Green Hills C++ Compiler
  14080. lt_prog_compiler_pic_CXX='-PIC'
  14081. ;;
  14082. *)
  14083. ;;
  14084. esac
  14085. ;;
  14086. sunos4*)
  14087. case $cc_basename in
  14088. CC*)
  14089. # Sun C++ 4.x
  14090. lt_prog_compiler_pic_CXX='-pic'
  14091. lt_prog_compiler_static_CXX='-Bstatic'
  14092. ;;
  14093. lcc*)
  14094. # Lucid
  14095. lt_prog_compiler_pic_CXX='-pic'
  14096. ;;
  14097. *)
  14098. ;;
  14099. esac
  14100. ;;
  14101. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14102. case $cc_basename in
  14103. CC*)
  14104. lt_prog_compiler_wl_CXX='-Wl,'
  14105. lt_prog_compiler_pic_CXX='-KPIC'
  14106. lt_prog_compiler_static_CXX='-Bstatic'
  14107. ;;
  14108. esac
  14109. ;;
  14110. tandem*)
  14111. case $cc_basename in
  14112. NCC*)
  14113. # NonStop-UX NCC 3.20
  14114. lt_prog_compiler_pic_CXX='-KPIC'
  14115. ;;
  14116. *)
  14117. ;;
  14118. esac
  14119. ;;
  14120. vxworks*)
  14121. ;;
  14122. *)
  14123. lt_prog_compiler_can_build_shared_CXX=no
  14124. ;;
  14125. esac
  14126. fi
  14127. case $host_os in
  14128. # For platforms that do not support PIC, -DPIC is meaningless:
  14129. *djgpp*)
  14130. lt_prog_compiler_pic_CXX=
  14131. ;;
  14132. *)
  14133. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14134. ;;
  14135. esac
  14136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14137. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14138. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14139. then :
  14140. printf %s "(cached) " >&6
  14141. else $as_nop
  14142. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14143. fi
  14144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14145. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14146. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14147. #
  14148. # Check to make sure the PIC flag actually works.
  14149. #
  14150. if test -n "$lt_prog_compiler_pic_CXX"; then
  14151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14152. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14153. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14154. then :
  14155. printf %s "(cached) " >&6
  14156. else $as_nop
  14157. lt_cv_prog_compiler_pic_works_CXX=no
  14158. ac_outfile=conftest.$ac_objext
  14159. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14160. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14161. # Insert the option either (1) after the last *FLAGS variable, or
  14162. # (2) before a word containing "conftest.", or (3) at the end.
  14163. # Note that $ac_compile itself does not contain backslashes and begins
  14164. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14165. # The option is referenced via a variable to avoid confusing sed.
  14166. lt_compile=`echo "$ac_compile" | $SED \
  14167. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14168. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14169. -e 's:$: $lt_compiler_flag:'`
  14170. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14171. (eval "$lt_compile" 2>conftest.err)
  14172. ac_status=$?
  14173. cat conftest.err >&5
  14174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14175. if (exit $ac_status) && test -s "$ac_outfile"; then
  14176. # The compiler can only warn and ignore the option if not recognized
  14177. # So say no if there are warnings other than the usual output.
  14178. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14179. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14180. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14181. lt_cv_prog_compiler_pic_works_CXX=yes
  14182. fi
  14183. fi
  14184. $RM conftest*
  14185. fi
  14186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14187. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14188. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14189. case $lt_prog_compiler_pic_CXX in
  14190. "" | " "*) ;;
  14191. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14192. esac
  14193. else
  14194. lt_prog_compiler_pic_CXX=
  14195. lt_prog_compiler_can_build_shared_CXX=no
  14196. fi
  14197. fi
  14198. #
  14199. # Check to make sure the static flag actually works.
  14200. #
  14201. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14203. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14204. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14205. then :
  14206. printf %s "(cached) " >&6
  14207. else $as_nop
  14208. lt_cv_prog_compiler_static_works_CXX=no
  14209. save_LDFLAGS=$LDFLAGS
  14210. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14211. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14212. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14213. # The linker can only warn and ignore the option if not recognized
  14214. # So say no if there are warnings
  14215. if test -s conftest.err; then
  14216. # Append any errors to the config.log.
  14217. cat conftest.err 1>&5
  14218. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14219. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14220. if diff conftest.exp conftest.er2 >/dev/null; then
  14221. lt_cv_prog_compiler_static_works_CXX=yes
  14222. fi
  14223. else
  14224. lt_cv_prog_compiler_static_works_CXX=yes
  14225. fi
  14226. fi
  14227. $RM -r conftest*
  14228. LDFLAGS=$save_LDFLAGS
  14229. fi
  14230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14231. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14232. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14233. :
  14234. else
  14235. lt_prog_compiler_static_CXX=
  14236. fi
  14237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14238. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14239. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14240. then :
  14241. printf %s "(cached) " >&6
  14242. else $as_nop
  14243. lt_cv_prog_compiler_c_o_CXX=no
  14244. $RM -r conftest 2>/dev/null
  14245. mkdir conftest
  14246. cd conftest
  14247. mkdir out
  14248. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14249. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14250. # Insert the option either (1) after the last *FLAGS variable, or
  14251. # (2) before a word containing "conftest.", or (3) at the end.
  14252. # Note that $ac_compile itself does not contain backslashes and begins
  14253. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14254. lt_compile=`echo "$ac_compile" | $SED \
  14255. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14256. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14257. -e 's:$: $lt_compiler_flag:'`
  14258. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14259. (eval "$lt_compile" 2>out/conftest.err)
  14260. ac_status=$?
  14261. cat out/conftest.err >&5
  14262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14263. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14264. then
  14265. # The compiler can only warn and ignore the option if not recognized
  14266. # So say no if there are warnings
  14267. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14268. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14269. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14270. lt_cv_prog_compiler_c_o_CXX=yes
  14271. fi
  14272. fi
  14273. chmod u+w . 2>&5
  14274. $RM conftest*
  14275. # SGI C++ compiler will create directory out/ii_files/ for
  14276. # template instantiation
  14277. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14278. $RM out/* && rmdir out
  14279. cd ..
  14280. $RM -r conftest
  14281. $RM conftest*
  14282. fi
  14283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14284. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14286. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14287. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14288. then :
  14289. printf %s "(cached) " >&6
  14290. else $as_nop
  14291. lt_cv_prog_compiler_c_o_CXX=no
  14292. $RM -r conftest 2>/dev/null
  14293. mkdir conftest
  14294. cd conftest
  14295. mkdir out
  14296. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14297. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14298. # Insert the option either (1) after the last *FLAGS variable, or
  14299. # (2) before a word containing "conftest.", or (3) at the end.
  14300. # Note that $ac_compile itself does not contain backslashes and begins
  14301. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14302. lt_compile=`echo "$ac_compile" | $SED \
  14303. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14304. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14305. -e 's:$: $lt_compiler_flag:'`
  14306. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14307. (eval "$lt_compile" 2>out/conftest.err)
  14308. ac_status=$?
  14309. cat out/conftest.err >&5
  14310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14311. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14312. then
  14313. # The compiler can only warn and ignore the option if not recognized
  14314. # So say no if there are warnings
  14315. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14316. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14317. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14318. lt_cv_prog_compiler_c_o_CXX=yes
  14319. fi
  14320. fi
  14321. chmod u+w . 2>&5
  14322. $RM conftest*
  14323. # SGI C++ compiler will create directory out/ii_files/ for
  14324. # template instantiation
  14325. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14326. $RM out/* && rmdir out
  14327. cd ..
  14328. $RM -r conftest
  14329. $RM conftest*
  14330. fi
  14331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14332. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14333. hard_links=nottested
  14334. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14335. # do not overwrite the value of need_locks provided by the user
  14336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14337. printf %s "checking if we can lock with hard links... " >&6; }
  14338. hard_links=yes
  14339. $RM conftest*
  14340. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14341. touch conftest.a
  14342. ln conftest.a conftest.b 2>&5 || hard_links=no
  14343. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14345. printf "%s\n" "$hard_links" >&6; }
  14346. if test no = "$hard_links"; then
  14347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14348. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14349. need_locks=warn
  14350. fi
  14351. else
  14352. need_locks=no
  14353. fi
  14354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14355. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14356. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14357. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14358. case $host_os in
  14359. aix[4-9]*)
  14360. # If we're using GNU nm, then we don't want the "-C" option.
  14361. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14362. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14363. # weak defined symbols like other global defined symbols, whereas
  14364. # GNU nm marks them as "W".
  14365. # While the 'weak' keyword is ignored in the Export File, we need
  14366. # it in the Import File for the 'aix-soname' feature, so we have
  14367. # to replace the "-B" option with "-P" for AIX nm.
  14368. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14369. 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'
  14370. else
  14371. 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'
  14372. fi
  14373. ;;
  14374. pw32*)
  14375. export_symbols_cmds_CXX=$ltdll_cmds
  14376. ;;
  14377. cygwin* | mingw* | cegcc*)
  14378. case $cc_basename in
  14379. cl*)
  14380. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14381. ;;
  14382. *)
  14383. 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'
  14384. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14385. ;;
  14386. esac
  14387. ;;
  14388. *)
  14389. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14390. ;;
  14391. esac
  14392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14393. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14394. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14395. with_gnu_ld_CXX=$with_gnu_ld
  14396. #
  14397. # Do we need to explicitly link libc?
  14398. #
  14399. case "x$archive_cmds_need_lc_CXX" in
  14400. x|xyes)
  14401. # Assume -lc should be added
  14402. archive_cmds_need_lc_CXX=yes
  14403. if test yes,yes = "$GCC,$enable_shared"; then
  14404. case $archive_cmds_CXX in
  14405. *'~'*)
  14406. # FIXME: we may have to deal with multi-command sequences.
  14407. ;;
  14408. '$CC '*)
  14409. # Test whether the compiler implicitly links with -lc since on some
  14410. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14411. # to ld, don't add -lc before -lgcc.
  14412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14413. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14414. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14415. then :
  14416. printf %s "(cached) " >&6
  14417. else $as_nop
  14418. $RM conftest*
  14419. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14420. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14421. (eval $ac_compile) 2>&5
  14422. ac_status=$?
  14423. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14424. test $ac_status = 0; } 2>conftest.err; then
  14425. soname=conftest
  14426. lib=conftest
  14427. libobjs=conftest.$ac_objext
  14428. deplibs=
  14429. wl=$lt_prog_compiler_wl_CXX
  14430. pic_flag=$lt_prog_compiler_pic_CXX
  14431. compiler_flags=-v
  14432. linker_flags=-v
  14433. verstring=
  14434. output_objdir=.
  14435. libname=conftest
  14436. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14437. allow_undefined_flag_CXX=
  14438. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14439. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14440. ac_status=$?
  14441. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14442. test $ac_status = 0; }
  14443. then
  14444. lt_cv_archive_cmds_need_lc_CXX=no
  14445. else
  14446. lt_cv_archive_cmds_need_lc_CXX=yes
  14447. fi
  14448. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14449. else
  14450. cat conftest.err 1>&5
  14451. fi
  14452. $RM conftest*
  14453. fi
  14454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14455. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14456. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14457. ;;
  14458. esac
  14459. fi
  14460. ;;
  14461. esac
  14462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14463. printf %s "checking dynamic linker characteristics... " >&6; }
  14464. library_names_spec=
  14465. libname_spec='lib$name'
  14466. soname_spec=
  14467. shrext_cmds=.so
  14468. postinstall_cmds=
  14469. postuninstall_cmds=
  14470. finish_cmds=
  14471. finish_eval=
  14472. shlibpath_var=
  14473. shlibpath_overrides_runpath=unknown
  14474. version_type=none
  14475. dynamic_linker="$host_os ld.so"
  14476. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14477. need_lib_prefix=unknown
  14478. hardcode_into_libs=no
  14479. # when you set need_version to no, make sure it does not cause -set_version
  14480. # flags to be left without arguments
  14481. need_version=unknown
  14482. case $host_os in
  14483. aix3*)
  14484. version_type=linux # correct to gnu/linux during the next big refactor
  14485. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14486. shlibpath_var=LIBPATH
  14487. # AIX 3 has no versioning support, so we append a major version to the name.
  14488. soname_spec='$libname$release$shared_ext$major'
  14489. ;;
  14490. aix[4-9]*)
  14491. version_type=linux # correct to gnu/linux during the next big refactor
  14492. need_lib_prefix=no
  14493. need_version=no
  14494. hardcode_into_libs=yes
  14495. if test ia64 = "$host_cpu"; then
  14496. # AIX 5 supports IA64
  14497. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14498. shlibpath_var=LD_LIBRARY_PATH
  14499. else
  14500. # With GCC up to 2.95.x, collect2 would create an import file
  14501. # for dependence libraries. The import file would start with
  14502. # the line '#! .'. This would cause the generated library to
  14503. # depend on '.', always an invalid library. This was fixed in
  14504. # development snapshots of GCC prior to 3.0.
  14505. case $host_os in
  14506. aix4 | aix4.[01] | aix4.[01].*)
  14507. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14508. echo ' yes '
  14509. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14510. :
  14511. else
  14512. can_build_shared=no
  14513. fi
  14514. ;;
  14515. esac
  14516. # Using Import Files as archive members, it is possible to support
  14517. # filename-based versioning of shared library archives on AIX. While
  14518. # this would work for both with and without runtime linking, it will
  14519. # prevent static linking of such archives. So we do filename-based
  14520. # shared library versioning with .so extension only, which is used
  14521. # when both runtime linking and shared linking is enabled.
  14522. # Unfortunately, runtime linking may impact performance, so we do
  14523. # not want this to be the default eventually. Also, we use the
  14524. # versioned .so libs for executables only if there is the -brtl
  14525. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14526. # To allow for filename-based versioning support, we need to create
  14527. # libNAME.so.V as an archive file, containing:
  14528. # *) an Import File, referring to the versioned filename of the
  14529. # archive as well as the shared archive member, telling the
  14530. # bitwidth (32 or 64) of that shared object, and providing the
  14531. # list of exported symbols of that shared object, eventually
  14532. # decorated with the 'weak' keyword
  14533. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14534. # it being seen by the linker.
  14535. # At run time we better use the real file rather than another symlink,
  14536. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14537. case $with_aix_soname,$aix_use_runtimelinking in
  14538. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14539. # soname into executable. Probably we can add versioning support to
  14540. # collect2, so additional links can be useful in future.
  14541. aix,yes) # traditional libtool
  14542. dynamic_linker='AIX unversionable lib.so'
  14543. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14544. # instead of lib<name>.a to let people know that these are not
  14545. # typical AIX shared libraries.
  14546. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14547. ;;
  14548. aix,no) # traditional AIX only
  14549. dynamic_linker='AIX lib.a(lib.so.V)'
  14550. # We preserve .a as extension for shared libraries through AIX4.2
  14551. # and later when we are not doing run time linking.
  14552. library_names_spec='$libname$release.a $libname.a'
  14553. soname_spec='$libname$release$shared_ext$major'
  14554. ;;
  14555. svr4,*) # full svr4 only
  14556. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14557. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14558. # We do not specify a path in Import Files, so LIBPATH fires.
  14559. shlibpath_overrides_runpath=yes
  14560. ;;
  14561. *,yes) # both, prefer svr4
  14562. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14563. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14564. # unpreferred sharedlib libNAME.a needs extra handling
  14565. 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"'
  14566. 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"'
  14567. # We do not specify a path in Import Files, so LIBPATH fires.
  14568. shlibpath_overrides_runpath=yes
  14569. ;;
  14570. *,no) # both, prefer aix
  14571. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14572. library_names_spec='$libname$release.a $libname.a'
  14573. soname_spec='$libname$release$shared_ext$major'
  14574. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14575. 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)'
  14576. 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"'
  14577. ;;
  14578. esac
  14579. shlibpath_var=LIBPATH
  14580. fi
  14581. ;;
  14582. amigaos*)
  14583. case $host_cpu in
  14584. powerpc)
  14585. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14586. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14587. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14588. ;;
  14589. m68k)
  14590. library_names_spec='$libname.ixlibrary $libname.a'
  14591. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14592. 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'
  14593. ;;
  14594. esac
  14595. ;;
  14596. beos*)
  14597. library_names_spec='$libname$shared_ext'
  14598. dynamic_linker="$host_os ld.so"
  14599. shlibpath_var=LIBRARY_PATH
  14600. ;;
  14601. bsdi[45]*)
  14602. version_type=linux # correct to gnu/linux during the next big refactor
  14603. need_version=no
  14604. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14605. soname_spec='$libname$release$shared_ext$major'
  14606. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14607. shlibpath_var=LD_LIBRARY_PATH
  14608. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14609. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14610. # the default ld.so.conf also contains /usr/contrib/lib and
  14611. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14612. # libtool to hard-code these into programs
  14613. ;;
  14614. cygwin* | mingw* | pw32* | cegcc*)
  14615. version_type=windows
  14616. shrext_cmds=.dll
  14617. need_version=no
  14618. need_lib_prefix=no
  14619. case $GCC,$cc_basename in
  14620. yes,*)
  14621. # gcc
  14622. library_names_spec='$libname.dll.a'
  14623. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14624. postinstall_cmds='base_file=`basename \$file`~
  14625. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14626. dldir=$destdir/`dirname \$dlpath`~
  14627. test -d \$dldir || mkdir -p \$dldir~
  14628. $install_prog $dir/$dlname \$dldir/$dlname~
  14629. chmod a+x \$dldir/$dlname~
  14630. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14631. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14632. fi'
  14633. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14634. dlpath=$dir/\$dldll~
  14635. $RM \$dlpath'
  14636. shlibpath_overrides_runpath=yes
  14637. case $host_os in
  14638. cygwin*)
  14639. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14640. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14641. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14642. ;;
  14643. mingw* | cegcc*)
  14644. # MinGW DLLs use traditional 'lib' prefix
  14645. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14646. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14647. ;;
  14648. pw32*)
  14649. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14650. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14651. ;;
  14652. esac
  14653. dynamic_linker='Win32 ld.exe'
  14654. ;;
  14655. *,cl*)
  14656. # Native MSVC
  14657. libname_spec='$name'
  14658. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14659. library_names_spec='$libname.dll.lib'
  14660. case $build_os in
  14661. mingw*)
  14662. sys_lib_search_path_spec=
  14663. lt_save_ifs=$IFS
  14664. IFS=';'
  14665. for lt_path in $LIB
  14666. do
  14667. IFS=$lt_save_ifs
  14668. # Let DOS variable expansion print the short 8.3 style file name.
  14669. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14670. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14671. done
  14672. IFS=$lt_save_ifs
  14673. # Convert to MSYS style.
  14674. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14675. ;;
  14676. cygwin*)
  14677. # Convert to unix form, then to dos form, then back to unix form
  14678. # but this time dos style (no spaces!) so that the unix form looks
  14679. # like /cygdrive/c/PROGRA~1:/cygdr...
  14680. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14681. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14682. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14683. ;;
  14684. *)
  14685. sys_lib_search_path_spec=$LIB
  14686. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14687. # It is most probably a Windows format PATH.
  14688. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14689. else
  14690. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14691. fi
  14692. # FIXME: find the short name or the path components, as spaces are
  14693. # common. (e.g. "Program Files" -> "PROGRA~1")
  14694. ;;
  14695. esac
  14696. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14697. postinstall_cmds='base_file=`basename \$file`~
  14698. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14699. dldir=$destdir/`dirname \$dlpath`~
  14700. test -d \$dldir || mkdir -p \$dldir~
  14701. $install_prog $dir/$dlname \$dldir/$dlname'
  14702. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14703. dlpath=$dir/\$dldll~
  14704. $RM \$dlpath'
  14705. shlibpath_overrides_runpath=yes
  14706. dynamic_linker='Win32 link.exe'
  14707. ;;
  14708. *)
  14709. # Assume MSVC wrapper
  14710. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14711. dynamic_linker='Win32 ld.exe'
  14712. ;;
  14713. esac
  14714. # FIXME: first we should search . and the directory the executable is in
  14715. shlibpath_var=PATH
  14716. ;;
  14717. darwin* | rhapsody*)
  14718. dynamic_linker="$host_os dyld"
  14719. version_type=darwin
  14720. need_lib_prefix=no
  14721. need_version=no
  14722. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14723. soname_spec='$libname$release$major$shared_ext'
  14724. shlibpath_overrides_runpath=yes
  14725. shlibpath_var=DYLD_LIBRARY_PATH
  14726. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14727. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14728. ;;
  14729. dgux*)
  14730. version_type=linux # correct to gnu/linux during the next big refactor
  14731. need_lib_prefix=no
  14732. need_version=no
  14733. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14734. soname_spec='$libname$release$shared_ext$major'
  14735. shlibpath_var=LD_LIBRARY_PATH
  14736. ;;
  14737. freebsd* | dragonfly* | midnightbsd*)
  14738. # DragonFly does not have aout. When/if they implement a new
  14739. # versioning mechanism, adjust this.
  14740. if test -x /usr/bin/objformat; then
  14741. objformat=`/usr/bin/objformat`
  14742. else
  14743. case $host_os in
  14744. freebsd[23].*) objformat=aout ;;
  14745. *) objformat=elf ;;
  14746. esac
  14747. fi
  14748. version_type=freebsd-$objformat
  14749. case $version_type in
  14750. freebsd-elf*)
  14751. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14752. soname_spec='$libname$release$shared_ext$major'
  14753. need_version=no
  14754. need_lib_prefix=no
  14755. ;;
  14756. freebsd-*)
  14757. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14758. need_version=yes
  14759. ;;
  14760. esac
  14761. shlibpath_var=LD_LIBRARY_PATH
  14762. case $host_os in
  14763. freebsd2.*)
  14764. shlibpath_overrides_runpath=yes
  14765. ;;
  14766. freebsd3.[01]* | freebsdelf3.[01]*)
  14767. shlibpath_overrides_runpath=yes
  14768. hardcode_into_libs=yes
  14769. ;;
  14770. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14771. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14772. shlibpath_overrides_runpath=no
  14773. hardcode_into_libs=yes
  14774. ;;
  14775. *) # from 4.6 on, and DragonFly
  14776. shlibpath_overrides_runpath=yes
  14777. hardcode_into_libs=yes
  14778. ;;
  14779. esac
  14780. ;;
  14781. haiku*)
  14782. version_type=linux # correct to gnu/linux during the next big refactor
  14783. need_lib_prefix=no
  14784. need_version=no
  14785. dynamic_linker="$host_os runtime_loader"
  14786. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14787. soname_spec='$libname$release$shared_ext$major'
  14788. shlibpath_var=LIBRARY_PATH
  14789. shlibpath_overrides_runpath=no
  14790. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14791. hardcode_into_libs=yes
  14792. ;;
  14793. hpux9* | hpux10* | hpux11*)
  14794. # Give a soname corresponding to the major version so that dld.sl refuses to
  14795. # link against other versions.
  14796. version_type=sunos
  14797. need_lib_prefix=no
  14798. need_version=no
  14799. case $host_cpu in
  14800. ia64*)
  14801. shrext_cmds='.so'
  14802. hardcode_into_libs=yes
  14803. dynamic_linker="$host_os dld.so"
  14804. shlibpath_var=LD_LIBRARY_PATH
  14805. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14806. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14807. soname_spec='$libname$release$shared_ext$major'
  14808. if test 32 = "$HPUX_IA64_MODE"; then
  14809. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14810. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14811. else
  14812. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14813. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14814. fi
  14815. ;;
  14816. hppa*64*)
  14817. shrext_cmds='.sl'
  14818. hardcode_into_libs=yes
  14819. dynamic_linker="$host_os dld.sl"
  14820. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14821. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14822. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14823. soname_spec='$libname$release$shared_ext$major'
  14824. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14825. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14826. ;;
  14827. *)
  14828. shrext_cmds='.sl'
  14829. dynamic_linker="$host_os dld.sl"
  14830. shlibpath_var=SHLIB_PATH
  14831. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  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. ;;
  14835. esac
  14836. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14837. postinstall_cmds='chmod 555 $lib'
  14838. # or fails outright, so override atomically:
  14839. install_override_mode=555
  14840. ;;
  14841. interix[3-9]*)
  14842. version_type=linux # correct to gnu/linux during the next big refactor
  14843. need_lib_prefix=no
  14844. need_version=no
  14845. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14846. soname_spec='$libname$release$shared_ext$major'
  14847. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14848. shlibpath_var=LD_LIBRARY_PATH
  14849. shlibpath_overrides_runpath=no
  14850. hardcode_into_libs=yes
  14851. ;;
  14852. irix5* | irix6* | nonstopux*)
  14853. case $host_os in
  14854. nonstopux*) version_type=nonstopux ;;
  14855. *)
  14856. if test yes = "$lt_cv_prog_gnu_ld"; then
  14857. version_type=linux # correct to gnu/linux during the next big refactor
  14858. else
  14859. version_type=irix
  14860. fi ;;
  14861. esac
  14862. need_lib_prefix=no
  14863. need_version=no
  14864. soname_spec='$libname$release$shared_ext$major'
  14865. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14866. case $host_os in
  14867. irix5* | nonstopux*)
  14868. libsuff= shlibsuff=
  14869. ;;
  14870. *)
  14871. case $LD in # libtool.m4 will add one of these switches to LD
  14872. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14873. libsuff= shlibsuff= libmagic=32-bit;;
  14874. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14875. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14876. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14877. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14878. *) libsuff= shlibsuff= libmagic=never-match;;
  14879. esac
  14880. ;;
  14881. esac
  14882. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14883. shlibpath_overrides_runpath=no
  14884. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14885. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14886. hardcode_into_libs=yes
  14887. ;;
  14888. # No shared lib support for Linux oldld, aout, or coff.
  14889. linux*oldld* | linux*aout* | linux*coff*)
  14890. dynamic_linker=no
  14891. ;;
  14892. linux*android*)
  14893. version_type=none # Android doesn't support versioned libraries.
  14894. need_lib_prefix=no
  14895. need_version=no
  14896. library_names_spec='$libname$release$shared_ext'
  14897. soname_spec='$libname$release$shared_ext'
  14898. finish_cmds=
  14899. shlibpath_var=LD_LIBRARY_PATH
  14900. shlibpath_overrides_runpath=yes
  14901. # This implies no fast_install, which is unacceptable.
  14902. # Some rework will be needed to allow for fast_install
  14903. # before this can be enabled.
  14904. hardcode_into_libs=yes
  14905. dynamic_linker='Android linker'
  14906. # Don't embed -rpath directories since the linker doesn't support them.
  14907. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14908. ;;
  14909. # This must be glibc/ELF.
  14910. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14911. version_type=linux # correct to gnu/linux during the next big refactor
  14912. need_lib_prefix=no
  14913. need_version=no
  14914. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14915. soname_spec='$libname$release$shared_ext$major'
  14916. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14917. shlibpath_var=LD_LIBRARY_PATH
  14918. shlibpath_overrides_runpath=no
  14919. # Some binutils ld are patched to set DT_RUNPATH
  14920. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14921. then :
  14922. printf %s "(cached) " >&6
  14923. else $as_nop
  14924. lt_cv_shlibpath_overrides_runpath=no
  14925. save_LDFLAGS=$LDFLAGS
  14926. save_libdir=$libdir
  14927. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14928. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14930. /* end confdefs.h. */
  14931. int
  14932. main (void)
  14933. {
  14934. ;
  14935. return 0;
  14936. }
  14937. _ACEOF
  14938. if ac_fn_cxx_try_link "$LINENO"
  14939. then :
  14940. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14941. then :
  14942. lt_cv_shlibpath_overrides_runpath=yes
  14943. fi
  14944. fi
  14945. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14946. conftest$ac_exeext conftest.$ac_ext
  14947. LDFLAGS=$save_LDFLAGS
  14948. libdir=$save_libdir
  14949. fi
  14950. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14951. # This implies no fast_install, which is unacceptable.
  14952. # Some rework will be needed to allow for fast_install
  14953. # before this can be enabled.
  14954. hardcode_into_libs=yes
  14955. # Add ABI-specific directories to the system library path.
  14956. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  14957. # Ideally, we could use ldconfig to report *all* directores which are
  14958. # searched for libraries, however this is still not possible. Aside from not
  14959. # being certain /sbin/ldconfig is available, command
  14960. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14961. # even though it is searched at run-time. Try to do the best guess by
  14962. # appending ld.so.conf contents (and includes) to the search path.
  14963. if test -f /etc/ld.so.conf; then
  14964. 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' ' '`
  14965. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  14966. fi
  14967. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14968. # powerpc, because MkLinux only supported shared libraries with the
  14969. # GNU dynamic linker. Since this was broken with cross compilers,
  14970. # most powerpc-linux boxes support dynamic linking these days and
  14971. # people can always --disable-shared, the test was removed, and we
  14972. # assume the GNU/Linux dynamic linker is in use.
  14973. dynamic_linker='GNU/Linux ld.so'
  14974. ;;
  14975. netbsd*)
  14976. version_type=sunos
  14977. need_lib_prefix=no
  14978. need_version=no
  14979. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14980. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14981. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14982. dynamic_linker='NetBSD (a.out) ld.so'
  14983. else
  14984. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14985. soname_spec='$libname$release$shared_ext$major'
  14986. dynamic_linker='NetBSD ld.elf_so'
  14987. fi
  14988. shlibpath_var=LD_LIBRARY_PATH
  14989. shlibpath_overrides_runpath=yes
  14990. hardcode_into_libs=yes
  14991. ;;
  14992. newsos6)
  14993. version_type=linux # correct to gnu/linux during the next big refactor
  14994. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14995. shlibpath_var=LD_LIBRARY_PATH
  14996. shlibpath_overrides_runpath=yes
  14997. ;;
  14998. *nto* | *qnx*)
  14999. version_type=qnx
  15000. need_lib_prefix=no
  15001. need_version=no
  15002. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15003. soname_spec='$libname$release$shared_ext$major'
  15004. shlibpath_var=LD_LIBRARY_PATH
  15005. shlibpath_overrides_runpath=no
  15006. hardcode_into_libs=yes
  15007. dynamic_linker='ldqnx.so'
  15008. ;;
  15009. openbsd* | bitrig*)
  15010. version_type=sunos
  15011. sys_lib_dlsearch_path_spec=/usr/lib
  15012. need_lib_prefix=no
  15013. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15014. need_version=no
  15015. else
  15016. need_version=yes
  15017. fi
  15018. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15019. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15020. shlibpath_var=LD_LIBRARY_PATH
  15021. shlibpath_overrides_runpath=yes
  15022. ;;
  15023. os2*)
  15024. libname_spec='$name'
  15025. shrext_cmds=.dll
  15026. need_lib_prefix=no
  15027. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15028. # SDL customization: removed versioning support.
  15029. # version_type=windows
  15030. # need_version=no
  15031. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15032. # v=$($ECHO $release$versuffix | tr -d .-);
  15033. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15034. # $ECHO $n$v`$shared_ext'
  15035. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15036. library_names_spec='${libname}_dll.$libext'
  15037. dynamic_linker='OS/2 ld.exe'
  15038. shlibpath_var=BEGINLIBPATH
  15039. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15040. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15041. postinstall_cmds='base_file=`basename \$file`~
  15042. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15043. dldir=$destdir/`dirname \$dlpath`~
  15044. test -d \$dldir || mkdir -p \$dldir~
  15045. $install_prog $dir/$dlname \$dldir/$dlname~
  15046. chmod a+x \$dldir/$dlname~
  15047. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15048. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15049. fi'
  15050. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15051. dlpath=$dir/\$dldll~
  15052. $RM \$dlpath'
  15053. ;;
  15054. osf3* | osf4* | osf5*)
  15055. version_type=osf
  15056. need_lib_prefix=no
  15057. need_version=no
  15058. soname_spec='$libname$release$shared_ext$major'
  15059. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15060. shlibpath_var=LD_LIBRARY_PATH
  15061. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15062. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15063. ;;
  15064. rdos*)
  15065. dynamic_linker=no
  15066. ;;
  15067. solaris*)
  15068. version_type=linux # correct to gnu/linux during the next big refactor
  15069. need_lib_prefix=no
  15070. need_version=no
  15071. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15072. soname_spec='$libname$release$shared_ext$major'
  15073. shlibpath_var=LD_LIBRARY_PATH
  15074. shlibpath_overrides_runpath=yes
  15075. hardcode_into_libs=yes
  15076. # ldd complains unless libraries are executable
  15077. postinstall_cmds='chmod +x $lib'
  15078. ;;
  15079. sunos4*)
  15080. version_type=sunos
  15081. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15082. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15083. shlibpath_var=LD_LIBRARY_PATH
  15084. shlibpath_overrides_runpath=yes
  15085. if test yes = "$with_gnu_ld"; then
  15086. need_lib_prefix=no
  15087. fi
  15088. need_version=yes
  15089. ;;
  15090. sysv4 | sysv4.3*)
  15091. version_type=linux # correct to gnu/linux during the next big refactor
  15092. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15093. soname_spec='$libname$release$shared_ext$major'
  15094. shlibpath_var=LD_LIBRARY_PATH
  15095. case $host_vendor in
  15096. sni)
  15097. shlibpath_overrides_runpath=no
  15098. need_lib_prefix=no
  15099. runpath_var=LD_RUN_PATH
  15100. ;;
  15101. siemens)
  15102. need_lib_prefix=no
  15103. ;;
  15104. motorola)
  15105. need_lib_prefix=no
  15106. need_version=no
  15107. shlibpath_overrides_runpath=no
  15108. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15109. ;;
  15110. esac
  15111. ;;
  15112. sysv4*MP*)
  15113. if test -d /usr/nec; then
  15114. version_type=linux # correct to gnu/linux during the next big refactor
  15115. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15116. soname_spec='$libname$shared_ext.$major'
  15117. shlibpath_var=LD_LIBRARY_PATH
  15118. fi
  15119. ;;
  15120. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15121. version_type=sco
  15122. need_lib_prefix=no
  15123. need_version=no
  15124. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15125. soname_spec='$libname$release$shared_ext$major'
  15126. shlibpath_var=LD_LIBRARY_PATH
  15127. shlibpath_overrides_runpath=yes
  15128. hardcode_into_libs=yes
  15129. if test yes = "$with_gnu_ld"; then
  15130. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15131. else
  15132. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15133. case $host_os in
  15134. sco3.2v5*)
  15135. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15136. ;;
  15137. esac
  15138. fi
  15139. sys_lib_dlsearch_path_spec='/usr/lib'
  15140. ;;
  15141. tpf*)
  15142. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15143. version_type=linux # correct to gnu/linux during the next big refactor
  15144. need_lib_prefix=no
  15145. need_version=no
  15146. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15147. shlibpath_var=LD_LIBRARY_PATH
  15148. shlibpath_overrides_runpath=no
  15149. hardcode_into_libs=yes
  15150. ;;
  15151. uts4*)
  15152. version_type=linux # correct to gnu/linux during the next big refactor
  15153. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15154. soname_spec='$libname$release$shared_ext$major'
  15155. shlibpath_var=LD_LIBRARY_PATH
  15156. ;;
  15157. *)
  15158. dynamic_linker=no
  15159. ;;
  15160. esac
  15161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15162. printf "%s\n" "$dynamic_linker" >&6; }
  15163. test no = "$dynamic_linker" && can_build_shared=no
  15164. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15165. if test yes = "$GCC"; then
  15166. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15167. fi
  15168. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15169. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15170. fi
  15171. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15172. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15173. fi
  15174. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15175. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15176. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15177. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15178. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15179. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15181. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15182. hardcode_action_CXX=
  15183. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15184. test -n "$runpath_var_CXX" ||
  15185. test yes = "$hardcode_automatic_CXX"; then
  15186. # We can hardcode non-existent directories.
  15187. if test no != "$hardcode_direct_CXX" &&
  15188. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15189. # have to relink, otherwise we might link with an installed library
  15190. # when we should be linking with a yet-to-be-installed one
  15191. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15192. test no != "$hardcode_minus_L_CXX"; then
  15193. # Linking always hardcodes the temporary library directory.
  15194. hardcode_action_CXX=relink
  15195. else
  15196. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15197. hardcode_action_CXX=immediate
  15198. fi
  15199. else
  15200. # We cannot hardcode anything, or else we can only hardcode existing
  15201. # directories.
  15202. hardcode_action_CXX=unsupported
  15203. fi
  15204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15205. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15206. if test relink = "$hardcode_action_CXX" ||
  15207. test yes = "$inherit_rpath_CXX"; then
  15208. # Fast installation is not supported
  15209. enable_fast_install=no
  15210. elif test yes = "$shlibpath_overrides_runpath" ||
  15211. test no = "$enable_shared"; then
  15212. # Fast installation is not necessary
  15213. enable_fast_install=needless
  15214. fi
  15215. fi # test -n "$compiler"
  15216. CC=$lt_save_CC
  15217. CFLAGS=$lt_save_CFLAGS
  15218. LDCXX=$LD
  15219. LD=$lt_save_LD
  15220. GCC=$lt_save_GCC
  15221. with_gnu_ld=$lt_save_with_gnu_ld
  15222. lt_cv_path_LDCXX=$lt_cv_path_LD
  15223. lt_cv_path_LD=$lt_save_path_LD
  15224. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15225. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15226. fi # test yes != "$_lt_caught_CXX_error"
  15227. ac_ext=c
  15228. ac_cpp='$CPP $CPPFLAGS'
  15229. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15230. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15231. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15233. printf %s "checking for egrep... " >&6; }
  15234. if test ${ac_cv_path_EGREP+y}
  15235. then :
  15236. printf %s "(cached) " >&6
  15237. else $as_nop
  15238. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15239. then ac_cv_path_EGREP="$GREP -E"
  15240. else
  15241. if test -z "$EGREP"; then
  15242. ac_path_EGREP_found=false
  15243. # Loop through the user's path and test for each of PROGNAME-LIST
  15244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15245. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15246. do
  15247. IFS=$as_save_IFS
  15248. case $as_dir in #(((
  15249. '') as_dir=./ ;;
  15250. */) ;;
  15251. *) as_dir=$as_dir/ ;;
  15252. esac
  15253. for ac_prog in egrep
  15254. do
  15255. for ac_exec_ext in '' $ac_executable_extensions; do
  15256. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15257. as_fn_executable_p "$ac_path_EGREP" || continue
  15258. # Check for GNU ac_path_EGREP and select it if it is found.
  15259. # Check for GNU $ac_path_EGREP
  15260. case `"$ac_path_EGREP" --version 2>&1` in
  15261. *GNU*)
  15262. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15263. *)
  15264. ac_count=0
  15265. printf %s 0123456789 >"conftest.in"
  15266. while :
  15267. do
  15268. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15269. mv "conftest.tmp" "conftest.in"
  15270. cp "conftest.in" "conftest.nl"
  15271. printf "%s\n" 'EGREP' >> "conftest.nl"
  15272. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15273. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15274. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15275. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15276. # Best one so far, save it but keep looking for a better one
  15277. ac_cv_path_EGREP="$ac_path_EGREP"
  15278. ac_path_EGREP_max=$ac_count
  15279. fi
  15280. # 10*(2^10) chars as input seems more than enough
  15281. test $ac_count -gt 10 && break
  15282. done
  15283. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15284. esac
  15285. $ac_path_EGREP_found && break 3
  15286. done
  15287. done
  15288. done
  15289. IFS=$as_save_IFS
  15290. if test -z "$ac_cv_path_EGREP"; then
  15291. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15292. fi
  15293. else
  15294. ac_cv_path_EGREP=$EGREP
  15295. fi
  15296. fi
  15297. fi
  15298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15299. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15300. EGREP="$ac_cv_path_EGREP"
  15301. # Find a good install program. We prefer a C program (faster),
  15302. # so one script is as good as another. But avoid the broken or
  15303. # incompatible versions:
  15304. # SysV /etc/install, /usr/sbin/install
  15305. # SunOS /usr/etc/install
  15306. # IRIX /sbin/install
  15307. # AIX /bin/install
  15308. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15309. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15310. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15311. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15312. # OS/2's system install, which has a completely different semantic
  15313. # ./install, which can be erroneously created by make from ./install.sh.
  15314. # Reject install programs that cannot install multiple files.
  15315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15316. printf %s "checking for a BSD-compatible install... " >&6; }
  15317. if test -z "$INSTALL"; then
  15318. if test ${ac_cv_path_install+y}
  15319. then :
  15320. printf %s "(cached) " >&6
  15321. else $as_nop
  15322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15323. for as_dir in $PATH
  15324. do
  15325. IFS=$as_save_IFS
  15326. case $as_dir in #(((
  15327. '') as_dir=./ ;;
  15328. */) ;;
  15329. *) as_dir=$as_dir/ ;;
  15330. esac
  15331. # Account for fact that we put trailing slashes in our PATH walk.
  15332. case $as_dir in #((
  15333. ./ | /[cC]/* | \
  15334. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15335. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15336. /usr/ucb/* ) ;;
  15337. *)
  15338. # OSF1 and SCO ODT 3.0 have their own names for install.
  15339. # Don't use installbsd from OSF since it installs stuff as root
  15340. # by default.
  15341. for ac_prog in ginstall scoinst install; do
  15342. for ac_exec_ext in '' $ac_executable_extensions; do
  15343. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15344. if test $ac_prog = install &&
  15345. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15346. # AIX install. It has an incompatible calling convention.
  15347. :
  15348. elif test $ac_prog = install &&
  15349. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15350. # program-specific install script used by HP pwplus--don't use.
  15351. :
  15352. else
  15353. rm -rf conftest.one conftest.two conftest.dir
  15354. echo one > conftest.one
  15355. echo two > conftest.two
  15356. mkdir conftest.dir
  15357. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15358. test -s conftest.one && test -s conftest.two &&
  15359. test -s conftest.dir/conftest.one &&
  15360. test -s conftest.dir/conftest.two
  15361. then
  15362. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15363. break 3
  15364. fi
  15365. fi
  15366. fi
  15367. done
  15368. done
  15369. ;;
  15370. esac
  15371. done
  15372. IFS=$as_save_IFS
  15373. rm -rf conftest.one conftest.two conftest.dir
  15374. fi
  15375. if test ${ac_cv_path_install+y}; then
  15376. INSTALL=$ac_cv_path_install
  15377. else
  15378. # As a last resort, use the slow shell script. Don't cache a
  15379. # value for INSTALL within a source directory, because that will
  15380. # break other packages using the cache if that directory is
  15381. # removed, or if the value is a relative name.
  15382. INSTALL=$ac_install_sh
  15383. fi
  15384. fi
  15385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15386. printf "%s\n" "$INSTALL" >&6; }
  15387. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15388. # It thinks the first close brace ends the variable substitution.
  15389. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15390. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15391. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15393. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15394. set x ${MAKE-make}
  15395. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15396. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15397. then :
  15398. printf %s "(cached) " >&6
  15399. else $as_nop
  15400. cat >conftest.make <<\_ACEOF
  15401. SHELL = /bin/sh
  15402. all:
  15403. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15404. _ACEOF
  15405. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15406. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15407. *@@@%%%=?*=@@@%%%*)
  15408. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15409. *)
  15410. eval ac_cv_prog_make_${ac_make}_set=no;;
  15411. esac
  15412. rm -f conftest.make
  15413. fi
  15414. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15416. printf "%s\n" "yes" >&6; }
  15417. SET_MAKE=
  15418. else
  15419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15420. printf "%s\n" "no" >&6; }
  15421. SET_MAKE="MAKE=${MAKE-make}"
  15422. fi
  15423. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15424. if test -n "$ac_tool_prefix"; then
  15425. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15426. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15428. printf %s "checking for $ac_word... " >&6; }
  15429. if test ${ac_cv_path_PKG_CONFIG+y}
  15430. then :
  15431. printf %s "(cached) " >&6
  15432. else $as_nop
  15433. case $PKG_CONFIG in
  15434. [\\/]* | ?:[\\/]*)
  15435. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15436. ;;
  15437. *)
  15438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15439. for as_dir in $PATH
  15440. do
  15441. IFS=$as_save_IFS
  15442. case $as_dir in #(((
  15443. '') as_dir=./ ;;
  15444. */) ;;
  15445. *) as_dir=$as_dir/ ;;
  15446. esac
  15447. for ac_exec_ext in '' $ac_executable_extensions; do
  15448. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15449. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15450. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15451. break 2
  15452. fi
  15453. done
  15454. done
  15455. IFS=$as_save_IFS
  15456. ;;
  15457. esac
  15458. fi
  15459. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15460. if test -n "$PKG_CONFIG"; then
  15461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15462. printf "%s\n" "$PKG_CONFIG" >&6; }
  15463. else
  15464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15465. printf "%s\n" "no" >&6; }
  15466. fi
  15467. fi
  15468. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15469. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15470. # Extract the first word of "pkg-config", so it can be a program name with args.
  15471. set dummy pkg-config; ac_word=$2
  15472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15473. printf %s "checking for $ac_word... " >&6; }
  15474. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15475. then :
  15476. printf %s "(cached) " >&6
  15477. else $as_nop
  15478. case $ac_pt_PKG_CONFIG in
  15479. [\\/]* | ?:[\\/]*)
  15480. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15481. ;;
  15482. *)
  15483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15484. for as_dir in $PATH
  15485. do
  15486. IFS=$as_save_IFS
  15487. case $as_dir in #(((
  15488. '') as_dir=./ ;;
  15489. */) ;;
  15490. *) as_dir=$as_dir/ ;;
  15491. esac
  15492. for ac_exec_ext in '' $ac_executable_extensions; do
  15493. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15494. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15495. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15496. break 2
  15497. fi
  15498. done
  15499. done
  15500. IFS=$as_save_IFS
  15501. ;;
  15502. esac
  15503. fi
  15504. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15505. if test -n "$ac_pt_PKG_CONFIG"; then
  15506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15507. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15508. else
  15509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15510. printf "%s\n" "no" >&6; }
  15511. fi
  15512. if test "x$ac_pt_PKG_CONFIG" = x; then
  15513. PKG_CONFIG=""
  15514. else
  15515. case $cross_compiling:$ac_tool_warned in
  15516. yes:)
  15517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15518. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15519. ac_tool_warned=yes ;;
  15520. esac
  15521. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15522. fi
  15523. else
  15524. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15525. fi
  15526. fi
  15527. if test -n "$PKG_CONFIG"; then
  15528. _pkg_min_version=0.9.0
  15529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15530. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15531. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15533. printf "%s\n" "yes" >&6; }
  15534. else
  15535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15536. printf "%s\n" "no" >&6; }
  15537. PKG_CONFIG=""
  15538. fi
  15539. fi
  15540. if test -z "$AWK" ; then
  15541. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15542. fi
  15543. for ac_prog in gsort sort
  15544. do
  15545. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15546. set dummy $ac_prog; ac_word=$2
  15547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15548. printf %s "checking for $ac_word... " >&6; }
  15549. if test ${ac_cv_prog_SORT+y}
  15550. then :
  15551. printf %s "(cached) " >&6
  15552. else $as_nop
  15553. if test -n "$SORT"; then
  15554. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15555. else
  15556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15557. for as_dir in $PATH
  15558. do
  15559. IFS=$as_save_IFS
  15560. case $as_dir in #(((
  15561. '') as_dir=./ ;;
  15562. */) ;;
  15563. *) as_dir=$as_dir/ ;;
  15564. esac
  15565. for ac_exec_ext in '' $ac_executable_extensions; do
  15566. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15567. ac_cv_prog_SORT="$ac_prog"
  15568. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15569. break 2
  15570. fi
  15571. done
  15572. done
  15573. IFS=$as_save_IFS
  15574. fi
  15575. fi
  15576. SORT=$ac_cv_prog_SORT
  15577. if test -n "$SORT"; then
  15578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15579. printf "%s\n" "$SORT" >&6; }
  15580. else
  15581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15582. printf "%s\n" "no" >&6; }
  15583. fi
  15584. test -n "$SORT" && break
  15585. done
  15586. test -n "$SORT" || SORT="false"
  15587. if ! "$SORT" -V </dev/null >/dev/null
  15588. then :
  15589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15590. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15591. fi
  15592. # Check whether --enable-largefile was given.
  15593. if test ${enable_largefile+y}
  15594. then :
  15595. enableval=$enable_largefile;
  15596. fi
  15597. if test "$enable_largefile" != no; then
  15598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15599. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15600. if test ${ac_cv_sys_largefile_CC+y}
  15601. then :
  15602. printf %s "(cached) " >&6
  15603. else $as_nop
  15604. ac_cv_sys_largefile_CC=no
  15605. if test "$GCC" != yes; then
  15606. ac_save_CC=$CC
  15607. while :; do
  15608. # IRIX 6.2 and later do not support large files by default,
  15609. # so use the C compiler's -n32 option if that helps.
  15610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15611. /* end confdefs.h. */
  15612. #include <sys/types.h>
  15613. /* Check that off_t can represent 2**63 - 1 correctly.
  15614. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15615. since some C++ compilers masquerading as C compilers
  15616. incorrectly reject 9223372036854775807. */
  15617. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15618. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15619. && LARGE_OFF_T % 2147483647 == 1)
  15620. ? 1 : -1];
  15621. int
  15622. main (void)
  15623. {
  15624. ;
  15625. return 0;
  15626. }
  15627. _ACEOF
  15628. if ac_fn_c_try_compile "$LINENO"
  15629. then :
  15630. break
  15631. fi
  15632. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15633. CC="$CC -n32"
  15634. if ac_fn_c_try_compile "$LINENO"
  15635. then :
  15636. ac_cv_sys_largefile_CC=' -n32'; break
  15637. fi
  15638. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15639. break
  15640. done
  15641. CC=$ac_save_CC
  15642. rm -f conftest.$ac_ext
  15643. fi
  15644. fi
  15645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15646. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15647. if test "$ac_cv_sys_largefile_CC" != no; then
  15648. CC=$CC$ac_cv_sys_largefile_CC
  15649. fi
  15650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15651. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15652. if test ${ac_cv_sys_file_offset_bits+y}
  15653. then :
  15654. printf %s "(cached) " >&6
  15655. else $as_nop
  15656. while :; do
  15657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15658. /* end confdefs.h. */
  15659. #include <sys/types.h>
  15660. /* Check that off_t can represent 2**63 - 1 correctly.
  15661. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15662. since some C++ compilers masquerading as C compilers
  15663. incorrectly reject 9223372036854775807. */
  15664. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15665. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15666. && LARGE_OFF_T % 2147483647 == 1)
  15667. ? 1 : -1];
  15668. int
  15669. main (void)
  15670. {
  15671. ;
  15672. return 0;
  15673. }
  15674. _ACEOF
  15675. if ac_fn_c_try_compile "$LINENO"
  15676. then :
  15677. ac_cv_sys_file_offset_bits=no; break
  15678. fi
  15679. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15681. /* end confdefs.h. */
  15682. #define _FILE_OFFSET_BITS 64
  15683. #include <sys/types.h>
  15684. /* Check that off_t can represent 2**63 - 1 correctly.
  15685. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15686. since some C++ compilers masquerading as C compilers
  15687. incorrectly reject 9223372036854775807. */
  15688. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15689. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15690. && LARGE_OFF_T % 2147483647 == 1)
  15691. ? 1 : -1];
  15692. int
  15693. main (void)
  15694. {
  15695. ;
  15696. return 0;
  15697. }
  15698. _ACEOF
  15699. if ac_fn_c_try_compile "$LINENO"
  15700. then :
  15701. ac_cv_sys_file_offset_bits=64; break
  15702. fi
  15703. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15704. ac_cv_sys_file_offset_bits=unknown
  15705. break
  15706. done
  15707. fi
  15708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15709. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15710. case $ac_cv_sys_file_offset_bits in #(
  15711. no | unknown) ;;
  15712. *)
  15713. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15714. ;;
  15715. esac
  15716. rm -rf conftest*
  15717. if test $ac_cv_sys_file_offset_bits = unknown; then
  15718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15719. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15720. if test ${ac_cv_sys_large_files+y}
  15721. then :
  15722. printf %s "(cached) " >&6
  15723. else $as_nop
  15724. while :; do
  15725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15726. /* end confdefs.h. */
  15727. #include <sys/types.h>
  15728. /* Check that off_t can represent 2**63 - 1 correctly.
  15729. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15730. since some C++ compilers masquerading as C compilers
  15731. incorrectly reject 9223372036854775807. */
  15732. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15733. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15734. && LARGE_OFF_T % 2147483647 == 1)
  15735. ? 1 : -1];
  15736. int
  15737. main (void)
  15738. {
  15739. ;
  15740. return 0;
  15741. }
  15742. _ACEOF
  15743. if ac_fn_c_try_compile "$LINENO"
  15744. then :
  15745. ac_cv_sys_large_files=no; break
  15746. fi
  15747. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15749. /* end confdefs.h. */
  15750. #define _LARGE_FILES 1
  15751. #include <sys/types.h>
  15752. /* Check that off_t can represent 2**63 - 1 correctly.
  15753. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15754. since some C++ compilers masquerading as C compilers
  15755. incorrectly reject 9223372036854775807. */
  15756. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15757. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15758. && LARGE_OFF_T % 2147483647 == 1)
  15759. ? 1 : -1];
  15760. int
  15761. main (void)
  15762. {
  15763. ;
  15764. return 0;
  15765. }
  15766. _ACEOF
  15767. if ac_fn_c_try_compile "$LINENO"
  15768. then :
  15769. ac_cv_sys_large_files=1; break
  15770. fi
  15771. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15772. ac_cv_sys_large_files=unknown
  15773. break
  15774. done
  15775. fi
  15776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15777. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15778. case $ac_cv_sys_large_files in #(
  15779. no | unknown) ;;
  15780. *)
  15781. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15782. ;;
  15783. esac
  15784. rm -rf conftest*
  15785. fi
  15786. fi
  15787. case "$host" in
  15788. *-*-mingw*)
  15789. # Except on msys, where make can't handle full pathnames (bug 1972)
  15790. ;;
  15791. *)
  15792. srcdir=`cd $srcdir && pwd`
  15793. ;;
  15794. esac
  15795. INCLUDE="-I$srcdir/include"
  15796. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15797. case "$host" in
  15798. *-*-haiku*)
  15799. LINKER='$(CXX)'
  15800. LIBTOOLLINKERTAG='CXX'
  15801. ;;
  15802. *)
  15803. LINKER='$(CC)'
  15804. LIBTOOLLINKERTAG='CC'
  15805. ;;
  15806. esac
  15807. if test x$srcdir != x.; then
  15808. INCLUDE="-Iinclude $INCLUDE"
  15809. elif test -d .git; then
  15810. as_fn_error $? "
  15811. *** When building from a git clone you should configure and build in a
  15812. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15813. " "$LINENO" 5
  15814. fi
  15815. BASE_CFLAGS=""
  15816. BASE_LDFLAGS=""
  15817. case "$host" in
  15818. *-*-cygwin*)
  15819. # We build SDL on cygwin without the UNIX emulation layer
  15820. save_CFLAGS="$CFLAGS"
  15821. have_no_cygwin=no
  15822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15823. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15824. CFLAGS="$save_CFLAGS -mno-cygwin"
  15825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15826. /* end confdefs.h. */
  15827. int
  15828. main (void)
  15829. {
  15830. ;
  15831. return 0;
  15832. }
  15833. _ACEOF
  15834. if ac_fn_c_try_compile "$LINENO"
  15835. then :
  15836. have_no_cygwin=yes
  15837. fi
  15838. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15840. printf "%s\n" "$have_no_cygwin" >&6; }
  15841. CFLAGS="$save_CFLAGS"
  15842. if test x$have_no_cygwin = xyes; then
  15843. BASE_CFLAGS="-mno-cygwin"
  15844. BASE_LDFLAGS="-mno-cygwin"
  15845. fi
  15846. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15847. ;;
  15848. esac
  15849. # Uncomment the following line if you want to force SDL and applications
  15850. # built with it to be compiled for a particular architecture.
  15851. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15852. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15853. # The default optimization for SDL is -O3 (Bug #31)
  15854. if test "x$orig_CFLAGS" = x; then
  15855. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15856. fi
  15857. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15858. BUILD_LDFLAGS="$LDFLAGS"
  15859. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15860. ## These are common directories to find software packages
  15861. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15862. # if test -d $path/include; then
  15863. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15864. # fi
  15865. # if test -d $path/lib; then
  15866. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15867. # fi
  15868. #done
  15869. SDL_CFLAGS="$BASE_CFLAGS"
  15870. SDL_LIBS="-lSDL3"
  15871. if test "x$BASE_LDFLAGS" != x; then
  15872. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15873. fi
  15874. if test "x$EXTRA_CFLAGS" != x; then
  15875. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15876. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15877. fi
  15878. if test "x$EXTRA_LDFLAGS" != x; then
  15879. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15880. fi
  15881. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15882. find_lib()
  15883. {
  15884. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15885. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15886. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15887. if test "$cross_compiling" = yes; then
  15888. host_lib_path=""
  15889. else
  15890. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15891. fi
  15892. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15893. 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`
  15894. if test x$lib != x; then
  15895. echo $lib
  15896. return
  15897. fi
  15898. done
  15899. }
  15900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15901. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15902. if test ${ac_cv_c_const+y}
  15903. then :
  15904. printf %s "(cached) " >&6
  15905. else $as_nop
  15906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15907. /* end confdefs.h. */
  15908. int
  15909. main (void)
  15910. {
  15911. #ifndef __cplusplus
  15912. /* Ultrix mips cc rejects this sort of thing. */
  15913. typedef int charset[2];
  15914. const charset cs = { 0, 0 };
  15915. /* SunOS 4.1.1 cc rejects this. */
  15916. char const *const *pcpcc;
  15917. char **ppc;
  15918. /* NEC SVR4.0.2 mips cc rejects this. */
  15919. struct point {int x, y;};
  15920. static struct point const zero = {0,0};
  15921. /* IBM XL C 1.02.0.0 rejects this.
  15922. It does not let you subtract one const X* pointer from another in
  15923. an arm of an if-expression whose if-part is not a constant
  15924. expression */
  15925. const char *g = "string";
  15926. pcpcc = &g + (g ? g-g : 0);
  15927. /* HPUX 7.0 cc rejects these. */
  15928. ++pcpcc;
  15929. ppc = (char**) pcpcc;
  15930. pcpcc = (char const *const *) ppc;
  15931. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15932. char tx;
  15933. char *t = &tx;
  15934. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15935. *t++ = 0;
  15936. if (s) return 0;
  15937. }
  15938. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15939. int x[] = {25, 17};
  15940. const int *foo = &x[0];
  15941. ++foo;
  15942. }
  15943. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15944. typedef const int *iptr;
  15945. iptr p = 0;
  15946. ++p;
  15947. }
  15948. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  15949. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15950. struct s { int j; const int *ap[3]; } bx;
  15951. struct s *b = &bx; b->j = 5;
  15952. }
  15953. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15954. const int foo = 10;
  15955. if (!foo) return 0;
  15956. }
  15957. return !cs[0] && !zero.x;
  15958. #endif
  15959. ;
  15960. return 0;
  15961. }
  15962. _ACEOF
  15963. if ac_fn_c_try_compile "$LINENO"
  15964. then :
  15965. ac_cv_c_const=yes
  15966. else $as_nop
  15967. ac_cv_c_const=no
  15968. fi
  15969. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15970. fi
  15971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  15972. printf "%s\n" "$ac_cv_c_const" >&6; }
  15973. if test $ac_cv_c_const = no; then
  15974. printf "%s\n" "#define const /**/" >>confdefs.h
  15975. fi
  15976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  15977. printf %s "checking for inline... " >&6; }
  15978. if test ${ac_cv_c_inline+y}
  15979. then :
  15980. printf %s "(cached) " >&6
  15981. else $as_nop
  15982. ac_cv_c_inline=no
  15983. for ac_kw in inline __inline__ __inline; do
  15984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15985. /* end confdefs.h. */
  15986. #ifndef __cplusplus
  15987. typedef int foo_t;
  15988. static $ac_kw foo_t static_foo (void) {return 0; }
  15989. $ac_kw foo_t foo (void) {return 0; }
  15990. #endif
  15991. _ACEOF
  15992. if ac_fn_c_try_compile "$LINENO"
  15993. then :
  15994. ac_cv_c_inline=$ac_kw
  15995. fi
  15996. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15997. test "$ac_cv_c_inline" != no && break
  15998. done
  15999. fi
  16000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16001. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16002. case $ac_cv_c_inline in
  16003. inline | yes) ;;
  16004. *)
  16005. case $ac_cv_c_inline in
  16006. no) ac_val=;;
  16007. *) ac_val=$ac_cv_c_inline;;
  16008. esac
  16009. cat >>confdefs.h <<_ACEOF
  16010. #ifndef __cplusplus
  16011. #define inline $ac_val
  16012. #endif
  16013. _ACEOF
  16014. ;;
  16015. esac
  16016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16017. printf %s "checking for working volatile... " >&6; }
  16018. if test ${ac_cv_c_volatile+y}
  16019. then :
  16020. printf %s "(cached) " >&6
  16021. else $as_nop
  16022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16023. /* end confdefs.h. */
  16024. int
  16025. main (void)
  16026. {
  16027. volatile int x;
  16028. int * volatile y = (int *) 0;
  16029. return !x && !y;
  16030. ;
  16031. return 0;
  16032. }
  16033. _ACEOF
  16034. if ac_fn_c_try_compile "$LINENO"
  16035. then :
  16036. ac_cv_c_volatile=yes
  16037. else $as_nop
  16038. ac_cv_c_volatile=no
  16039. fi
  16040. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16041. fi
  16042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16043. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16044. if test $ac_cv_c_volatile = no; then
  16045. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16046. fi
  16047. # Check whether --enable-assertions was given.
  16048. if test ${enable_assertions+y}
  16049. then :
  16050. enableval=$enable_assertions;
  16051. else $as_nop
  16052. enable_assertions=auto
  16053. fi
  16054. case "$enable_assertions" in
  16055. auto) # Use optimization settings to determine assertion level
  16056. ;;
  16057. disabled)
  16058. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16059. ;;
  16060. release)
  16061. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16062. ;;
  16063. enabled)
  16064. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16065. ;;
  16066. paranoid)
  16067. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16068. ;;
  16069. *)
  16070. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16071. ;;
  16072. esac
  16073. 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"
  16074. # Check whether --enable-dependency-tracking was given.
  16075. if test ${enable_dependency_tracking+y}
  16076. then :
  16077. enableval=$enable_dependency_tracking;
  16078. else $as_nop
  16079. enable_dependency_tracking=yes
  16080. fi
  16081. if test x$enable_dependency_tracking = xyes; then
  16082. have_gcc_mmd_mt=no
  16083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16084. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16086. /* end confdefs.h. */
  16087. #if !defined(__GNUC__) || __GNUC__ < 3
  16088. #error Dependency tracking requires GCC 3.0 or newer
  16089. #endif
  16090. int
  16091. main (void)
  16092. {
  16093. ;
  16094. return 0;
  16095. }
  16096. _ACEOF
  16097. if ac_fn_c_try_compile "$LINENO"
  16098. then :
  16099. have_gcc_mmd_mt=yes
  16100. fi
  16101. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16103. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16104. if test x$have_gcc_mmd_mt = xyes; then
  16105. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16106. fi
  16107. fi
  16108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16109. printf %s "checking for linker option --no-undefined... " >&6; }
  16110. have_no_undefined=no
  16111. case "$host" in
  16112. *-*-openbsd*)
  16113. ;;
  16114. *)
  16115. save_LDFLAGS="$LDFLAGS"
  16116. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16118. /* end confdefs.h. */
  16119. int
  16120. main (void)
  16121. {
  16122. ;
  16123. return 0;
  16124. }
  16125. _ACEOF
  16126. if ac_fn_c_try_link "$LINENO"
  16127. then :
  16128. have_no_undefined=yes
  16129. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16130. fi
  16131. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16132. conftest$ac_exeext conftest.$ac_ext
  16133. LDFLAGS="$save_LDFLAGS"
  16134. ;;
  16135. esac
  16136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16137. printf "%s\n" "$have_no_undefined" >&6; }
  16138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16139. printf %s "checking for linker option --dynamicbase... " >&6; }
  16140. have_dynamicbase=no
  16141. case "$host" in
  16142. *)
  16143. save_LDFLAGS="$LDFLAGS"
  16144. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16146. /* end confdefs.h. */
  16147. int
  16148. main (void)
  16149. {
  16150. ;
  16151. return 0;
  16152. }
  16153. _ACEOF
  16154. if ac_fn_c_try_link "$LINENO"
  16155. then :
  16156. have_dynamicbase=yes
  16157. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16158. fi
  16159. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16160. conftest$ac_exeext conftest.$ac_ext
  16161. LDFLAGS="$save_LDFLAGS"
  16162. ;;
  16163. esac
  16164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16165. printf "%s\n" "$have_dynamicbase" >&6; }
  16166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16167. printf %s "checking for linker option --nxcompat... " >&6; }
  16168. have_nxcompat=no
  16169. case "$host" in
  16170. *)
  16171. save_LDFLAGS="$LDFLAGS"
  16172. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16174. /* end confdefs.h. */
  16175. int
  16176. main (void)
  16177. {
  16178. ;
  16179. return 0;
  16180. }
  16181. _ACEOF
  16182. if ac_fn_c_try_link "$LINENO"
  16183. then :
  16184. have_nxcompat=yes
  16185. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16186. fi
  16187. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16188. conftest$ac_exeext conftest.$ac_ext
  16189. LDFLAGS="$save_LDFLAGS"
  16190. ;;
  16191. esac
  16192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16193. printf "%s\n" "$have_nxcompat" >&6; }
  16194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16195. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16196. have_high_entropy_va=no
  16197. case "$host" in
  16198. *)
  16199. save_LDFLAGS="$LDFLAGS"
  16200. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16202. /* end confdefs.h. */
  16203. int
  16204. main (void)
  16205. {
  16206. ;
  16207. return 0;
  16208. }
  16209. _ACEOF
  16210. if ac_fn_c_try_link "$LINENO"
  16211. then :
  16212. have_high_entropy_va=yes
  16213. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16214. fi
  16215. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16216. conftest$ac_exeext conftest.$ac_ext
  16217. LDFLAGS="$save_LDFLAGS"
  16218. ;;
  16219. esac
  16220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16221. printf "%s\n" "$have_high_entropy_va" >&6; }
  16222. # Check whether --enable-libc was given.
  16223. if test ${enable_libc+y}
  16224. then :
  16225. enableval=$enable_libc;
  16226. else $as_nop
  16227. enable_libc=yes
  16228. fi
  16229. # Check whether --enable-system-iconv was given.
  16230. if test ${enable_system_iconv+y}
  16231. then :
  16232. enableval=$enable_system_iconv;
  16233. else $as_nop
  16234. enable_system_iconv=yes
  16235. fi
  16236. if test x$enable_libc = xyes; then
  16237. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16238. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16239. if test "x$ac_cv_header_sys_types_h" = xyes
  16240. then :
  16241. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16242. fi
  16243. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16244. if test "x$ac_cv_header_stdio_h" = xyes
  16245. then :
  16246. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16247. fi
  16248. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16249. if test "x$ac_cv_header_stdlib_h" = xyes
  16250. then :
  16251. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16252. fi
  16253. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16254. if test "x$ac_cv_header_stddef_h" = xyes
  16255. then :
  16256. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16257. fi
  16258. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16259. if test "x$ac_cv_header_stdarg_h" = xyes
  16260. then :
  16261. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16262. fi
  16263. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16264. if test "x$ac_cv_header_malloc_h" = xyes
  16265. then :
  16266. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16267. fi
  16268. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16269. if test "x$ac_cv_header_memory_h" = xyes
  16270. then :
  16271. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16272. fi
  16273. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16274. if test "x$ac_cv_header_string_h" = xyes
  16275. then :
  16276. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16277. fi
  16278. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16279. if test "x$ac_cv_header_strings_h" = xyes
  16280. then :
  16281. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16282. fi
  16283. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16284. if test "x$ac_cv_header_wchar_h" = xyes
  16285. then :
  16286. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16287. fi
  16288. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16289. if test "x$ac_cv_header_inttypes_h" = xyes
  16290. then :
  16291. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16292. fi
  16293. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16294. if test "x$ac_cv_header_stdint_h" = xyes
  16295. then :
  16296. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16297. fi
  16298. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16299. if test "x$ac_cv_header_limits_h" = xyes
  16300. then :
  16301. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16302. fi
  16303. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16304. if test "x$ac_cv_header_ctype_h" = xyes
  16305. then :
  16306. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16307. fi
  16308. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16309. if test "x$ac_cv_header_math_h" = xyes
  16310. then :
  16311. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16312. fi
  16313. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16314. if test "x$ac_cv_header_float_h" = xyes
  16315. then :
  16316. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16317. fi
  16318. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16319. if test "x$ac_cv_header_iconv_h" = xyes
  16320. then :
  16321. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16322. fi
  16323. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16324. if test "x$ac_cv_header_signal_h" = xyes
  16325. then :
  16326. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16327. fi
  16328. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  16329. if test "x$ac_cv_header_linux_input_h" = xyes
  16330. then :
  16331. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  16332. fi
  16333. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16334. if test "x$ac_cv_type_size_t" = xyes
  16335. then :
  16336. else $as_nop
  16337. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16338. fi
  16339. ac_ext=c
  16340. ac_cpp='$CPP $CPPFLAGS'
  16341. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16342. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16343. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16345. printf %s "checking how to run the C preprocessor... " >&6; }
  16346. # On Suns, sometimes $CPP names a directory.
  16347. if test -n "$CPP" && test -d "$CPP"; then
  16348. CPP=
  16349. fi
  16350. if test -z "$CPP"; then
  16351. if test ${ac_cv_prog_CPP+y}
  16352. then :
  16353. printf %s "(cached) " >&6
  16354. else $as_nop
  16355. # Double quotes because $CC needs to be expanded
  16356. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16357. do
  16358. ac_preproc_ok=false
  16359. for ac_c_preproc_warn_flag in '' yes
  16360. do
  16361. # Use a header file that comes with gcc, so configuring glibc
  16362. # with a fresh cross-compiler works.
  16363. # On the NeXT, cc -E runs the code through the compiler's parser,
  16364. # not just through cpp. "Syntax error" is here to catch this case.
  16365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16366. /* end confdefs.h. */
  16367. #include <limits.h>
  16368. Syntax error
  16369. _ACEOF
  16370. if ac_fn_c_try_cpp "$LINENO"
  16371. then :
  16372. else $as_nop
  16373. # Broken: fails on valid input.
  16374. continue
  16375. fi
  16376. rm -f conftest.err conftest.i conftest.$ac_ext
  16377. # OK, works on sane cases. Now check whether nonexistent headers
  16378. # can be detected and how.
  16379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16380. /* end confdefs.h. */
  16381. #include <ac_nonexistent.h>
  16382. _ACEOF
  16383. if ac_fn_c_try_cpp "$LINENO"
  16384. then :
  16385. # Broken: success on invalid input.
  16386. continue
  16387. else $as_nop
  16388. # Passes both tests.
  16389. ac_preproc_ok=:
  16390. break
  16391. fi
  16392. rm -f conftest.err conftest.i conftest.$ac_ext
  16393. done
  16394. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16395. rm -f conftest.i conftest.err conftest.$ac_ext
  16396. if $ac_preproc_ok
  16397. then :
  16398. break
  16399. fi
  16400. done
  16401. ac_cv_prog_CPP=$CPP
  16402. fi
  16403. CPP=$ac_cv_prog_CPP
  16404. else
  16405. ac_cv_prog_CPP=$CPP
  16406. fi
  16407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16408. printf "%s\n" "$CPP" >&6; }
  16409. ac_preproc_ok=false
  16410. for ac_c_preproc_warn_flag in '' yes
  16411. do
  16412. # Use a header file that comes with gcc, so configuring glibc
  16413. # with a fresh cross-compiler works.
  16414. # On the NeXT, cc -E runs the code through the compiler's parser,
  16415. # not just through cpp. "Syntax error" is here to catch this case.
  16416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16417. /* end confdefs.h. */
  16418. #include <limits.h>
  16419. Syntax error
  16420. _ACEOF
  16421. if ac_fn_c_try_cpp "$LINENO"
  16422. then :
  16423. else $as_nop
  16424. # Broken: fails on valid input.
  16425. continue
  16426. fi
  16427. rm -f conftest.err conftest.i conftest.$ac_ext
  16428. # OK, works on sane cases. Now check whether nonexistent headers
  16429. # can be detected and how.
  16430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16431. /* end confdefs.h. */
  16432. #include <ac_nonexistent.h>
  16433. _ACEOF
  16434. if ac_fn_c_try_cpp "$LINENO"
  16435. then :
  16436. # Broken: success on invalid input.
  16437. continue
  16438. else $as_nop
  16439. # Passes both tests.
  16440. ac_preproc_ok=:
  16441. break
  16442. fi
  16443. rm -f conftest.err conftest.i conftest.$ac_ext
  16444. done
  16445. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16446. rm -f conftest.i conftest.err conftest.$ac_ext
  16447. if $ac_preproc_ok
  16448. then :
  16449. else $as_nop
  16450. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16451. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16452. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16453. See \`config.log' for more details" "$LINENO" 5; }
  16454. fi
  16455. ac_ext=c
  16456. ac_cpp='$CPP $CPPFLAGS'
  16457. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16458. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16459. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16461. printf %s "checking for M_PI in math.h... " >&6; }
  16462. if test ${ac_cv_define_M_PI+y}
  16463. then :
  16464. printf %s "(cached) " >&6
  16465. else $as_nop
  16466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16467. /* end confdefs.h. */
  16468. #include <math.h>
  16469. #ifdef M_PI
  16470. YES_IS_DEFINED
  16471. #endif
  16472. _ACEOF
  16473. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16474. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16475. then :
  16476. ac_cv_define_M_PI=yes
  16477. else $as_nop
  16478. ac_cv_define_M_PI=no
  16479. fi
  16480. rm -rf conftest*
  16481. fi
  16482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16483. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16484. if test "$ac_cv_define_M_PI" = "yes" ; then
  16485. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16486. fi
  16487. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16488. # for constant arguments. Useless!
  16489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16490. printf %s "checking for working alloca.h... " >&6; }
  16491. if test ${ac_cv_working_alloca_h+y}
  16492. then :
  16493. printf %s "(cached) " >&6
  16494. else $as_nop
  16495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16496. /* end confdefs.h. */
  16497. #include <alloca.h>
  16498. int
  16499. main (void)
  16500. {
  16501. char *p = (char *) alloca (2 * sizeof (int));
  16502. if (p) return 0;
  16503. ;
  16504. return 0;
  16505. }
  16506. _ACEOF
  16507. if ac_fn_c_try_link "$LINENO"
  16508. then :
  16509. ac_cv_working_alloca_h=yes
  16510. else $as_nop
  16511. ac_cv_working_alloca_h=no
  16512. fi
  16513. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16514. conftest$ac_exeext conftest.$ac_ext
  16515. fi
  16516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16517. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16518. if test $ac_cv_working_alloca_h = yes; then
  16519. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16520. fi
  16521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16522. printf %s "checking for alloca... " >&6; }
  16523. if test ${ac_cv_func_alloca_works+y}
  16524. then :
  16525. printf %s "(cached) " >&6
  16526. else $as_nop
  16527. if test $ac_cv_working_alloca_h = yes; then
  16528. ac_cv_func_alloca_works=yes
  16529. else
  16530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16531. /* end confdefs.h. */
  16532. #include <stdlib.h>
  16533. #include <stddef.h>
  16534. #ifndef alloca
  16535. # ifdef __GNUC__
  16536. # define alloca __builtin_alloca
  16537. # elif defined _MSC_VER
  16538. # include <malloc.h>
  16539. # define alloca _alloca
  16540. # else
  16541. # ifdef __cplusplus
  16542. extern "C"
  16543. # endif
  16544. void *alloca (size_t);
  16545. # endif
  16546. #endif
  16547. int
  16548. main (void)
  16549. {
  16550. char *p = (char *) alloca (1);
  16551. if (p) return 0;
  16552. ;
  16553. return 0;
  16554. }
  16555. _ACEOF
  16556. if ac_fn_c_try_link "$LINENO"
  16557. then :
  16558. ac_cv_func_alloca_works=yes
  16559. else $as_nop
  16560. ac_cv_func_alloca_works=no
  16561. fi
  16562. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16563. conftest$ac_exeext conftest.$ac_ext
  16564. fi
  16565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16566. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16567. fi
  16568. if test $ac_cv_func_alloca_works = yes; then
  16569. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16570. else
  16571. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16572. # that cause trouble. Some versions do not even contain alloca or
  16573. # contain a buggy version. If you still want to use their alloca,
  16574. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16575. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16576. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16578. printf %s "checking stack direction for C alloca... " >&6; }
  16579. if test ${ac_cv_c_stack_direction+y}
  16580. then :
  16581. printf %s "(cached) " >&6
  16582. else $as_nop
  16583. if test "$cross_compiling" = yes
  16584. then :
  16585. ac_cv_c_stack_direction=0
  16586. else $as_nop
  16587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16588. /* end confdefs.h. */
  16589. $ac_includes_default
  16590. int
  16591. find_stack_direction (int *addr, int depth)
  16592. {
  16593. int dir, dummy = 0;
  16594. if (! addr)
  16595. addr = &dummy;
  16596. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16597. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16598. return dir + dummy;
  16599. }
  16600. int
  16601. main (int argc, char **argv)
  16602. {
  16603. return find_stack_direction (0, argc + !argv + 20) < 0;
  16604. }
  16605. _ACEOF
  16606. if ac_fn_c_try_run "$LINENO"
  16607. then :
  16608. ac_cv_c_stack_direction=1
  16609. else $as_nop
  16610. ac_cv_c_stack_direction=-1
  16611. fi
  16612. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16613. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16614. fi
  16615. fi
  16616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16617. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16618. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16619. fi
  16620. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16621. if test "x$ac_cv_func_mprotect" = xyes
  16622. then :
  16623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16624. /* end confdefs.h. */
  16625. #include <sys/types.h>
  16626. #include <sys/mman.h>
  16627. int
  16628. main (void)
  16629. {
  16630. ;
  16631. return 0;
  16632. }
  16633. _ACEOF
  16634. if ac_fn_c_try_compile "$LINENO"
  16635. then :
  16636. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16637. fi
  16638. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16639. fi
  16640. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16641. if test "x$ac_cv_func_malloc" = xyes
  16642. then :
  16643. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16644. fi
  16645. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16646. if test "x$ac_cv_func_calloc" = xyes
  16647. then :
  16648. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16649. fi
  16650. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16651. if test "x$ac_cv_func_realloc" = xyes
  16652. then :
  16653. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16654. fi
  16655. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16656. if test "x$ac_cv_func_free" = xyes
  16657. then :
  16658. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16659. fi
  16660. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16661. if test "x$ac_cv_func_getenv" = xyes
  16662. then :
  16663. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16664. fi
  16665. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16666. if test "x$ac_cv_func_setenv" = xyes
  16667. then :
  16668. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16669. fi
  16670. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16671. if test "x$ac_cv_func_putenv" = xyes
  16672. then :
  16673. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16674. fi
  16675. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16676. if test "x$ac_cv_func_unsetenv" = xyes
  16677. then :
  16678. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16679. fi
  16680. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16681. if test "x$ac_cv_func_bsearch" = xyes
  16682. then :
  16683. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16684. fi
  16685. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16686. if test "x$ac_cv_func_qsort" = xyes
  16687. then :
  16688. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16689. fi
  16690. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16691. if test "x$ac_cv_func_abs" = xyes
  16692. then :
  16693. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16694. fi
  16695. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16696. if test "x$ac_cv_func_bcopy" = xyes
  16697. then :
  16698. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16699. fi
  16700. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16701. if test "x$ac_cv_func_memset" = xyes
  16702. then :
  16703. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16704. fi
  16705. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16706. if test "x$ac_cv_func_memcmp" = xyes
  16707. then :
  16708. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16709. fi
  16710. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16711. if test "x$ac_cv_func_memcpy" = xyes
  16712. then :
  16713. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16714. fi
  16715. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16716. if test "x$ac_cv_func_memmove" = xyes
  16717. then :
  16718. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16719. fi
  16720. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16721. if test "x$ac_cv_func_wcslen" = xyes
  16722. then :
  16723. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16724. fi
  16725. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16726. if test "x$ac_cv_func_wcslcpy" = xyes
  16727. then :
  16728. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16729. fi
  16730. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16731. if test "x$ac_cv_func_wcslcat" = xyes
  16732. then :
  16733. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16734. fi
  16735. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16736. if test "x$ac_cv_func__wcsdup" = xyes
  16737. then :
  16738. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16739. fi
  16740. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16741. if test "x$ac_cv_func_wcsdup" = xyes
  16742. then :
  16743. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16744. fi
  16745. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16746. if test "x$ac_cv_func_wcsstr" = xyes
  16747. then :
  16748. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16749. fi
  16750. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16751. if test "x$ac_cv_func_wcscmp" = xyes
  16752. then :
  16753. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16754. fi
  16755. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16756. if test "x$ac_cv_func_wcsncmp" = xyes
  16757. then :
  16758. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16759. fi
  16760. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16761. if test "x$ac_cv_func_wcscasecmp" = xyes
  16762. then :
  16763. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16764. fi
  16765. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16766. if test "x$ac_cv_func__wcsicmp" = xyes
  16767. then :
  16768. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16769. fi
  16770. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16771. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16772. then :
  16773. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16774. fi
  16775. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16776. if test "x$ac_cv_func__wcsnicmp" = xyes
  16777. then :
  16778. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16779. fi
  16780. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16781. if test "x$ac_cv_func_strlen" = xyes
  16782. then :
  16783. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16784. fi
  16785. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16786. if test "x$ac_cv_func_strlcpy" = xyes
  16787. then :
  16788. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16789. fi
  16790. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16791. if test "x$ac_cv_func_strlcat" = xyes
  16792. then :
  16793. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16794. fi
  16795. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16796. if test "x$ac_cv_func__strrev" = xyes
  16797. then :
  16798. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16799. fi
  16800. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16801. if test "x$ac_cv_func__strupr" = xyes
  16802. then :
  16803. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16804. fi
  16805. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16806. if test "x$ac_cv_func__strlwr" = xyes
  16807. then :
  16808. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16809. fi
  16810. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16811. if test "x$ac_cv_func_index" = xyes
  16812. then :
  16813. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16814. fi
  16815. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16816. if test "x$ac_cv_func_rindex" = xyes
  16817. then :
  16818. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16819. fi
  16820. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16821. if test "x$ac_cv_func_strchr" = xyes
  16822. then :
  16823. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16824. fi
  16825. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16826. if test "x$ac_cv_func_strrchr" = xyes
  16827. then :
  16828. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16829. fi
  16830. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16831. if test "x$ac_cv_func_strstr" = xyes
  16832. then :
  16833. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16834. fi
  16835. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16836. if test "x$ac_cv_func_strtok_r" = xyes
  16837. then :
  16838. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16839. fi
  16840. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16841. if test "x$ac_cv_func_itoa" = xyes
  16842. then :
  16843. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16844. fi
  16845. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16846. if test "x$ac_cv_func__ltoa" = xyes
  16847. then :
  16848. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16849. fi
  16850. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16851. if test "x$ac_cv_func__uitoa" = xyes
  16852. then :
  16853. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16854. fi
  16855. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16856. if test "x$ac_cv_func__ultoa" = xyes
  16857. then :
  16858. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16859. fi
  16860. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16861. if test "x$ac_cv_func_strtod" = xyes
  16862. then :
  16863. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16864. fi
  16865. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16866. if test "x$ac_cv_func_strtol" = xyes
  16867. then :
  16868. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16869. fi
  16870. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16871. if test "x$ac_cv_func_strtoul" = xyes
  16872. then :
  16873. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16874. fi
  16875. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16876. if test "x$ac_cv_func__i64toa" = xyes
  16877. then :
  16878. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16879. fi
  16880. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16881. if test "x$ac_cv_func__ui64toa" = xyes
  16882. then :
  16883. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16884. fi
  16885. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16886. if test "x$ac_cv_func_strtoll" = xyes
  16887. then :
  16888. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16889. fi
  16890. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16891. if test "x$ac_cv_func_strtoull" = xyes
  16892. then :
  16893. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16894. fi
  16895. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16896. if test "x$ac_cv_func_atoi" = xyes
  16897. then :
  16898. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16899. fi
  16900. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16901. if test "x$ac_cv_func_atof" = xyes
  16902. then :
  16903. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16904. fi
  16905. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16906. if test "x$ac_cv_func_strcmp" = xyes
  16907. then :
  16908. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16909. fi
  16910. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16911. if test "x$ac_cv_func_strncmp" = xyes
  16912. then :
  16913. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16914. fi
  16915. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16916. if test "x$ac_cv_func__stricmp" = xyes
  16917. then :
  16918. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16919. fi
  16920. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16921. if test "x$ac_cv_func_strcasecmp" = xyes
  16922. then :
  16923. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16924. fi
  16925. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16926. if test "x$ac_cv_func__strnicmp" = xyes
  16927. then :
  16928. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16929. fi
  16930. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  16931. if test "x$ac_cv_func_strncasecmp" = xyes
  16932. then :
  16933. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  16934. fi
  16935. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  16936. if test "x$ac_cv_func_strcasestr" = xyes
  16937. then :
  16938. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  16939. fi
  16940. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  16941. if test "x$ac_cv_func_vsscanf" = xyes
  16942. then :
  16943. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  16944. fi
  16945. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  16946. if test "x$ac_cv_func_vsnprintf" = xyes
  16947. then :
  16948. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  16949. fi
  16950. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  16951. if test "x$ac_cv_func_fopen64" = xyes
  16952. then :
  16953. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  16954. fi
  16955. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  16956. if test "x$ac_cv_func_fseeko" = xyes
  16957. then :
  16958. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  16959. fi
  16960. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  16961. if test "x$ac_cv_func_fseeko64" = xyes
  16962. then :
  16963. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  16964. fi
  16965. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  16966. if test "x$ac_cv_func_sigaction" = xyes
  16967. then :
  16968. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  16969. fi
  16970. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  16971. if test "x$ac_cv_func_setjmp" = xyes
  16972. then :
  16973. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  16974. fi
  16975. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  16976. if test "x$ac_cv_func_nanosleep" = xyes
  16977. then :
  16978. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  16979. fi
  16980. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  16981. if test "x$ac_cv_func_sysconf" = xyes
  16982. then :
  16983. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  16984. fi
  16985. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  16986. if test "x$ac_cv_func_sysctlbyname" = xyes
  16987. then :
  16988. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  16989. fi
  16990. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  16991. if test "x$ac_cv_func_getauxval" = xyes
  16992. then :
  16993. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  16994. fi
  16995. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  16996. if test "x$ac_cv_func_elf_aux_info" = xyes
  16997. then :
  16998. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  16999. fi
  17000. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17001. if test "x$ac_cv_func_poll" = xyes
  17002. then :
  17003. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17004. fi
  17005. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17006. if test "x$ac_cv_func__Exit" = xyes
  17007. then :
  17008. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17009. fi
  17010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17011. printf %s "checking for pow in -lm... " >&6; }
  17012. if test ${ac_cv_lib_m_pow+y}
  17013. then :
  17014. printf %s "(cached) " >&6
  17015. else $as_nop
  17016. ac_check_lib_save_LIBS=$LIBS
  17017. LIBS="-lm $LIBS"
  17018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17019. /* end confdefs.h. */
  17020. /* Override any GCC internal prototype to avoid an error.
  17021. Use char because int might match the return type of a GCC
  17022. builtin and then its argument prototype would still apply. */
  17023. char pow ();
  17024. int
  17025. main (void)
  17026. {
  17027. return pow ();
  17028. ;
  17029. return 0;
  17030. }
  17031. _ACEOF
  17032. if ac_fn_c_try_link "$LINENO"
  17033. then :
  17034. ac_cv_lib_m_pow=yes
  17035. else $as_nop
  17036. ac_cv_lib_m_pow=no
  17037. fi
  17038. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17039. conftest$ac_exeext conftest.$ac_ext
  17040. LIBS=$ac_check_lib_save_LIBS
  17041. fi
  17042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17043. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17044. if test "x$ac_cv_lib_m_pow" = xyes
  17045. then :
  17046. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17047. fi
  17048. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17049. if test "x$ac_cv_func_acos" = xyes
  17050. then :
  17051. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17052. fi
  17053. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17054. if test "x$ac_cv_func_acosf" = xyes
  17055. then :
  17056. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17057. fi
  17058. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17059. if test "x$ac_cv_func_asin" = xyes
  17060. then :
  17061. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17062. fi
  17063. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17064. if test "x$ac_cv_func_asinf" = xyes
  17065. then :
  17066. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17067. fi
  17068. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17069. if test "x$ac_cv_func_atan" = xyes
  17070. then :
  17071. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17072. fi
  17073. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17074. if test "x$ac_cv_func_atanf" = xyes
  17075. then :
  17076. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17077. fi
  17078. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17079. if test "x$ac_cv_func_atan2" = xyes
  17080. then :
  17081. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17082. fi
  17083. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17084. if test "x$ac_cv_func_atan2f" = xyes
  17085. then :
  17086. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17087. fi
  17088. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17089. if test "x$ac_cv_func_ceil" = xyes
  17090. then :
  17091. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17092. fi
  17093. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17094. if test "x$ac_cv_func_ceilf" = xyes
  17095. then :
  17096. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17097. fi
  17098. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17099. if test "x$ac_cv_func_copysign" = xyes
  17100. then :
  17101. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17102. fi
  17103. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17104. if test "x$ac_cv_func_copysignf" = xyes
  17105. then :
  17106. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17107. fi
  17108. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17109. if test "x$ac_cv_func_cos" = xyes
  17110. then :
  17111. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17112. fi
  17113. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17114. if test "x$ac_cv_func_cosf" = xyes
  17115. then :
  17116. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17117. fi
  17118. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17119. if test "x$ac_cv_func_exp" = xyes
  17120. then :
  17121. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17122. fi
  17123. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17124. if test "x$ac_cv_func_expf" = xyes
  17125. then :
  17126. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17127. fi
  17128. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17129. if test "x$ac_cv_func_fabs" = xyes
  17130. then :
  17131. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17132. fi
  17133. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17134. if test "x$ac_cv_func_fabsf" = xyes
  17135. then :
  17136. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17137. fi
  17138. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17139. if test "x$ac_cv_func_floor" = xyes
  17140. then :
  17141. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17142. fi
  17143. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17144. if test "x$ac_cv_func_floorf" = xyes
  17145. then :
  17146. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17147. fi
  17148. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17149. if test "x$ac_cv_func_trunc" = xyes
  17150. then :
  17151. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17152. fi
  17153. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17154. if test "x$ac_cv_func_truncf" = xyes
  17155. then :
  17156. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17157. fi
  17158. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17159. if test "x$ac_cv_func_fmod" = xyes
  17160. then :
  17161. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17162. fi
  17163. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17164. if test "x$ac_cv_func_fmodf" = xyes
  17165. then :
  17166. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17167. fi
  17168. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17169. if test "x$ac_cv_func_log" = xyes
  17170. then :
  17171. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17172. fi
  17173. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17174. if test "x$ac_cv_func_logf" = xyes
  17175. then :
  17176. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17177. fi
  17178. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17179. if test "x$ac_cv_func_log10" = xyes
  17180. then :
  17181. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17182. fi
  17183. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17184. if test "x$ac_cv_func_log10f" = xyes
  17185. then :
  17186. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17187. fi
  17188. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17189. if test "x$ac_cv_func_lround" = xyes
  17190. then :
  17191. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17192. fi
  17193. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17194. if test "x$ac_cv_func_lroundf" = xyes
  17195. then :
  17196. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17197. fi
  17198. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17199. if test "x$ac_cv_func_pow" = xyes
  17200. then :
  17201. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17202. fi
  17203. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17204. if test "x$ac_cv_func_powf" = xyes
  17205. then :
  17206. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17207. fi
  17208. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17209. if test "x$ac_cv_func_round" = xyes
  17210. then :
  17211. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17212. fi
  17213. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17214. if test "x$ac_cv_func_roundf" = xyes
  17215. then :
  17216. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17217. fi
  17218. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17219. if test "x$ac_cv_func_scalbn" = xyes
  17220. then :
  17221. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17222. fi
  17223. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17224. if test "x$ac_cv_func_scalbnf" = xyes
  17225. then :
  17226. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17227. fi
  17228. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17229. if test "x$ac_cv_func_sin" = xyes
  17230. then :
  17231. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17232. fi
  17233. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17234. if test "x$ac_cv_func_sinf" = xyes
  17235. then :
  17236. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17237. fi
  17238. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17239. if test "x$ac_cv_func_sqrt" = xyes
  17240. then :
  17241. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17242. fi
  17243. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17244. if test "x$ac_cv_func_sqrtf" = xyes
  17245. then :
  17246. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17247. fi
  17248. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17249. if test "x$ac_cv_func_tan" = xyes
  17250. then :
  17251. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17252. fi
  17253. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17254. if test "x$ac_cv_func_tanf" = xyes
  17255. then :
  17256. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17257. fi
  17258. if test x$enable_system_iconv = xyes; then
  17259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17260. printf %s "checking for iconv_open in -liconv... " >&6; }
  17261. if test ${ac_cv_lib_iconv_iconv_open+y}
  17262. then :
  17263. printf %s "(cached) " >&6
  17264. else $as_nop
  17265. ac_check_lib_save_LIBS=$LIBS
  17266. LIBS="-liconv $LIBS"
  17267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17268. /* end confdefs.h. */
  17269. /* Override any GCC internal prototype to avoid an error.
  17270. Use char because int might match the return type of a GCC
  17271. builtin and then its argument prototype would still apply. */
  17272. char iconv_open ();
  17273. int
  17274. main (void)
  17275. {
  17276. return iconv_open ();
  17277. ;
  17278. return 0;
  17279. }
  17280. _ACEOF
  17281. if ac_fn_c_try_link "$LINENO"
  17282. then :
  17283. ac_cv_lib_iconv_iconv_open=yes
  17284. else $as_nop
  17285. ac_cv_lib_iconv_iconv_open=no
  17286. fi
  17287. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17288. conftest$ac_exeext conftest.$ac_ext
  17289. LIBS=$ac_check_lib_save_LIBS
  17290. fi
  17291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17292. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17293. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17294. then :
  17295. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17296. fi
  17297. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17298. if test "x$ac_cv_func_iconv" = xyes
  17299. then :
  17300. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17301. fi
  17302. fi
  17303. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17304. "
  17305. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17306. then :
  17307. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17308. fi
  17309. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17310. if test "x$ac_cv_header_libunwind_h" = xyes
  17311. then :
  17312. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17313. fi
  17314. fi
  17315. # Check whether --enable-gcc-atomics was given.
  17316. if test ${enable_gcc_atomics+y}
  17317. then :
  17318. enableval=$enable_gcc_atomics;
  17319. else $as_nop
  17320. enable_gcc_atomics=yes
  17321. fi
  17322. if test x$enable_gcc_atomics = xyes; then
  17323. have_gcc_atomics=no
  17324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17325. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17327. /* end confdefs.h. */
  17328. int
  17329. main (void)
  17330. {
  17331. int a;
  17332. void *x, *y, *z;
  17333. __sync_lock_test_and_set(&a, 4);
  17334. __sync_lock_test_and_set(&x, y);
  17335. __sync_fetch_and_add(&a, 1);
  17336. __sync_bool_compare_and_swap(&a, 5, 10);
  17337. __sync_bool_compare_and_swap(&x, y, z);
  17338. ;
  17339. return 0;
  17340. }
  17341. _ACEOF
  17342. if ac_fn_c_try_link "$LINENO"
  17343. then :
  17344. have_gcc_atomics=yes
  17345. fi
  17346. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17347. conftest$ac_exeext conftest.$ac_ext
  17348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17349. printf "%s\n" "$have_gcc_atomics" >&6; }
  17350. if test x$have_gcc_atomics = xyes; then
  17351. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17352. else
  17353. # See if we have the minimum operation needed for GCC atomics
  17354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17355. /* end confdefs.h. */
  17356. int
  17357. main (void)
  17358. {
  17359. int a;
  17360. __sync_lock_test_and_set(&a, 1);
  17361. __sync_lock_release(&a);
  17362. ;
  17363. return 0;
  17364. }
  17365. _ACEOF
  17366. if ac_fn_c_try_link "$LINENO"
  17367. then :
  17368. have_gcc_sync_lock_test_and_set=yes
  17369. fi
  17370. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17371. conftest$ac_exeext conftest.$ac_ext
  17372. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17373. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17374. fi
  17375. fi
  17376. fi
  17377. # Standard C sources
  17378. SOURCES="$SOURCES $srcdir/src/*.c"
  17379. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17380. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17381. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17382. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17383. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17384. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17385. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17386. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17387. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17388. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17389. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17390. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17391. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17392. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17393. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17394. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17395. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17396. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17397. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17398. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17399. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17400. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17401. case "$host" in
  17402. *-*-emscripten*)
  17403. default_atomic=no
  17404. ;;
  17405. *)
  17406. default_atomic=yes
  17407. ;;
  17408. esac
  17409. # Check whether --enable-atomic was given.
  17410. if test ${enable_atomic+y}
  17411. then :
  17412. enableval=$enable_atomic;
  17413. else $as_nop
  17414. enable_atomic=$default_atomic
  17415. fi
  17416. if test x$enable_atomic != xyes; then
  17417. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17418. else
  17419. SUMMARY_modules="${SUMMARY_modules} atomic"
  17420. fi
  17421. # Check whether --enable-audio was given.
  17422. if test ${enable_audio+y}
  17423. then :
  17424. enableval=$enable_audio;
  17425. else $as_nop
  17426. enable_audio=yes
  17427. fi
  17428. if test x$enable_audio != xyes; then
  17429. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17430. else
  17431. SUMMARY_modules="${SUMMARY_modules} audio"
  17432. fi
  17433. # Check whether --enable-video was given.
  17434. if test ${enable_video+y}
  17435. then :
  17436. enableval=$enable_video;
  17437. else $as_nop
  17438. enable_video=yes
  17439. fi
  17440. if test x$enable_video != xyes; then
  17441. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17442. else
  17443. SUMMARY_modules="${SUMMARY_modules} video"
  17444. fi
  17445. # Check whether --enable-render was given.
  17446. if test ${enable_render+y}
  17447. then :
  17448. enableval=$enable_render;
  17449. else $as_nop
  17450. enable_render=yes
  17451. fi
  17452. if test x$enable_render != xyes; then
  17453. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17454. else
  17455. SUMMARY_modules="${SUMMARY_modules} render"
  17456. fi
  17457. # Check whether --enable-events was given.
  17458. if test ${enable_events+y}
  17459. then :
  17460. enableval=$enable_events;
  17461. else $as_nop
  17462. enable_events=yes
  17463. fi
  17464. if test x$enable_events != xyes; then
  17465. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17466. else
  17467. SUMMARY_modules="${SUMMARY_modules} events"
  17468. fi
  17469. # Check whether --enable-joystick was given.
  17470. if test ${enable_joystick+y}
  17471. then :
  17472. enableval=$enable_joystick;
  17473. else $as_nop
  17474. enable_joystick=yes
  17475. fi
  17476. if test x$enable_joystick != xyes; then
  17477. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17478. else
  17479. SUMMARY_modules="${SUMMARY_modules} joystick"
  17480. fi
  17481. # Check whether --enable-haptic was given.
  17482. if test ${enable_haptic+y}
  17483. then :
  17484. enableval=$enable_haptic;
  17485. else $as_nop
  17486. enable_haptic=yes
  17487. fi
  17488. if test x$enable_haptic != xyes; then
  17489. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17490. else
  17491. SUMMARY_modules="${SUMMARY_modules} haptic"
  17492. fi
  17493. # Check whether --enable-hidapi was given.
  17494. if test ${enable_hidapi+y}
  17495. then :
  17496. enableval=$enable_hidapi;
  17497. else $as_nop
  17498. enable_hidapi=yes
  17499. fi
  17500. if test x$enable_hidapi != xyes; then
  17501. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17502. else
  17503. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17504. fi
  17505. # Check whether --enable-sensor was given.
  17506. if test ${enable_sensor+y}
  17507. then :
  17508. enableval=$enable_sensor;
  17509. else $as_nop
  17510. enable_sensor=yes
  17511. fi
  17512. if test x$enable_sensor != xyes; then
  17513. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17514. else
  17515. SUMMARY_modules="${SUMMARY_modules} sensor"
  17516. fi
  17517. # Check whether --enable-power was given.
  17518. if test ${enable_power+y}
  17519. then :
  17520. enableval=$enable_power;
  17521. else $as_nop
  17522. enable_power=yes
  17523. fi
  17524. if test x$enable_power != xyes; then
  17525. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17526. else
  17527. SUMMARY_modules="${SUMMARY_modules} power"
  17528. fi
  17529. # Check whether --enable-filesystem was given.
  17530. if test ${enable_filesystem+y}
  17531. then :
  17532. enableval=$enable_filesystem;
  17533. else $as_nop
  17534. enable_filesystem=yes
  17535. fi
  17536. if test x$enable_filesystem != xyes; then
  17537. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17538. else
  17539. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17540. fi
  17541. # Many subsystems depend on threads, so leave them enabled by default
  17542. #AC_ARG_ENABLE(threads,
  17543. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17544. # , enable_threads=yes)
  17545. enable_threads=yes
  17546. if test x$enable_threads != xyes; then
  17547. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17548. else
  17549. SUMMARY_modules="${SUMMARY_modules} threads"
  17550. fi
  17551. # Check whether --enable-timers was given.
  17552. if test ${enable_timers+y}
  17553. then :
  17554. enableval=$enable_timers;
  17555. else $as_nop
  17556. enable_timers=yes
  17557. fi
  17558. if test x$enable_timers != xyes; then
  17559. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17560. else
  17561. SUMMARY_modules="${SUMMARY_modules} timers"
  17562. fi
  17563. # Check whether --enable-file was given.
  17564. if test ${enable_file+y}
  17565. then :
  17566. enableval=$enable_file;
  17567. else $as_nop
  17568. enable_file=yes
  17569. fi
  17570. if test x$enable_file != xyes; then
  17571. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17572. else
  17573. SUMMARY_modules="${SUMMARY_modules} file"
  17574. fi
  17575. # Check whether --enable-misc was given.
  17576. if test ${enable_misc+y}
  17577. then :
  17578. enableval=$enable_misc;
  17579. else $as_nop
  17580. enable_misc=yes
  17581. fi
  17582. if test x$enable_misc != xyes; then
  17583. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17584. else
  17585. SUMMARY_modules="${SUMMARY_modules} misc"
  17586. fi
  17587. # Check whether --enable-locale was given.
  17588. if test ${enable_locale+y}
  17589. then :
  17590. enableval=$enable_locale;
  17591. else $as_nop
  17592. enable_locale=yes
  17593. fi
  17594. if test x$enable_locale != xyes; then
  17595. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17596. else
  17597. SUMMARY_modules="${SUMMARY_modules} locale"
  17598. fi
  17599. # Check whether --enable-loadso was given.
  17600. if test ${enable_loadso+y}
  17601. then :
  17602. enableval=$enable_loadso;
  17603. else $as_nop
  17604. enable_loadso=yes
  17605. fi
  17606. if test x$enable_loadso != xyes; then
  17607. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17608. else
  17609. SUMMARY_modules="${SUMMARY_modules} loadso"
  17610. fi
  17611. # Check whether --enable-cpuinfo was given.
  17612. if test ${enable_cpuinfo+y}
  17613. then :
  17614. enableval=$enable_cpuinfo;
  17615. else $as_nop
  17616. enable_cpuinfo=yes
  17617. fi
  17618. if test x$enable_cpuinfo != xyes; then
  17619. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17620. else
  17621. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17622. fi
  17623. # Check whether --enable-assembly was given.
  17624. if test ${enable_assembly+y}
  17625. then :
  17626. enableval=$enable_assembly;
  17627. else $as_nop
  17628. enable_assembly=yes
  17629. fi
  17630. if test x$enable_assembly = xyes; then
  17631. SUMMARY_modules="${SUMMARY_modules} assembly"
  17632. # Make sure that we don't generate floating point code that would
  17633. # cause illegal instruction exceptions on older processors
  17634. case "$host" in
  17635. *-*-darwin*)
  17636. # Don't need to worry about Apple hardware, it's all SSE capable
  17637. default_ssemath=yes
  17638. ;;
  17639. *64-*-*)
  17640. # x86 64-bit architectures all have SSE instructions
  17641. default_ssemath=yes
  17642. ;;
  17643. *)
  17644. default_ssemath=no
  17645. ;;
  17646. esac
  17647. # Check whether --enable-ssemath was given.
  17648. if test ${enable_ssemath+y}
  17649. then :
  17650. enableval=$enable_ssemath;
  17651. else $as_nop
  17652. enable_ssemath=$default_ssemath
  17653. fi
  17654. if test x$enable_ssemath = xno; then
  17655. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17656. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17657. fi
  17658. fi
  17659. # Check whether --enable-mmx was given.
  17660. if test ${enable_mmx+y}
  17661. then :
  17662. enableval=$enable_mmx;
  17663. else $as_nop
  17664. enable_mmx=yes
  17665. fi
  17666. if test x$enable_mmx = xyes; then
  17667. save_CFLAGS="$CFLAGS"
  17668. have_gcc_mmx=no
  17669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17670. printf %s "checking for GCC -mmmx option... " >&6; }
  17671. mmx_CFLAGS="-mmmx"
  17672. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17674. /* end confdefs.h. */
  17675. #ifdef __MINGW32__
  17676. #include <_mingw.h>
  17677. #ifdef __MINGW64_VERSION_MAJOR
  17678. #include <intrin.h>
  17679. #else
  17680. #include <mmintrin.h>
  17681. #endif
  17682. #else
  17683. #include <mmintrin.h>
  17684. #endif
  17685. #ifndef __MMX__
  17686. #error Assembler CPP flag not enabled
  17687. #endif
  17688. int
  17689. main (void)
  17690. {
  17691. ;
  17692. return 0;
  17693. }
  17694. _ACEOF
  17695. if ac_fn_c_try_compile "$LINENO"
  17696. then :
  17697. have_gcc_mmx=yes
  17698. fi
  17699. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17701. printf "%s\n" "$have_gcc_mmx" >&6; }
  17702. CFLAGS="$save_CFLAGS"
  17703. if test x$have_gcc_mmx = xyes; then
  17704. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17705. SUMMARY_math="${SUMMARY_math} mmx"
  17706. fi
  17707. fi
  17708. # Check whether --enable-3dnow was given.
  17709. if test ${enable_3dnow+y}
  17710. then :
  17711. enableval=$enable_3dnow;
  17712. else $as_nop
  17713. enable_3dnow=yes
  17714. fi
  17715. if test x$enable_3dnow = xyes; then
  17716. save_CFLAGS="$CFLAGS"
  17717. have_gcc_3dnow=no
  17718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17719. printf %s "checking for GCC -m3dnow option... " >&6; }
  17720. amd3dnow_CFLAGS="-m3dnow"
  17721. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17723. /* end confdefs.h. */
  17724. #include <mm3dnow.h>
  17725. #ifndef __3dNOW__
  17726. #error Assembler CPP flag not enabled
  17727. #endif
  17728. int
  17729. main (void)
  17730. {
  17731. void *p = 0;
  17732. _m_prefetch(p);
  17733. ;
  17734. return 0;
  17735. }
  17736. _ACEOF
  17737. if ac_fn_c_try_link "$LINENO"
  17738. then :
  17739. have_gcc_3dnow=yes
  17740. fi
  17741. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17742. conftest$ac_exeext conftest.$ac_ext
  17743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17744. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17745. CFLAGS="$save_CFLAGS"
  17746. if test x$have_gcc_3dnow = xyes; then
  17747. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17748. SUMMARY_math="${SUMMARY_math} 3dnow"
  17749. fi
  17750. fi
  17751. # Check whether --enable-sse was given.
  17752. if test ${enable_sse+y}
  17753. then :
  17754. enableval=$enable_sse;
  17755. else $as_nop
  17756. enable_sse=yes
  17757. fi
  17758. if test x$enable_sse = xyes; then
  17759. save_CFLAGS="$CFLAGS"
  17760. have_gcc_sse=no
  17761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17762. printf %s "checking for GCC -msse option... " >&6; }
  17763. sse_CFLAGS="-msse"
  17764. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17766. /* end confdefs.h. */
  17767. #ifdef __MINGW32__
  17768. #include <_mingw.h>
  17769. #ifdef __MINGW64_VERSION_MAJOR
  17770. #include <intrin.h>
  17771. #else
  17772. #include <xmmintrin.h>
  17773. #endif
  17774. #else
  17775. #include <xmmintrin.h>
  17776. #endif
  17777. #ifndef __SSE__
  17778. #error Assembler CPP flag not enabled
  17779. #endif
  17780. int
  17781. main (void)
  17782. {
  17783. ;
  17784. return 0;
  17785. }
  17786. _ACEOF
  17787. if ac_fn_c_try_compile "$LINENO"
  17788. then :
  17789. have_gcc_sse=yes
  17790. fi
  17791. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17793. printf "%s\n" "$have_gcc_sse" >&6; }
  17794. CFLAGS="$save_CFLAGS"
  17795. if test x$have_gcc_sse = xyes; then
  17796. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17797. SUMMARY_math="${SUMMARY_math} sse"
  17798. fi
  17799. fi
  17800. # Check whether --enable-sse2 was given.
  17801. if test ${enable_sse2+y}
  17802. then :
  17803. enableval=$enable_sse2;
  17804. else $as_nop
  17805. enable_sse2=$default_ssemath
  17806. fi
  17807. if test x$enable_sse2 = xyes; then
  17808. save_CFLAGS="$CFLAGS"
  17809. have_gcc_sse2=no
  17810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17811. printf %s "checking for GCC -msse2 option... " >&6; }
  17812. sse2_CFLAGS="-msse2"
  17813. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17815. /* end confdefs.h. */
  17816. #ifdef __MINGW32__
  17817. #include <_mingw.h>
  17818. #ifdef __MINGW64_VERSION_MAJOR
  17819. #include <intrin.h>
  17820. #else
  17821. #include <emmintrin.h>
  17822. #endif
  17823. #else
  17824. #include <emmintrin.h>
  17825. #endif
  17826. #ifndef __SSE2__
  17827. #error Assembler CPP flag not enabled
  17828. #endif
  17829. int
  17830. main (void)
  17831. {
  17832. ;
  17833. return 0;
  17834. }
  17835. _ACEOF
  17836. if ac_fn_c_try_compile "$LINENO"
  17837. then :
  17838. have_gcc_sse2=yes
  17839. fi
  17840. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17842. printf "%s\n" "$have_gcc_sse2" >&6; }
  17843. CFLAGS="$save_CFLAGS"
  17844. if test x$have_gcc_sse2 = xyes; then
  17845. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17846. SUMMARY_math="${SUMMARY_math} sse2"
  17847. fi
  17848. fi
  17849. # Check whether --enable-sse3 was given.
  17850. if test ${enable_sse3+y}
  17851. then :
  17852. enableval=$enable_sse3;
  17853. else $as_nop
  17854. enable_sse3=$default_ssemath
  17855. fi
  17856. if test x$enable_sse3 = xyes; then
  17857. save_CFLAGS="$CFLAGS"
  17858. have_gcc_sse3=no
  17859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17860. printf %s "checking for GCC -msse3 option... " >&6; }
  17861. sse3_CFLAGS="-msse3"
  17862. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17864. /* end confdefs.h. */
  17865. #ifdef __MINGW32__
  17866. #include <_mingw.h>
  17867. #ifdef __MINGW64_VERSION_MAJOR
  17868. #include <intrin.h>
  17869. #else
  17870. #include <pmmintrin.h>
  17871. #endif
  17872. #else
  17873. #include <pmmintrin.h>
  17874. #endif
  17875. #ifndef __SSE2__
  17876. #error Assembler CPP flag not enabled
  17877. #endif
  17878. int
  17879. main (void)
  17880. {
  17881. ;
  17882. return 0;
  17883. }
  17884. _ACEOF
  17885. if ac_fn_c_try_compile "$LINENO"
  17886. then :
  17887. have_gcc_sse3=yes
  17888. fi
  17889. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17891. printf "%s\n" "$have_gcc_sse3" >&6; }
  17892. CFLAGS="$save_CFLAGS"
  17893. if test x$have_gcc_sse3 = xyes; then
  17894. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17895. SUMMARY_math="${SUMMARY_math} sse3"
  17896. fi
  17897. fi
  17898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17899. printf %s "checking for immintrin.h... " >&6; }
  17900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17901. /* end confdefs.h. */
  17902. #include <immintrin.h>
  17903. int
  17904. main (void)
  17905. {
  17906. ;
  17907. return 0;
  17908. }
  17909. _ACEOF
  17910. if ac_fn_c_try_compile "$LINENO"
  17911. then :
  17912. have_immintrin_h_hdr=yes
  17913. else $as_nop
  17914. have_immintrin_h_hdr=no
  17915. fi
  17916. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17918. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17919. if test x$have_immintrin_h_hdr = xyes; then
  17920. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17921. fi
  17922. # Check whether --enable-altivec was given.
  17923. if test ${enable_altivec+y}
  17924. then :
  17925. enableval=$enable_altivec;
  17926. else $as_nop
  17927. enable_altivec=yes
  17928. fi
  17929. if test x$enable_altivec = xyes; then
  17930. save_CFLAGS="$CFLAGS"
  17931. have_gcc_altivec=no
  17932. have_altivec_h_hdr=no
  17933. altivec_CFLAGS="-maltivec"
  17934. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17936. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17938. /* end confdefs.h. */
  17939. #include <altivec.h>
  17940. vector unsigned int vzero() {
  17941. return vec_splat_u32(0);
  17942. }
  17943. int
  17944. main (void)
  17945. {
  17946. ;
  17947. return 0;
  17948. }
  17949. _ACEOF
  17950. if ac_fn_c_try_compile "$LINENO"
  17951. then :
  17952. have_gcc_altivec=yes
  17953. have_altivec_h_hdr=yes
  17954. fi
  17955. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17957. printf "%s\n" "$have_gcc_altivec" >&6; }
  17958. if test x$have_gcc_altivec = xno; then
  17959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  17960. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  17961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17962. /* end confdefs.h. */
  17963. vector unsigned int vzero() {
  17964. return vec_splat_u32(0);
  17965. }
  17966. int
  17967. main (void)
  17968. {
  17969. ;
  17970. return 0;
  17971. }
  17972. _ACEOF
  17973. if ac_fn_c_try_compile "$LINENO"
  17974. then :
  17975. have_gcc_altivec=yes
  17976. fi
  17977. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17979. printf "%s\n" "$have_gcc_altivec" >&6; }
  17980. fi
  17981. if test x$have_gcc_altivec = xno; then
  17982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  17983. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  17984. altivec_CFLAGS="-faltivec"
  17985. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17987. /* end confdefs.h. */
  17988. #include <altivec.h>
  17989. vector unsigned int vzero() {
  17990. return vec_splat_u32(0);
  17991. }
  17992. int
  17993. main (void)
  17994. {
  17995. ;
  17996. return 0;
  17997. }
  17998. _ACEOF
  17999. if ac_fn_c_try_compile "$LINENO"
  18000. then :
  18001. have_gcc_altivec=yes
  18002. have_altivec_h_hdr=yes
  18003. fi
  18004. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18006. printf "%s\n" "$have_gcc_altivec" >&6; }
  18007. fi
  18008. if test x$have_gcc_altivec = xno; then
  18009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18010. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18012. /* end confdefs.h. */
  18013. vector unsigned int vzero() {
  18014. return vec_splat_u32(0);
  18015. }
  18016. int
  18017. main (void)
  18018. {
  18019. ;
  18020. return 0;
  18021. }
  18022. _ACEOF
  18023. if ac_fn_c_try_compile "$LINENO"
  18024. then :
  18025. have_gcc_altivec=yes
  18026. fi
  18027. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18029. printf "%s\n" "$have_gcc_altivec" >&6; }
  18030. fi
  18031. CFLAGS="$save_CFLAGS"
  18032. if test x$have_gcc_altivec = xyes; then
  18033. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18034. if test x$have_altivec_h_hdr = xyes; then
  18035. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18036. fi
  18037. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18038. SUMMARY_math="${SUMMARY_math} altivec"
  18039. fi
  18040. fi
  18041. fi
  18042. # Check whether --enable-lsx was given.
  18043. if test ${enable_lsx+y}
  18044. then :
  18045. enableval=$enable_lsx;
  18046. else $as_nop
  18047. enable_lsx=yes
  18048. fi
  18049. if test x$enable_lsx = xyes; then
  18050. save_CFLAGS="$CFLAGS"
  18051. have_gcc_lsx=no
  18052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18053. printf %s "checking for GCC -mlsx option... " >&6; }
  18054. lsx_CFLAGS="-mlsx"
  18055. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18057. /* end confdefs.h. */
  18058. #ifndef __loongarch_sx
  18059. #error Assembler CPP flag not enabled
  18060. #endif
  18061. int
  18062. main (void)
  18063. {
  18064. ;
  18065. return 0;
  18066. }
  18067. _ACEOF
  18068. if ac_fn_c_try_compile "$LINENO"
  18069. then :
  18070. have_gcc_lsx=yes
  18071. fi
  18072. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18074. printf "%s\n" "$have_gcc_lsx" >&6; }
  18075. CFLAGS="$save_CFLAGS"
  18076. if test x$have_gcc_lsx = xyes; then
  18077. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18078. SUMMARY_math="${SUMMARY_math} lsx"
  18079. fi
  18080. fi
  18081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18082. printf %s "checking for lsxintrin.h... " >&6; }
  18083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18084. /* end confdefs.h. */
  18085. #include <lsxintrin.h>
  18086. int
  18087. main (void)
  18088. {
  18089. ;
  18090. return 0;
  18091. }
  18092. _ACEOF
  18093. if ac_fn_c_try_compile "$LINENO"
  18094. then :
  18095. have_lsxintrin_h_hdr=yes
  18096. else $as_nop
  18097. have_lsxintrin_h_hdr=no
  18098. fi
  18099. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18101. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18102. if test x$have_lsxintrin_h_hdr = xyes; then
  18103. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18104. fi
  18105. # Check whether --enable-lasx was given.
  18106. if test ${enable_lasx+y}
  18107. then :
  18108. enableval=$enable_lasx;
  18109. else $as_nop
  18110. enable_LASX=yes
  18111. fi
  18112. if test x$enable_LASX = xyes; then
  18113. save_CFLAGS="$CFLAGS"
  18114. have_gcc_lasx=no
  18115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18116. printf %s "checking for GCC -mlasx option... " >&6; }
  18117. lasx_CFLAGS="-mlasx"
  18118. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18120. /* end confdefs.h. */
  18121. #ifndef __loongarch_asx
  18122. #error Assembler CPP flag not enabled
  18123. #endif
  18124. int
  18125. main (void)
  18126. {
  18127. ;
  18128. return 0;
  18129. }
  18130. _ACEOF
  18131. if ac_fn_c_try_compile "$LINENO"
  18132. then :
  18133. have_gcc_lasx=yes
  18134. fi
  18135. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18137. printf "%s\n" "$have_gcc_lasx" >&6; }
  18138. CFLAGS="$save_CFLAGS"
  18139. if test x$have_gcc_lasx = xyes; then
  18140. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18141. SUMMARY_math="${SUMMARY_math} lasx"
  18142. fi
  18143. fi
  18144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18145. printf %s "checking for lasxintrin.h... " >&6; }
  18146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18147. /* end confdefs.h. */
  18148. #include <lasxintrin.h>
  18149. int
  18150. main (void)
  18151. {
  18152. ;
  18153. return 0;
  18154. }
  18155. _ACEOF
  18156. if ac_fn_c_try_compile "$LINENO"
  18157. then :
  18158. have_lasxintrin_h_hdr=yes
  18159. else $as_nop
  18160. have_lasxintrin_h_hdr=no
  18161. fi
  18162. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18164. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18165. if test x$have_lasxintrin_h_hdr = xyes; then
  18166. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18167. fi
  18168. CheckOSS()
  18169. {
  18170. # Check whether --enable-oss was given.
  18171. if test ${enable_oss+y}
  18172. then :
  18173. enableval=$enable_oss;
  18174. else $as_nop
  18175. enable_oss=maybe
  18176. fi
  18177. if test x$enable_oss = xmaybe; then
  18178. enable_oss=yes
  18179. fi
  18180. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18182. printf %s "checking for OSS audio support... " >&6; }
  18183. have_oss=no
  18184. if test x$have_oss != xyes; then
  18185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18186. /* end confdefs.h. */
  18187. #include <sys/soundcard.h>
  18188. int
  18189. main (void)
  18190. {
  18191. int arg = SNDCTL_DSP_SETFRAGMENT;
  18192. ;
  18193. return 0;
  18194. }
  18195. _ACEOF
  18196. if ac_fn_c_try_compile "$LINENO"
  18197. then :
  18198. have_oss=yes
  18199. fi
  18200. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18201. fi
  18202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18203. printf "%s\n" "$have_oss" >&6; }
  18204. if test x$have_oss = xyes; then
  18205. SUMMARY_audio="${SUMMARY_audio} oss"
  18206. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18207. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18208. have_audio=yes
  18209. # We may need to link with ossaudio emulation library
  18210. case "$host" in
  18211. *-*-netbsd*)
  18212. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18213. esac
  18214. fi
  18215. fi
  18216. }
  18217. CheckALSA()
  18218. {
  18219. # Check whether --enable-alsa was given.
  18220. if test ${enable_alsa+y}
  18221. then :
  18222. enableval=$enable_alsa;
  18223. else $as_nop
  18224. enable_alsa=yes
  18225. fi
  18226. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18227. alsa_save_CFLAGS="$CFLAGS"
  18228. alsa_save_LDFLAGS="$LDFLAGS"
  18229. alsa_save_LIBS="$LIBS"
  18230. alsa_found=yes
  18231. # Check whether --with-alsa-prefix was given.
  18232. if test ${with_alsa_prefix+y}
  18233. then :
  18234. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18235. else $as_nop
  18236. alsa_prefix=""
  18237. fi
  18238. # Check whether --with-alsa-inc-prefix was given.
  18239. if test ${with_alsa_inc_prefix+y}
  18240. then :
  18241. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18242. else $as_nop
  18243. alsa_inc_prefix=""
  18244. fi
  18245. # Check whether --enable-alsatest was given.
  18246. if test ${enable_alsatest+y}
  18247. then :
  18248. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18249. else $as_nop
  18250. enable_alsatest=yes
  18251. fi
  18252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18253. printf %s "checking for ALSA CFLAGS... " >&6; }
  18254. if test "$alsa_inc_prefix" != "" ; then
  18255. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18256. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18257. fi
  18258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18259. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18261. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18262. if test "$alsa_prefix" != "" ; then
  18263. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18264. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18265. fi
  18266. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18267. LIBS=`echo $LIBS | sed 's/-lm//'`
  18268. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18269. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18270. LIBS=`echo $LIBS | sed 's/ //'`
  18271. LIBS="$ALSA_LIBS $LIBS"
  18272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18273. printf "%s\n" "$ALSA_LIBS" >&6; }
  18274. min_alsa_version=1.0.11
  18275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18276. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18277. no_alsa=""
  18278. alsa_min_major_version=`echo $min_alsa_version | \
  18279. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18280. alsa_min_minor_version=`echo $min_alsa_version | \
  18281. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18282. alsa_min_micro_version=`echo $min_alsa_version | \
  18283. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18284. ac_ext=c
  18285. ac_cpp='$CPP $CPPFLAGS'
  18286. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18287. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18288. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18290. /* end confdefs.h. */
  18291. #include <alsa/asoundlib.h>
  18292. int
  18293. main (void)
  18294. {
  18295. /* ensure backward compatibility */
  18296. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18297. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18298. #endif
  18299. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18300. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18301. #endif
  18302. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18303. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18304. #endif
  18305. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18306. exit(0);
  18307. # else
  18308. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18309. # error not present
  18310. # endif
  18311. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18312. exit(0);
  18313. # else
  18314. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18315. # error not present
  18316. # endif
  18317. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18318. # error not present
  18319. # endif
  18320. # endif
  18321. # endif
  18322. exit(0);
  18323. ;
  18324. return 0;
  18325. }
  18326. _ACEOF
  18327. if ac_fn_c_try_compile "$LINENO"
  18328. then :
  18329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18330. printf "%s\n" "found." >&6; }
  18331. else $as_nop
  18332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18333. printf "%s\n" "not present." >&6; }
  18334. alsa_found=no
  18335. fi
  18336. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18337. ac_ext=c
  18338. ac_cpp='$CPP $CPPFLAGS'
  18339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18342. if test "x$enable_alsatest" = "xyes"; then
  18343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18344. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18345. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18346. then :
  18347. printf %s "(cached) " >&6
  18348. else $as_nop
  18349. ac_check_lib_save_LIBS=$LIBS
  18350. LIBS="-lasound $LIBS"
  18351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18352. /* end confdefs.h. */
  18353. /* Override any GCC internal prototype to avoid an error.
  18354. Use char because int might match the return type of a GCC
  18355. builtin and then its argument prototype would still apply. */
  18356. char snd_ctl_open ();
  18357. int
  18358. main (void)
  18359. {
  18360. return snd_ctl_open ();
  18361. ;
  18362. return 0;
  18363. }
  18364. _ACEOF
  18365. if ac_fn_c_try_link "$LINENO"
  18366. then :
  18367. ac_cv_lib_asound_snd_ctl_open=yes
  18368. else $as_nop
  18369. ac_cv_lib_asound_snd_ctl_open=no
  18370. fi
  18371. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18372. conftest$ac_exeext conftest.$ac_ext
  18373. LIBS=$ac_check_lib_save_LIBS
  18374. fi
  18375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18376. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18377. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18378. then :
  18379. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18380. LIBS="-lasound $LIBS"
  18381. else $as_nop
  18382. alsa_found=no
  18383. fi
  18384. fi
  18385. if test "x$alsa_found" = "xyes" ; then
  18386. have_alsa=yes
  18387. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18388. LIBS=`echo $LIBS | sed 's/ //'`
  18389. LIBS="-lasound $LIBS"
  18390. fi
  18391. if test "x$alsa_found" = "xno" ; then
  18392. have_alsa=no
  18393. CFLAGS="$alsa_save_CFLAGS"
  18394. LDFLAGS="$alsa_save_LDFLAGS"
  18395. LIBS="$alsa_save_LIBS"
  18396. ALSA_CFLAGS=""
  18397. ALSA_LIBS=""
  18398. fi
  18399. # Restore all flags from before the ALSA detection runs
  18400. CFLAGS="$alsa_save_CFLAGS"
  18401. LDFLAGS="$alsa_save_LDFLAGS"
  18402. LIBS="$alsa_save_LIBS"
  18403. if test x$have_alsa = xyes; then
  18404. # Check whether --enable-alsa-shared was given.
  18405. if test ${enable_alsa_shared+y}
  18406. then :
  18407. enableval=$enable_alsa_shared;
  18408. else $as_nop
  18409. enable_alsa_shared=yes
  18410. fi
  18411. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18412. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18413. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18414. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18415. if test x$have_loadso != xyes && \
  18416. test x$enable_alsa_shared = xyes; then
  18417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18418. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18419. fi
  18420. if test x$have_loadso = xyes && \
  18421. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18422. echo "-- dynamic libasound -> $alsa_lib"
  18423. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18424. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18425. else
  18426. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18427. SUMMARY_audio="${SUMMARY_audio} alsa"
  18428. fi
  18429. have_audio=yes
  18430. fi
  18431. fi
  18432. }
  18433. CheckJACK()
  18434. {
  18435. # Check whether --enable-jack was given.
  18436. if test ${enable_jack+y}
  18437. then :
  18438. enableval=$enable_jack;
  18439. else $as_nop
  18440. enable_jack=yes
  18441. fi
  18442. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18443. pkg_failed=no
  18444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18445. printf %s "checking for jack >= 0.125... " >&6; }
  18446. if test -n "$JACK_CFLAGS"; then
  18447. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18448. elif test -n "$PKG_CONFIG"; then
  18449. if test -n "$PKG_CONFIG" && \
  18450. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18451. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18452. ac_status=$?
  18453. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18454. test $ac_status = 0; }; then
  18455. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18456. test "x$?" != "x0" && pkg_failed=yes
  18457. else
  18458. pkg_failed=yes
  18459. fi
  18460. else
  18461. pkg_failed=untried
  18462. fi
  18463. if test -n "$JACK_LIBS"; then
  18464. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18465. elif test -n "$PKG_CONFIG"; then
  18466. if test -n "$PKG_CONFIG" && \
  18467. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18468. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18469. ac_status=$?
  18470. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18471. test $ac_status = 0; }; then
  18472. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18473. test "x$?" != "x0" && pkg_failed=yes
  18474. else
  18475. pkg_failed=yes
  18476. fi
  18477. else
  18478. pkg_failed=untried
  18479. fi
  18480. if test $pkg_failed = yes; then
  18481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18482. printf "%s\n" "no" >&6; }
  18483. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18484. _pkg_short_errors_supported=yes
  18485. else
  18486. _pkg_short_errors_supported=no
  18487. fi
  18488. if test $_pkg_short_errors_supported = yes; then
  18489. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18490. else
  18491. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18492. fi
  18493. # Put the nasty error message in config.log where it belongs
  18494. echo "$JACK_PKG_ERRORS" >&5
  18495. audio_jack=no
  18496. elif test $pkg_failed = untried; then
  18497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18498. printf "%s\n" "no" >&6; }
  18499. audio_jack=no
  18500. else
  18501. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18502. JACK_LIBS=$pkg_cv_JACK_LIBS
  18503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18504. printf "%s\n" "yes" >&6; }
  18505. audio_jack=yes
  18506. fi
  18507. if test x$audio_jack = xyes; then
  18508. # Check whether --enable-jack-shared was given.
  18509. if test ${enable_jack_shared+y}
  18510. then :
  18511. enableval=$enable_jack_shared;
  18512. else $as_nop
  18513. enable_jack_shared=yes
  18514. fi
  18515. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18516. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18517. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18518. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18519. if test x$have_loadso != xyes && \
  18520. test x$enable_jack_shared = xyes; then
  18521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18522. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18523. fi
  18524. if test x$have_loadso = xyes && \
  18525. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18526. echo "-- dynamic libjack -> $jack_lib"
  18527. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18528. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18529. case "$host" in
  18530. # On Solaris, jack must be linked deferred explicitly
  18531. # to prevent undefined symbol failures.
  18532. *-*-solaris*)
  18533. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18534. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18535. esac
  18536. else
  18537. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18538. SUMMARY_audio="${SUMMARY_audio} jack"
  18539. fi
  18540. have_audio=yes
  18541. fi
  18542. fi
  18543. }
  18544. CheckPipewire()
  18545. {
  18546. # Check whether --enable-pipewire was given.
  18547. if test ${enable_pipewire+y}
  18548. then :
  18549. enableval=$enable_pipewire;
  18550. else $as_nop
  18551. enable_pipewire=yes
  18552. fi
  18553. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18554. pkg_failed=no
  18555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18556. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18557. if test -n "$PIPEWIRE_CFLAGS"; then
  18558. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18559. elif test -n "$PKG_CONFIG"; then
  18560. if test -n "$PKG_CONFIG" && \
  18561. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18562. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18563. ac_status=$?
  18564. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18565. test $ac_status = 0; }; then
  18566. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18567. test "x$?" != "x0" && pkg_failed=yes
  18568. else
  18569. pkg_failed=yes
  18570. fi
  18571. else
  18572. pkg_failed=untried
  18573. fi
  18574. if test -n "$PIPEWIRE_LIBS"; then
  18575. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18576. elif test -n "$PKG_CONFIG"; then
  18577. if test -n "$PKG_CONFIG" && \
  18578. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18579. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18580. ac_status=$?
  18581. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18582. test $ac_status = 0; }; then
  18583. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18584. test "x$?" != "x0" && pkg_failed=yes
  18585. else
  18586. pkg_failed=yes
  18587. fi
  18588. else
  18589. pkg_failed=untried
  18590. fi
  18591. if test $pkg_failed = yes; then
  18592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18593. printf "%s\n" "no" >&6; }
  18594. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18595. _pkg_short_errors_supported=yes
  18596. else
  18597. _pkg_short_errors_supported=no
  18598. fi
  18599. if test $_pkg_short_errors_supported = yes; then
  18600. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18601. else
  18602. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18603. fi
  18604. # Put the nasty error message in config.log where it belongs
  18605. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18606. audio_pipewire=no
  18607. elif test $pkg_failed = untried; then
  18608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18609. printf "%s\n" "no" >&6; }
  18610. audio_pipewire=no
  18611. else
  18612. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  18613. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  18614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18615. printf "%s\n" "yes" >&6; }
  18616. audio_pipewire=yes
  18617. fi
  18618. if test x$audio_pipewire = xyes; then
  18619. # Check whether --enable-pipewire-shared was given.
  18620. if test ${enable_pipewire_shared+y}
  18621. then :
  18622. enableval=$enable_pipewire_shared;
  18623. else $as_nop
  18624. enable_pipewire_shared=yes
  18625. fi
  18626. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18627. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  18628. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  18629. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  18630. if test x$have_loadso != xyes && \
  18631. test x$enable_pipewire_shared = xyes; then
  18632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  18633. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  18634. fi
  18635. if test x$have_loadso = xyes && \
  18636. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  18637. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  18638. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  18639. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  18640. else
  18641. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  18642. SUMMARY_audio="${SUMMARY_audio} pipewire"
  18643. fi
  18644. have_audio=yes
  18645. fi
  18646. fi
  18647. }
  18648. CheckPulseAudio()
  18649. {
  18650. # Check whether --enable-pulseaudio was given.
  18651. if test ${enable_pulseaudio+y}
  18652. then :
  18653. enableval=$enable_pulseaudio;
  18654. else $as_nop
  18655. enable_pulseaudio=yes
  18656. fi
  18657. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  18658. pkg_failed=no
  18659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  18660. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  18661. if test -n "$PULSEAUDIO_CFLAGS"; then
  18662. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  18663. elif test -n "$PKG_CONFIG"; then
  18664. if test -n "$PKG_CONFIG" && \
  18665. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18666. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18667. ac_status=$?
  18668. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18669. test $ac_status = 0; }; then
  18670. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  18671. test "x$?" != "x0" && pkg_failed=yes
  18672. else
  18673. pkg_failed=yes
  18674. fi
  18675. else
  18676. pkg_failed=untried
  18677. fi
  18678. if test -n "$PULSEAUDIO_LIBS"; then
  18679. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  18680. elif test -n "$PKG_CONFIG"; then
  18681. if test -n "$PKG_CONFIG" && \
  18682. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18683. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18684. ac_status=$?
  18685. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18686. test $ac_status = 0; }; then
  18687. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  18688. test "x$?" != "x0" && pkg_failed=yes
  18689. else
  18690. pkg_failed=yes
  18691. fi
  18692. else
  18693. pkg_failed=untried
  18694. fi
  18695. if test $pkg_failed = yes; then
  18696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18697. printf "%s\n" "no" >&6; }
  18698. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18699. _pkg_short_errors_supported=yes
  18700. else
  18701. _pkg_short_errors_supported=no
  18702. fi
  18703. if test $_pkg_short_errors_supported = yes; then
  18704. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  18705. else
  18706. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  18707. fi
  18708. # Put the nasty error message in config.log where it belongs
  18709. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  18710. audio_pulseaudio=no
  18711. elif test $pkg_failed = untried; then
  18712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18713. printf "%s\n" "no" >&6; }
  18714. audio_pulseaudio=no
  18715. else
  18716. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  18717. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  18718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18719. printf "%s\n" "yes" >&6; }
  18720. audio_pulseaudio=yes
  18721. fi
  18722. if test x$audio_pulseaudio = xyes; then
  18723. # Check whether --enable-pulseaudio-shared was given.
  18724. if test ${enable_pulseaudio_shared+y}
  18725. then :
  18726. enableval=$enable_pulseaudio_shared;
  18727. else $as_nop
  18728. enable_pulseaudio_shared=yes
  18729. fi
  18730. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18731. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  18732. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  18733. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  18734. if test x$have_loadso != xyes && \
  18735. test x$enable_pulseaudio_shared = xyes; then
  18736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  18737. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  18738. fi
  18739. if test x$have_loadso = xyes && \
  18740. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  18741. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  18742. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  18743. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  18744. case "$host" in
  18745. # On Solaris, pulseaudio must be linked deferred explicitly
  18746. # to prevent undefined symbol failures.
  18747. *-*-solaris*)
  18748. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  18749. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  18750. esac
  18751. else
  18752. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  18753. SUMMARY_audio="${SUMMARY_audio} pulse"
  18754. fi
  18755. have_audio=yes
  18756. fi
  18757. fi
  18758. }
  18759. CheckSNDIO()
  18760. {
  18761. # Check whether --enable-sndio was given.
  18762. if test ${enable_sndio+y}
  18763. then :
  18764. enableval=$enable_sndio;
  18765. else $as_nop
  18766. enable_sndio=yes
  18767. fi
  18768. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  18769. pkg_failed=no
  18770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  18771. printf %s "checking for sndio... " >&6; }
  18772. if test -n "$SNDIO_CFLAGS"; then
  18773. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  18774. elif test -n "$PKG_CONFIG"; then
  18775. if test -n "$PKG_CONFIG" && \
  18776. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  18777. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  18778. ac_status=$?
  18779. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18780. test $ac_status = 0; }; then
  18781. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  18782. test "x$?" != "x0" && pkg_failed=yes
  18783. else
  18784. pkg_failed=yes
  18785. fi
  18786. else
  18787. pkg_failed=untried
  18788. fi
  18789. if test -n "$SNDIO_LIBS"; then
  18790. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  18791. elif test -n "$PKG_CONFIG"; then
  18792. if test -n "$PKG_CONFIG" && \
  18793. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  18794. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  18795. ac_status=$?
  18796. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18797. test $ac_status = 0; }; then
  18798. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  18799. test "x$?" != "x0" && pkg_failed=yes
  18800. else
  18801. pkg_failed=yes
  18802. fi
  18803. else
  18804. pkg_failed=untried
  18805. fi
  18806. if test $pkg_failed = yes; then
  18807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18808. printf "%s\n" "no" >&6; }
  18809. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18810. _pkg_short_errors_supported=yes
  18811. else
  18812. _pkg_short_errors_supported=no
  18813. fi
  18814. if test $_pkg_short_errors_supported = yes; then
  18815. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  18816. else
  18817. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  18818. fi
  18819. # Put the nasty error message in config.log where it belongs
  18820. echo "$SNDIO_PKG_ERRORS" >&5
  18821. audio_sndio=no
  18822. elif test $pkg_failed = untried; then
  18823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18824. printf "%s\n" "no" >&6; }
  18825. audio_sndio=no
  18826. else
  18827. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  18828. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  18829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18830. printf "%s\n" "yes" >&6; }
  18831. audio_sndio=yes
  18832. fi
  18833. if test x$audio_sndio = xyes; then
  18834. # Check whether --enable-sndio-shared was given.
  18835. if test ${enable_sndio_shared+y}
  18836. then :
  18837. enableval=$enable_sndio_shared;
  18838. else $as_nop
  18839. enable_sndio_shared=yes
  18840. fi
  18841. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18842. if test x$have_loadso != xyes && \
  18843. test x$enable_sndio_shared = xyes; then
  18844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  18845. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  18846. fi
  18847. if test x$have_loadso = xyes && \
  18848. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  18849. echo "-- dynamic libsndio -> $sndio_lib"
  18850. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  18851. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  18852. else
  18853. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  18854. SUMMARY_audio="${SUMMARY_audio} sndio"
  18855. fi
  18856. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  18857. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  18858. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  18859. have_audio=yes
  18860. fi
  18861. fi
  18862. }
  18863. CheckDiskAudio()
  18864. {
  18865. # Check whether --enable-diskaudio was given.
  18866. if test ${enable_diskaudio+y}
  18867. then :
  18868. enableval=$enable_diskaudio;
  18869. else $as_nop
  18870. enable_diskaudio=yes
  18871. fi
  18872. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  18873. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  18874. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  18875. SUMMARY_audio="${SUMMARY_audio} disk"
  18876. have_audio=yes
  18877. fi
  18878. }
  18879. CheckDummyAudio()
  18880. {
  18881. # Check whether --enable-dummyaudio was given.
  18882. if test ${enable_dummyaudio+y}
  18883. then :
  18884. enableval=$enable_dummyaudio;
  18885. else $as_nop
  18886. enable_dummyaudio=yes
  18887. fi
  18888. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  18889. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  18890. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  18891. SUMMARY_audio="${SUMMARY_audio} dummy"
  18892. have_audio=yes
  18893. fi
  18894. }
  18895. CheckLibSampleRate()
  18896. {
  18897. # Check whether --enable-libsamplerate was given.
  18898. if test ${enable_libsamplerate+y}
  18899. then :
  18900. enableval=$enable_libsamplerate;
  18901. else $as_nop
  18902. enable_libsamplerate=yes
  18903. fi
  18904. if test x$enable_libsamplerate = xyes; then
  18905. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  18906. if test "x$ac_cv_header_samplerate_h" = xyes
  18907. then :
  18908. have_samplerate_h_hdr=yes
  18909. else $as_nop
  18910. have_samplerate_h_hdr=no
  18911. fi
  18912. if test x$have_samplerate_h_hdr = xyes; then
  18913. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  18914. # Check whether --enable-libsamplerate-shared was given.
  18915. if test ${enable_libsamplerate_shared+y}
  18916. then :
  18917. enableval=$enable_libsamplerate_shared;
  18918. else $as_nop
  18919. enable_libsamplerate_shared=yes
  18920. fi
  18921. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18922. if test x$have_loadso != xyes && \
  18923. test x$enable_libsamplerate_shared = xyes; then
  18924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  18925. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  18926. fi
  18927. if test x$have_loadso = xyes && \
  18928. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  18929. echo "-- dynamic libsamplerate -> $samplerate_lib"
  18930. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  18931. else
  18932. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  18933. fi
  18934. fi
  18935. fi
  18936. }
  18937. CheckARM()
  18938. {
  18939. # Check whether --enable-arm-simd was given.
  18940. if test ${enable_arm_simd+y}
  18941. then :
  18942. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  18943. else $as_nop
  18944. enable_arm_simd=no
  18945. fi
  18946. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  18947. save_CFLAGS="$CFLAGS"
  18948. have_arm_simd=no
  18949. CFLAGS="-x assembler-with-cpp $CFLAGS"
  18950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  18951. printf %s "checking for ARM SIMD... " >&6; }
  18952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18953. /* end confdefs.h. */
  18954. .text
  18955. .arch armv6
  18956. .object_arch armv4
  18957. .arm
  18958. .altmacro
  18959. #ifndef __ARM_EABI__
  18960. #error EABI is required (to be sure that calling conventions are compatible)
  18961. #endif
  18962. pld [r0]
  18963. uqadd8 r0, r0, r0
  18964. _ACEOF
  18965. if ac_fn_c_try_compile "$LINENO"
  18966. then :
  18967. have_arm_simd=yes
  18968. fi
  18969. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  18971. printf "%s\n" "$have_arm_simd" >&6; }
  18972. CFLAGS="$save_CFLAGS"
  18973. if test x$have_arm_simd = xyes; then
  18974. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  18975. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  18976. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  18977. fi
  18978. fi
  18979. }
  18980. CheckNEON()
  18981. {
  18982. # Check whether --enable-arm-neon was given.
  18983. if test ${enable_arm_neon+y}
  18984. then :
  18985. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  18986. else $as_nop
  18987. enable_arm_neon=no
  18988. fi
  18989. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  18990. save_CFLAGS="$CFLAGS"
  18991. have_arm_neon=no
  18992. CFLAGS="-x assembler-with-cpp $CFLAGS"
  18993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  18994. printf %s "checking for ARM NEON... " >&6; }
  18995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18996. /* end confdefs.h. */
  18997. .text
  18998. .fpu neon
  18999. .arch armv7a
  19000. .object_arch armv4
  19001. .eabi_attribute 10, 0
  19002. .arm
  19003. .altmacro
  19004. #ifndef __ARM_EABI__
  19005. #error EABI is required (to be sure that calling conventions are compatible)
  19006. #endif
  19007. pld [r0]
  19008. vmovn.u16 d0, q0
  19009. _ACEOF
  19010. if ac_fn_c_try_compile "$LINENO"
  19011. then :
  19012. have_arm_neon=yes
  19013. fi
  19014. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19016. printf "%s\n" "$have_arm_neon" >&6; }
  19017. CFLAGS="$save_CFLAGS"
  19018. if test x$have_arm_neon = xyes; then
  19019. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19020. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19021. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19022. fi
  19023. fi
  19024. }
  19025. CheckObjectiveCARC()
  19026. {
  19027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19028. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19029. have_clang_objc_arc=no
  19030. save_CFLAGS="$CFLAGS"
  19031. CFLAGS="$save_CFLAGS -fobjc-arc"
  19032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19033. /* end confdefs.h. */
  19034. int x = 0;
  19035. int
  19036. main (void)
  19037. {
  19038. ;
  19039. return 0;
  19040. }
  19041. _ACEOF
  19042. if ac_fn_c_try_compile "$LINENO"
  19043. then :
  19044. have_clang_objc_arc=yes
  19045. fi
  19046. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19048. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19049. CFLAGS="$save_CFLAGS"
  19050. if test x$have_clang_objc_arc = xyes; then
  19051. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19052. fi
  19053. }
  19054. CheckGDwarf4()
  19055. {
  19056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19057. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19058. have_gcc_gdwarf4=no
  19059. save_CFLAGS="$CFLAGS"
  19060. CFLAGS="$save_CFLAGS -gdwarf-4"
  19061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19062. /* end confdefs.h. */
  19063. int x = 0;
  19064. int
  19065. main (void)
  19066. {
  19067. ;
  19068. return 0;
  19069. }
  19070. _ACEOF
  19071. if ac_fn_c_try_compile "$LINENO"
  19072. then :
  19073. have_gcc_gdwarf4=yes
  19074. fi
  19075. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19077. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19078. CFLAGS="$save_CFLAGS"
  19079. if test x$have_gcc_gdwarf4 = xyes; then
  19080. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19081. fi
  19082. }
  19083. CheckVisibilityHidden()
  19084. {
  19085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19086. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19087. have_gcc_fvisibility=no
  19088. visibility_CFLAGS="-fvisibility=hidden"
  19089. save_CFLAGS="$CFLAGS"
  19090. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19092. /* end confdefs.h. */
  19093. #if !defined(__GNUC__) || __GNUC__ < 4
  19094. #error SDL only uses visibility attributes in GCC 4 or newer
  19095. #endif
  19096. int
  19097. main (void)
  19098. {
  19099. ;
  19100. return 0;
  19101. }
  19102. _ACEOF
  19103. if ac_fn_c_try_compile "$LINENO"
  19104. then :
  19105. have_gcc_fvisibility=yes
  19106. fi
  19107. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19109. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19110. CFLAGS="$save_CFLAGS"
  19111. if test x$have_gcc_fvisibility = xyes; then
  19112. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19113. fi
  19114. }
  19115. CheckNoStrictAliasing()
  19116. {
  19117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19118. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19119. have_gcc_no_strict_aliasing=no
  19120. save_CFLAGS="$CFLAGS"
  19121. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19123. /* end confdefs.h. */
  19124. int x = 0;
  19125. int
  19126. main (void)
  19127. {
  19128. ;
  19129. return 0;
  19130. }
  19131. _ACEOF
  19132. if ac_fn_c_try_compile "$LINENO"
  19133. then :
  19134. have_gcc_no_strict_aliasing=yes
  19135. fi
  19136. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19138. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19139. CFLAGS="$save_CFLAGS"
  19140. if test x$have_gcc_no_strict_aliasing = xyes; then
  19141. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19142. fi
  19143. }
  19144. CheckStackBoundary()
  19145. {
  19146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19147. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19148. have_gcc_preferred_stack_boundary=no
  19149. save_CFLAGS="$CFLAGS"
  19150. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19152. /* end confdefs.h. */
  19153. int x = 0;
  19154. int
  19155. main (void)
  19156. {
  19157. ;
  19158. return 0;
  19159. }
  19160. _ACEOF
  19161. if ac_fn_c_try_compile "$LINENO"
  19162. then :
  19163. have_gcc_preferred_stack_boundary=yes
  19164. fi
  19165. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19167. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19168. CFLAGS="$save_CFLAGS"
  19169. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19170. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19171. fi
  19172. }
  19173. CheckWerror()
  19174. {
  19175. # Check whether --enable-werror was given.
  19176. if test ${enable_werror+y}
  19177. then :
  19178. enableval=$enable_werror; enable_werror=$enableval
  19179. else $as_nop
  19180. enable_werror=no
  19181. fi
  19182. if test x$enable_werror = xyes; then
  19183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19184. printf %s "checking for GCC -Werror option... " >&6; }
  19185. have_gcc_werror=no
  19186. save_CFLAGS="$CFLAGS"
  19187. CFLAGS="$save_CFLAGS -Werror"
  19188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19189. /* end confdefs.h. */
  19190. int x = 0;
  19191. int
  19192. main (void)
  19193. {
  19194. ;
  19195. return 0;
  19196. }
  19197. _ACEOF
  19198. if ac_fn_c_try_compile "$LINENO"
  19199. then :
  19200. have_gcc_werror=yes
  19201. fi
  19202. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19204. printf "%s\n" "$have_gcc_werror" >&6; }
  19205. CFLAGS="$save_CFLAGS"
  19206. if test x$have_gcc_werror = xyes; then
  19207. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  19208. fi
  19209. fi
  19210. }
  19211. CheckNoErrorDeprecatedDeclarationsWerror()
  19212. {
  19213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  19214. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  19215. have_gcc_no_werror_deprecated_declarations=no
  19216. save_CFLAGS="$CFLAGS"
  19217. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  19218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19219. /* end confdefs.h. */
  19220. int x = 0;
  19221. int
  19222. main (void)
  19223. {
  19224. ;
  19225. return 0;
  19226. }
  19227. _ACEOF
  19228. if ac_fn_c_try_compile "$LINENO"
  19229. then :
  19230. have_gcc_no_werror_deprecated_declarations=yes
  19231. fi
  19232. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19234. printf "%s\n" "$have_gcc_werror" >&6; }
  19235. CFLAGS="$save_CFLAGS"
  19236. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  19237. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  19238. fi
  19239. }
  19240. CheckDeclarationAfterStatement()
  19241. {
  19242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19243. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19244. have_gcc_declaration_after_statement=no
  19245. save_CFLAGS="$CFLAGS"
  19246. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19248. /* end confdefs.h. */
  19249. int x = 0;
  19250. int
  19251. main (void)
  19252. {
  19253. ;
  19254. return 0;
  19255. }
  19256. _ACEOF
  19257. if ac_fn_c_try_compile "$LINENO"
  19258. then :
  19259. have_gcc_declaration_after_statement=yes
  19260. fi
  19261. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19263. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19264. CFLAGS="$save_CFLAGS"
  19265. if test x$have_gcc_declaration_after_statement = xyes; then
  19266. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19267. fi
  19268. }
  19269. CheckWarnAll()
  19270. {
  19271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19272. printf %s "checking for GCC -Wall option... " >&6; }
  19273. have_gcc_Wall=no
  19274. save_CFLAGS="$CFLAGS"
  19275. CFLAGS="$save_CFLAGS -Wall"
  19276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19277. /* end confdefs.h. */
  19278. int x = 0;
  19279. int
  19280. main (void)
  19281. {
  19282. ;
  19283. return 0;
  19284. }
  19285. _ACEOF
  19286. if ac_fn_c_try_compile "$LINENO"
  19287. then :
  19288. have_gcc_Wall=yes
  19289. fi
  19290. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19292. printf "%s\n" "$have_gcc_Wall" >&6; }
  19293. CFLAGS="$save_CFLAGS"
  19294. if test x$have_gcc_Wall = xyes; then
  19295. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19297. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19298. need_gcc_Wno_multichar=no
  19299. case "$host" in
  19300. *-*-haiku*)
  19301. need_gcc_Wno_multichar=yes
  19302. ;;
  19303. esac
  19304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19305. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19306. if test x$need_gcc_Wno_multichar = xyes; then
  19307. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19308. fi
  19309. fi
  19310. }
  19311. CheckWayland()
  19312. {
  19313. # Check whether --enable-video-wayland was given.
  19314. if test ${enable_video_wayland+y}
  19315. then :
  19316. enableval=$enable_video_wayland;
  19317. else $as_nop
  19318. enable_video_wayland=yes
  19319. fi
  19320. # Check whether --enable-video-wayland-qt-touch was given.
  19321. if test ${enable_video_wayland_qt_touch+y}
  19322. then :
  19323. enableval=$enable_video_wayland_qt_touch;
  19324. else $as_nop
  19325. enable_video_wayland_qt_touch=yes
  19326. fi
  19327. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  19328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  19329. printf %s "checking for Wayland support... " >&6; }
  19330. video_wayland=no
  19331. if test x$video_opengl_egl = xyes && \
  19332. test x$video_opengles_v2 = xyes; then
  19333. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  19334. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  19335. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  19336. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  19337. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  19338. then :
  19339. WAYLAND_SCANNER_CODE_MODE=private-code
  19340. else $as_nop
  19341. WAYLAND_SCANNER_CODE_MODE=code
  19342. fi
  19343. video_wayland=yes
  19344. fi
  19345. fi
  19346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  19347. printf "%s\n" "$video_wayland" >&6; }
  19348. if test x$video_wayland = xyes; then
  19349. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  19350. if test x$enable_video_wayland_qt_touch = xyes; then
  19351. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  19352. fi
  19353. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  19354. SOURCES="$SOURCES $WAYLAND_SOURCES"
  19355. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  19356. # Check whether --enable-wayland-shared was given.
  19357. if test ${enable_wayland_shared+y}
  19358. then :
  19359. enableval=$enable_wayland_shared;
  19360. else $as_nop
  19361. enable_wayland_shared=maybe
  19362. fi
  19363. case "$host" in
  19364. *)
  19365. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19366. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19367. if test x$wayland_egl_lib = x; then
  19368. # This works in Ubuntu 13.10, maybe others
  19369. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19370. fi
  19371. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19372. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19373. ;;
  19374. esac
  19375. if test x$enable_wayland_shared = xmaybe; then
  19376. enable_wayland_shared=yes
  19377. fi
  19378. if test x$have_loadso != xyes && \
  19379. test x$enable_wayland_shared = xyes; then
  19380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  19381. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  19382. enable_wayland_shared=no
  19383. fi
  19384. if test x$have_loadso = xyes && \
  19385. test x$enable_wayland_shared = xyes && \
  19386. test x$wayland_client_lib != x && \
  19387. test x$wayland_egl_lib != x && \
  19388. test x$wayland_cursor_lib != x && \
  19389. test x$xkbcommon_lib != x; then
  19390. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  19391. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  19392. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  19393. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  19394. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  19395. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  19396. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  19397. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  19398. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  19399. else
  19400. enable_wayland_shared=no
  19401. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  19402. SUMMARY_video="${SUMMARY_video} wayland"
  19403. fi
  19404. have_video=yes
  19405. # Check whether --enable-libdecor was given.
  19406. if test ${enable_libdecor+y}
  19407. then :
  19408. enableval=$enable_libdecor;
  19409. else $as_nop
  19410. enable_libdecor=yes
  19411. fi
  19412. if test x$enable_libdecor = xyes; then
  19413. pkg_failed=no
  19414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  19415. printf %s "checking for libdecor-0... " >&6; }
  19416. if test -n "$DECOR_CFLAGS"; then
  19417. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  19418. elif test -n "$PKG_CONFIG"; then
  19419. if test -n "$PKG_CONFIG" && \
  19420. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19421. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19422. ac_status=$?
  19423. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19424. test $ac_status = 0; }; then
  19425. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  19426. test "x$?" != "x0" && pkg_failed=yes
  19427. else
  19428. pkg_failed=yes
  19429. fi
  19430. else
  19431. pkg_failed=untried
  19432. fi
  19433. if test -n "$DECOR_LIBS"; then
  19434. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  19435. elif test -n "$PKG_CONFIG"; then
  19436. if test -n "$PKG_CONFIG" && \
  19437. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19438. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19439. ac_status=$?
  19440. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19441. test $ac_status = 0; }; then
  19442. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  19443. test "x$?" != "x0" && pkg_failed=yes
  19444. else
  19445. pkg_failed=yes
  19446. fi
  19447. else
  19448. pkg_failed=untried
  19449. fi
  19450. if test $pkg_failed = yes; then
  19451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19452. printf "%s\n" "no" >&6; }
  19453. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19454. _pkg_short_errors_supported=yes
  19455. else
  19456. _pkg_short_errors_supported=no
  19457. fi
  19458. if test $_pkg_short_errors_supported = yes; then
  19459. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  19460. else
  19461. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  19462. fi
  19463. # Put the nasty error message in config.log where it belongs
  19464. echo "$DECOR_PKG_ERRORS" >&5
  19465. video_libdecor=no
  19466. elif test $pkg_failed = untried; then
  19467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19468. printf "%s\n" "no" >&6; }
  19469. video_libdecor=no
  19470. else
  19471. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  19472. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  19473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19474. printf "%s\n" "yes" >&6; }
  19475. video_libdecor=yes
  19476. fi
  19477. if test x$video_libdecor = xyes; then
  19478. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  19479. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  19480. # Check whether --enable-libdecor-shared was given.
  19481. if test ${enable_libdecor_shared+y}
  19482. then :
  19483. enableval=$enable_libdecor_shared;
  19484. else $as_nop
  19485. enable_libdecor_shared=yes
  19486. fi
  19487. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19488. if test x$enable_wayland_shared != xyes; then
  19489. enable_libdecor_shared=no
  19490. fi
  19491. if test x$have_loadso != xyes && \
  19492. test x$enable_libdecor_shared = xyes; then
  19493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  19494. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  19495. fi
  19496. if test x$have_loadso = xyes && \
  19497. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  19498. echo "-- dynamic libdecor -> $decor_lib"
  19499. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  19500. else
  19501. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  19502. fi
  19503. fi
  19504. fi
  19505. fi
  19506. fi
  19507. }
  19508. CheckRPI()
  19509. {
  19510. # Check whether --enable-video-rpi was given.
  19511. if test ${enable_video_rpi+y}
  19512. then :
  19513. enableval=$enable_video_rpi;
  19514. else $as_nop
  19515. enable_video_rpi=yes
  19516. fi
  19517. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  19518. pkg_failed=no
  19519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  19520. printf %s "checking for bcm_host brcmegl... " >&6; }
  19521. if test -n "$RPI_CFLAGS"; then
  19522. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  19523. elif test -n "$PKG_CONFIG"; then
  19524. if test -n "$PKG_CONFIG" && \
  19525. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  19526. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  19527. ac_status=$?
  19528. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19529. test $ac_status = 0; }; then
  19530. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  19531. test "x$?" != "x0" && pkg_failed=yes
  19532. else
  19533. pkg_failed=yes
  19534. fi
  19535. else
  19536. pkg_failed=untried
  19537. fi
  19538. if test -n "$RPI_LIBS"; then
  19539. pkg_cv_RPI_LIBS="$RPI_LIBS"
  19540. elif test -n "$PKG_CONFIG"; then
  19541. if test -n "$PKG_CONFIG" && \
  19542. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  19543. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  19544. ac_status=$?
  19545. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19546. test $ac_status = 0; }; then
  19547. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  19548. test "x$?" != "x0" && pkg_failed=yes
  19549. else
  19550. pkg_failed=yes
  19551. fi
  19552. else
  19553. pkg_failed=untried
  19554. fi
  19555. if test $pkg_failed = yes; then
  19556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19557. printf "%s\n" "no" >&6; }
  19558. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19559. _pkg_short_errors_supported=yes
  19560. else
  19561. _pkg_short_errors_supported=no
  19562. fi
  19563. if test $_pkg_short_errors_supported = yes; then
  19564. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  19565. else
  19566. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  19567. fi
  19568. # Put the nasty error message in config.log where it belongs
  19569. echo "$RPI_PKG_ERRORS" >&5
  19570. video_rpi=no
  19571. elif test $pkg_failed = untried; then
  19572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19573. printf "%s\n" "no" >&6; }
  19574. video_rpi=no
  19575. else
  19576. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  19577. RPI_LIBS=$pkg_cv_RPI_LIBS
  19578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19579. printf "%s\n" "yes" >&6; }
  19580. video_rpi=yes
  19581. fi
  19582. if test x$video_rpi = xno; then
  19583. if test x$ARCH = xnetbsd; then
  19584. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  19585. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  19586. else
  19587. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19588. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  19589. fi
  19590. fi
  19591. # Save the original compiler flags and libraries
  19592. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19593. # Add the Raspberry Pi compiler flags and libraries
  19594. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  19595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  19596. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  19597. have_video_rpi=no
  19598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19599. /* end confdefs.h. */
  19600. #include <bcm_host.h>
  19601. #include <EGL/eglplatform.h>
  19602. int
  19603. main (void)
  19604. {
  19605. EGL_DISPMANX_WINDOW_T window;
  19606. bcm_host_init();
  19607. ;
  19608. return 0;
  19609. }
  19610. _ACEOF
  19611. if ac_fn_c_try_link "$LINENO"
  19612. then :
  19613. have_video_rpi=yes
  19614. fi
  19615. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19616. conftest$ac_exeext conftest.$ac_ext
  19617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  19618. printf "%s\n" "$have_video_rpi" >&6; }
  19619. # Restore the compiler flags and libraries
  19620. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19621. if test x$have_video_rpi = xyes; then
  19622. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19623. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19624. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19625. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  19626. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19627. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19628. SUMMARY_video="${SUMMARY_video} rpi"
  19629. have_video=yes
  19630. fi
  19631. fi
  19632. }
  19633. CheckX11()
  19634. {
  19635. # Check whether --enable-video-x11 was given.
  19636. if test ${enable_video_x11+y}
  19637. then :
  19638. enableval=$enable_video_x11;
  19639. else $as_nop
  19640. enable_video_x11=yes
  19641. case "$host" in
  19642. *-*-darwin*|*-ios-*)
  19643. enable_video_x11=no
  19644. ;;
  19645. esac
  19646. fi
  19647. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  19648. case "$host" in
  19649. *-*-darwin*)
  19650. # This isn't necessary for X11, but fixes GLX detection
  19651. if test "x$x_includes" = xNONE && \
  19652. test "x$x_libraries" = xNONE && \
  19653. test -d /opt/X11/include && \
  19654. test -d /opt/X11/lib; then
  19655. x_includes="/opt/X11/include"
  19656. x_libraries="/opt/X11/lib"
  19657. fi
  19658. ;;
  19659. esac
  19660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  19661. printf %s "checking for X... " >&6; }
  19662. # Check whether --with-x was given.
  19663. if test ${with_x+y}
  19664. then :
  19665. withval=$with_x;
  19666. fi
  19667. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  19668. if test "x$with_x" = xno; then
  19669. # The user explicitly disabled X.
  19670. have_x=disabled
  19671. else
  19672. case $x_includes,$x_libraries in #(
  19673. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  19674. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  19675. then :
  19676. printf %s "(cached) " >&6
  19677. else $as_nop
  19678. # One or both of the vars are not set, and there is no cached value.
  19679. ac_x_includes=no
  19680. ac_x_libraries=no
  19681. # Do we need to do anything special at all?
  19682. ac_save_LIBS=$LIBS
  19683. LIBS="-lX11 $LIBS"
  19684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19685. /* end confdefs.h. */
  19686. #include <X11/Xlib.h>
  19687. int
  19688. main (void)
  19689. {
  19690. XrmInitialize ()
  19691. ;
  19692. return 0;
  19693. }
  19694. _ACEOF
  19695. if ac_fn_c_try_link "$LINENO"
  19696. then :
  19697. # We can compile and link X programs with no special options.
  19698. ac_x_includes=
  19699. ac_x_libraries=
  19700. fi
  19701. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19702. conftest$ac_exeext conftest.$ac_ext
  19703. LIBS="$ac_save_LIBS"
  19704. # If that didn't work, only try xmkmf and file system searches
  19705. # for native compilation.
  19706. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  19707. then :
  19708. rm -f -r conftest.dir
  19709. if mkdir conftest.dir; then
  19710. cd conftest.dir
  19711. cat >Imakefile <<'_ACEOF'
  19712. incroot:
  19713. @echo incroot='${INCROOT}'
  19714. usrlibdir:
  19715. @echo usrlibdir='${USRLIBDIR}'
  19716. libdir:
  19717. @echo libdir='${LIBDIR}'
  19718. _ACEOF
  19719. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  19720. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  19721. for ac_var in incroot usrlibdir libdir; do
  19722. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  19723. done
  19724. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  19725. for ac_extension in a so sl dylib la dll; do
  19726. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  19727. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  19728. ac_im_usrlibdir=$ac_im_libdir; break
  19729. fi
  19730. done
  19731. # Screen out bogus values from the imake configuration. They are
  19732. # bogus both because they are the default anyway, and because
  19733. # using them would break gcc on systems where it needs fixed includes.
  19734. case $ac_im_incroot in
  19735. /usr/include) ac_x_includes= ;;
  19736. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  19737. esac
  19738. case $ac_im_usrlibdir in
  19739. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  19740. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  19741. esac
  19742. fi
  19743. cd ..
  19744. rm -f -r conftest.dir
  19745. fi
  19746. # Standard set of common directories for X headers.
  19747. # Check X11 before X11Rn because it is often a symlink to the current release.
  19748. ac_x_header_dirs='
  19749. /usr/X11/include
  19750. /usr/X11R7/include
  19751. /usr/X11R6/include
  19752. /usr/X11R5/include
  19753. /usr/X11R4/include
  19754. /usr/include/X11
  19755. /usr/include/X11R7
  19756. /usr/include/X11R6
  19757. /usr/include/X11R5
  19758. /usr/include/X11R4
  19759. /usr/local/X11/include
  19760. /usr/local/X11R7/include
  19761. /usr/local/X11R6/include
  19762. /usr/local/X11R5/include
  19763. /usr/local/X11R4/include
  19764. /usr/local/include/X11
  19765. /usr/local/include/X11R7
  19766. /usr/local/include/X11R6
  19767. /usr/local/include/X11R5
  19768. /usr/local/include/X11R4
  19769. /opt/X11/include
  19770. /usr/X386/include
  19771. /usr/x386/include
  19772. /usr/XFree86/include/X11
  19773. /usr/include
  19774. /usr/local/include
  19775. /usr/unsupported/include
  19776. /usr/athena/include
  19777. /usr/local/x11r5/include
  19778. /usr/lpp/Xamples/include
  19779. /usr/openwin/include
  19780. /usr/openwin/share/include'
  19781. if test "$ac_x_includes" = no; then
  19782. # Guess where to find include files, by looking for Xlib.h.
  19783. # First, try using that file with no special directory specified.
  19784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19785. /* end confdefs.h. */
  19786. #include <X11/Xlib.h>
  19787. _ACEOF
  19788. if ac_fn_c_try_cpp "$LINENO"
  19789. then :
  19790. # We can compile using X headers with no special include directory.
  19791. ac_x_includes=
  19792. else $as_nop
  19793. for ac_dir in $ac_x_header_dirs; do
  19794. if test -r "$ac_dir/X11/Xlib.h"; then
  19795. ac_x_includes=$ac_dir
  19796. break
  19797. fi
  19798. done
  19799. fi
  19800. rm -f conftest.err conftest.i conftest.$ac_ext
  19801. fi # $ac_x_includes = no
  19802. if test "$ac_x_libraries" = no; then
  19803. # Check for the libraries.
  19804. # See if we find them without any special options.
  19805. # Don't add to $LIBS permanently.
  19806. ac_save_LIBS=$LIBS
  19807. LIBS="-lX11 $LIBS"
  19808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19809. /* end confdefs.h. */
  19810. #include <X11/Xlib.h>
  19811. int
  19812. main (void)
  19813. {
  19814. XrmInitialize ()
  19815. ;
  19816. return 0;
  19817. }
  19818. _ACEOF
  19819. if ac_fn_c_try_link "$LINENO"
  19820. then :
  19821. LIBS=$ac_save_LIBS
  19822. # We can link X programs with no special library path.
  19823. ac_x_libraries=
  19824. else $as_nop
  19825. LIBS=$ac_save_LIBS
  19826. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  19827. do
  19828. # Don't even attempt the hair of trying to link an X program!
  19829. for ac_extension in a so sl dylib la dll; do
  19830. if test -r "$ac_dir/libX11.$ac_extension"; then
  19831. ac_x_libraries=$ac_dir
  19832. break 2
  19833. fi
  19834. done
  19835. done
  19836. fi
  19837. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19838. conftest$ac_exeext conftest.$ac_ext
  19839. fi # $ac_x_libraries = no
  19840. fi
  19841. # Record the results.
  19842. case $ac_x_includes,$ac_x_libraries in #(
  19843. no,* | *,no | *\'*) :
  19844. # Didn't find X, or a directory has "'" in its name.
  19845. ac_cv_have_x="have_x=no" ;; #(
  19846. *) :
  19847. # Record where we found X for the cache.
  19848. ac_cv_have_x="have_x=yes\
  19849. ac_x_includes='$ac_x_includes'\
  19850. ac_x_libraries='$ac_x_libraries'" ;;
  19851. esac
  19852. fi
  19853. ;; #(
  19854. *) have_x=yes;;
  19855. esac
  19856. eval "$ac_cv_have_x"
  19857. fi # $with_x != no
  19858. if test "$have_x" != yes; then
  19859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  19860. printf "%s\n" "$have_x" >&6; }
  19861. no_x=yes
  19862. else
  19863. # If each of the values was on the command line, it overrides each guess.
  19864. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  19865. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  19866. # Update the cache value to reflect the command line values.
  19867. ac_cv_have_x="have_x=yes\
  19868. ac_x_includes='$x_includes'\
  19869. ac_x_libraries='$x_libraries'"
  19870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  19871. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  19872. fi
  19873. if test "$no_x" = yes; then
  19874. # Not all programs may use this symbol, but it does not hurt to define it.
  19875. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  19876. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  19877. else
  19878. if test -n "$x_includes"; then
  19879. X_CFLAGS="$X_CFLAGS -I$x_includes"
  19880. fi
  19881. # It would also be nice to do this for all -L options, not just this one.
  19882. if test -n "$x_libraries"; then
  19883. X_LIBS="$X_LIBS -L$x_libraries"
  19884. # For Solaris; some versions of Sun CC require a space after -R and
  19885. # others require no space. Words are not sufficient . . . .
  19886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  19887. printf %s "checking whether -R must be followed by a space... " >&6; }
  19888. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  19889. ac_xsave_c_werror_flag=$ac_c_werror_flag
  19890. ac_c_werror_flag=yes
  19891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19892. /* end confdefs.h. */
  19893. int
  19894. main (void)
  19895. {
  19896. ;
  19897. return 0;
  19898. }
  19899. _ACEOF
  19900. if ac_fn_c_try_link "$LINENO"
  19901. then :
  19902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19903. printf "%s\n" "no" >&6; }
  19904. X_LIBS="$X_LIBS -R$x_libraries"
  19905. else $as_nop
  19906. LIBS="$ac_xsave_LIBS -R $x_libraries"
  19907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19908. /* end confdefs.h. */
  19909. int
  19910. main (void)
  19911. {
  19912. ;
  19913. return 0;
  19914. }
  19915. _ACEOF
  19916. if ac_fn_c_try_link "$LINENO"
  19917. then :
  19918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19919. printf "%s\n" "yes" >&6; }
  19920. X_LIBS="$X_LIBS -R $x_libraries"
  19921. else $as_nop
  19922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  19923. printf "%s\n" "neither works" >&6; }
  19924. fi
  19925. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19926. conftest$ac_exeext conftest.$ac_ext
  19927. fi
  19928. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19929. conftest$ac_exeext conftest.$ac_ext
  19930. ac_c_werror_flag=$ac_xsave_c_werror_flag
  19931. LIBS=$ac_xsave_LIBS
  19932. fi
  19933. # Check for system-dependent libraries X programs must link with.
  19934. # Do this before checking for the system-independent R6 libraries
  19935. # (-lICE), since we may need -lsocket or whatever for X linking.
  19936. if test "$ISC" = yes; then
  19937. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  19938. else
  19939. # Martyn Johnson says this is needed for Ultrix, if the X
  19940. # libraries were built with DECnet support. And Karl Berry says
  19941. # the Alpha needs dnet_stub (dnet does not exist).
  19942. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  19943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19944. /* end confdefs.h. */
  19945. /* Override any GCC internal prototype to avoid an error.
  19946. Use char because int might match the return type of a GCC
  19947. builtin and then its argument prototype would still apply. */
  19948. char XOpenDisplay ();
  19949. int
  19950. main (void)
  19951. {
  19952. return XOpenDisplay ();
  19953. ;
  19954. return 0;
  19955. }
  19956. _ACEOF
  19957. if ac_fn_c_try_link "$LINENO"
  19958. then :
  19959. else $as_nop
  19960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  19961. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  19962. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  19963. then :
  19964. printf %s "(cached) " >&6
  19965. else $as_nop
  19966. ac_check_lib_save_LIBS=$LIBS
  19967. LIBS="-ldnet $LIBS"
  19968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19969. /* end confdefs.h. */
  19970. /* Override any GCC internal prototype to avoid an error.
  19971. Use char because int might match the return type of a GCC
  19972. builtin and then its argument prototype would still apply. */
  19973. char dnet_ntoa ();
  19974. int
  19975. main (void)
  19976. {
  19977. return dnet_ntoa ();
  19978. ;
  19979. return 0;
  19980. }
  19981. _ACEOF
  19982. if ac_fn_c_try_link "$LINENO"
  19983. then :
  19984. ac_cv_lib_dnet_dnet_ntoa=yes
  19985. else $as_nop
  19986. ac_cv_lib_dnet_dnet_ntoa=no
  19987. fi
  19988. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19989. conftest$ac_exeext conftest.$ac_ext
  19990. LIBS=$ac_check_lib_save_LIBS
  19991. fi
  19992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  19993. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  19994. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  19995. then :
  19996. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  19997. fi
  19998. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  19999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20000. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20001. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20002. then :
  20003. printf %s "(cached) " >&6
  20004. else $as_nop
  20005. ac_check_lib_save_LIBS=$LIBS
  20006. LIBS="-ldnet_stub $LIBS"
  20007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20008. /* end confdefs.h. */
  20009. /* Override any GCC internal prototype to avoid an error.
  20010. Use char because int might match the return type of a GCC
  20011. builtin and then its argument prototype would still apply. */
  20012. char dnet_ntoa ();
  20013. int
  20014. main (void)
  20015. {
  20016. return dnet_ntoa ();
  20017. ;
  20018. return 0;
  20019. }
  20020. _ACEOF
  20021. if ac_fn_c_try_link "$LINENO"
  20022. then :
  20023. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20024. else $as_nop
  20025. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20026. fi
  20027. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20028. conftest$ac_exeext conftest.$ac_ext
  20029. LIBS=$ac_check_lib_save_LIBS
  20030. fi
  20031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20032. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20033. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20034. then :
  20035. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20036. fi
  20037. fi
  20038. fi
  20039. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20040. conftest$ac_exeext conftest.$ac_ext
  20041. LIBS="$ac_xsave_LIBS"
  20042. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20043. # to get the SysV transport functions.
  20044. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20045. # needs -lnsl.
  20046. # The nsl library prevents programs from opening the X display
  20047. # on Irix 5.2, according to T.E. Dickey.
  20048. # The functions gethostbyname, getservbyname, and inet_addr are
  20049. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20050. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20051. if test "x$ac_cv_func_gethostbyname" = xyes
  20052. then :
  20053. fi
  20054. if test $ac_cv_func_gethostbyname = no; then
  20055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20056. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20057. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20058. then :
  20059. printf %s "(cached) " >&6
  20060. else $as_nop
  20061. ac_check_lib_save_LIBS=$LIBS
  20062. LIBS="-lnsl $LIBS"
  20063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20064. /* end confdefs.h. */
  20065. /* Override any GCC internal prototype to avoid an error.
  20066. Use char because int might match the return type of a GCC
  20067. builtin and then its argument prototype would still apply. */
  20068. char gethostbyname ();
  20069. int
  20070. main (void)
  20071. {
  20072. return gethostbyname ();
  20073. ;
  20074. return 0;
  20075. }
  20076. _ACEOF
  20077. if ac_fn_c_try_link "$LINENO"
  20078. then :
  20079. ac_cv_lib_nsl_gethostbyname=yes
  20080. else $as_nop
  20081. ac_cv_lib_nsl_gethostbyname=no
  20082. fi
  20083. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20084. conftest$ac_exeext conftest.$ac_ext
  20085. LIBS=$ac_check_lib_save_LIBS
  20086. fi
  20087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20088. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20089. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20090. then :
  20091. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20092. fi
  20093. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20095. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20096. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20097. then :
  20098. printf %s "(cached) " >&6
  20099. else $as_nop
  20100. ac_check_lib_save_LIBS=$LIBS
  20101. LIBS="-lbsd $LIBS"
  20102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20103. /* end confdefs.h. */
  20104. /* Override any GCC internal prototype to avoid an error.
  20105. Use char because int might match the return type of a GCC
  20106. builtin and then its argument prototype would still apply. */
  20107. char gethostbyname ();
  20108. int
  20109. main (void)
  20110. {
  20111. return gethostbyname ();
  20112. ;
  20113. return 0;
  20114. }
  20115. _ACEOF
  20116. if ac_fn_c_try_link "$LINENO"
  20117. then :
  20118. ac_cv_lib_bsd_gethostbyname=yes
  20119. else $as_nop
  20120. ac_cv_lib_bsd_gethostbyname=no
  20121. fi
  20122. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20123. conftest$ac_exeext conftest.$ac_ext
  20124. LIBS=$ac_check_lib_save_LIBS
  20125. fi
  20126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20127. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20128. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20129. then :
  20130. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20131. fi
  20132. fi
  20133. fi
  20134. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20135. # socket/setsockopt and other routines are undefined under SCO ODT
  20136. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20137. # on later versions), says Simon Leinen: it contains gethostby*
  20138. # variants that don't use the name server (or something). -lsocket
  20139. # must be given before -lnsl if both are needed. We assume that
  20140. # if connect needs -lnsl, so does gethostbyname.
  20141. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20142. if test "x$ac_cv_func_connect" = xyes
  20143. then :
  20144. fi
  20145. if test $ac_cv_func_connect = no; then
  20146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20147. printf %s "checking for connect in -lsocket... " >&6; }
  20148. if test ${ac_cv_lib_socket_connect+y}
  20149. then :
  20150. printf %s "(cached) " >&6
  20151. else $as_nop
  20152. ac_check_lib_save_LIBS=$LIBS
  20153. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20155. /* end confdefs.h. */
  20156. /* Override any GCC internal prototype to avoid an error.
  20157. Use char because int might match the return type of a GCC
  20158. builtin and then its argument prototype would still apply. */
  20159. char connect ();
  20160. int
  20161. main (void)
  20162. {
  20163. return connect ();
  20164. ;
  20165. return 0;
  20166. }
  20167. _ACEOF
  20168. if ac_fn_c_try_link "$LINENO"
  20169. then :
  20170. ac_cv_lib_socket_connect=yes
  20171. else $as_nop
  20172. ac_cv_lib_socket_connect=no
  20173. fi
  20174. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20175. conftest$ac_exeext conftest.$ac_ext
  20176. LIBS=$ac_check_lib_save_LIBS
  20177. fi
  20178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20179. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20180. if test "x$ac_cv_lib_socket_connect" = xyes
  20181. then :
  20182. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20183. fi
  20184. fi
  20185. # Guillermo Gomez says -lposix is necessary on A/UX.
  20186. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20187. if test "x$ac_cv_func_remove" = xyes
  20188. then :
  20189. fi
  20190. if test $ac_cv_func_remove = no; then
  20191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20192. printf %s "checking for remove in -lposix... " >&6; }
  20193. if test ${ac_cv_lib_posix_remove+y}
  20194. then :
  20195. printf %s "(cached) " >&6
  20196. else $as_nop
  20197. ac_check_lib_save_LIBS=$LIBS
  20198. LIBS="-lposix $LIBS"
  20199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20200. /* end confdefs.h. */
  20201. /* Override any GCC internal prototype to avoid an error.
  20202. Use char because int might match the return type of a GCC
  20203. builtin and then its argument prototype would still apply. */
  20204. char remove ();
  20205. int
  20206. main (void)
  20207. {
  20208. return remove ();
  20209. ;
  20210. return 0;
  20211. }
  20212. _ACEOF
  20213. if ac_fn_c_try_link "$LINENO"
  20214. then :
  20215. ac_cv_lib_posix_remove=yes
  20216. else $as_nop
  20217. ac_cv_lib_posix_remove=no
  20218. fi
  20219. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20220. conftest$ac_exeext conftest.$ac_ext
  20221. LIBS=$ac_check_lib_save_LIBS
  20222. fi
  20223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20224. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20225. if test "x$ac_cv_lib_posix_remove" = xyes
  20226. then :
  20227. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20228. fi
  20229. fi
  20230. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20231. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20232. if test "x$ac_cv_func_shmat" = xyes
  20233. then :
  20234. fi
  20235. if test $ac_cv_func_shmat = no; then
  20236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20237. printf %s "checking for shmat in -lipc... " >&6; }
  20238. if test ${ac_cv_lib_ipc_shmat+y}
  20239. then :
  20240. printf %s "(cached) " >&6
  20241. else $as_nop
  20242. ac_check_lib_save_LIBS=$LIBS
  20243. LIBS="-lipc $LIBS"
  20244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20245. /* end confdefs.h. */
  20246. /* Override any GCC internal prototype to avoid an error.
  20247. Use char because int might match the return type of a GCC
  20248. builtin and then its argument prototype would still apply. */
  20249. char shmat ();
  20250. int
  20251. main (void)
  20252. {
  20253. return shmat ();
  20254. ;
  20255. return 0;
  20256. }
  20257. _ACEOF
  20258. if ac_fn_c_try_link "$LINENO"
  20259. then :
  20260. ac_cv_lib_ipc_shmat=yes
  20261. else $as_nop
  20262. ac_cv_lib_ipc_shmat=no
  20263. fi
  20264. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20265. conftest$ac_exeext conftest.$ac_ext
  20266. LIBS=$ac_check_lib_save_LIBS
  20267. fi
  20268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20269. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20270. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20271. then :
  20272. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20273. fi
  20274. fi
  20275. fi
  20276. # Check for libraries that X11R6 Xt/Xaw programs need.
  20277. ac_save_LDFLAGS=$LDFLAGS
  20278. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20279. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20280. # check for ICE first), but we must link in the order -lSM -lICE or
  20281. # we get undefined symbols. So assume we have SM if we have ICE.
  20282. # These have to be linked with before -lX11, unlike the other
  20283. # libraries we check for below, so use a different variable.
  20284. # John Interrante, Karl Berry
  20285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20286. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20287. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20288. then :
  20289. printf %s "(cached) " >&6
  20290. else $as_nop
  20291. ac_check_lib_save_LIBS=$LIBS
  20292. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20294. /* end confdefs.h. */
  20295. /* Override any GCC internal prototype to avoid an error.
  20296. Use char because int might match the return type of a GCC
  20297. builtin and then its argument prototype would still apply. */
  20298. char IceConnectionNumber ();
  20299. int
  20300. main (void)
  20301. {
  20302. return IceConnectionNumber ();
  20303. ;
  20304. return 0;
  20305. }
  20306. _ACEOF
  20307. if ac_fn_c_try_link "$LINENO"
  20308. then :
  20309. ac_cv_lib_ICE_IceConnectionNumber=yes
  20310. else $as_nop
  20311. ac_cv_lib_ICE_IceConnectionNumber=no
  20312. fi
  20313. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20314. conftest$ac_exeext conftest.$ac_ext
  20315. LIBS=$ac_check_lib_save_LIBS
  20316. fi
  20317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20318. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20319. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  20320. then :
  20321. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  20322. fi
  20323. LDFLAGS=$ac_save_LDFLAGS
  20324. fi
  20325. if test x$have_x = xyes; then
  20326. # Check whether --enable-x11-shared was given.
  20327. if test ${enable_x11_shared+y}
  20328. then :
  20329. enableval=$enable_x11_shared;
  20330. else $as_nop
  20331. enable_x11_shared=maybe
  20332. fi
  20333. case "$host" in
  20334. *-*-darwin*)
  20335. # Apple now puts this in /opt/X11
  20336. x11_lib='/opt/X11/lib/libX11.6.dylib'
  20337. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  20338. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  20339. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  20340. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  20341. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  20342. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  20343. xss_lib='/opt/X11/lib/libXss.1.dylib'
  20344. ;;
  20345. *-*-openbsd*)
  20346. x11_lib='libX11.so'
  20347. x11ext_lib='libXext.so'
  20348. xcursor_lib='libXcursor.so'
  20349. xinput_lib='libXi.so'
  20350. xfixes_lib='libXfixes.so'
  20351. xrandr_lib='libXrandr.so'
  20352. xrender_lib='libXrender.so'
  20353. xss_lib='libXss.so'
  20354. ;;
  20355. *)
  20356. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20357. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20358. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20359. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20360. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20361. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20362. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20363. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20364. ;;
  20365. esac
  20366. if test x$ac_cv_func_shmat != xyes; then
  20367. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  20368. fi
  20369. CFLAGS="$CFLAGS $X_CFLAGS"
  20370. LDFLAGS="$LDFLAGS $X_LIBS"
  20371. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  20372. #include <X11/Xproto.h>
  20373. "
  20374. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  20375. then :
  20376. have_xext_h_hdr=yes
  20377. else $as_nop
  20378. have_xext_h_hdr=no
  20379. fi
  20380. if test x$have_xext_h_hdr != xyes; then
  20381. as_fn_error $? "
  20382. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  20383. " "$LINENO" 5
  20384. fi
  20385. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  20386. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  20387. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  20388. # Needed so SDL applications can include SDL_syswm.h
  20389. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  20390. if test x$enable_x11_shared = xmaybe; then
  20391. enable_x11_shared=yes
  20392. fi
  20393. if test x$have_loadso != xyes && \
  20394. test x$enable_x11_shared = xyes; then
  20395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  20396. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  20397. enable_x11_shared=no
  20398. fi
  20399. if test x$have_loadso = xyes && \
  20400. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  20401. echo "-- dynamic libX11 -> $x11_lib"
  20402. echo "-- dynamic libX11ext -> $x11ext_lib"
  20403. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  20404. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  20405. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  20406. else
  20407. enable_x11_shared=no
  20408. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  20409. SUMMARY_video="${SUMMARY_video} x11"
  20410. fi
  20411. have_video=yes
  20412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  20413. printf %s "checking for XGenericEvent... " >&6; }
  20414. have_XGenericEvent=no
  20415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20416. /* end confdefs.h. */
  20417. #include <X11/Xlib.h>
  20418. int
  20419. main (void)
  20420. {
  20421. Display *display;
  20422. XEvent event;
  20423. XGenericEventCookie *cookie = &event.xcookie;
  20424. XNextEvent(display, &event);
  20425. XGetEventData(display, cookie);
  20426. XFreeEventData(display, cookie);
  20427. ;
  20428. return 0;
  20429. }
  20430. _ACEOF
  20431. if ac_fn_c_try_compile "$LINENO"
  20432. then :
  20433. have_XGenericEvent=yes
  20434. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  20435. fi
  20436. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  20438. printf "%s\n" "$have_XGenericEvent" >&6; }
  20439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  20440. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  20441. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  20442. then :
  20443. printf %s "(cached) " >&6
  20444. else $as_nop
  20445. ac_check_lib_save_LIBS=$LIBS
  20446. LIBS="-lX11 $LIBS"
  20447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20448. /* end confdefs.h. */
  20449. /* Override any GCC internal prototype to avoid an error.
  20450. Use char because int might match the return type of a GCC
  20451. builtin and then its argument prototype would still apply. */
  20452. char XkbKeycodeToKeysym ();
  20453. int
  20454. main (void)
  20455. {
  20456. return XkbKeycodeToKeysym ();
  20457. ;
  20458. return 0;
  20459. }
  20460. _ACEOF
  20461. if ac_fn_c_try_link "$LINENO"
  20462. then :
  20463. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  20464. else $as_nop
  20465. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  20466. fi
  20467. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20468. conftest$ac_exeext conftest.$ac_ext
  20469. LIBS=$ac_check_lib_save_LIBS
  20470. fi
  20471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  20472. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  20473. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  20474. then :
  20475. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  20476. fi
  20477. # Check whether --enable-video-x11-xcursor was given.
  20478. if test ${enable_video_x11_xcursor+y}
  20479. then :
  20480. enableval=$enable_video_x11_xcursor;
  20481. else $as_nop
  20482. enable_video_x11_xcursor=yes
  20483. fi
  20484. if test x$enable_video_x11_xcursor = xyes; then
  20485. definitely_enable_video_x11_xcursor=no
  20486. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  20487. "
  20488. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  20489. then :
  20490. have_xcursor_h_hdr=yes
  20491. else $as_nop
  20492. have_xcursor_h_hdr=no
  20493. fi
  20494. if test x$have_xcursor_h_hdr = xyes; then
  20495. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  20496. echo "-- dynamic libXcursor -> $xcursor_lib"
  20497. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  20498. definitely_enable_video_x11_xcursor=yes
  20499. else
  20500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  20501. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  20502. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  20503. then :
  20504. printf %s "(cached) " >&6
  20505. else $as_nop
  20506. ac_check_lib_save_LIBS=$LIBS
  20507. LIBS="-lXcursor $LIBS"
  20508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20509. /* end confdefs.h. */
  20510. /* Override any GCC internal prototype to avoid an error.
  20511. Use char because int might match the return type of a GCC
  20512. builtin and then its argument prototype would still apply. */
  20513. char XcursorImageCreate ();
  20514. int
  20515. main (void)
  20516. {
  20517. return XcursorImageCreate ();
  20518. ;
  20519. return 0;
  20520. }
  20521. _ACEOF
  20522. if ac_fn_c_try_link "$LINENO"
  20523. then :
  20524. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  20525. else $as_nop
  20526. ac_cv_lib_Xcursor_XcursorImageCreate=no
  20527. fi
  20528. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20529. conftest$ac_exeext conftest.$ac_ext
  20530. LIBS=$ac_check_lib_save_LIBS
  20531. fi
  20532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  20533. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  20534. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  20535. then :
  20536. have_xcursor_lib=yes
  20537. fi
  20538. if test x$have_xcursor_lib = xyes ; then
  20539. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  20540. definitely_enable_video_x11_xcursor=yes
  20541. fi
  20542. fi
  20543. fi
  20544. fi
  20545. if test x$definitely_enable_video_x11_xcursor = xyes; then
  20546. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  20547. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  20548. fi
  20549. # Check whether --enable-video-x11-xdbe was given.
  20550. if test ${enable_video_x11_xdbe+y}
  20551. then :
  20552. enableval=$enable_video_x11_xdbe;
  20553. else $as_nop
  20554. enable_video_x11_xdbe=yes
  20555. fi
  20556. if test x$enable_video_x11_xdbe = xyes; then
  20557. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  20558. "
  20559. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  20560. then :
  20561. have_dbe_h_hdr=yes
  20562. else $as_nop
  20563. have_dbe_h_hdr=no
  20564. fi
  20565. if test x$have_dbe_h_hdr = xyes; then
  20566. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  20567. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  20568. fi
  20569. fi
  20570. # Check whether --enable-video-x11-xinput was given.
  20571. if test ${enable_video_x11_xinput+y}
  20572. then :
  20573. enableval=$enable_video_x11_xinput;
  20574. else $as_nop
  20575. enable_video_x11_xinput=yes
  20576. fi
  20577. if test x$enable_video_x11_xinput = xyes; then
  20578. definitely_enable_video_x11_xinput=no
  20579. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  20580. "
  20581. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  20582. then :
  20583. have_xinput_h_hdr=yes
  20584. else $as_nop
  20585. have_xinput_h_hdr=no
  20586. fi
  20587. if test x$have_xinput_h_hdr = xyes; then
  20588. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  20589. echo "-- dynamic libXi -> $xinput_lib"
  20590. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  20591. definitely_enable_video_x11_xinput=yes
  20592. else
  20593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  20594. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  20595. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  20596. then :
  20597. printf %s "(cached) " >&6
  20598. else $as_nop
  20599. ac_check_lib_save_LIBS=$LIBS
  20600. LIBS="-lXi $LIBS"
  20601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20602. /* end confdefs.h. */
  20603. /* Override any GCC internal prototype to avoid an error.
  20604. Use char because int might match the return type of a GCC
  20605. builtin and then its argument prototype would still apply. */
  20606. char XOpenDevice ();
  20607. int
  20608. main (void)
  20609. {
  20610. return XOpenDevice ();
  20611. ;
  20612. return 0;
  20613. }
  20614. _ACEOF
  20615. if ac_fn_c_try_link "$LINENO"
  20616. then :
  20617. ac_cv_lib_Xi_XOpenDevice=yes
  20618. else $as_nop
  20619. ac_cv_lib_Xi_XOpenDevice=no
  20620. fi
  20621. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20622. conftest$ac_exeext conftest.$ac_ext
  20623. LIBS=$ac_check_lib_save_LIBS
  20624. fi
  20625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  20626. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  20627. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  20628. then :
  20629. have_xinput_lib=yes
  20630. fi
  20631. if test x$have_xinput_lib = xyes ; then
  20632. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  20633. definitely_enable_video_x11_xinput=yes
  20634. fi
  20635. fi
  20636. fi
  20637. fi
  20638. if test x$definitely_enable_video_x11_xinput = xyes; then
  20639. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  20640. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  20641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  20642. printf %s "checking for xinput2 multitouch... " >&6; }
  20643. have_xinput2_multitouch=no
  20644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20645. /* end confdefs.h. */
  20646. #include <X11/Xlib.h>
  20647. #include <X11/Xproto.h>
  20648. #include <X11/extensions/XInput2.h>
  20649. int
  20650. main (void)
  20651. {
  20652. int event_type = XI_TouchBegin;
  20653. XITouchClassInfo *t;
  20654. ;
  20655. return 0;
  20656. }
  20657. _ACEOF
  20658. if ac_fn_c_try_compile "$LINENO"
  20659. then :
  20660. have_xinput2_multitouch=yes
  20661. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  20662. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  20663. fi
  20664. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  20666. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  20667. fi
  20668. # Check whether --enable-video-x11-xfixes was given.
  20669. if test ${enable_video_x11_xfixes+y}
  20670. then :
  20671. enableval=$enable_video_x11_xfixes;
  20672. else $as_nop
  20673. enable_video_x11_xfixes=yes
  20674. fi
  20675. if test x$enable_video_x11_xfixes = xyes; then
  20676. definitely_enable_video_x11_xfixes=no
  20677. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  20678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  20679. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  20680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20681. /* end confdefs.h. */
  20682. #include <X11/Xlib.h>
  20683. #include <X11/Xproto.h>
  20684. #include <X11/extensions/XInput2.h>
  20685. #include <X11/extensions/Xfixes.h>
  20686. int
  20687. main (void)
  20688. {
  20689. BarrierEventID b;
  20690. ;
  20691. return 0;
  20692. }
  20693. _ACEOF
  20694. if ac_fn_c_try_compile "$LINENO"
  20695. then :
  20696. have_xfixes_h_hdr=yes
  20697. else $as_nop
  20698. have_xfixes_h_hdr=no
  20699. fi
  20700. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  20702. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  20703. if test x$have_xfixes_h_hdr = xyes; then
  20704. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  20705. echo "-- dynamic libXfixes -> $xfixes_lib"
  20706. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  20707. definitely_enable_video_x11_xfixes=yes
  20708. else
  20709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  20710. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  20711. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  20712. then :
  20713. printf %s "(cached) " >&6
  20714. else $as_nop
  20715. ac_check_lib_save_LIBS=$LIBS
  20716. LIBS="-lXfixes $LIBS"
  20717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20718. /* end confdefs.h. */
  20719. /* Override any GCC internal prototype to avoid an error.
  20720. Use char because int might match the return type of a GCC
  20721. builtin and then its argument prototype would still apply. */
  20722. char XFixesCreatePointerBarrier ();
  20723. int
  20724. main (void)
  20725. {
  20726. return XFixesCreatePointerBarrier ();
  20727. ;
  20728. return 0;
  20729. }
  20730. _ACEOF
  20731. if ac_fn_c_try_link "$LINENO"
  20732. then :
  20733. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  20734. else $as_nop
  20735. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  20736. fi
  20737. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20738. conftest$ac_exeext conftest.$ac_ext
  20739. LIBS=$ac_check_lib_save_LIBS
  20740. fi
  20741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  20742. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  20743. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  20744. then :
  20745. have_xfixes_lib=yes
  20746. fi
  20747. if test x$have_xfixes_lib = xyes ; then
  20748. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  20749. definitely_enable_video_x11_xfixes=yes
  20750. fi
  20751. fi
  20752. fi
  20753. fi
  20754. if test x$definitely_enable_video_x11_xfixes = xyes; then
  20755. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  20756. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  20757. fi
  20758. # Check whether --enable-video-x11-xrandr was given.
  20759. if test ${enable_video_x11_xrandr+y}
  20760. then :
  20761. enableval=$enable_video_x11_xrandr;
  20762. else $as_nop
  20763. enable_video_x11_xrandr=yes
  20764. fi
  20765. if test x$enable_video_x11_xrandr = xyes; then
  20766. definitely_enable_video_x11_xrandr=no
  20767. have_xrandr_h_hdr=no
  20768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20769. /* end confdefs.h. */
  20770. #include <X11/Xlib.h>
  20771. #include <X11/extensions/Xrandr.h>
  20772. int
  20773. main (void)
  20774. {
  20775. XRRScreenResources *res = NULL;
  20776. ;
  20777. return 0;
  20778. }
  20779. _ACEOF
  20780. if ac_fn_c_try_compile "$LINENO"
  20781. then :
  20782. have_xrandr_h_hdr=yes
  20783. fi
  20784. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20785. if test x$have_xrandr_h_hdr = xyes; then
  20786. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  20787. echo "-- dynamic libXrandr -> $xrandr_lib"
  20788. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  20789. definitely_enable_video_x11_xrandr=yes
  20790. else
  20791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  20792. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  20793. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  20794. then :
  20795. printf %s "(cached) " >&6
  20796. else $as_nop
  20797. ac_check_lib_save_LIBS=$LIBS
  20798. LIBS="-lXrandr $LIBS"
  20799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20800. /* end confdefs.h. */
  20801. /* Override any GCC internal prototype to avoid an error.
  20802. Use char because int might match the return type of a GCC
  20803. builtin and then its argument prototype would still apply. */
  20804. char XRRQueryExtension ();
  20805. int
  20806. main (void)
  20807. {
  20808. return XRRQueryExtension ();
  20809. ;
  20810. return 0;
  20811. }
  20812. _ACEOF
  20813. if ac_fn_c_try_link "$LINENO"
  20814. then :
  20815. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  20816. else $as_nop
  20817. ac_cv_lib_Xrandr_XRRQueryExtension=no
  20818. fi
  20819. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20820. conftest$ac_exeext conftest.$ac_ext
  20821. LIBS=$ac_check_lib_save_LIBS
  20822. fi
  20823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  20824. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  20825. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  20826. then :
  20827. have_xrandr_lib=yes
  20828. fi
  20829. if test x$have_xrandr_lib = xyes ; then
  20830. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  20831. definitely_enable_video_x11_xrandr=yes
  20832. fi
  20833. fi
  20834. fi
  20835. fi
  20836. if test x$definitely_enable_video_x11_xrandr = xyes; then
  20837. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  20838. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  20839. fi
  20840. # Check whether --enable-video-x11-scrnsaver was given.
  20841. if test ${enable_video_x11_scrnsaver+y}
  20842. then :
  20843. enableval=$enable_video_x11_scrnsaver;
  20844. else $as_nop
  20845. enable_video_x11_scrnsaver=yes
  20846. fi
  20847. if test x$enable_video_x11_scrnsaver = xyes; then
  20848. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  20849. "
  20850. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  20851. then :
  20852. have_scrnsaver_h_hdr=yes
  20853. else $as_nop
  20854. have_scrnsaver_h_hdr=no
  20855. fi
  20856. if test x$have_scrnsaver_h_hdr = xyes; then
  20857. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  20858. echo "-- dynamic libXss -> $xss_lib"
  20859. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  20860. definitely_enable_video_x11_scrnsaver=yes
  20861. else
  20862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  20863. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  20864. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  20865. then :
  20866. printf %s "(cached) " >&6
  20867. else $as_nop
  20868. ac_check_lib_save_LIBS=$LIBS
  20869. LIBS="-lXss $LIBS"
  20870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20871. /* end confdefs.h. */
  20872. /* Override any GCC internal prototype to avoid an error.
  20873. Use char because int might match the return type of a GCC
  20874. builtin and then its argument prototype would still apply. */
  20875. char XScreenSaverSuspend ();
  20876. int
  20877. main (void)
  20878. {
  20879. return XScreenSaverSuspend ();
  20880. ;
  20881. return 0;
  20882. }
  20883. _ACEOF
  20884. if ac_fn_c_try_link "$LINENO"
  20885. then :
  20886. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  20887. else $as_nop
  20888. ac_cv_lib_Xss_XScreenSaverSuspend=no
  20889. fi
  20890. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20891. conftest$ac_exeext conftest.$ac_ext
  20892. LIBS=$ac_check_lib_save_LIBS
  20893. fi
  20894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  20895. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  20896. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  20897. then :
  20898. have_xss_lib=yes
  20899. fi
  20900. if test x$have_xss_lib = xyes ; then
  20901. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  20902. definitely_enable_video_x11_scrnsaver=yes
  20903. fi
  20904. fi
  20905. fi
  20906. fi
  20907. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  20908. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  20909. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  20910. fi
  20911. # Check whether --enable-video-x11-xshape was given.
  20912. if test ${enable_video_x11_xshape+y}
  20913. then :
  20914. enableval=$enable_video_x11_xshape;
  20915. else $as_nop
  20916. enable_video_x11_xshape=yes
  20917. fi
  20918. if test x$enable_video_x11_xshape = xyes; then
  20919. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  20920. "
  20921. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  20922. then :
  20923. have_shape_h_hdr=yes
  20924. else $as_nop
  20925. have_shape_h_hdr=no
  20926. fi
  20927. if test x$have_shape_h_hdr = xyes; then
  20928. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  20929. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  20930. fi
  20931. fi
  20932. fi
  20933. fi
  20934. if test x$have_x != xyes; then
  20935. # Prevent Mesa from including X11 headers
  20936. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  20937. fi
  20938. }
  20939. CheckVivanteVideo()
  20940. {
  20941. # Check whether --enable-video-vivante was given.
  20942. if test ${enable_video_vivante+y}
  20943. then :
  20944. enableval=$enable_video_vivante;
  20945. else $as_nop
  20946. enable_video_vivante=yes
  20947. fi
  20948. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  20949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  20950. printf %s "checking for Vivante VDK API... " >&6; }
  20951. have_vivante_vdk=no
  20952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20953. /* end confdefs.h. */
  20954. #define LINUX
  20955. #define EGL_API_FB
  20956. #include <gc_vdk.h>
  20957. int
  20958. main (void)
  20959. {
  20960. ;
  20961. return 0;
  20962. }
  20963. _ACEOF
  20964. if ac_fn_c_try_compile "$LINENO"
  20965. then :
  20966. have_vivante_vdk=yes
  20967. fi
  20968. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  20970. printf "%s\n" "$have_vivante_vdk" >&6; }
  20971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  20972. printf %s "checking for Vivante FB API... " >&6; }
  20973. have_vivante_egl=no
  20974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20975. /* end confdefs.h. */
  20976. #define LINUX
  20977. #define EGL_API_FB
  20978. #include <EGL/eglvivante.h>
  20979. int
  20980. main (void)
  20981. {
  20982. ;
  20983. return 0;
  20984. }
  20985. _ACEOF
  20986. if ac_fn_c_try_compile "$LINENO"
  20987. then :
  20988. have_vivante_egl=yes
  20989. fi
  20990. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  20992. printf "%s\n" "$have_vivante_egl" >&6; }
  20993. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  20994. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  20995. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  20996. if test x$have_vivante_vdk = xyes; then
  20997. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  20998. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  20999. fi
  21000. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21001. SUMMARY_video="${SUMMARY_video} vivante"
  21002. have_video=yes
  21003. fi
  21004. fi
  21005. }
  21006. CheckHaikuVideo()
  21007. {
  21008. if test x$enable_video = xyes; then
  21009. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21010. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21011. have_video=yes
  21012. SUMMARY_video="${SUMMARY_video} haiku"
  21013. fi
  21014. }
  21015. CheckCOCOA()
  21016. {
  21017. # Check whether --enable-video-cocoa was given.
  21018. if test ${enable_video_cocoa+y}
  21019. then :
  21020. enableval=$enable_video_cocoa;
  21021. else $as_nop
  21022. enable_video_cocoa=yes
  21023. fi
  21024. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21025. save_CFLAGS="$CFLAGS"
  21026. CFLAGS="$CFLAGS -x objective-c"
  21027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21028. printf %s "checking for Cocoa framework... " >&6; }
  21029. have_cocoa=no
  21030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21031. /* end confdefs.h. */
  21032. #import <Cocoa/Cocoa.h>
  21033. int
  21034. main (void)
  21035. {
  21036. ;
  21037. return 0;
  21038. }
  21039. _ACEOF
  21040. if ac_fn_c_try_compile "$LINENO"
  21041. then :
  21042. have_cocoa=yes
  21043. fi
  21044. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21046. printf "%s\n" "$have_cocoa" >&6; }
  21047. CFLAGS="$save_CFLAGS"
  21048. if test x$have_cocoa = xyes; then
  21049. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21050. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21051. SUMMARY_video="${SUMMARY_video} cocoa"
  21052. have_video=yes
  21053. fi
  21054. fi
  21055. }
  21056. CheckMETAL()
  21057. {
  21058. # Check whether --enable-video-metal was given.
  21059. if test ${enable_video_metal+y}
  21060. then :
  21061. enableval=$enable_video_metal;
  21062. else $as_nop
  21063. enable_video_metal=yes
  21064. fi
  21065. # Check whether --enable-render-metal was given.
  21066. if test ${enable_render_metal+y}
  21067. then :
  21068. enableval=$enable_render_metal;
  21069. else $as_nop
  21070. enable_render_metal=yes
  21071. fi
  21072. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21073. save_CFLAGS="$CFLAGS"
  21074. CFLAGS="$CFLAGS -x objective-c"
  21075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21076. printf %s "checking for Metal framework... " >&6; }
  21077. have_metal=no
  21078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21079. /* end confdefs.h. */
  21080. #import <Cocoa/Cocoa.h>
  21081. #import <Metal/Metal.h>
  21082. #import <QuartzCore/CAMetalLayer.h>
  21083. #if TARGET_CPU_X86
  21084. #error Metal doesn't work on this configuration
  21085. #endif
  21086. int
  21087. main (void)
  21088. {
  21089. ;
  21090. return 0;
  21091. }
  21092. _ACEOF
  21093. if ac_fn_c_try_compile "$LINENO"
  21094. then :
  21095. have_metal=yes
  21096. fi
  21097. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21098. CFLAGS="$save_CFLAGS"
  21099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21100. printf "%s\n" "$have_metal" >&6; }
  21101. if test x$have_metal = xyes; then
  21102. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21103. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21104. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21105. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21106. fi
  21107. SUMMARY_video="${SUMMARY_video} metal"
  21108. else
  21109. enable_video_metal=no
  21110. enable_render_metal=no
  21111. fi
  21112. fi
  21113. }
  21114. CheckKMSDRM()
  21115. {
  21116. # Check whether --enable-video-kmsdrm was given.
  21117. if test ${enable_video_kmsdrm+y}
  21118. then :
  21119. enableval=$enable_video_kmsdrm;
  21120. else $as_nop
  21121. enable_video_kmsdrm=yes
  21122. fi
  21123. if test x$enable_video = xyes && \
  21124. test x$enable_video_kmsdrm = xyes && \
  21125. test x$video_opengl_egl = xyes; then
  21126. video_kmsdrm=no
  21127. pkg_failed=no
  21128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21129. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21130. if test -n "$LIBDRM_CFLAGS"; then
  21131. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21132. elif test -n "$PKG_CONFIG"; then
  21133. if test -n "$PKG_CONFIG" && \
  21134. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21135. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21136. ac_status=$?
  21137. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21138. test $ac_status = 0; }; then
  21139. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21140. test "x$?" != "x0" && pkg_failed=yes
  21141. else
  21142. pkg_failed=yes
  21143. fi
  21144. else
  21145. pkg_failed=untried
  21146. fi
  21147. if test -n "$LIBDRM_LIBS"; then
  21148. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21149. elif test -n "$PKG_CONFIG"; then
  21150. if test -n "$PKG_CONFIG" && \
  21151. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21152. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21153. ac_status=$?
  21154. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21155. test $ac_status = 0; }; then
  21156. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  21157. test "x$?" != "x0" && pkg_failed=yes
  21158. else
  21159. pkg_failed=yes
  21160. fi
  21161. else
  21162. pkg_failed=untried
  21163. fi
  21164. if test $pkg_failed = yes; then
  21165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21166. printf "%s\n" "no" >&6; }
  21167. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21168. _pkg_short_errors_supported=yes
  21169. else
  21170. _pkg_short_errors_supported=no
  21171. fi
  21172. if test $_pkg_short_errors_supported = yes; then
  21173. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21174. else
  21175. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21176. fi
  21177. # Put the nasty error message in config.log where it belongs
  21178. echo "$LIBDRM_PKG_ERRORS" >&5
  21179. libdrm_avail=no
  21180. elif test $pkg_failed = untried; then
  21181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21182. printf "%s\n" "no" >&6; }
  21183. libdrm_avail=no
  21184. else
  21185. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  21186. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  21187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21188. printf "%s\n" "yes" >&6; }
  21189. libdrm_avail=yes
  21190. fi
  21191. pkg_failed=no
  21192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  21193. printf %s "checking for gbm >= 11.1.0... " >&6; }
  21194. if test -n "$LIBGBM_CFLAGS"; then
  21195. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  21196. elif test -n "$PKG_CONFIG"; then
  21197. if test -n "$PKG_CONFIG" && \
  21198. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21199. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21200. ac_status=$?
  21201. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21202. test $ac_status = 0; }; then
  21203. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  21204. test "x$?" != "x0" && pkg_failed=yes
  21205. else
  21206. pkg_failed=yes
  21207. fi
  21208. else
  21209. pkg_failed=untried
  21210. fi
  21211. if test -n "$LIBGBM_LIBS"; then
  21212. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  21213. elif test -n "$PKG_CONFIG"; then
  21214. if test -n "$PKG_CONFIG" && \
  21215. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21216. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21217. ac_status=$?
  21218. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21219. test $ac_status = 0; }; then
  21220. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  21221. test "x$?" != "x0" && pkg_failed=yes
  21222. else
  21223. pkg_failed=yes
  21224. fi
  21225. else
  21226. pkg_failed=untried
  21227. fi
  21228. if test $pkg_failed = yes; then
  21229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21230. printf "%s\n" "no" >&6; }
  21231. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21232. _pkg_short_errors_supported=yes
  21233. else
  21234. _pkg_short_errors_supported=no
  21235. fi
  21236. if test $_pkg_short_errors_supported = yes; then
  21237. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21238. else
  21239. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21240. fi
  21241. # Put the nasty error message in config.log where it belongs
  21242. echo "$LIBGBM_PKG_ERRORS" >&5
  21243. libgbm_avail=no
  21244. elif test $pkg_failed = untried; then
  21245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21246. printf "%s\n" "no" >&6; }
  21247. libgbm_avail=no
  21248. else
  21249. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  21250. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  21251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21252. printf "%s\n" "yes" >&6; }
  21253. libgbm_avail=yes
  21254. fi
  21255. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  21256. video_kmsdrm=yes
  21257. fi
  21258. if test x$video_kmsdrm = xyes; then
  21259. # Check whether --enable-kmsdrm-shared was given.
  21260. if test ${enable_kmsdrm_shared+y}
  21261. then :
  21262. enableval=$enable_kmsdrm_shared;
  21263. else $as_nop
  21264. enable_kmsdrm_shared=yes
  21265. fi
  21266. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  21267. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  21268. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  21269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  21270. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  21271. kmsdrm_shared=no
  21272. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  21273. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  21274. if test x$have_loadso != xyes && \
  21275. test x$enable_kmsdrm_shared = xyes; then
  21276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  21277. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  21278. fi
  21279. if test x$have_loadso = xyes && \
  21280. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  21281. kmsdrm_shared=yes
  21282. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  21283. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  21284. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  21285. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  21286. else
  21287. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  21288. SUMMARY_video="${SUMMARY_video} kmsdrm"
  21289. fi
  21290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  21291. printf "%s\n" "$kmsdrm_shared" >&6; }
  21292. if test x$kmsdrm_shared = xyes; then
  21293. echo "-- dynamic libdrm -> $drm_lib"
  21294. echo "-- dynamic libgbm -> $gbm_lib"
  21295. fi
  21296. have_video=yes
  21297. fi
  21298. fi
  21299. }
  21300. CheckDummyVideo()
  21301. {
  21302. # Check whether --enable-video-dummy was given.
  21303. if test ${enable_video_dummy+y}
  21304. then :
  21305. enableval=$enable_video_dummy;
  21306. else $as_nop
  21307. enable_video_dummy=yes
  21308. fi
  21309. if test x$enable_video_dummy = xyes; then
  21310. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  21311. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  21312. have_video=yes
  21313. SUMMARY_video="${SUMMARY_video} dummy"
  21314. fi
  21315. }
  21316. CheckOffscreenVideo()
  21317. {
  21318. # Check whether --enable-video-offscreen was given.
  21319. if test ${enable_video_offscreen+y}
  21320. then :
  21321. enableval=$enable_video_offscreen;
  21322. else $as_nop
  21323. enable_video_offscreen=yes
  21324. fi
  21325. if test x$enable_video_offscreen = xyes; then
  21326. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  21327. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  21328. have_video=yes
  21329. SUMMARY_video="${SUMMARY_video} offscreen"
  21330. fi
  21331. }
  21332. # Check whether --enable-video-opengl was given.
  21333. if test ${enable_video_opengl+y}
  21334. then :
  21335. enableval=$enable_video_opengl;
  21336. else $as_nop
  21337. enable_video_opengl=yes
  21338. fi
  21339. CheckGLX()
  21340. {
  21341. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  21343. printf %s "checking for GLX support... " >&6; }
  21344. video_opengl_glx=no
  21345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21346. /* end confdefs.h. */
  21347. #include <GL/glx.h>
  21348. int
  21349. main (void)
  21350. {
  21351. ;
  21352. return 0;
  21353. }
  21354. _ACEOF
  21355. if ac_fn_c_try_compile "$LINENO"
  21356. then :
  21357. video_opengl_glx=yes
  21358. fi
  21359. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  21361. printf "%s\n" "$video_opengl_glx" >&6; }
  21362. if test x$video_opengl_glx = xyes; then
  21363. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21364. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  21365. fi
  21366. fi
  21367. }
  21368. # Check whether --enable-video-opengles was given.
  21369. if test ${enable_video_opengles+y}
  21370. then :
  21371. enableval=$enable_video_opengles;
  21372. else $as_nop
  21373. enable_video_opengles=yes
  21374. fi
  21375. # Check whether --enable-video-opengles1 was given.
  21376. if test ${enable_video_opengles1+y}
  21377. then :
  21378. enableval=$enable_video_opengles1;
  21379. else $as_nop
  21380. enable_video_opengles1=yes
  21381. fi
  21382. # Check whether --enable-video-opengles2 was given.
  21383. if test ${enable_video_opengles2+y}
  21384. then :
  21385. enableval=$enable_video_opengles2;
  21386. else $as_nop
  21387. enable_video_opengles2=yes
  21388. fi
  21389. CheckEGL()
  21390. {
  21391. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21393. printf %s "checking for EGL support... " >&6; }
  21394. video_opengl_egl=no
  21395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21396. /* end confdefs.h. */
  21397. #define LINUX
  21398. #define EGL_API_FB
  21399. #define MESA_EGL_NO_X11_HEADERS
  21400. #define EGL_NO_X11
  21401. #include <EGL/egl.h>
  21402. #include <EGL/eglext.h>
  21403. int
  21404. main (void)
  21405. {
  21406. ;
  21407. return 0;
  21408. }
  21409. _ACEOF
  21410. if ac_fn_c_try_compile "$LINENO"
  21411. then :
  21412. video_opengl_egl=yes
  21413. fi
  21414. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21416. printf "%s\n" "$video_opengl_egl" >&6; }
  21417. if test x$video_opengl_egl = xyes; then
  21418. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21419. fi
  21420. fi
  21421. }
  21422. CheckOpenGL()
  21423. {
  21424. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  21426. printf %s "checking for OpenGL headers... " >&6; }
  21427. video_opengl=no
  21428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21429. /* end confdefs.h. */
  21430. #include <GL/gl.h>
  21431. #include <GL/glext.h>
  21432. int
  21433. main (void)
  21434. {
  21435. ;
  21436. return 0;
  21437. }
  21438. _ACEOF
  21439. if ac_fn_c_try_compile "$LINENO"
  21440. then :
  21441. video_opengl=yes
  21442. fi
  21443. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  21445. printf "%s\n" "$video_opengl" >&6; }
  21446. if test x$video_opengl = xyes; then
  21447. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21448. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21449. SUMMARY_video="${SUMMARY_video} opengl"
  21450. fi
  21451. fi
  21452. }
  21453. CheckOpenGLES()
  21454. {
  21455. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21456. if test x$enable_video_opengles1 = xyes; then
  21457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  21458. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  21459. video_opengles_v1=no
  21460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21461. /* end confdefs.h. */
  21462. #include <GLES/gl.h>
  21463. #include <GLES/glext.h>
  21464. int
  21465. main (void)
  21466. {
  21467. ;
  21468. return 0;
  21469. }
  21470. _ACEOF
  21471. if ac_fn_c_try_compile "$LINENO"
  21472. then :
  21473. video_opengles_v1=yes
  21474. fi
  21475. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  21477. printf "%s\n" "$video_opengles_v1" >&6; }
  21478. if test x$video_opengles_v1 = xyes; then
  21479. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21480. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21481. SUMMARY_video="${SUMMARY_video} opengl_es1"
  21482. fi
  21483. fi
  21484. if test x$enable_video_opengles2 = xyes; then
  21485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21486. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21487. video_opengles_v2=no
  21488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21489. /* end confdefs.h. */
  21490. #include <GLES2/gl2.h>
  21491. #include <GLES2/gl2ext.h>
  21492. int
  21493. main (void)
  21494. {
  21495. ;
  21496. return 0;
  21497. }
  21498. _ACEOF
  21499. if ac_fn_c_try_compile "$LINENO"
  21500. then :
  21501. video_opengles_v2=yes
  21502. fi
  21503. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21505. printf "%s\n" "$video_opengles_v2" >&6; }
  21506. if test x$video_opengles_v2 = xyes; then
  21507. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21508. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21509. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21510. fi
  21511. fi
  21512. fi
  21513. }
  21514. CheckWINDOWSGL()
  21515. {
  21516. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21517. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21518. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  21519. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21520. SUMMARY_video="${SUMMARY_video} opengl"
  21521. fi
  21522. }
  21523. CheckWINDOWSGLES()
  21524. {
  21525. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21527. printf %s "checking for EGL support... " >&6; }
  21528. video_opengl_egl=no
  21529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21530. /* end confdefs.h. */
  21531. #include <EGL/egl.h>
  21532. int
  21533. main (void)
  21534. {
  21535. ;
  21536. return 0;
  21537. }
  21538. _ACEOF
  21539. if ac_fn_c_try_compile "$LINENO"
  21540. then :
  21541. video_opengl_egl=yes
  21542. fi
  21543. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21545. printf "%s\n" "$video_opengl_egl" >&6; }
  21546. if test x$video_opengl_egl = xyes; then
  21547. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21548. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21549. SUMMARY_video="${SUMMARY_video} opengl_es1"
  21550. fi
  21551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21552. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21553. video_opengles_v2=no
  21554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21555. /* end confdefs.h. */
  21556. #include <GLES2/gl2.h>
  21557. #include <GLES2/gl2ext.h>
  21558. int
  21559. main (void)
  21560. {
  21561. ;
  21562. return 0;
  21563. }
  21564. _ACEOF
  21565. if ac_fn_c_try_compile "$LINENO"
  21566. then :
  21567. video_opengles_v2=yes
  21568. fi
  21569. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21571. printf "%s\n" "$video_opengles_v2" >&6; }
  21572. if test x$video_opengles_v2 = xyes; then
  21573. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21574. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21575. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21576. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21577. fi
  21578. fi
  21579. }
  21580. CheckHaikuGL()
  21581. {
  21582. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21583. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21584. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  21585. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21586. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  21587. SUMMARY_video="${SUMMARY_video} opengl"
  21588. fi
  21589. }
  21590. CheckMacGL()
  21591. {
  21592. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21593. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21594. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  21595. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21596. SUMMARY_video="${SUMMARY_video} opengl"
  21597. fi
  21598. }
  21599. CheckMacGLES()
  21600. {
  21601. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21602. video_opengl_egl=yes
  21603. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21604. video_opengles_v2=yes
  21605. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21606. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21607. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21608. fi
  21609. }
  21610. CheckEmscriptenGLES()
  21611. {
  21612. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21614. printf %s "checking for EGL support... " >&6; }
  21615. video_opengl_egl=no
  21616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21617. /* end confdefs.h. */
  21618. #include <EGL/egl.h>
  21619. int
  21620. main (void)
  21621. {
  21622. ;
  21623. return 0;
  21624. }
  21625. _ACEOF
  21626. if ac_fn_c_try_compile "$LINENO"
  21627. then :
  21628. video_opengl_egl=yes
  21629. fi
  21630. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21632. printf "%s\n" "$video_opengl_egl" >&6; }
  21633. if test x$video_opengl_egl = xyes; then
  21634. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21635. fi
  21636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21637. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21638. video_opengles_v2=no
  21639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21640. /* end confdefs.h. */
  21641. #include <GLES2/gl2.h>
  21642. #include <GLES2/gl2ext.h>
  21643. int
  21644. main (void)
  21645. {
  21646. ;
  21647. return 0;
  21648. }
  21649. _ACEOF
  21650. if ac_fn_c_try_compile "$LINENO"
  21651. then :
  21652. video_opengles_v2=yes
  21653. fi
  21654. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21656. printf "%s\n" "$video_opengles_v2" >&6; }
  21657. if test x$video_opengles_v2 = xyes; then
  21658. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21659. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21660. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21661. fi
  21662. fi
  21663. }
  21664. # Check whether --enable-video-vulkan was given.
  21665. if test ${enable_video_vulkan+y}
  21666. then :
  21667. enableval=$enable_video_vulkan;
  21668. else $as_nop
  21669. enable_video_vulkan=yes
  21670. fi
  21671. CheckVulkan()
  21672. {
  21673. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  21674. case "$host" in
  21675. *-*-android*)
  21676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21677. /* end confdefs.h. */
  21678. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  21679. #error Vulkan doesn't work on this configuration
  21680. #endif
  21681. int
  21682. main (void)
  21683. {
  21684. ;
  21685. return 0;
  21686. }
  21687. _ACEOF
  21688. if ac_fn_c_try_compile "$LINENO"
  21689. then :
  21690. else $as_nop
  21691. enable_video_vulkan=no
  21692. fi
  21693. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21694. ;;
  21695. *-*-darwin*)
  21696. save_CFLAGS="$CFLAGS"
  21697. CFLAGS="$CFLAGS -x objective-c"
  21698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21699. /* end confdefs.h. */
  21700. #include <Cocoa/Cocoa.h>
  21701. #include <Metal/Metal.h>
  21702. #include <QuartzCore/CAMetalLayer.h>
  21703. #if TARGET_CPU_X86
  21704. #error Vulkan doesn't work on this configuration
  21705. #endif
  21706. int
  21707. main (void)
  21708. {
  21709. ;
  21710. return 0;
  21711. }
  21712. _ACEOF
  21713. if ac_fn_c_try_compile "$LINENO"
  21714. then :
  21715. else $as_nop
  21716. enable_video_vulkan=no
  21717. fi
  21718. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21719. CFLAGS="$save_CFLAGS"
  21720. ;;
  21721. *)
  21722. ;;
  21723. esac
  21724. if test x$enable_video_vulkan = xno; then
  21725. # For reasons I am totally unable to see, I get an undefined macro error if
  21726. # I put this in the AC_TRY_COMPILE.
  21727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  21728. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  21729. fi
  21730. fi
  21731. if test x$have_loadso != xyes; then
  21732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  21733. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  21734. enable_video_vulkan=no
  21735. fi
  21736. if test x$enable_video_vulkan = xyes; then
  21737. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  21738. SUMMARY_video="${SUMMARY_video} vulkan"
  21739. fi
  21740. }
  21741. CheckInputEvents()
  21742. {
  21743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  21744. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  21745. use_input_events=no
  21746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21747. /* end confdefs.h. */
  21748. #include <linux/input.h>
  21749. int
  21750. main (void)
  21751. {
  21752. #ifndef EVIOCGNAME
  21753. #error EVIOCGNAME() ioctl not available
  21754. #endif
  21755. ;
  21756. return 0;
  21757. }
  21758. _ACEOF
  21759. if ac_fn_c_try_compile "$LINENO"
  21760. then :
  21761. use_input_events=yes
  21762. fi
  21763. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  21765. printf "%s\n" "$use_input_events" >&6; }
  21766. if test x$use_input_events = xyes; then
  21767. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  21768. SUMMARY_input="${SUMMARY_input} linuxev"
  21769. fi
  21770. }
  21771. CheckInputKD()
  21772. {
  21773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  21774. printf %s "checking for Linux kd.h... " >&6; }
  21775. use_input_kd=no
  21776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21777. /* end confdefs.h. */
  21778. #include <linux/kd.h>
  21779. #include <linux/keyboard.h>
  21780. #include <sys/ioctl.h>
  21781. int
  21782. main (void)
  21783. {
  21784. struct kbentry kbe;
  21785. kbe.kb_table = KG_CTRL;
  21786. ioctl(0, KDGKBENT, &kbe);
  21787. ;
  21788. return 0;
  21789. }
  21790. _ACEOF
  21791. if ac_fn_c_try_compile "$LINENO"
  21792. then :
  21793. use_input_kd=yes
  21794. fi
  21795. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  21797. printf "%s\n" "$use_input_kd" >&6; }
  21798. if test x$use_input_kd = xyes; then
  21799. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  21800. SUMMARY_input="${SUMMARY_input} linuxkd"
  21801. fi
  21802. }
  21803. CheckInputKBIO()
  21804. {
  21805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  21806. printf %s "checking for FreeBSD kbio.h... " >&6; }
  21807. use_input_kbio=no
  21808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21809. /* end confdefs.h. */
  21810. #include <sys/kbio.h>
  21811. #include <sys/ioctl.h>
  21812. int
  21813. main (void)
  21814. {
  21815. accentmap_t accTable;
  21816. ioctl(0, KDENABIO, 1);
  21817. ;
  21818. return 0;
  21819. }
  21820. _ACEOF
  21821. if ac_fn_c_try_compile "$LINENO"
  21822. then :
  21823. use_input_kbio=yes
  21824. fi
  21825. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  21827. printf "%s\n" "$use_input_kbio" >&6; }
  21828. if test x$use_input_kbio = xyes; then
  21829. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  21830. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  21831. fi
  21832. }
  21833. CheckInputWSCONS()
  21834. {
  21835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  21836. printf %s "checking for OpenBSD wscons... " >&6; }
  21837. use_input_wscons=no
  21838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21839. /* end confdefs.h. */
  21840. #include <sys/time.h>
  21841. #include <dev/wscons/wsconsio.h>
  21842. #include <dev/wscons/wsksymdef.h>
  21843. #include <dev/wscons/wsksymvar.h>
  21844. #include <sys/ioctl.h>
  21845. int
  21846. main (void)
  21847. {
  21848. struct wskbd_map_data data;
  21849. ioctl(0, WSKBDIO_GETMAP, &data);
  21850. ;
  21851. return 0;
  21852. }
  21853. _ACEOF
  21854. if ac_fn_c_try_compile "$LINENO"
  21855. then :
  21856. use_input_wscons=yes
  21857. fi
  21858. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  21860. printf "%s\n" "$use_input_wscons" >&6; }
  21861. if test x$use_input_wscons = xyes; then
  21862. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  21863. SUMMARY_input="${SUMMARY_input} wscons"
  21864. fi
  21865. }
  21866. CheckLibUDev()
  21867. {
  21868. # Check whether --enable-libudev was given.
  21869. if test ${enable_libudev+y}
  21870. then :
  21871. enableval=$enable_libudev;
  21872. else $as_nop
  21873. enable_libudev=yes
  21874. fi
  21875. if test x$enable_libudev = xyes; then
  21876. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  21877. if test "x$ac_cv_header_libudev_h" = xyes
  21878. then :
  21879. have_libudev_h_hdr=yes
  21880. else $as_nop
  21881. have_libudev_h_hdr=no
  21882. fi
  21883. if test x$have_libudev_h_hdr = xyes; then
  21884. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  21885. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21886. if test x$udev_lib != x; then
  21887. echo "-- dynamic udev -> $udev_lib"
  21888. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  21889. fi
  21890. fi
  21891. fi
  21892. }
  21893. CheckDBus()
  21894. {
  21895. # Check whether --enable-dbus was given.
  21896. if test ${enable_dbus+y}
  21897. then :
  21898. enableval=$enable_dbus;
  21899. else $as_nop
  21900. enable_dbus=yes
  21901. fi
  21902. if test x$enable_dbus = xyes; then
  21903. pkg_failed=no
  21904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  21905. printf %s "checking for dbus-1... " >&6; }
  21906. if test -n "$DBUS_CFLAGS"; then
  21907. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  21908. elif test -n "$PKG_CONFIG"; then
  21909. if test -n "$PKG_CONFIG" && \
  21910. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  21911. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  21912. ac_status=$?
  21913. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21914. test $ac_status = 0; }; then
  21915. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  21916. test "x$?" != "x0" && pkg_failed=yes
  21917. else
  21918. pkg_failed=yes
  21919. fi
  21920. else
  21921. pkg_failed=untried
  21922. fi
  21923. if test -n "$DBUS_LIBS"; then
  21924. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  21925. elif test -n "$PKG_CONFIG"; then
  21926. if test -n "$PKG_CONFIG" && \
  21927. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  21928. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  21929. ac_status=$?
  21930. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21931. test $ac_status = 0; }; then
  21932. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  21933. test "x$?" != "x0" && pkg_failed=yes
  21934. else
  21935. pkg_failed=yes
  21936. fi
  21937. else
  21938. pkg_failed=untried
  21939. fi
  21940. if test $pkg_failed = yes; then
  21941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21942. printf "%s\n" "no" >&6; }
  21943. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21944. _pkg_short_errors_supported=yes
  21945. else
  21946. _pkg_short_errors_supported=no
  21947. fi
  21948. if test $_pkg_short_errors_supported = yes; then
  21949. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  21950. else
  21951. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  21952. fi
  21953. # Put the nasty error message in config.log where it belongs
  21954. echo "$DBUS_PKG_ERRORS" >&5
  21955. have_dbus=no
  21956. elif test $pkg_failed = untried; then
  21957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21958. printf "%s\n" "no" >&6; }
  21959. have_dbus=no
  21960. else
  21961. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  21962. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  21963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21964. printf "%s\n" "yes" >&6; }
  21965. have_dbus=yes
  21966. fi
  21967. save_CPPFLAGS="$CPPFLAGS"
  21968. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  21969. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  21970. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  21971. then :
  21972. have_dbus_dbus_h_hdr=yes
  21973. else $as_nop
  21974. have_dbus_dbus_h_hdr=no
  21975. fi
  21976. CPPFLAGS="$save_CPPFLAGS"
  21977. if test x$have_dbus_dbus_h_hdr = xyes; then
  21978. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  21979. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  21980. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  21981. fi
  21982. fi
  21983. }
  21984. CheckIME()
  21985. {
  21986. # Check whether --enable-ime was given.
  21987. if test ${enable_ime+y}
  21988. then :
  21989. enableval=$enable_ime;
  21990. else $as_nop
  21991. enable_ime=yes
  21992. fi
  21993. if test x$enable_ime = xyes; then
  21994. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  21995. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  21996. fi
  21997. }
  21998. CheckInotify()
  21999. {
  22000. save_LIBS="$LIBS"
  22001. case "$host" in
  22002. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  22003. ;;
  22004. esac
  22005. for ac_header in sys/inotify.h
  22006. do :
  22007. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22008. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22009. then :
  22010. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22011. have_inotify_inotify_h_hdr=yes
  22012. fi
  22013. done
  22014. for ac_func in inotify_init
  22015. do :
  22016. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22017. if test "x$ac_cv_func_inotify_init" = xyes
  22018. then :
  22019. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22020. have_inotify=yes
  22021. fi
  22022. done
  22023. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22024. if test "x$ac_cv_func_inotify_init1" = xyes
  22025. then :
  22026. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22027. fi
  22028. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22029. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22030. case "$host" in
  22031. *-*-freebsd*|*-*-dragonfly*)
  22032. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22033. ;;
  22034. esac
  22035. fi
  22036. LIBS="$save_LIBS"
  22037. }
  22038. CheckIBus()
  22039. {
  22040. # Check whether --enable-ibus was given.
  22041. if test ${enable_ibus+y}
  22042. then :
  22043. enableval=$enable_ibus;
  22044. else $as_nop
  22045. enable_ibus=yes
  22046. fi
  22047. if test x$enable_ibus = xyes; then
  22048. pkg_failed=no
  22049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22050. printf %s "checking for ibus-1.0... " >&6; }
  22051. if test -n "$IBUS_CFLAGS"; then
  22052. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22053. elif test -n "$PKG_CONFIG"; then
  22054. if test -n "$PKG_CONFIG" && \
  22055. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22056. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22057. ac_status=$?
  22058. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22059. test $ac_status = 0; }; then
  22060. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22061. test "x$?" != "x0" && pkg_failed=yes
  22062. else
  22063. pkg_failed=yes
  22064. fi
  22065. else
  22066. pkg_failed=untried
  22067. fi
  22068. if test -n "$IBUS_LIBS"; then
  22069. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  22070. elif test -n "$PKG_CONFIG"; then
  22071. if test -n "$PKG_CONFIG" && \
  22072. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22073. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22074. ac_status=$?
  22075. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22076. test $ac_status = 0; }; then
  22077. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  22078. test "x$?" != "x0" && pkg_failed=yes
  22079. else
  22080. pkg_failed=yes
  22081. fi
  22082. else
  22083. pkg_failed=untried
  22084. fi
  22085. if test $pkg_failed = yes; then
  22086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22087. printf "%s\n" "no" >&6; }
  22088. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22089. _pkg_short_errors_supported=yes
  22090. else
  22091. _pkg_short_errors_supported=no
  22092. fi
  22093. if test $_pkg_short_errors_supported = yes; then
  22094. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22095. else
  22096. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22097. fi
  22098. # Put the nasty error message in config.log where it belongs
  22099. echo "$IBUS_PKG_ERRORS" >&5
  22100. have_ibus=no
  22101. elif test $pkg_failed = untried; then
  22102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22103. printf "%s\n" "no" >&6; }
  22104. have_ibus=no
  22105. else
  22106. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22107. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22109. printf "%s\n" "yes" >&6; }
  22110. have_ibus=yes
  22111. fi
  22112. save_CPPFLAGS="$CPPFLAGS"
  22113. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22114. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22115. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22116. then :
  22117. have_ibus_ibus_h_hdr=yes
  22118. else $as_nop
  22119. have_ibus_ibus_h_hdr=no
  22120. fi
  22121. CPPFLAGS="$save_CPPFLAGS"
  22122. if test x$have_ibus_ibus_h_hdr = xyes; then
  22123. if test x$enable_ime != xyes; then
  22124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22125. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22126. have_ibus_ibus_h_hdr=no
  22127. elif test x$enable_dbus != xyes; then
  22128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  22129. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  22130. have_ibus_ibus_h_hdr=no
  22131. elif test x$have_inotify_inotify_h_hdr != xyes; then
  22132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  22133. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  22134. have_ibus_ibus_h_hdr=no
  22135. else
  22136. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  22137. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  22138. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  22139. fi
  22140. fi
  22141. fi
  22142. }
  22143. CheckFcitx()
  22144. {
  22145. # Check whether --enable-fcitx was given.
  22146. if test ${enable_fcitx+y}
  22147. then :
  22148. enableval=$enable_fcitx;
  22149. else $as_nop
  22150. enable_fcitx=yes
  22151. fi
  22152. if test x$enable_fcitx = xyes; then
  22153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  22154. printf %s "checking for fcitx support... " >&6; }
  22155. have_fcitx=no
  22156. if test x$enable_ime != xyes; then
  22157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  22158. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  22159. elif test x$have_dbus_dbus_h_hdr != xyes; then
  22160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  22161. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  22162. else
  22163. have_fcitx=yes
  22164. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  22165. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  22166. fi
  22167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  22168. printf "%s\n" "$have_fcitx" >&6; }
  22169. fi
  22170. }
  22171. CheckJoystickMFI()
  22172. {
  22173. # Check whether --enable-joystick-mfi was given.
  22174. if test ${enable_joystick_mfi+y}
  22175. then :
  22176. enableval=$enable_joystick_mfi;
  22177. else $as_nop
  22178. enable_joystick_mfi=yes
  22179. fi
  22180. if test x$enable_joystick_mfi = xyes; then
  22181. save_CFLAGS="$CFLAGS"
  22182. save_LDFLAGS="$LDFLAGS"
  22183. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  22184. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  22186. printf %s "checking for GameController framework... " >&6; }
  22187. enable_joystick_mfi=no
  22188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22189. /* end confdefs.h. */
  22190. #include <AvailabilityMacros.h>
  22191. #include <TargetConditionals.h>
  22192. #import <GameController/GameController.h>
  22193. int
  22194. main (void)
  22195. {
  22196. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  22197. #error GameController framework doesn't work on this configuration
  22198. #endif
  22199. #if TARGET_CPU_X86
  22200. #error GameController framework doesn't work on this configuration
  22201. #endif
  22202. ;
  22203. return 0;
  22204. }
  22205. _ACEOF
  22206. if ac_fn_c_try_link "$LINENO"
  22207. then :
  22208. enable_joystick_mfi=yes
  22209. fi
  22210. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22211. conftest$ac_exeext conftest.$ac_ext
  22212. CFLAGS="$save_CFLAGS"
  22213. LDFLAGS="$save_LDFLAGS"
  22214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  22215. printf "%s\n" "$enable_joystick_mfi" >&6; }
  22216. if test x$enable_joystick_mfi = xyes; then
  22217. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22218. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  22219. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22220. fi
  22221. fi
  22222. }
  22223. CheckPTHREAD()
  22224. {
  22225. case "$host" in
  22226. *-*-emscripten*)
  22227. enable_pthreads_default=no
  22228. ;;
  22229. *)
  22230. enable_pthreads_default=yes
  22231. ;;
  22232. esac
  22233. # Check whether --enable-pthreads was given.
  22234. if test ${enable_pthreads+y}
  22235. then :
  22236. enableval=$enable_pthreads;
  22237. else $as_nop
  22238. enable_pthreads=maybe
  22239. fi
  22240. # Check whether --enable-pthread-sem was given.
  22241. if test ${enable_pthread_sem+y}
  22242. then :
  22243. enableval=$enable_pthread_sem;
  22244. else $as_nop
  22245. enable_pthread_sem=maybe
  22246. fi
  22247. if test x$enable_pthreads = xmaybe; then
  22248. enable_pthreads=$enable_pthreads_default
  22249. fi
  22250. if test x$enable_pthread_sem = xmaybe; then
  22251. enable_pthread_sem=$enable_pthreads
  22252. fi
  22253. case "$host" in
  22254. *-*-android*)
  22255. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22256. pthread_lib=""
  22257. ;;
  22258. *-*-linux*|*-*-uclinux*)
  22259. pthread_cflags="-D_REENTRANT"
  22260. pthread_lib="-lpthread"
  22261. ;;
  22262. *-*-bsdi*)
  22263. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22264. pthread_lib=""
  22265. ;;
  22266. *-*-darwin*)
  22267. pthread_cflags="-D_THREAD_SAFE"
  22268. # causes Carbon.p complaints?
  22269. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22270. ;;
  22271. *-*-freebsd*|*-*-dragonfly*)
  22272. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22273. pthread_lib="-pthread"
  22274. ;;
  22275. *-*-netbsd*)
  22276. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22277. pthread_lib="-lpthread"
  22278. ;;
  22279. *-*-openbsd*)
  22280. pthread_cflags="-D_REENTRANT"
  22281. pthread_lib="-lpthread"
  22282. ;;
  22283. *-*-solaris2.9)
  22284. # From Solaris 9+, posix4's preferred name is rt.
  22285. pthread_cflags="-D_REENTRANT"
  22286. pthread_lib="-lpthread -lrt"
  22287. ;;
  22288. *-*-solaris2.10)
  22289. # Solaris 10+ merged pthread into libc.
  22290. pthread_cflags="-D_REENTRANT"
  22291. pthread_lib="-lrt"
  22292. ;;
  22293. *-*-solaris*)
  22294. # Solaris 11+ merged rt into libc.
  22295. pthread_cflags="-D_REENTRANT"
  22296. pthread_lib=""
  22297. ;;
  22298. *-*-sysv5*)
  22299. pthread_cflags="-D_REENTRANT -Kthread"
  22300. pthread_lib=""
  22301. ;;
  22302. *-*-aix*)
  22303. pthread_cflags="-D_REENTRANT -mthreads"
  22304. pthread_lib="-lpthread"
  22305. ;;
  22306. *-*-hpux11*)
  22307. pthread_cflags="-D_REENTRANT"
  22308. pthread_lib="-L/usr/lib -lpthread"
  22309. ;;
  22310. *-*-haiku*)
  22311. pthread_cflags="-D_REENTRANT"
  22312. pthread_lib=""
  22313. ;;
  22314. *-*-emscripten*)
  22315. pthread_cflags="-D_REENTRANT -pthread"
  22316. pthread_lib="-pthread"
  22317. ;;
  22318. *)
  22319. pthread_cflags="-D_REENTRANT"
  22320. pthread_lib="-lpthread"
  22321. ;;
  22322. esac
  22323. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  22324. # Save the original compiler flags and libraries
  22325. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  22326. # Add the pthread compiler flags and libraries
  22327. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  22328. # Check to see if we have pthread support on this system
  22329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  22330. printf %s "checking for pthreads... " >&6; }
  22331. use_pthreads=no
  22332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22333. /* end confdefs.h. */
  22334. #include <pthread.h>
  22335. int
  22336. main (void)
  22337. {
  22338. pthread_attr_t type;
  22339. pthread_attr_init(&type);
  22340. ;
  22341. return 0;
  22342. }
  22343. _ACEOF
  22344. if ac_fn_c_try_link "$LINENO"
  22345. then :
  22346. use_pthreads=yes
  22347. fi
  22348. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22349. conftest$ac_exeext conftest.$ac_ext
  22350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  22351. printf "%s\n" "$use_pthreads" >&6; }
  22352. # Restore the compiler flags and libraries
  22353. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  22354. # Do futher testing if we have pthread support...
  22355. if test x$use_pthreads = xyes; then
  22356. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  22357. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  22358. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  22359. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  22360. # Save the original compiler flags and libraries
  22361. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  22362. # Add the pthread compiler flags and libraries
  22363. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  22364. # Check to see if recursive mutexes are available
  22365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  22366. printf %s "checking for recursive mutexes... " >&6; }
  22367. has_recursive_mutexes=no
  22368. if test x$has_recursive_mutexes = xno; then
  22369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22370. /* end confdefs.h. */
  22371. #define _GNU_SOURCE 1
  22372. #include <pthread.h>
  22373. int
  22374. main (void)
  22375. {
  22376. pthread_mutexattr_t attr;
  22377. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  22378. ;
  22379. return 0;
  22380. }
  22381. _ACEOF
  22382. if ac_fn_c_try_link "$LINENO"
  22383. then :
  22384. has_recursive_mutexes=yes
  22385. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  22386. fi
  22387. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22388. conftest$ac_exeext conftest.$ac_ext
  22389. fi
  22390. if test x$has_recursive_mutexes = xno; then
  22391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22392. /* end confdefs.h. */
  22393. #define _GNU_SOURCE 1
  22394. #include <pthread.h>
  22395. int
  22396. main (void)
  22397. {
  22398. pthread_mutexattr_t attr;
  22399. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  22400. ;
  22401. return 0;
  22402. }
  22403. _ACEOF
  22404. if ac_fn_c_try_link "$LINENO"
  22405. then :
  22406. has_recursive_mutexes=yes
  22407. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  22408. fi
  22409. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22410. conftest$ac_exeext conftest.$ac_ext
  22411. fi
  22412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  22413. printf "%s\n" "$has_recursive_mutexes" >&6; }
  22414. # Check to see if pthread semaphore support is missing
  22415. if test x$enable_pthread_sem = xyes; then
  22416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  22417. printf %s "checking for pthread semaphores... " >&6; }
  22418. have_pthread_sem=no
  22419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22420. /* end confdefs.h. */
  22421. #include <pthread.h>
  22422. #include <semaphore.h>
  22423. int
  22424. main (void)
  22425. {
  22426. ;
  22427. return 0;
  22428. }
  22429. _ACEOF
  22430. if ac_fn_c_try_compile "$LINENO"
  22431. then :
  22432. have_pthread_sem=yes
  22433. fi
  22434. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  22436. printf "%s\n" "$have_pthread_sem" >&6; }
  22437. fi
  22438. if test x$have_pthread_sem = xyes; then
  22439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  22440. printf %s "checking for sem_timedwait... " >&6; }
  22441. have_sem_timedwait=no
  22442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22443. /* end confdefs.h. */
  22444. #include <pthread.h>
  22445. #include <semaphore.h>
  22446. int
  22447. main (void)
  22448. {
  22449. sem_timedwait(NULL, NULL);
  22450. ;
  22451. return 0;
  22452. }
  22453. _ACEOF
  22454. if ac_fn_c_try_link "$LINENO"
  22455. then :
  22456. have_sem_timedwait=yes
  22457. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  22458. fi
  22459. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22460. conftest$ac_exeext conftest.$ac_ext
  22461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  22462. printf "%s\n" "$have_sem_timedwait" >&6; }
  22463. fi
  22464. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  22465. "
  22466. if test "x$ac_cv_header_pthread_np_h" = xyes
  22467. then :
  22468. have_pthread_np_h=yes
  22469. else $as_nop
  22470. have_pthread_np_h=no
  22471. fi
  22472. if test x$have_pthread_np_h = xyes; then
  22473. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  22474. fi
  22475. # Check to see if pthread naming is available
  22476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  22477. printf %s "checking for pthread_setname_np... " >&6; }
  22478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22479. /* end confdefs.h. */
  22480. /* Override any GCC internal prototype to avoid an error.
  22481. Use char because int might match the return type of a GCC
  22482. builtin and then its argument prototype would still apply. */
  22483. char pthread_setname_np ();
  22484. int
  22485. main (void)
  22486. {
  22487. return pthread_setname_np ();
  22488. ;
  22489. return 0;
  22490. }
  22491. _ACEOF
  22492. if ac_fn_c_try_link "$LINENO"
  22493. then :
  22494. has_pthread_setname_np=yes
  22495. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  22496. else $as_nop
  22497. has_pthread_setname_np=no
  22498. fi
  22499. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22500. conftest$ac_exeext conftest.$ac_ext
  22501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  22502. printf "%s\n" "$has_pthread_setname_np" >&6; }
  22503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  22504. printf %s "checking for pthread_set_name_np... " >&6; }
  22505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22506. /* end confdefs.h. */
  22507. /* Override any GCC internal prototype to avoid an error.
  22508. Use char because int might match the return type of a GCC
  22509. builtin and then its argument prototype would still apply. */
  22510. char pthread_set_name_np ();
  22511. int
  22512. main (void)
  22513. {
  22514. return pthread_set_name_np ();
  22515. ;
  22516. return 0;
  22517. }
  22518. _ACEOF
  22519. if ac_fn_c_try_link "$LINENO"
  22520. then :
  22521. has_pthread_set_name_np=yes
  22522. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  22523. else $as_nop
  22524. has_pthread_set_name_np=no
  22525. fi
  22526. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22527. conftest$ac_exeext conftest.$ac_ext
  22528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  22529. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  22530. # Restore the compiler flags and libraries
  22531. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  22532. # Basic thread creation functions
  22533. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  22534. # Semaphores
  22535. # We can fake these with mutexes and condition variables if necessary
  22536. if test x$have_pthread_sem = xyes; then
  22537. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  22538. else
  22539. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  22540. fi
  22541. # Mutexes
  22542. # We can fake these with semaphores if necessary
  22543. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  22544. # Condition variables
  22545. # We can fake these with semaphores and mutexes if necessary
  22546. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  22547. # Thread local storage
  22548. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  22549. have_threads=yes
  22550. fi
  22551. fi
  22552. }
  22553. CheckWINDOWS()
  22554. {
  22555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  22556. printf %s "checking Windows compiler... " >&6; }
  22557. have_win32_gcc=no
  22558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22559. /* end confdefs.h. */
  22560. #include <windows.h>
  22561. int
  22562. main (void)
  22563. {
  22564. ;
  22565. return 0;
  22566. }
  22567. _ACEOF
  22568. if ac_fn_c_try_compile "$LINENO"
  22569. then :
  22570. have_win32_gcc=yes
  22571. fi
  22572. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  22574. printf "%s\n" "$have_win32_gcc" >&6; }
  22575. if test x$have_win32_gcc != xyes; then
  22576. as_fn_error $? "
  22577. *** Your compiler ($CC) does not produce Windows executables!
  22578. " "$LINENO" 5
  22579. fi
  22580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  22581. printf %s "checking Windows CE... " >&6; }
  22582. have_wince=no
  22583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22584. /* end confdefs.h. */
  22585. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  22586. #error This is not Windows CE
  22587. #endif
  22588. int
  22589. main (void)
  22590. {
  22591. ;
  22592. return 0;
  22593. }
  22594. _ACEOF
  22595. if ac_fn_c_try_compile "$LINENO"
  22596. then :
  22597. have_wince=yes
  22598. as_fn_error $? "
  22599. *** Sorry, Windows CE is no longer supported.
  22600. " "$LINENO" 5
  22601. fi
  22602. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  22604. printf "%s\n" "$have_wince" >&6; }
  22605. # This fixes Windows stack alignment with newer GCC
  22606. CheckStackBoundary
  22607. # headers needed elsewhere
  22608. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  22609. if test "x$ac_cv_header_tpcshrd_h" = xyes
  22610. then :
  22611. have_tpcshrd_h=yes
  22612. fi
  22613. if test x$have_tpcshrd_h = xyes; then
  22614. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  22615. fi
  22616. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  22617. if test "x$ac_cv_header_roapi_h" = xyes
  22618. then :
  22619. have_roapi_h=yes
  22620. fi
  22621. if test x$have_roapi_h = xyes; then
  22622. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  22623. fi
  22624. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  22625. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  22626. then :
  22627. have_shellscalingapi_h=yes
  22628. fi
  22629. if test x$shellscalingapi_h = xyes; then
  22630. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  22631. fi
  22632. }
  22633. CheckDIRECTX()
  22634. {
  22635. # Check whether --enable-directx was given.
  22636. if test ${enable_directx+y}
  22637. then :
  22638. enableval=$enable_directx;
  22639. else $as_nop
  22640. enable_directx=yes
  22641. fi
  22642. if test x$enable_directx = xyes; then
  22643. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  22644. if test "x$ac_cv_header_d3d9_h" = xyes
  22645. then :
  22646. have_d3d=yes
  22647. fi
  22648. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  22649. if test "x$ac_cv_header_d3d11_1_h" = xyes
  22650. then :
  22651. have_d3d11=yes
  22652. fi
  22653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  22654. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  22655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22656. /* end confdefs.h. */
  22657. #include <winsdkver.h>
  22658. #include <sdkddkver.h>
  22659. #include <d3d12.h>
  22660. ID3D12Device1 *device;
  22661. #if WDK_NTDDI_VERSION <= 0x0A000008
  22662. asdf
  22663. #endif
  22664. int
  22665. main (void)
  22666. {
  22667. ;
  22668. return 0;
  22669. }
  22670. _ACEOF
  22671. if ac_fn_c_try_compile "$LINENO"
  22672. then :
  22673. have_d3d12=yes
  22674. else $as_nop
  22675. have_d3d12=no
  22676. fi
  22677. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  22679. printf "%s\n" "$have_d3d12" >&6; }
  22680. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  22681. if test "x$ac_cv_header_ddraw_h" = xyes
  22682. then :
  22683. have_ddraw=yes
  22684. fi
  22685. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  22686. if test "x$ac_cv_header_dsound_h" = xyes
  22687. then :
  22688. have_dsound=yes
  22689. fi
  22690. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  22691. if test "x$ac_cv_header_dinput_h" = xyes
  22692. then :
  22693. have_dinput=yes
  22694. fi
  22695. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  22696. if test "x$ac_cv_header_dxgi_h" = xyes
  22697. then :
  22698. have_dxgi=yes
  22699. fi
  22700. if test x$have_ddraw = xyes; then
  22701. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  22702. fi
  22703. if test x$have_dinput = xyes; then
  22704. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  22705. fi
  22706. if test x$have_dsound = xyes; then
  22707. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  22708. fi
  22709. if test x$have_dxgi = xyes; then
  22710. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  22711. fi
  22712. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  22713. # FIXME: ...so force it off for now.
  22714. case "$host" in
  22715. *-*-cygwin*)
  22716. have_dinput=false
  22717. ;;
  22718. esac
  22719. fi
  22720. # Check whether --enable-xinput was given.
  22721. if test ${enable_xinput+y}
  22722. then :
  22723. enableval=$enable_xinput;
  22724. else $as_nop
  22725. enable_xinput=yes
  22726. fi
  22727. if test x$enable_xinput = xyes; then
  22728. have_xinput_gamepadex=no
  22729. have_xinput_stateex=no
  22730. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  22731. if test "x$ac_cv_header_xinput_h" = xyes
  22732. then :
  22733. have_xinput=yes
  22734. fi
  22735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  22736. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  22737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22738. /* end confdefs.h. */
  22739. #include <windows.h>
  22740. #include <xinput.h>
  22741. XINPUT_GAMEPAD_EX x1;
  22742. int
  22743. main (void)
  22744. {
  22745. ;
  22746. return 0;
  22747. }
  22748. _ACEOF
  22749. if ac_fn_c_try_compile "$LINENO"
  22750. then :
  22751. have_xinput_gamepadex=yes
  22752. fi
  22753. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  22755. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  22756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  22757. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  22758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22759. /* end confdefs.h. */
  22760. #include <windows.h>
  22761. #include <xinput.h>
  22762. XINPUT_STATE_EX s1;
  22763. int
  22764. main (void)
  22765. {
  22766. ;
  22767. return 0;
  22768. }
  22769. _ACEOF
  22770. if ac_fn_c_try_compile "$LINENO"
  22771. then :
  22772. have_xinput_stateex=yes
  22773. fi
  22774. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  22776. printf "%s\n" "$have_xinput_stateex" >&6; }
  22777. if test x$have_xinput = xyes; then
  22778. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  22779. fi
  22780. if test x$have_xinput_gamepadex = xyes; then
  22781. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  22782. fi
  22783. if test x$have_xinput_stateex = xyes; then
  22784. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  22785. fi
  22786. fi
  22787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  22788. printf %s "checking for windows.gaming.input.h... " >&6; }
  22789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22790. /* end confdefs.h. */
  22791. #define COBJMACROS
  22792. #include <windows.gaming.input.h>
  22793. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  22794. int
  22795. main (void)
  22796. {
  22797. ;
  22798. return 0;
  22799. }
  22800. _ACEOF
  22801. if ac_fn_c_try_compile "$LINENO"
  22802. then :
  22803. have_wgi=yes
  22804. else $as_nop
  22805. have_wgi=no
  22806. fi
  22807. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  22809. printf "%s\n" "$have_wgi" >&6; }
  22810. if test x$have_wgi = xyes; then
  22811. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  22812. fi
  22813. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  22814. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  22815. then :
  22816. have_wasapi=yes
  22817. fi
  22818. if test x$have_wasapi = xyes; then
  22819. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  22820. fi
  22821. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  22822. if test "x$ac_cv_header_audioclient_h" = xyes
  22823. then :
  22824. else $as_nop
  22825. have_wasapi=no
  22826. fi
  22827. if test x$have_wasapi = xyes; then
  22828. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  22829. fi
  22830. # Check whether --enable-wasapi was given.
  22831. if test ${enable_wasapi+y}
  22832. then :
  22833. enableval=$enable_wasapi;
  22834. else $as_nop
  22835. enable_wasapi=yes
  22836. fi
  22837. }
  22838. CheckDLOPEN()
  22839. {
  22840. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  22841. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  22842. if test "x$ac_cv_header_dlfcn_h" = xyes
  22843. then :
  22844. have_dlfcn_h=yes
  22845. else $as_nop
  22846. have_dlfcn_h=no
  22847. fi
  22848. have_dlopen=no
  22849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  22850. printf %s "checking for dlopen in -lc... " >&6; }
  22851. if test ${ac_cv_lib_c_dlopen+y}
  22852. then :
  22853. printf %s "(cached) " >&6
  22854. else $as_nop
  22855. ac_check_lib_save_LIBS=$LIBS
  22856. LIBS="-lc $LIBS"
  22857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22858. /* end confdefs.h. */
  22859. /* Override any GCC internal prototype to avoid an error.
  22860. Use char because int might match the return type of a GCC
  22861. builtin and then its argument prototype would still apply. */
  22862. char dlopen ();
  22863. int
  22864. main (void)
  22865. {
  22866. return dlopen ();
  22867. ;
  22868. return 0;
  22869. }
  22870. _ACEOF
  22871. if ac_fn_c_try_link "$LINENO"
  22872. then :
  22873. ac_cv_lib_c_dlopen=yes
  22874. else $as_nop
  22875. ac_cv_lib_c_dlopen=no
  22876. fi
  22877. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22878. conftest$ac_exeext conftest.$ac_ext
  22879. LIBS=$ac_check_lib_save_LIBS
  22880. fi
  22881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  22882. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  22883. if test "x$ac_cv_lib_c_dlopen" = xyes
  22884. then :
  22885. have_dlopen=yes
  22886. else $as_nop
  22887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  22888. printf %s "checking for dlopen in -ldl... " >&6; }
  22889. if test ${ac_cv_lib_dl_dlopen+y}
  22890. then :
  22891. printf %s "(cached) " >&6
  22892. else $as_nop
  22893. ac_check_lib_save_LIBS=$LIBS
  22894. LIBS="-ldl $LIBS"
  22895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22896. /* end confdefs.h. */
  22897. /* Override any GCC internal prototype to avoid an error.
  22898. Use char because int might match the return type of a GCC
  22899. builtin and then its argument prototype would still apply. */
  22900. char dlopen ();
  22901. int
  22902. main (void)
  22903. {
  22904. return dlopen ();
  22905. ;
  22906. return 0;
  22907. }
  22908. _ACEOF
  22909. if ac_fn_c_try_link "$LINENO"
  22910. then :
  22911. ac_cv_lib_dl_dlopen=yes
  22912. else $as_nop
  22913. ac_cv_lib_dl_dlopen=no
  22914. fi
  22915. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22916. conftest$ac_exeext conftest.$ac_ext
  22917. LIBS=$ac_check_lib_save_LIBS
  22918. fi
  22919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  22920. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  22921. if test "x$ac_cv_lib_dl_dlopen" = xyes
  22922. then :
  22923. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  22924. fi
  22925. fi
  22926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  22927. printf %s "checking for dlopen... " >&6; }
  22928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  22929. printf "%s\n" "$have_dlopen" >&6; }
  22930. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  22931. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  22932. if test x$enable_loadso = xyes; then
  22933. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  22934. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  22935. have_loadso=yes
  22936. fi
  22937. fi
  22938. }
  22939. CheckO_CLOEXEC()
  22940. {
  22941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  22942. printf %s "checking for O_CLOEXEC... " >&6; }
  22943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22944. /* end confdefs.h. */
  22945. #include <fcntl.h>
  22946. int flag = O_CLOEXEC;
  22947. int
  22948. main (void)
  22949. {
  22950. ;
  22951. return 0;
  22952. }
  22953. _ACEOF
  22954. if ac_fn_c_try_compile "$LINENO"
  22955. then :
  22956. have_o_cloexec=yes
  22957. else $as_nop
  22958. have_o_cloexec=no
  22959. fi
  22960. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  22962. printf "%s\n" "$have_o_cloexec" >&6; }
  22963. if test $have_o_cloexec = yes; then
  22964. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  22965. fi
  22966. }
  22967. CheckUSBHID()
  22968. {
  22969. case "$host" in
  22970. *-*-*bsd*|*-*-dragonfly*)
  22971. if test x$enable_joystick = xyes; then
  22972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  22973. printf %s "checking for hid_init in -lusbhid... " >&6; }
  22974. if test ${ac_cv_lib_usbhid_hid_init+y}
  22975. then :
  22976. printf %s "(cached) " >&6
  22977. else $as_nop
  22978. ac_check_lib_save_LIBS=$LIBS
  22979. LIBS="-lusbhid $LIBS"
  22980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22981. /* end confdefs.h. */
  22982. /* Override any GCC internal prototype to avoid an error.
  22983. Use char because int might match the return type of a GCC
  22984. builtin and then its argument prototype would still apply. */
  22985. char hid_init ();
  22986. int
  22987. main (void)
  22988. {
  22989. return hid_init ();
  22990. ;
  22991. return 0;
  22992. }
  22993. _ACEOF
  22994. if ac_fn_c_try_link "$LINENO"
  22995. then :
  22996. ac_cv_lib_usbhid_hid_init=yes
  22997. else $as_nop
  22998. ac_cv_lib_usbhid_hid_init=no
  22999. fi
  23000. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23001. conftest$ac_exeext conftest.$ac_ext
  23002. LIBS=$ac_check_lib_save_LIBS
  23003. fi
  23004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23005. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23006. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23007. then :
  23008. have_libusbhid=yes
  23009. fi
  23010. if test x$have_libusbhid = xyes; then
  23011. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23012. if test "x$ac_cv_header_usbhid_h" = xyes
  23013. then :
  23014. USB_CFLAGS="-DHAVE_USBHID_H"
  23015. fi
  23016. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23017. if test "x$ac_cv_header_libusbhid_h" = xyes
  23018. then :
  23019. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23020. fi
  23021. USB_LIBS="$USB_LIBS -lusbhid"
  23022. else
  23023. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23024. if test "x$ac_cv_header_usb_h" = xyes
  23025. then :
  23026. USB_CFLAGS="-DHAVE_USB_H"
  23027. fi
  23028. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23029. if test "x$ac_cv_header_libusb_h" = xyes
  23030. then :
  23031. USB_CFLAGS="-DHAVE_LIBUSB_H"
  23032. fi
  23033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  23034. printf %s "checking for hid_init in -lusb... " >&6; }
  23035. if test ${ac_cv_lib_usb_hid_init+y}
  23036. then :
  23037. printf %s "(cached) " >&6
  23038. else $as_nop
  23039. ac_check_lib_save_LIBS=$LIBS
  23040. LIBS="-lusb $LIBS"
  23041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23042. /* end confdefs.h. */
  23043. /* Override any GCC internal prototype to avoid an error.
  23044. Use char because int might match the return type of a GCC
  23045. builtin and then its argument prototype would still apply. */
  23046. char hid_init ();
  23047. int
  23048. main (void)
  23049. {
  23050. return hid_init ();
  23051. ;
  23052. return 0;
  23053. }
  23054. _ACEOF
  23055. if ac_fn_c_try_link "$LINENO"
  23056. then :
  23057. ac_cv_lib_usb_hid_init=yes
  23058. else $as_nop
  23059. ac_cv_lib_usb_hid_init=no
  23060. fi
  23061. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23062. conftest$ac_exeext conftest.$ac_ext
  23063. LIBS=$ac_check_lib_save_LIBS
  23064. fi
  23065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23066. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23067. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23068. then :
  23069. USB_LIBS="$USB_LIBS -lusb"
  23070. fi
  23071. fi
  23072. save_CFLAGS="$CFLAGS"
  23073. CFLAGS="$CFLAGS $USB_CFLAGS"
  23074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23075. printf %s "checking for usbhid... " >&6; }
  23076. have_usbhid=no
  23077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23078. /* end confdefs.h. */
  23079. #include <sys/types.h>
  23080. #if defined(HAVE_USB_H)
  23081. #include <usb.h>
  23082. #endif
  23083. #ifdef __DragonFly__
  23084. # include <bus/u4b/usb.h>
  23085. # include <bus/u4b/usbhid.h>
  23086. #else
  23087. # include <dev/usb/usb.h>
  23088. # include <dev/usb/usbhid.h>
  23089. #endif
  23090. #if defined(HAVE_USBHID_H)
  23091. #include <usbhid.h>
  23092. #elif defined(HAVE_LIBUSB_H)
  23093. #include <libusb.h>
  23094. #elif defined(HAVE_LIBUSBHID_H)
  23095. #include <libusbhid.h>
  23096. #endif
  23097. int
  23098. main (void)
  23099. {
  23100. struct report_desc *repdesc;
  23101. struct usb_ctl_report *repbuf;
  23102. hid_kind_t hidkind;
  23103. ;
  23104. return 0;
  23105. }
  23106. _ACEOF
  23107. if ac_fn_c_try_compile "$LINENO"
  23108. then :
  23109. have_usbhid=yes
  23110. fi
  23111. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  23113. printf "%s\n" "$have_usbhid" >&6; }
  23114. if test x$have_usbhid = xyes; then
  23115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  23116. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  23117. have_usbhid_ucr_data=no
  23118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23119. /* end confdefs.h. */
  23120. #include <sys/types.h>
  23121. #if defined(HAVE_USB_H)
  23122. #include <usb.h>
  23123. #endif
  23124. #ifdef __DragonFly__
  23125. # include <bus/u4b/usb.h>
  23126. # include <bus/u4b/usbhid.h>
  23127. #else
  23128. # include <dev/usb/usb.h>
  23129. # include <dev/usb/usbhid.h>
  23130. #endif
  23131. #if defined(HAVE_USBHID_H)
  23132. #include <usbhid.h>
  23133. #elif defined(HAVE_LIBUSB_H)
  23134. #include <libusb.h>
  23135. #elif defined(HAVE_LIBUSBHID_H)
  23136. #include <libusbhid.h>
  23137. #endif
  23138. int
  23139. main (void)
  23140. {
  23141. struct usb_ctl_report buf;
  23142. if (buf.ucr_data) { }
  23143. ;
  23144. return 0;
  23145. }
  23146. _ACEOF
  23147. if ac_fn_c_try_compile "$LINENO"
  23148. then :
  23149. have_usbhid_ucr_data=yes
  23150. fi
  23151. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23152. if test x$have_usbhid_ucr_data = xyes; then
  23153. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  23154. fi
  23155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  23156. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  23157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  23158. printf %s "checking for new usbhid API... " >&6; }
  23159. have_usbhid_new=no
  23160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23161. /* end confdefs.h. */
  23162. #include <sys/types.h>
  23163. #if defined(HAVE_USB_H)
  23164. #include <usb.h>
  23165. #endif
  23166. #ifdef __DragonFly__
  23167. #include <bus/u4b/usb.h>
  23168. #include <bus/u4b/usbhid.h>
  23169. #else
  23170. #include <dev/usb/usb.h>
  23171. #include <dev/usb/usbhid.h>
  23172. #endif
  23173. #if defined(HAVE_USBHID_H)
  23174. #include <usbhid.h>
  23175. #elif defined(HAVE_LIBUSB_H)
  23176. #include <libusb.h>
  23177. #elif defined(HAVE_LIBUSBHID_H)
  23178. #include <libusbhid.h>
  23179. #endif
  23180. int
  23181. main (void)
  23182. {
  23183. report_desc_t d;
  23184. hid_start_parse(d, 1, 1);
  23185. ;
  23186. return 0;
  23187. }
  23188. _ACEOF
  23189. if ac_fn_c_try_compile "$LINENO"
  23190. then :
  23191. have_usbhid_new=yes
  23192. fi
  23193. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23194. if test x$have_usbhid_new = xyes; then
  23195. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  23196. fi
  23197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  23198. printf "%s\n" "$have_usbhid_new" >&6; }
  23199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  23200. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  23201. have_machine_joystick=no
  23202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23203. /* end confdefs.h. */
  23204. #include <machine/joystick.h>
  23205. int
  23206. main (void)
  23207. {
  23208. struct joystick t;
  23209. ;
  23210. return 0;
  23211. }
  23212. _ACEOF
  23213. if ac_fn_c_try_compile "$LINENO"
  23214. then :
  23215. have_machine_joystick=yes
  23216. fi
  23217. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23218. if test x$have_machine_joystick = xyes; then
  23219. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  23220. fi
  23221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  23222. printf "%s\n" "$have_machine_joystick" >&6; }
  23223. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  23224. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  23225. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  23226. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  23227. have_joystick=yes
  23228. fi
  23229. CFLAGS="$save_CFLAGS"
  23230. fi
  23231. ;;
  23232. esac
  23233. }
  23234. CheckHIDAPI()
  23235. {
  23236. # Check whether --enable-hidapi-joystick was given.
  23237. if test ${enable_hidapi_joystick+y}
  23238. then :
  23239. enableval=$enable_hidapi_joystick;
  23240. else $as_nop
  23241. enable_hidapi_joystick=yes
  23242. fi
  23243. # Check whether --enable-hidapi-libusb was given.
  23244. if test ${enable_hidapi_libusb+y}
  23245. then :
  23246. enableval=$enable_hidapi_libusb;
  23247. else $as_nop
  23248. enable_hidapi_libusb=maybe
  23249. fi
  23250. if test x$enable_hidapi = xyes; then
  23251. case "$host" in
  23252. # libusb does not support iOS
  23253. *-ios-* )
  23254. enable_hidapi_libusb=no
  23255. ;;
  23256. # On the other hand, *BSD specifically uses libusb only
  23257. *-*-*bsd* )
  23258. enable_hidapi_libusb=yes
  23259. require_hidapi_libusb=yes
  23260. ;;
  23261. esac
  23262. hidapi_support=yes
  23263. if test x$enable_hidapi_libusb = xyes; then
  23264. pkg_failed=no
  23265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  23266. printf %s "checking for libusb-1.0... " >&6; }
  23267. if test -n "$LIBUSB_CFLAGS"; then
  23268. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  23269. elif test -n "$PKG_CONFIG"; then
  23270. if test -n "$PKG_CONFIG" && \
  23271. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  23272. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  23273. ac_status=$?
  23274. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23275. test $ac_status = 0; }; then
  23276. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  23277. test "x$?" != "x0" && pkg_failed=yes
  23278. else
  23279. pkg_failed=yes
  23280. fi
  23281. else
  23282. pkg_failed=untried
  23283. fi
  23284. if test -n "$LIBUSB_LIBS"; then
  23285. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  23286. elif test -n "$PKG_CONFIG"; then
  23287. if test -n "$PKG_CONFIG" && \
  23288. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  23289. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  23290. ac_status=$?
  23291. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23292. test $ac_status = 0; }; then
  23293. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  23294. test "x$?" != "x0" && pkg_failed=yes
  23295. else
  23296. pkg_failed=yes
  23297. fi
  23298. else
  23299. pkg_failed=untried
  23300. fi
  23301. if test $pkg_failed = yes; then
  23302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23303. printf "%s\n" "no" >&6; }
  23304. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23305. _pkg_short_errors_supported=yes
  23306. else
  23307. _pkg_short_errors_supported=no
  23308. fi
  23309. if test $_pkg_short_errors_supported = yes; then
  23310. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  23311. else
  23312. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  23313. fi
  23314. # Put the nasty error message in config.log where it belongs
  23315. echo "$LIBUSB_PKG_ERRORS" >&5
  23316. have_libusb=no
  23317. elif test $pkg_failed = untried; then
  23318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23319. printf "%s\n" "no" >&6; }
  23320. have_libusb=no
  23321. else
  23322. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  23323. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  23324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23325. printf "%s\n" "yes" >&6; }
  23326. have_libusb=yes
  23327. fi
  23328. save_CPPFLAGS="$CPPFLAGS"
  23329. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  23330. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23331. if test "x$ac_cv_header_libusb_h" = xyes
  23332. then :
  23333. have_libusb_h=yes
  23334. else $as_nop
  23335. have_libusb_h=no
  23336. fi
  23337. CPPFLAGS="$save_CPPFLAGS"
  23338. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  23339. hidapi_support=no
  23340. fi
  23341. fi
  23342. if test x$hidapi_support = xyes; then
  23343. if test x$have_libusb_h = xyes; then
  23344. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  23345. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  23346. if test x$require_hidapi_libusb = xyes; then
  23347. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  23348. else
  23349. if test x$have_loadso != xyes; then
  23350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  23351. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  23352. fi
  23353. # libusb is loaded dynamically, so don't add it to LDFLAGS
  23354. libusb_lib=""
  23355. case "$host" in
  23356. *-*-darwin* )
  23357. libusb_lib="libusb-1.0.0.dylib"
  23358. ;;
  23359. *-*-cygwin* | *-*-mingw* )
  23360. libusb_lib="libusb-1.0.dll"
  23361. ;;
  23362. esac
  23363. if test x$libusb_lib = x; then
  23364. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  23365. fi
  23366. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  23367. fi
  23368. fi
  23369. fi
  23370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  23371. printf %s "checking for hidapi joystick support... " >&6; }
  23372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  23373. printf "%s\n" "$hidapi_support" >&6; }
  23374. fi
  23375. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  23376. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  23377. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  23378. fi
  23379. }
  23380. CheckClockGettime()
  23381. {
  23382. # Check whether --enable-clock_gettime was given.
  23383. if test ${enable_clock_gettime+y}
  23384. then :
  23385. enableval=$enable_clock_gettime;
  23386. else $as_nop
  23387. enable_clock_gettime=yes
  23388. fi
  23389. if test x$enable_clock_gettime = xyes; then
  23390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  23391. printf %s "checking for clock_gettime in -lrt... " >&6; }
  23392. if test ${ac_cv_lib_rt_clock_gettime+y}
  23393. then :
  23394. printf %s "(cached) " >&6
  23395. else $as_nop
  23396. ac_check_lib_save_LIBS=$LIBS
  23397. LIBS="-lrt $LIBS"
  23398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23399. /* end confdefs.h. */
  23400. /* Override any GCC internal prototype to avoid an error.
  23401. Use char because int might match the return type of a GCC
  23402. builtin and then its argument prototype would still apply. */
  23403. char clock_gettime ();
  23404. int
  23405. main (void)
  23406. {
  23407. return clock_gettime ();
  23408. ;
  23409. return 0;
  23410. }
  23411. _ACEOF
  23412. if ac_fn_c_try_link "$LINENO"
  23413. then :
  23414. ac_cv_lib_rt_clock_gettime=yes
  23415. else $as_nop
  23416. ac_cv_lib_rt_clock_gettime=no
  23417. fi
  23418. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23419. conftest$ac_exeext conftest.$ac_ext
  23420. LIBS=$ac_check_lib_save_LIBS
  23421. fi
  23422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  23423. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  23424. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  23425. then :
  23426. have_clock_gettime=yes
  23427. fi
  23428. if test x$have_clock_gettime = xyes; then
  23429. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  23430. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  23431. else
  23432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  23433. printf %s "checking for clock_gettime in -lc... " >&6; }
  23434. if test ${ac_cv_lib_c_clock_gettime+y}
  23435. then :
  23436. printf %s "(cached) " >&6
  23437. else $as_nop
  23438. ac_check_lib_save_LIBS=$LIBS
  23439. LIBS="-lc $LIBS"
  23440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23441. /* end confdefs.h. */
  23442. /* Override any GCC internal prototype to avoid an error.
  23443. Use char because int might match the return type of a GCC
  23444. builtin and then its argument prototype would still apply. */
  23445. char clock_gettime ();
  23446. int
  23447. main (void)
  23448. {
  23449. return clock_gettime ();
  23450. ;
  23451. return 0;
  23452. }
  23453. _ACEOF
  23454. if ac_fn_c_try_link "$LINENO"
  23455. then :
  23456. ac_cv_lib_c_clock_gettime=yes
  23457. else $as_nop
  23458. ac_cv_lib_c_clock_gettime=no
  23459. fi
  23460. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23461. conftest$ac_exeext conftest.$ac_ext
  23462. LIBS=$ac_check_lib_save_LIBS
  23463. fi
  23464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  23465. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  23466. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  23467. then :
  23468. have_clock_gettime=yes
  23469. fi
  23470. if test x$have_clock_gettime = xyes; then
  23471. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  23472. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  23473. fi
  23474. fi
  23475. fi
  23476. }
  23477. CheckLinuxVersion()
  23478. {
  23479. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  23480. if test "x$ac_cv_header_linux_version_h" = xyes
  23481. then :
  23482. have_linux_version_h=yes
  23483. fi
  23484. if test x$have_linux_version_h = xyes; then
  23485. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  23486. fi
  23487. }
  23488. CheckRPATH()
  23489. {
  23490. # Check whether --enable-rpath was given.
  23491. if test ${enable_rpath+y}
  23492. then :
  23493. enableval=$enable_rpath;
  23494. else $as_nop
  23495. enable_rpath=yes
  23496. fi
  23497. }
  23498. CheckEventSignals()
  23499. {
  23500. # Check whether --enable-backgrounding-signal was given.
  23501. if test ${enable_backgrounding_signal+y}
  23502. then :
  23503. enableval=$enable_backgrounding_signal;
  23504. else $as_nop
  23505. enable_backgrounding_signal=no
  23506. fi
  23507. if test x$enable_backgrounding_signal != xno; then
  23508. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  23509. fi
  23510. # Check whether --enable-foregrounding-signal was given.
  23511. if test ${enable_foregrounding_signal+y}
  23512. then :
  23513. enableval=$enable_foregrounding_signal;
  23514. else $as_nop
  23515. enable_foregrounding_signal=no
  23516. fi
  23517. if test x$enable_foregrounding_signal != xno; then
  23518. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  23519. fi
  23520. }
  23521. CheckVirtualJoystick()
  23522. {
  23523. # Check whether --enable-joystick-virtual was given.
  23524. if test ${enable_joystick_virtual+y}
  23525. then :
  23526. enableval=$enable_joystick_virtual;
  23527. else $as_nop
  23528. enable_joystick_virtual=yes
  23529. fi
  23530. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  23531. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  23532. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  23533. have_joystick_virtual=yes
  23534. fi
  23535. }
  23536. CheckWarnAll
  23537. CheckNoStrictAliasing
  23538. CheckEventSignals
  23539. have_locale=no
  23540. case "$host" in
  23541. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  23542. case "$host" in
  23543. *-*-android*)
  23544. # Android
  23545. ARCH=android
  23546. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  23547. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  23548. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  23549. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  23550. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  23551. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  23552. if test x$enable_video = xyes; then
  23553. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  23554. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  23555. SUMMARY_video="${SUMMARY_video} android"
  23556. have_video=yes
  23557. fi
  23558. ;;
  23559. *-*-linux*) ARCH=linux ;;
  23560. *-*-uclinux*) ARCH=linux ;;
  23561. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  23562. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  23563. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  23564. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  23565. *-*-bsdi*) ARCH=bsdi ;;
  23566. *-*-freebsd*) ARCH=freebsd ;;
  23567. *-*-dragonfly*) ARCH=freebsd ;;
  23568. *-*-netbsd*) ARCH=netbsd ;;
  23569. *-*-openbsd*) ARCH=openbsd ;;
  23570. *-*-sysv5*) ARCH=sysv5 ;;
  23571. *-*-solaris*) ARCH=solaris ;;
  23572. *-*-hpux*) ARCH=hpux ;;
  23573. *-*-aix*) ARCH=aix ;;
  23574. *-*-minix*) ARCH=minix ;;
  23575. esac
  23576. CheckVisibilityHidden
  23577. CheckWerror
  23578. CheckDeclarationAfterStatement
  23579. CheckDummyVideo
  23580. CheckOffscreenVideo
  23581. CheckDiskAudio
  23582. CheckDummyAudio
  23583. CheckDLOPEN
  23584. CheckARM
  23585. CheckNEON
  23586. CheckO_CLOEXEC
  23587. CheckOSS
  23588. CheckALSA
  23589. CheckPipewire
  23590. CheckPulseAudio
  23591. CheckJACK
  23592. CheckSNDIO
  23593. CheckLibSampleRate
  23594. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  23595. CheckRPI
  23596. CheckX11
  23597. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  23598. CheckEGL
  23599. CheckKMSDRM
  23600. CheckGLX
  23601. CheckOpenGL
  23602. CheckOpenGLES
  23603. CheckVulkan
  23604. CheckWayland
  23605. CheckInputEvents
  23606. CheckLibUDev
  23607. CheckDBus
  23608. CheckIME
  23609. CheckInotify
  23610. CheckIBus
  23611. CheckFcitx
  23612. case $ARCH in
  23613. linux)
  23614. CheckInputKD
  23615. ;;
  23616. freebsd)
  23617. CheckInputKBIO
  23618. ;;
  23619. openbsd|netbsd)
  23620. CheckInputWSCONS
  23621. ;;
  23622. esac
  23623. CheckUSBHID
  23624. CheckHIDAPI
  23625. CheckPTHREAD
  23626. CheckClockGettime
  23627. CheckLinuxVersion
  23628. CheckRPATH
  23629. CheckVivanteVideo
  23630. # Set up files for the misc library
  23631. if test x$enable_misc = xyes; then
  23632. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  23633. have_misc=yes
  23634. fi
  23635. # Set up files for the locale library
  23636. if test x$enable_locale = xyes; then
  23637. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  23638. have_locale=yes
  23639. fi
  23640. # Set up files for the audio library
  23641. if test x$enable_audio = xyes; then
  23642. case $ARCH in
  23643. netbsd) # Don't use this on OpenBSD, it's busted.
  23644. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  23645. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  23646. SUMMARY_audio="${SUMMARY_audio} netbsd"
  23647. have_audio=yes
  23648. ;;
  23649. android)
  23650. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  23651. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  23652. SUMMARY_audio="${SUMMARY_audio} android"
  23653. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  23654. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  23655. SUMMARY_audio="${SUMMARY_audio} openslES"
  23656. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  23657. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  23658. SUMMARY_audio="${SUMMARY_audio} aaudio"
  23659. have_audio=yes
  23660. ;;
  23661. esac
  23662. fi
  23663. # Set up files for the joystick library
  23664. if test x$enable_joystick = xyes; then
  23665. case $ARCH in
  23666. linux)
  23667. if test "x$ac_cv_header_linux_input_h" = xyes; then
  23668. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  23669. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  23670. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23671. have_joystick=yes
  23672. fi
  23673. ;;
  23674. freebsd)
  23675. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  23676. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  23677. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  23678. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23679. have_joystick=yes
  23680. fi
  23681. ;;
  23682. android)
  23683. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  23684. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  23685. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23686. have_joystick=yes
  23687. ;;
  23688. esac
  23689. fi
  23690. # Set up files for the haptic library
  23691. if test x$enable_haptic = xyes; then
  23692. case $ARCH in
  23693. linux|freebsd)
  23694. if test x$use_input_events = xyes; then
  23695. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  23696. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  23697. have_haptic=yes
  23698. fi
  23699. ;;
  23700. android)
  23701. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  23702. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  23703. have_haptic=yes
  23704. ;;
  23705. esac
  23706. fi
  23707. # Set up files for the sensor library
  23708. if test x$enable_sensor = xyes; then
  23709. case $ARCH in
  23710. android)
  23711. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  23712. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  23713. have_sensor=yes
  23714. ;;
  23715. esac
  23716. fi
  23717. # Set up files for the power library
  23718. if test x$enable_power = xyes; then
  23719. case $ARCH in
  23720. linux)
  23721. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  23722. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  23723. have_power=yes
  23724. ;;
  23725. android)
  23726. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  23727. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  23728. have_power=yes
  23729. ;;
  23730. esac
  23731. fi
  23732. # Set up files for the filesystem library
  23733. if test x$enable_filesystem = xyes; then
  23734. case $ARCH in
  23735. android)
  23736. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  23737. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  23738. have_filesystem=yes
  23739. ;;
  23740. *)
  23741. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  23742. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  23743. have_filesystem=yes
  23744. ;;
  23745. esac
  23746. fi
  23747. # Set up files for the timer library
  23748. if test x$enable_timers = xyes; then
  23749. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23750. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23751. have_timers=yes
  23752. fi
  23753. # Set up files for udev hotplugging support
  23754. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  23755. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  23756. fi
  23757. # Set up files for evdev input
  23758. if test x$use_input_events = xyes; then
  23759. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  23760. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  23761. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  23762. fi
  23763. # Set up files for wscons input
  23764. if test x$use_input_wscons = xyes; then
  23765. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  23766. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  23767. fi
  23768. # Set up other core UNIX files
  23769. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  23770. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  23771. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  23772. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  23773. ;;
  23774. *-*-cygwin* | *-*-mingw*)
  23775. ARCH=win32
  23776. if test "$build" != "$host"; then # cross-compiling
  23777. # Default cross-compile location
  23778. ac_default_prefix=/usr/local/cross-tools/$host
  23779. else
  23780. # Look for the location of the tools and install there
  23781. if test "$BUILD_PREFIX" != ""; then
  23782. ac_default_prefix=$BUILD_PREFIX
  23783. fi
  23784. fi
  23785. if test x$enable_loadso = xyes; then
  23786. have_loadso=yes
  23787. fi
  23788. CheckGDwarf4
  23789. CheckWerror
  23790. CheckDeclarationAfterStatement
  23791. CheckDummyVideo
  23792. CheckOffscreenVideo
  23793. CheckDiskAudio
  23794. CheckDummyAudio
  23795. CheckWINDOWS
  23796. CheckWINDOWSGL
  23797. CheckWINDOWSGLES
  23798. CheckVulkan
  23799. CheckDIRECTX
  23800. CheckHIDAPI
  23801. # Set up the core platform files
  23802. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  23803. # Set up files for the misc library
  23804. if test x$enable_misc = xyes; then
  23805. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  23806. have_misc=yes
  23807. fi
  23808. # Use the Windows locale APIs.
  23809. if test x$enable_locale = xyes; then
  23810. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  23811. have_locale=yes
  23812. fi
  23813. # Set up files for the video library
  23814. if test x$enable_video = xyes; then
  23815. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  23816. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  23817. have_video=yes
  23818. # Check whether --enable-render-d3d was given.
  23819. if test ${enable_render_d3d+y}
  23820. then :
  23821. enableval=$enable_render_d3d;
  23822. else $as_nop
  23823. enable_render_d3d=yes
  23824. fi
  23825. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  23826. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  23827. SUMMARY_video="${SUMMARY_video} d3d9"
  23828. fi
  23829. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  23830. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  23831. SUMMARY_video="${SUMMARY_video} d3d11"
  23832. fi
  23833. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  23834. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  23835. SUMMARY_video="${SUMMARY_video} d3d12"
  23836. fi
  23837. fi
  23838. # Set up files for the audio library
  23839. if test x$enable_audio = xyes; then
  23840. if test x$have_dsound = xyes; then
  23841. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  23842. SUMMARY_audio="${SUMMARY_audio} directsound"
  23843. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  23844. fi
  23845. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  23846. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  23847. SUMMARY_audio="${SUMMARY_audio} wasapi"
  23848. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  23849. fi
  23850. have_audio=yes
  23851. fi
  23852. # Set up files for the joystick library
  23853. if test x$enable_joystick = xyes; then
  23854. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  23855. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  23856. if test x$have_xinput = xyes; then
  23857. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  23858. fi
  23859. if test x$have_wgi = xyes; then
  23860. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  23861. fi
  23862. if test x$have_dinput = xyes; then
  23863. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  23864. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  23865. fi
  23866. fi
  23867. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  23868. have_joystick=yes
  23869. fi
  23870. if test x$enable_haptic = xyes; then
  23871. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  23872. if test x$have_xinput = xyes; then
  23873. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  23874. fi
  23875. if test x$have_dinput = xyes; then
  23876. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  23877. fi
  23878. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  23879. have_haptic=yes
  23880. fi
  23881. fi
  23882. # Set up files for the sensor library
  23883. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  23884. if test "x$ac_cv_header_sensorsapi_h" = xyes
  23885. then :
  23886. have_winsensors=yes
  23887. else $as_nop
  23888. have_winsensors=no
  23889. fi
  23890. if test x$have_winsensors = xyes; then
  23891. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  23892. fi
  23893. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  23894. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  23895. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  23896. have_sensor=yes
  23897. fi
  23898. # Set up files for the power library
  23899. if test x$enable_power = xyes; then
  23900. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  23901. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  23902. have_power=yes
  23903. fi
  23904. # Set up files for the filesystem library
  23905. if test x$enable_filesystem = xyes; then
  23906. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  23907. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  23908. have_filesystem=yes
  23909. fi
  23910. # Set up files for the thread library
  23911. if test x$enable_threads = xyes; then
  23912. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  23913. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  23914. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  23915. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  23916. have_threads=yes
  23917. fi
  23918. # Set up files for the timer library
  23919. if test x$enable_timers = xyes; then
  23920. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  23921. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  23922. have_timers=yes
  23923. fi
  23924. # Set up files for the shared object loading library
  23925. if test x$enable_loadso = xyes; then
  23926. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  23927. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  23928. fi
  23929. # Set up the system libraries we need
  23930. if test -f /lib/w32api/libuuid.a; then
  23931. LIBUUID=/lib/w32api/libuuid.a
  23932. else
  23933. LIBUUID=-luuid
  23934. fi
  23935. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  23936. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  23937. # The Windows platform requires special setup
  23938. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  23939. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  23940. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  23941. SDL_LIBS="-lSDL3main $SDL_LIBS -mwindows"
  23942. # Check to see if this is a mingw or cygwin build
  23943. have_mingw32=
  23944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  23945. printf %s "checking for main in -lmingw32... " >&6; }
  23946. if test ${ac_cv_lib_mingw32_main+y}
  23947. then :
  23948. printf %s "(cached) " >&6
  23949. else $as_nop
  23950. ac_check_lib_save_LIBS=$LIBS
  23951. LIBS="-lmingw32 $LIBS"
  23952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23953. /* end confdefs.h. */
  23954. int
  23955. main (void)
  23956. {
  23957. return main ();
  23958. ;
  23959. return 0;
  23960. }
  23961. _ACEOF
  23962. if ac_fn_c_try_link "$LINENO"
  23963. then :
  23964. ac_cv_lib_mingw32_main=yes
  23965. else $as_nop
  23966. ac_cv_lib_mingw32_main=no
  23967. fi
  23968. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23969. conftest$ac_exeext conftest.$ac_ext
  23970. LIBS=$ac_check_lib_save_LIBS
  23971. fi
  23972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  23973. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  23974. if test "x$ac_cv_lib_mingw32_main" = xyes
  23975. then :
  23976. have_mingw32=yes
  23977. fi
  23978. if test x$have_mingw32 = xyes; then
  23979. SDL_LIBS="-lmingw32 $SDL_LIBS"
  23980. else
  23981. SDL_LIBS="-lcygwin $SDL_LIBS"
  23982. fi
  23983. ;;
  23984. *-*-beos*)
  23985. as_fn_error $? "
  23986. *** BeOS support has been removed as of SDL 2.0.2.
  23987. " "$LINENO" 5
  23988. ;;
  23989. *-*-haiku*)
  23990. ARCH=haiku
  23991. ac_default_prefix=/boot/system
  23992. CheckDummyVideo
  23993. CheckOffscreenVideo
  23994. CheckDiskAudio
  23995. CheckDummyAudio
  23996. CheckDLOPEN
  23997. CheckO_CLOEXEC
  23998. CheckHaikuVideo
  23999. CheckHaikuGL
  24000. CheckPTHREAD
  24001. # Set up files for the audio library
  24002. if test x$enable_audio = xyes; then
  24003. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  24004. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  24005. SUMMARY_audio="${SUMMARY_audio} haiku"
  24006. have_audio=yes
  24007. fi
  24008. # Set up files for the joystick library
  24009. if test x$enable_joystick = xyes; then
  24010. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  24011. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  24012. have_joystick=yes
  24013. fi
  24014. # Set up files for the timer library
  24015. if test x$enable_timers = xyes; then
  24016. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  24017. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  24018. have_timers=yes
  24019. fi
  24020. # Set up files for the system power library
  24021. if test x$enable_power = xyes; then
  24022. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  24023. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  24024. have_power=yes
  24025. fi
  24026. # Set up files for the system filesystem library
  24027. if test x$enable_filesystem = xyes; then
  24028. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  24029. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  24030. have_filesystem=yes
  24031. fi
  24032. # Set up files for the misc library
  24033. if test x$enable_misc = xyes; then
  24034. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24035. have_misc=yes
  24036. fi
  24037. # Set up files for the locale library
  24038. if test x$enable_locale = xyes; then
  24039. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24040. have_locale=yes
  24041. fi
  24042. # The Haiku platform requires special setup.
  24043. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24044. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24045. ;;
  24046. *-ios-*)
  24047. ARCH=ios
  24048. CheckVisibilityHidden
  24049. CheckWerror
  24050. CheckNoErrorDeprecatedDeclarationsWerror
  24051. CheckDeclarationAfterStatement
  24052. CheckDummyVideo
  24053. CheckOffscreenVideo
  24054. CheckDiskAudio
  24055. CheckDummyAudio
  24056. CheckDLOPEN
  24057. CheckO_CLOEXEC
  24058. CheckMETAL
  24059. CheckVulkan
  24060. CheckPTHREAD
  24061. # Set up files for the misc library
  24062. if test x$enable_misc = xyes; then
  24063. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  24064. have_misc=yes
  24065. fi
  24066. # Set up files for the locale library
  24067. if test x$enable_locale = xyes; then
  24068. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24069. have_locale=yes
  24070. fi
  24071. # Set up files for the audio library
  24072. if test x$enable_audio = xyes; then
  24073. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24074. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24075. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24076. have_audio=yes
  24077. fi
  24078. # Set up files for the joystick library
  24079. if test x$enable_joystick = xyes; then
  24080. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  24081. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24082. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24083. have_joystick=yes
  24084. else
  24085. # Need this code for accelerometer as joystick support
  24086. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24087. fi
  24088. # Set up files for the haptic library
  24089. #if test x$enable_haptic = xyes; then
  24090. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24091. # have_haptic=yes
  24092. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24093. #fi
  24094. # Set up files for the sensor library
  24095. if test x$enable_sensor = xyes; then
  24096. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  24097. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  24098. have_sensor=yes
  24099. fi
  24100. # Set up files for the power library
  24101. if test x$enable_power = xyes; then
  24102. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  24103. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  24104. have_power=yes
  24105. fi
  24106. # Set up files for the filesystem library
  24107. if test x$enable_filesystem = xyes; then
  24108. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24109. have_filesystem=yes
  24110. fi
  24111. # Set up additional files for the file library
  24112. if test x$enable_file = xyes; then
  24113. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24114. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24115. fi
  24116. # Set up files for the timer library
  24117. if test x$enable_timers = xyes; then
  24118. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24119. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24120. have_timers=yes
  24121. fi
  24122. # Set up other core UNIX files
  24123. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24124. # The iOS platform requires special setup.
  24125. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  24126. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  24127. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  24128. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  24129. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  24130. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  24131. SUMMARY_video="${SUMMARY_video} uikit"
  24132. have_video=yes
  24133. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  24134. if test x$enable_system_iconv = xyes; then
  24135. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  24136. fi
  24137. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  24138. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  24139. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  24140. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  24141. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  24142. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  24143. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  24144. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  24145. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  24146. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  24147. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  24148. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24149. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  24150. fi
  24151. ;;
  24152. *-*-darwin* )
  24153. # This could be either full "Mac OS X", or plain "Darwin" which is
  24154. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  24155. # Next line is broken, and a few files below require Mac OS X (full)
  24156. ARCH=macosx
  24157. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  24158. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  24159. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  24160. CheckObjectiveCARC
  24161. CheckVisibilityHidden
  24162. CheckWerror
  24163. CheckNoErrorDeprecatedDeclarationsWerror
  24164. CheckDeclarationAfterStatement
  24165. CheckDummyVideo
  24166. CheckOffscreenVideo
  24167. CheckDiskAudio
  24168. CheckDummyAudio
  24169. CheckDLOPEN
  24170. CheckO_CLOEXEC
  24171. CheckCOCOA
  24172. CheckMETAL
  24173. CheckX11
  24174. CheckMacGL
  24175. CheckMacGLES
  24176. CheckGLX
  24177. CheckOpenGL
  24178. CheckVulkan
  24179. CheckPTHREAD
  24180. CheckHIDAPI
  24181. # Set up files for the misc library
  24182. if test x$enable_misc = xyes; then
  24183. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  24184. have_misc=yes
  24185. fi
  24186. # Set up files for the locale library
  24187. if test x$enable_locale = xyes; then
  24188. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24189. have_locale=yes
  24190. fi
  24191. # Set up files for the audio library
  24192. if test x$enable_audio = xyes; then
  24193. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24194. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24195. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  24196. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24197. have_audio=yes
  24198. fi
  24199. # Set up files for the joystick library
  24200. if test x$enable_joystick = xyes; then
  24201. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  24202. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  24203. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24204. CheckJoystickMFI
  24205. have_joystick=yes
  24206. fi
  24207. # Set up files for the haptic library
  24208. if test x$enable_haptic = xyes; then
  24209. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  24210. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24211. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24212. have_haptic=yes
  24213. fi
  24214. # Set up files for the power library
  24215. if test x$enable_power = xyes; then
  24216. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  24217. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  24218. have_power=yes
  24219. fi
  24220. # Set up files for the filesystem library
  24221. if test x$enable_filesystem = xyes; then
  24222. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24223. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24224. have_filesystem=yes
  24225. fi
  24226. # Set up files for the timer library
  24227. if test x$enable_timers = xyes; then
  24228. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24229. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24230. have_timers=yes
  24231. fi
  24232. # Set up additional files for the file library
  24233. if test x$enable_file = xyes; then
  24234. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24235. fi
  24236. # Set up other core UNIX files
  24237. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24238. # The Mac OS X platform requires special setup.
  24239. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  24240. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  24241. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  24242. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  24243. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  24244. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24245. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  24246. fi
  24247. ;;
  24248. *-*-emscripten* )
  24249. if test x$enable_video = xyes; then
  24250. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  24251. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  24252. have_video=yes
  24253. SUMMARY_video="${SUMMARY_video} emscripten"
  24254. fi
  24255. if test x$enable_audio = xyes; then
  24256. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  24257. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  24258. have_audio=yes
  24259. SUMMARY_audio="${SUMMARY_audio} emscripten"
  24260. fi
  24261. CheckVisibilityHidden
  24262. CheckWerror
  24263. CheckDeclarationAfterStatement
  24264. CheckDummyVideo
  24265. CheckOffscreenVideo
  24266. CheckDiskAudio
  24267. CheckDummyAudio
  24268. CheckPTHREAD
  24269. CheckDLOPEN
  24270. CheckClockGettime
  24271. CheckEmscriptenGLES
  24272. # Set up files for the misc library
  24273. if test x$enable_misc = xyes; then
  24274. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  24275. have_misc=yes
  24276. fi
  24277. # Set up files for the power library
  24278. if test x$enable_power = xyes; then
  24279. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  24280. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  24281. have_power=yes
  24282. fi
  24283. # Set up files for the joystick library
  24284. if test x$enable_joystick = xyes; then
  24285. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  24286. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  24287. have_joystick=yes
  24288. fi
  24289. # Set up files for the filesystem library
  24290. if test x$enable_filesystem = xyes; then
  24291. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  24292. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  24293. have_filesystem=yes
  24294. fi
  24295. # Set up files for the timer library
  24296. if test x$enable_timers = xyes; then
  24297. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24298. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24299. have_timers=yes
  24300. fi
  24301. # Set up files for the locale library
  24302. if test x$enable_locale = xyes; then
  24303. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  24304. have_locale=yes
  24305. fi
  24306. ;;
  24307. *-*-riscos*)
  24308. ARCH=riscos
  24309. CheckVisibilityHidden
  24310. CheckWerror
  24311. CheckDeclarationAfterStatement
  24312. CheckDummyVideo
  24313. CheckOffscreenVideo
  24314. CheckDiskAudio
  24315. CheckDummyAudio
  24316. CheckDLOPEN
  24317. CheckO_CLOEXEC
  24318. CheckOSS
  24319. CheckPTHREAD
  24320. CheckClockGettime
  24321. # Set up files for the misc library
  24322. if test x$enable_misc = xyes; then
  24323. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  24324. have_misc=yes
  24325. fi
  24326. # Set up files for the video library
  24327. if test x$enable_video = xyes; then
  24328. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  24329. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  24330. have_video=yes
  24331. SUMMARY_video="${SUMMARY_video} riscos"
  24332. fi
  24333. # Set up files for the filesystem library
  24334. if test x$enable_filesystem = xyes; then
  24335. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  24336. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  24337. have_filesystem=yes
  24338. fi
  24339. # Set up files for the timer library
  24340. if test x$enable_timers = xyes; then
  24341. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24342. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24343. have_timers=yes
  24344. fi
  24345. ;;
  24346. *)
  24347. as_fn_error $? "
  24348. *** Unsupported host: Please add to configure.ac
  24349. " "$LINENO" 5
  24350. ;;
  24351. esac
  24352. CheckVirtualJoystick
  24353. # Check whether to install sdl3-config
  24354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl3-config" >&5
  24355. printf %s "checking whether to install sdl3-config... " >&6; }
  24356. # Check whether --enable-sdl3-config was given.
  24357. if test ${enable_sdl3_config+y}
  24358. then :
  24359. enableval=$enable_sdl3_config; case "${enableval}" in
  24360. yes) enable_sdl3_config="TRUE" ;;
  24361. no) enable_sdl3_config="FALSE" ;;
  24362. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl3-config" "$LINENO" 5 ;;
  24363. esac
  24364. else $as_nop
  24365. enable_sdl3_config="TRUE"
  24366. fi
  24367. if test "$enable_sdl3_config" = "TRUE"; then
  24368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24369. printf "%s\n" "yes" >&6; }
  24370. else
  24371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24372. printf "%s\n" "no" >&6; }
  24373. fi
  24374. INSTALL_SDL3_CONFIG=$enable_sdl3_config
  24375. # Check whether --enable-vendor-info was given.
  24376. if test ${enable_vendor_info+y}
  24377. then :
  24378. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  24379. else $as_nop
  24380. enable_vendor_info=
  24381. fi
  24382. if test "$enable_vendor_info" = no
  24383. then :
  24384. enable_vendor_info=
  24385. fi
  24386. SDL_VENDOR_INFO=$enable_vendor_info
  24387. # Verify that we have all the platform specific files we need
  24388. if test x$have_audio != xyes; then
  24389. if test x$enable_audio = xyes; then
  24390. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  24391. fi
  24392. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  24393. fi
  24394. if test x$have_video != xyes; then
  24395. if test x$enable_video = xyes; then
  24396. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  24397. fi
  24398. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  24399. fi
  24400. if test x$have_misc != xyes; then
  24401. if test x$enable_misc = xyes; then
  24402. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  24403. fi
  24404. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  24405. fi
  24406. if test x$have_locale != xyes; then
  24407. if test x$enable_locale = xyes; then
  24408. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  24409. fi
  24410. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  24411. fi
  24412. if test x$have_joystick != xyes; then
  24413. if test x$enable_joystick = xyes; then
  24414. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  24415. fi
  24416. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  24417. fi
  24418. if test x$have_haptic != xyes; then
  24419. if test x$enable_haptic = xyes; then
  24420. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  24421. fi
  24422. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  24423. fi
  24424. if test x$have_sensor != xyes; then
  24425. if test x$enable_sensor = xyes; then
  24426. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  24427. fi
  24428. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  24429. fi
  24430. if test x$have_threads != xyes; then
  24431. if test x$enable_threads = xyes; then
  24432. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  24433. fi
  24434. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  24435. fi
  24436. if test x$have_timers != xyes; then
  24437. if test x$enable_timers = xyes; then
  24438. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  24439. fi
  24440. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  24441. fi
  24442. if test x$have_filesystem != xyes; then
  24443. if test x$enable_filesystem = xyes; then
  24444. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  24445. fi
  24446. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  24447. fi
  24448. if test x$have_loadso != xyes; then
  24449. if test x$enable_loadso = xyes; then
  24450. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  24451. fi
  24452. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  24453. fi
  24454. if test x$SDLMAIN_SOURCES = x; then
  24455. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  24456. fi
  24457. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  24458. if test x$video_wayland = xyes; then
  24459. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  24460. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  24461. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  24462. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  24463. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  24464. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  24465. echo ;\
  24466. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  24467. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  24468. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  24469. echo ;\
  24470. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  24471. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  24472. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  24473. echo ;\
  24474. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  24475. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  24476. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  24477. done ;\
  24478. echo ;\
  24479. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  24480. fi
  24481. OBJECTS=`echo $SOURCES`
  24482. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  24483. for EXT in asm cc m c S; do
  24484. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  24485. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  24486. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  24487. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24488. done
  24489. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24490. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  24491. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  24492. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  24493. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  24494. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  24495. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  24496. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  24497. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  24498. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24499. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  24500. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  24501. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24502. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  24503. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  24504. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24505. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  24506. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  24507. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24508. # Set runtime shared library paths as needed
  24509. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  24510. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  24511. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  24512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  24513. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  24514. have_enable_new_dtags=no
  24515. save_LDFLAGS="$LDFLAGS"
  24516. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  24517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24518. /* end confdefs.h. */
  24519. int
  24520. main (void)
  24521. {
  24522. ;
  24523. return 0;
  24524. }
  24525. _ACEOF
  24526. if ac_fn_c_try_link "$LINENO"
  24527. then :
  24528. have_enable_new_dtags=yes
  24529. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  24530. fi
  24531. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24532. conftest$ac_exeext conftest.$ac_ext
  24533. LDFLAGS="$save_LDFLAGS"
  24534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  24535. printf "%s\n" "$have_enable_new_dtags" >&6; }
  24536. fi
  24537. if test $ARCH = solaris; then
  24538. SDL_RLD_FLAGS="-R\${libdir}"
  24539. fi
  24540. else
  24541. SDL_RLD_FLAGS=""
  24542. fi
  24543. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  24544. pkg_cmakedir='$libdir/cmake/SDL3'
  24545. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  24546. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  24547. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  24548. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  24549. _lcl_receval="$_lcl_from"
  24550. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  24551. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  24552. _lcl_receval_old=''
  24553. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  24554. _lcl_receval_old="$_lcl_receval"
  24555. eval _lcl_receval="\"$_lcl_receval\""
  24556. done
  24557. echo "$_lcl_receval")`
  24558. _lcl_receval="$_lcl_to"
  24559. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  24560. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  24561. _lcl_receval_old=''
  24562. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  24563. _lcl_receval_old="$_lcl_receval"
  24564. eval _lcl_receval="\"$_lcl_receval\""
  24565. done
  24566. echo "$_lcl_receval")`
  24567. _lcl_notation="$_lcl_from$_lcl_to"
  24568. case ":$_lcl_from:" in
  24569. # change empty paths to '.'
  24570. ::) _lcl_from='.' ;;
  24571. # strip trailing slashes
  24572. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  24573. :*:) ;;
  24574. esac
  24575. # squeeze repeated slashes
  24576. case '/' in
  24577. # if the path contains any backslashes, turn slashes into backslashes
  24578. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24579. # if the path contains slashes, also turn backslashes into slashes
  24580. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24581. esac
  24582. case ":$_lcl_to:" in
  24583. # change empty paths to '.'
  24584. ::) _lcl_to='.' ;;
  24585. # strip trailing slashes
  24586. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  24587. :*:) ;;
  24588. esac
  24589. # squeeze repeated slashes
  24590. case '/' in
  24591. # if the path contains any backslashes, turn slashes into backslashes
  24592. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24593. # if the path contains slashes, also turn backslashes into slashes
  24594. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24595. esac
  24596. _lcl_common_prefix=''
  24597. _lcl_second_prefix_match=''
  24598. while test "$_lcl_second_prefix_match" != 0; do
  24599. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  24600. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  24601. if test "$_lcl_second_prefix_match" != 0; then
  24602. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  24603. _lcl_common_prefix="$_lcl_first_prefix"
  24604. else
  24605. _lcl_second_prefix_match=0
  24606. fi
  24607. fi
  24608. done
  24609. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  24610. _lcl_first_rel=''
  24611. _lcl_tmp='xxx'
  24612. while test "$_lcl_tmp" != ''; do
  24613. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  24614. if test "$_lcl_first_suffix" != ''; then
  24615. _lcl_first_suffix="$_lcl_tmp"
  24616. _lcl_first_rel="../$_lcl_first_rel"
  24617. fi
  24618. done
  24619. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  24620. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  24621. case ":$_lcl_result_tmp:" in
  24622. # change empty paths to '.'
  24623. ::) _lcl_result_tmp='.' ;;
  24624. # strip trailing slashes
  24625. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  24626. :*:) ;;
  24627. esac
  24628. # squeeze repeated slashes
  24629. case "$_lcl_notation" in
  24630. # if the path contains any backslashes, turn slashes into backslashes
  24631. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24632. # if the path contains slashes, also turn backslashes into slashes
  24633. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24634. esac
  24635. eval $_lcl_result_var='$_lcl_result_tmp'
  24636. done
  24637. if test x$enable_shared = xyes; then
  24638. PKGCONFIG_LIBS_PRIV="
  24639. Libs.private:"
  24640. ENABLE_SHARED_TRUE=
  24641. ENABLE_SHARED_FALSE="#"
  24642. else
  24643. PKGCONFIG_LIBS_PRIV=
  24644. ENABLE_SHARED_TRUE="#"
  24645. ENABLE_SHARED_FALSE=
  24646. fi
  24647. if test x$enable_static = xyes; then
  24648. ENABLE_STATIC_TRUE=
  24649. ENABLE_STATIC_FALSE="#"
  24650. else
  24651. ENABLE_STATIC_TRUE="#"
  24652. ENABLE_STATIC_FALSE=
  24653. fi
  24654. cat >Makefile.rules <<__EOF__
  24655. # Build rules for objects
  24656. -include \$(OBJECTS:.lo=.d)
  24657. # Special dependency for SDL.c, since it depends on SDL_revision.h
  24658. $srcdir/src/SDL.c: update-revision
  24659. $DEPENDS
  24660. $VERSION_DEPENDS
  24661. $SDLMAIN_DEPENDS
  24662. $SDLTEST_DEPENDS
  24663. $WAYLAND_PROTOCOLS_DEPENDS
  24664. __EOF__
  24665. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl3-config sdl3-config.cmake sdl3-config-version.cmake SDL3.spec sdl3.pc"
  24666. ac_config_commands="$ac_config_commands sdl3_config"
  24667. SUMMARY="SDL3 Configure Summary:\n"
  24668. if test x$enable_shared = xyes; then
  24669. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  24670. fi
  24671. if test x$enable_static = xyes; then
  24672. SUMMARY="${SUMMARY}Building Static Libraries\n"
  24673. fi
  24674. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  24675. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  24676. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  24677. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  24678. if test x$have_x = xyes; then
  24679. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  24680. fi
  24681. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  24682. if test x$have_joystick_virtual = xyes; then
  24683. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  24684. else
  24685. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  24686. fi
  24687. if test x$have_samplerate_h_hdr = xyes; then
  24688. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  24689. else
  24690. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  24691. fi
  24692. if test x$have_libudev_h_hdr = xyes; then
  24693. SUMMARY="${SUMMARY}Using libudev : YES\n"
  24694. else
  24695. SUMMARY="${SUMMARY}Using libudev : NO\n"
  24696. fi
  24697. if test x$have_dbus_dbus_h_hdr = xyes; then
  24698. SUMMARY="${SUMMARY}Using dbus : YES\n"
  24699. else
  24700. SUMMARY="${SUMMARY}Using dbus : NO\n"
  24701. fi
  24702. if test x$enable_ime = xyes; then
  24703. SUMMARY="${SUMMARY}Using ime : YES\n"
  24704. else
  24705. SUMMARY="${SUMMARY}Using ime : NO\n"
  24706. fi
  24707. if test x$have_ibus_ibus_h_hdr = xyes; then
  24708. SUMMARY="${SUMMARY}Using ibus : YES\n"
  24709. else
  24710. SUMMARY="${SUMMARY}Using ibus : NO\n"
  24711. fi
  24712. if test x$have_fcitx = xyes; then
  24713. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  24714. else
  24715. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  24716. fi
  24717. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  24718. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  24719. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  24720. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  24721. SUMMARY="${SUMMARY}configure script with:\n"
  24722. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  24723. fi
  24724. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  24725. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  24726. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  24727. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  24728. SUMMARY="${SUMMARY}configure script with:\n"
  24729. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  24730. fi
  24731. ac_config_commands="$ac_config_commands summary"
  24732. cat >confcache <<\_ACEOF
  24733. # This file is a shell script that caches the results of configure
  24734. # tests run on this system so they can be shared between configure
  24735. # scripts and configure runs, see configure's option --config-cache.
  24736. # It is not useful on other systems. If it contains results you don't
  24737. # want to keep, you may remove or edit it.
  24738. #
  24739. # config.status only pays attention to the cache file if you give it
  24740. # the --recheck option to rerun configure.
  24741. #
  24742. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  24743. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  24744. # following values.
  24745. _ACEOF
  24746. # The following way of writing the cache mishandles newlines in values,
  24747. # but we know of no workaround that is simple, portable, and efficient.
  24748. # So, we kill variables containing newlines.
  24749. # Ultrix sh set writes to stderr and can't be redirected directly,
  24750. # and sets the high bit in the cache file unless we assign to the vars.
  24751. (
  24752. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  24753. eval ac_val=\$$ac_var
  24754. case $ac_val in #(
  24755. *${as_nl}*)
  24756. case $ac_var in #(
  24757. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  24758. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  24759. esac
  24760. case $ac_var in #(
  24761. _ | IFS | as_nl) ;; #(
  24762. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  24763. *) { eval $ac_var=; unset $ac_var;} ;;
  24764. esac ;;
  24765. esac
  24766. done
  24767. (set) 2>&1 |
  24768. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  24769. *${as_nl}ac_space=\ *)
  24770. # `set' does not quote correctly, so add quotes: double-quote
  24771. # substitution turns \\\\ into \\, and sed turns \\ into \.
  24772. sed -n \
  24773. "s/'/'\\\\''/g;
  24774. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  24775. ;; #(
  24776. *)
  24777. # `set' quotes correctly as required by POSIX, so do not add quotes.
  24778. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  24779. ;;
  24780. esac |
  24781. sort
  24782. ) |
  24783. sed '
  24784. /^ac_cv_env_/b end
  24785. t clear
  24786. :clear
  24787. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  24788. t end
  24789. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  24790. :end' >>confcache
  24791. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  24792. if test -w "$cache_file"; then
  24793. if test "x$cache_file" != "x/dev/null"; then
  24794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  24795. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  24796. if test ! -f "$cache_file" || test -h "$cache_file"; then
  24797. cat confcache >"$cache_file"
  24798. else
  24799. case $cache_file in #(
  24800. */* | ?:*)
  24801. mv -f confcache "$cache_file"$$ &&
  24802. mv -f "$cache_file"$$ "$cache_file" ;; #(
  24803. *)
  24804. mv -f confcache "$cache_file" ;;
  24805. esac
  24806. fi
  24807. fi
  24808. else
  24809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  24810. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  24811. fi
  24812. fi
  24813. rm -f confcache
  24814. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  24815. # Let make expand exec_prefix.
  24816. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  24817. DEFS=-DHAVE_CONFIG_H
  24818. ac_libobjs=
  24819. ac_ltlibobjs=
  24820. U=
  24821. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  24822. # 1. Remove the extension, and $U if already installed.
  24823. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  24824. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  24825. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  24826. # will be set to the directory where LIBOBJS objects are built.
  24827. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  24828. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  24829. done
  24830. LIBOBJS=$ac_libobjs
  24831. LTLIBOBJS=$ac_ltlibobjs
  24832. : "${CONFIG_STATUS=./config.status}"
  24833. ac_write_fail=0
  24834. ac_clean_files_save=$ac_clean_files
  24835. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  24836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  24837. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  24838. as_write_fail=0
  24839. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  24840. #! $SHELL
  24841. # Generated by $as_me.
  24842. # Run this file to recreate the current configuration.
  24843. # Compiler output produced by configure, useful for debugging
  24844. # configure, is in config.log if it exists.
  24845. debug=false
  24846. ac_cs_recheck=false
  24847. ac_cs_silent=false
  24848. SHELL=\${CONFIG_SHELL-$SHELL}
  24849. export SHELL
  24850. _ASEOF
  24851. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  24852. ## -------------------- ##
  24853. ## M4sh Initialization. ##
  24854. ## -------------------- ##
  24855. # Be more Bourne compatible
  24856. DUALCASE=1; export DUALCASE # for MKS sh
  24857. as_nop=:
  24858. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  24859. then :
  24860. emulate sh
  24861. NULLCMD=:
  24862. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24863. # is contrary to our usage. Disable this feature.
  24864. alias -g '${1+"$@"}'='"$@"'
  24865. setopt NO_GLOB_SUBST
  24866. else $as_nop
  24867. case `(set -o) 2>/dev/null` in #(
  24868. *posix*) :
  24869. set -o posix ;; #(
  24870. *) :
  24871. ;;
  24872. esac
  24873. fi
  24874. # Reset variables that may have inherited troublesome values from
  24875. # the environment.
  24876. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  24877. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  24878. # side effect of setting IFS to empty, thus disabling word splitting.)
  24879. # Quoting is to prevent editors from complaining about space-tab.
  24880. as_nl='
  24881. '
  24882. export as_nl
  24883. IFS=" "" $as_nl"
  24884. PS1='$ '
  24885. PS2='> '
  24886. PS4='+ '
  24887. # Ensure predictable behavior from utilities with locale-dependent output.
  24888. LC_ALL=C
  24889. export LC_ALL
  24890. LANGUAGE=C
  24891. export LANGUAGE
  24892. # We cannot yet rely on "unset" to work, but we need these variables
  24893. # to be unset--not just set to an empty or harmless value--now, to
  24894. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  24895. # also avoids known problems related to "unset" and subshell syntax
  24896. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  24897. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  24898. do eval test \${$as_var+y} \
  24899. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  24900. done
  24901. # Ensure that fds 0, 1, and 2 are open.
  24902. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  24903. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  24904. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  24905. # The user is always right.
  24906. if ${PATH_SEPARATOR+false} :; then
  24907. PATH_SEPARATOR=:
  24908. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  24909. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  24910. PATH_SEPARATOR=';'
  24911. }
  24912. fi
  24913. # Find who we are. Look in the path if we contain no directory separator.
  24914. as_myself=
  24915. case $0 in #((
  24916. *[\\/]* ) as_myself=$0 ;;
  24917. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24918. for as_dir in $PATH
  24919. do
  24920. IFS=$as_save_IFS
  24921. case $as_dir in #(((
  24922. '') as_dir=./ ;;
  24923. */) ;;
  24924. *) as_dir=$as_dir/ ;;
  24925. esac
  24926. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  24927. done
  24928. IFS=$as_save_IFS
  24929. ;;
  24930. esac
  24931. # We did not find ourselves, most probably we were run as `sh COMMAND'
  24932. # in which case we are not to be found in the path.
  24933. if test "x$as_myself" = x; then
  24934. as_myself=$0
  24935. fi
  24936. if test ! -f "$as_myself"; then
  24937. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  24938. exit 1
  24939. fi
  24940. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  24941. # ----------------------------------------
  24942. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  24943. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  24944. # script with STATUS, using 1 if that was 0.
  24945. as_fn_error ()
  24946. {
  24947. as_status=$1; test $as_status -eq 0 && as_status=1
  24948. if test "$4"; then
  24949. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  24950. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  24951. fi
  24952. printf "%s\n" "$as_me: error: $2" >&2
  24953. as_fn_exit $as_status
  24954. } # as_fn_error
  24955. # as_fn_set_status STATUS
  24956. # -----------------------
  24957. # Set $? to STATUS, without forking.
  24958. as_fn_set_status ()
  24959. {
  24960. return $1
  24961. } # as_fn_set_status
  24962. # as_fn_exit STATUS
  24963. # -----------------
  24964. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  24965. as_fn_exit ()
  24966. {
  24967. set +e
  24968. as_fn_set_status $1
  24969. exit $1
  24970. } # as_fn_exit
  24971. # as_fn_unset VAR
  24972. # ---------------
  24973. # Portably unset VAR.
  24974. as_fn_unset ()
  24975. {
  24976. { eval $1=; unset $1;}
  24977. }
  24978. as_unset=as_fn_unset
  24979. # as_fn_append VAR VALUE
  24980. # ----------------------
  24981. # Append the text in VALUE to the end of the definition contained in VAR. Take
  24982. # advantage of any shell optimizations that allow amortized linear growth over
  24983. # repeated appends, instead of the typical quadratic growth present in naive
  24984. # implementations.
  24985. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  24986. then :
  24987. eval 'as_fn_append ()
  24988. {
  24989. eval $1+=\$2
  24990. }'
  24991. else $as_nop
  24992. as_fn_append ()
  24993. {
  24994. eval $1=\$$1\$2
  24995. }
  24996. fi # as_fn_append
  24997. # as_fn_arith ARG...
  24998. # ------------------
  24999. # Perform arithmetic evaluation on the ARGs, and store the result in the
  25000. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  25001. # must be portable across $(()) and expr.
  25002. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  25003. then :
  25004. eval 'as_fn_arith ()
  25005. {
  25006. as_val=$(( $* ))
  25007. }'
  25008. else $as_nop
  25009. as_fn_arith ()
  25010. {
  25011. as_val=`expr "$@" || test $? -eq 1`
  25012. }
  25013. fi # as_fn_arith
  25014. if expr a : '\(a\)' >/dev/null 2>&1 &&
  25015. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25016. as_expr=expr
  25017. else
  25018. as_expr=false
  25019. fi
  25020. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  25021. as_basename=basename
  25022. else
  25023. as_basename=false
  25024. fi
  25025. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  25026. as_dirname=dirname
  25027. else
  25028. as_dirname=false
  25029. fi
  25030. as_me=`$as_basename -- "$0" ||
  25031. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  25032. X"$0" : 'X\(//\)$' \| \
  25033. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  25034. printf "%s\n" X/"$0" |
  25035. sed '/^.*\/\([^/][^/]*\)\/*$/{
  25036. s//\1/
  25037. q
  25038. }
  25039. /^X\/\(\/\/\)$/{
  25040. s//\1/
  25041. q
  25042. }
  25043. /^X\/\(\/\).*/{
  25044. s//\1/
  25045. q
  25046. }
  25047. s/.*/./; q'`
  25048. # Avoid depending upon Character Ranges.
  25049. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  25050. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  25051. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  25052. as_cr_digits='0123456789'
  25053. as_cr_alnum=$as_cr_Letters$as_cr_digits
  25054. # Determine whether it's possible to make 'echo' print without a newline.
  25055. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  25056. # for compatibility with existing Makefiles.
  25057. ECHO_C= ECHO_N= ECHO_T=
  25058. case `echo -n x` in #(((((
  25059. -n*)
  25060. case `echo 'xy\c'` in
  25061. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  25062. xy) ECHO_C='\c';;
  25063. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  25064. ECHO_T=' ';;
  25065. esac;;
  25066. *)
  25067. ECHO_N='-n';;
  25068. esac
  25069. # For backward compatibility with old third-party macros, we provide
  25070. # the shell variables $as_echo and $as_echo_n. New code should use
  25071. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  25072. as_echo='printf %s\n'
  25073. as_echo_n='printf %s'
  25074. rm -f conf$$ conf$$.exe conf$$.file
  25075. if test -d conf$$.dir; then
  25076. rm -f conf$$.dir/conf$$.file
  25077. else
  25078. rm -f conf$$.dir
  25079. mkdir conf$$.dir 2>/dev/null
  25080. fi
  25081. if (echo >conf$$.file) 2>/dev/null; then
  25082. if ln -s conf$$.file conf$$ 2>/dev/null; then
  25083. as_ln_s='ln -s'
  25084. # ... but there are two gotchas:
  25085. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  25086. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  25087. # In both cases, we have to default to `cp -pR'.
  25088. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  25089. as_ln_s='cp -pR'
  25090. elif ln conf$$.file conf$$ 2>/dev/null; then
  25091. as_ln_s=ln
  25092. else
  25093. as_ln_s='cp -pR'
  25094. fi
  25095. else
  25096. as_ln_s='cp -pR'
  25097. fi
  25098. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  25099. rmdir conf$$.dir 2>/dev/null
  25100. # as_fn_mkdir_p
  25101. # -------------
  25102. # Create "$as_dir" as a directory, including parents if necessary.
  25103. as_fn_mkdir_p ()
  25104. {
  25105. case $as_dir in #(
  25106. -*) as_dir=./$as_dir;;
  25107. esac
  25108. test -d "$as_dir" || eval $as_mkdir_p || {
  25109. as_dirs=
  25110. while :; do
  25111. case $as_dir in #(
  25112. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  25113. *) as_qdir=$as_dir;;
  25114. esac
  25115. as_dirs="'$as_qdir' $as_dirs"
  25116. as_dir=`$as_dirname -- "$as_dir" ||
  25117. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25118. X"$as_dir" : 'X\(//\)[^/]' \| \
  25119. X"$as_dir" : 'X\(//\)$' \| \
  25120. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  25121. printf "%s\n" X"$as_dir" |
  25122. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25123. s//\1/
  25124. q
  25125. }
  25126. /^X\(\/\/\)[^/].*/{
  25127. s//\1/
  25128. q
  25129. }
  25130. /^X\(\/\/\)$/{
  25131. s//\1/
  25132. q
  25133. }
  25134. /^X\(\/\).*/{
  25135. s//\1/
  25136. q
  25137. }
  25138. s/.*/./; q'`
  25139. test -d "$as_dir" && break
  25140. done
  25141. test -z "$as_dirs" || eval "mkdir $as_dirs"
  25142. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  25143. } # as_fn_mkdir_p
  25144. if mkdir -p . 2>/dev/null; then
  25145. as_mkdir_p='mkdir -p "$as_dir"'
  25146. else
  25147. test -d ./-p && rmdir ./-p
  25148. as_mkdir_p=false
  25149. fi
  25150. # as_fn_executable_p FILE
  25151. # -----------------------
  25152. # Test if FILE is an executable regular file.
  25153. as_fn_executable_p ()
  25154. {
  25155. test -f "$1" && test -x "$1"
  25156. } # as_fn_executable_p
  25157. as_test_x='test -x'
  25158. as_executable_p=as_fn_executable_p
  25159. # Sed expression to map a string onto a valid CPP name.
  25160. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  25161. # Sed expression to map a string onto a valid variable name.
  25162. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  25163. exec 6>&1
  25164. ## ----------------------------------- ##
  25165. ## Main body of $CONFIG_STATUS script. ##
  25166. ## ----------------------------------- ##
  25167. _ASEOF
  25168. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  25169. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25170. # Save the log message, to keep $0 and so on meaningful, and to
  25171. # report actual input values of CONFIG_FILES etc. instead of their
  25172. # values after options handling.
  25173. ac_log="
  25174. This file was extended by $as_me, which was
  25175. generated by GNU Autoconf 2.71. Invocation command line was
  25176. CONFIG_FILES = $CONFIG_FILES
  25177. CONFIG_HEADERS = $CONFIG_HEADERS
  25178. CONFIG_LINKS = $CONFIG_LINKS
  25179. CONFIG_COMMANDS = $CONFIG_COMMANDS
  25180. $ $0 $@
  25181. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  25182. "
  25183. _ACEOF
  25184. case $ac_config_files in *"
  25185. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  25186. esac
  25187. case $ac_config_headers in *"
  25188. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  25189. esac
  25190. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25191. # Files that config.status was made for.
  25192. config_files="$ac_config_files"
  25193. config_headers="$ac_config_headers"
  25194. config_commands="$ac_config_commands"
  25195. _ACEOF
  25196. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25197. ac_cs_usage="\
  25198. \`$as_me' instantiates files and other configuration actions
  25199. from templates according to the current configuration. Unless the files
  25200. and actions are specified as TAGs, all are instantiated by default.
  25201. Usage: $0 [OPTION]... [TAG]...
  25202. -h, --help print this help, then exit
  25203. -V, --version print version number and configuration settings, then exit
  25204. --config print configuration, then exit
  25205. -q, --quiet, --silent
  25206. do not print progress messages
  25207. -d, --debug don't remove temporary files
  25208. --recheck update $as_me by reconfiguring in the same conditions
  25209. --file=FILE[:TEMPLATE]
  25210. instantiate the configuration file FILE
  25211. --header=FILE[:TEMPLATE]
  25212. instantiate the configuration header FILE
  25213. Configuration files:
  25214. $config_files
  25215. Configuration headers:
  25216. $config_headers
  25217. Configuration commands:
  25218. $config_commands
  25219. Report bugs to the package provider."
  25220. _ACEOF
  25221. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  25222. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  25223. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25224. ac_cs_config='$ac_cs_config_escaped'
  25225. ac_cs_version="\\
  25226. config.status
  25227. configured by $0, generated by GNU Autoconf 2.71,
  25228. with options \\"\$ac_cs_config\\"
  25229. Copyright (C) 2021 Free Software Foundation, Inc.
  25230. This config.status script is free software; the Free Software Foundation
  25231. gives unlimited permission to copy, distribute and modify it."
  25232. ac_pwd='$ac_pwd'
  25233. srcdir='$srcdir'
  25234. INSTALL='$INSTALL'
  25235. AWK='$AWK'
  25236. test -n "\$AWK" || AWK=awk
  25237. _ACEOF
  25238. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25239. # The default lists apply if the user does not specify any file.
  25240. ac_need_defaults=:
  25241. while test $# != 0
  25242. do
  25243. case $1 in
  25244. --*=?*)
  25245. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  25246. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  25247. ac_shift=:
  25248. ;;
  25249. --*=)
  25250. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  25251. ac_optarg=
  25252. ac_shift=:
  25253. ;;
  25254. *)
  25255. ac_option=$1
  25256. ac_optarg=$2
  25257. ac_shift=shift
  25258. ;;
  25259. esac
  25260. case $ac_option in
  25261. # Handling of the options.
  25262. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  25263. ac_cs_recheck=: ;;
  25264. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  25265. printf "%s\n" "$ac_cs_version"; exit ;;
  25266. --config | --confi | --conf | --con | --co | --c )
  25267. printf "%s\n" "$ac_cs_config"; exit ;;
  25268. --debug | --debu | --deb | --de | --d | -d )
  25269. debug=: ;;
  25270. --file | --fil | --fi | --f )
  25271. $ac_shift
  25272. case $ac_optarg in
  25273. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25274. '') as_fn_error $? "missing file argument" ;;
  25275. esac
  25276. as_fn_append CONFIG_FILES " '$ac_optarg'"
  25277. ac_need_defaults=false;;
  25278. --header | --heade | --head | --hea )
  25279. $ac_shift
  25280. case $ac_optarg in
  25281. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25282. esac
  25283. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  25284. ac_need_defaults=false;;
  25285. --he | --h)
  25286. # Conflict between --help and --header
  25287. as_fn_error $? "ambiguous option: \`$1'
  25288. Try \`$0 --help' for more information.";;
  25289. --help | --hel | -h )
  25290. printf "%s\n" "$ac_cs_usage"; exit ;;
  25291. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  25292. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  25293. ac_cs_silent=: ;;
  25294. # This is an error.
  25295. -*) as_fn_error $? "unrecognized option: \`$1'
  25296. Try \`$0 --help' for more information." ;;
  25297. *) as_fn_append ac_config_targets " $1"
  25298. ac_need_defaults=false ;;
  25299. esac
  25300. shift
  25301. done
  25302. ac_configure_extra_args=
  25303. if $ac_cs_silent; then
  25304. exec 6>/dev/null
  25305. ac_configure_extra_args="$ac_configure_extra_args --silent"
  25306. fi
  25307. _ACEOF
  25308. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25309. if \$ac_cs_recheck; then
  25310. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  25311. shift
  25312. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  25313. CONFIG_SHELL='$SHELL'
  25314. export CONFIG_SHELL
  25315. exec "\$@"
  25316. fi
  25317. _ACEOF
  25318. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25319. exec 5>>config.log
  25320. {
  25321. echo
  25322. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  25323. ## Running $as_me. ##
  25324. _ASBOX
  25325. printf "%s\n" "$ac_log"
  25326. } >&5
  25327. _ACEOF
  25328. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25329. #
  25330. # INIT-COMMANDS
  25331. #
  25332. # The HP-UX ksh and POSIX shell print the target directory to stdout
  25333. # if CDPATH is set.
  25334. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  25335. sed_quote_subst='$sed_quote_subst'
  25336. double_quote_subst='$double_quote_subst'
  25337. delay_variable_subst='$delay_variable_subst'
  25338. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  25339. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  25340. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  25341. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  25342. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  25343. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  25344. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  25345. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  25346. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  25347. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  25348. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  25349. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  25350. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  25351. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  25352. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  25353. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  25354. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  25355. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  25356. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  25357. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  25358. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  25359. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  25360. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  25361. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  25362. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  25363. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  25364. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  25365. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  25366. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  25367. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  25368. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  25369. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  25370. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  25371. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  25372. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  25373. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  25374. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  25375. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  25376. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  25377. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  25378. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  25379. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  25380. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  25381. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  25382. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  25383. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  25384. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  25385. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  25386. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  25387. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  25388. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  25389. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  25390. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  25391. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  25392. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  25393. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  25394. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  25395. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  25396. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  25397. 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"`'
  25398. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  25399. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  25400. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  25401. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  25402. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  25403. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  25404. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  25405. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  25406. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  25407. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  25408. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  25409. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  25410. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  25411. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  25412. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  25413. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  25414. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  25415. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  25416. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  25417. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  25418. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  25419. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  25420. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  25421. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  25422. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  25423. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  25424. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  25425. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  25426. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  25427. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  25428. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  25429. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  25430. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  25431. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  25432. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  25433. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  25434. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  25435. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  25436. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  25437. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  25438. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  25439. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  25440. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  25441. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  25442. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  25443. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  25444. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  25445. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  25446. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  25447. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  25448. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  25449. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  25450. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  25451. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  25452. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  25453. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  25454. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  25455. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  25456. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  25457. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  25458. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  25459. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  25460. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  25461. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  25462. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  25463. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  25464. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  25465. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  25466. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  25467. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  25468. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  25469. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  25470. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  25471. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  25472. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  25473. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  25474. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  25475. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  25476. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  25477. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  25478. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  25479. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  25480. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  25481. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  25482. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  25483. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25484. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25485. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25486. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25487. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25488. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  25489. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  25490. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  25491. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  25492. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  25493. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25494. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  25495. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  25496. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  25497. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  25498. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  25499. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  25500. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  25501. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  25502. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  25503. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  25504. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  25505. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  25506. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25507. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25508. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25509. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25510. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  25511. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  25512. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25513. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25514. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25515. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25516. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25517. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25518. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25519. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25520. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25521. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25522. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25523. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25524. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  25525. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  25526. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  25527. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25528. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  25529. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25530. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25531. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25532. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  25533. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  25534. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  25535. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  25536. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  25537. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  25538. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  25539. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  25540. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  25541. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  25542. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  25543. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  25544. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  25545. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  25546. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  25547. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  25548. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  25549. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  25550. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25551. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25552. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  25553. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  25554. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  25555. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  25556. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25557. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25558. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25559. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25560. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  25561. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25562. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  25563. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  25564. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  25565. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  25566. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  25567. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  25568. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  25569. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  25570. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  25571. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  25572. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  25573. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  25574. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  25575. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  25576. LTCC='$LTCC'
  25577. LTCFLAGS='$LTCFLAGS'
  25578. compiler='$compiler_DEFAULT'
  25579. # A function that is used when there is no print builtin or printf.
  25580. func_fallback_echo ()
  25581. {
  25582. eval 'cat <<_LTECHO_EOF
  25583. \$1
  25584. _LTECHO_EOF'
  25585. }
  25586. # Quote evaled strings.
  25587. for var in AS \
  25588. DLLTOOL \
  25589. OBJDUMP \
  25590. SHELL \
  25591. ECHO \
  25592. PATH_SEPARATOR \
  25593. SED \
  25594. GREP \
  25595. EGREP \
  25596. FGREP \
  25597. LD \
  25598. NM \
  25599. LN_S \
  25600. lt_SP2NL \
  25601. lt_NL2SP \
  25602. reload_flag \
  25603. deplibs_check_method \
  25604. file_magic_cmd \
  25605. file_magic_glob \
  25606. want_nocaseglob \
  25607. sharedlib_from_linklib_cmd \
  25608. AR \
  25609. AR_FLAGS \
  25610. archiver_list_spec \
  25611. STRIP \
  25612. RANLIB \
  25613. CC \
  25614. CFLAGS \
  25615. compiler \
  25616. lt_cv_sys_global_symbol_pipe \
  25617. lt_cv_sys_global_symbol_to_cdecl \
  25618. lt_cv_sys_global_symbol_to_import \
  25619. lt_cv_sys_global_symbol_to_c_name_address \
  25620. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  25621. lt_cv_nm_interface \
  25622. nm_file_list_spec \
  25623. lt_cv_truncate_bin \
  25624. lt_prog_compiler_no_builtin_flag \
  25625. lt_prog_compiler_pic \
  25626. lt_prog_compiler_wl \
  25627. lt_prog_compiler_static \
  25628. lt_cv_prog_compiler_c_o \
  25629. need_locks \
  25630. MANIFEST_TOOL \
  25631. DSYMUTIL \
  25632. NMEDIT \
  25633. LIPO \
  25634. OTOOL \
  25635. OTOOL64 \
  25636. shrext_cmds \
  25637. export_dynamic_flag_spec \
  25638. whole_archive_flag_spec \
  25639. compiler_needs_object \
  25640. with_gnu_ld \
  25641. allow_undefined_flag \
  25642. no_undefined_flag \
  25643. hardcode_libdir_flag_spec \
  25644. hardcode_libdir_separator \
  25645. exclude_expsyms \
  25646. include_expsyms \
  25647. file_list_spec \
  25648. variables_saved_for_relink \
  25649. libname_spec \
  25650. library_names_spec \
  25651. soname_spec \
  25652. install_override_mode \
  25653. finish_eval \
  25654. old_striplib \
  25655. striplib \
  25656. compiler_lib_search_dirs \
  25657. predep_objects \
  25658. postdep_objects \
  25659. predeps \
  25660. postdeps \
  25661. compiler_lib_search_path \
  25662. LD_RC \
  25663. LD_CXX \
  25664. reload_flag_RC \
  25665. reload_flag_CXX \
  25666. compiler_RC \
  25667. compiler_CXX \
  25668. lt_prog_compiler_no_builtin_flag_RC \
  25669. lt_prog_compiler_no_builtin_flag_CXX \
  25670. lt_prog_compiler_pic_RC \
  25671. lt_prog_compiler_pic_CXX \
  25672. lt_prog_compiler_wl_RC \
  25673. lt_prog_compiler_wl_CXX \
  25674. lt_prog_compiler_static_RC \
  25675. lt_prog_compiler_static_CXX \
  25676. lt_cv_prog_compiler_c_o_RC \
  25677. lt_cv_prog_compiler_c_o_CXX \
  25678. export_dynamic_flag_spec_RC \
  25679. export_dynamic_flag_spec_CXX \
  25680. whole_archive_flag_spec_RC \
  25681. whole_archive_flag_spec_CXX \
  25682. compiler_needs_object_RC \
  25683. compiler_needs_object_CXX \
  25684. with_gnu_ld_RC \
  25685. with_gnu_ld_CXX \
  25686. allow_undefined_flag_RC \
  25687. allow_undefined_flag_CXX \
  25688. no_undefined_flag_RC \
  25689. no_undefined_flag_CXX \
  25690. hardcode_libdir_flag_spec_RC \
  25691. hardcode_libdir_flag_spec_CXX \
  25692. hardcode_libdir_separator_RC \
  25693. hardcode_libdir_separator_CXX \
  25694. exclude_expsyms_RC \
  25695. exclude_expsyms_CXX \
  25696. include_expsyms_RC \
  25697. include_expsyms_CXX \
  25698. file_list_spec_RC \
  25699. file_list_spec_CXX \
  25700. compiler_lib_search_dirs_RC \
  25701. compiler_lib_search_dirs_CXX \
  25702. predep_objects_RC \
  25703. predep_objects_CXX \
  25704. postdep_objects_RC \
  25705. postdep_objects_CXX \
  25706. predeps_RC \
  25707. predeps_CXX \
  25708. postdeps_RC \
  25709. postdeps_CXX \
  25710. compiler_lib_search_path_RC \
  25711. compiler_lib_search_path_CXX; do
  25712. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  25713. *[\\\\\\\`\\"\\\$]*)
  25714. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  25715. ;;
  25716. *)
  25717. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  25718. ;;
  25719. esac
  25720. done
  25721. # Double-quote double-evaled strings.
  25722. for var in reload_cmds \
  25723. old_postinstall_cmds \
  25724. old_postuninstall_cmds \
  25725. old_archive_cmds \
  25726. extract_expsyms_cmds \
  25727. old_archive_from_new_cmds \
  25728. old_archive_from_expsyms_cmds \
  25729. archive_cmds \
  25730. archive_expsym_cmds \
  25731. module_cmds \
  25732. module_expsym_cmds \
  25733. export_symbols_cmds \
  25734. prelink_cmds \
  25735. postlink_cmds \
  25736. postinstall_cmds \
  25737. postuninstall_cmds \
  25738. finish_cmds \
  25739. sys_lib_search_path_spec \
  25740. configure_time_dlsearch_path \
  25741. configure_time_lt_sys_library_path \
  25742. reload_cmds_RC \
  25743. reload_cmds_CXX \
  25744. old_archive_cmds_RC \
  25745. old_archive_cmds_CXX \
  25746. old_archive_from_new_cmds_RC \
  25747. old_archive_from_new_cmds_CXX \
  25748. old_archive_from_expsyms_cmds_RC \
  25749. old_archive_from_expsyms_cmds_CXX \
  25750. archive_cmds_RC \
  25751. archive_cmds_CXX \
  25752. archive_expsym_cmds_RC \
  25753. archive_expsym_cmds_CXX \
  25754. module_cmds_RC \
  25755. module_cmds_CXX \
  25756. module_expsym_cmds_RC \
  25757. module_expsym_cmds_CXX \
  25758. export_symbols_cmds_RC \
  25759. export_symbols_cmds_CXX \
  25760. prelink_cmds_RC \
  25761. prelink_cmds_CXX \
  25762. postlink_cmds_RC \
  25763. postlink_cmds_CXX; do
  25764. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  25765. *[\\\\\\\`\\"\\\$]*)
  25766. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  25767. ;;
  25768. *)
  25769. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  25770. ;;
  25771. esac
  25772. done
  25773. ac_aux_dir='$ac_aux_dir'
  25774. # See if we are running on zsh, and set the options that allow our
  25775. # commands through without removal of \ escapes INIT.
  25776. if test -n "\${ZSH_VERSION+set}"; then
  25777. setopt NO_GLOB_SUBST
  25778. fi
  25779. PACKAGE='$PACKAGE'
  25780. VERSION='$VERSION'
  25781. RM='$RM'
  25782. ofile='$ofile'
  25783. SUMMARY="$SUMMARY"
  25784. _ACEOF
  25785. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25786. # Handling of arguments.
  25787. for ac_config_target in $ac_config_targets
  25788. do
  25789. case $ac_config_target in
  25790. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  25791. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  25792. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  25793. "sdl3-config") CONFIG_FILES="$CONFIG_FILES sdl3-config" ;;
  25794. "sdl3-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl3-config.cmake" ;;
  25795. "sdl3-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl3-config-version.cmake" ;;
  25796. "SDL3.spec") CONFIG_FILES="$CONFIG_FILES SDL3.spec" ;;
  25797. "sdl3.pc") CONFIG_FILES="$CONFIG_FILES sdl3.pc" ;;
  25798. "sdl3_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl3_config" ;;
  25799. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  25800. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  25801. esac
  25802. done
  25803. # If the user did not use the arguments to specify the items to instantiate,
  25804. # then the envvar interface is used. Set only those that are not.
  25805. # We use the long form for the default assignment because of an extremely
  25806. # bizarre bug on SunOS 4.1.3.
  25807. if $ac_need_defaults; then
  25808. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  25809. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  25810. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  25811. fi
  25812. # Have a temporary directory for convenience. Make it in the build tree
  25813. # simply because there is no reason against having it here, and in addition,
  25814. # creating and moving files from /tmp can sometimes cause problems.
  25815. # Hook for its removal unless debugging.
  25816. # Note that there is a small window in which the directory will not be cleaned:
  25817. # after its creation but before its name has been assigned to `$tmp'.
  25818. $debug ||
  25819. {
  25820. tmp= ac_tmp=
  25821. trap 'exit_status=$?
  25822. : "${ac_tmp:=$tmp}"
  25823. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  25824. ' 0
  25825. trap 'as_fn_exit 1' 1 2 13 15
  25826. }
  25827. # Create a (secure) tmp directory for tmp files.
  25828. {
  25829. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  25830. test -d "$tmp"
  25831. } ||
  25832. {
  25833. tmp=./conf$$-$RANDOM
  25834. (umask 077 && mkdir "$tmp")
  25835. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  25836. ac_tmp=$tmp
  25837. # Set up the scripts for CONFIG_FILES section.
  25838. # No need to generate them if there are no CONFIG_FILES.
  25839. # This happens for instance with `./config.status config.h'.
  25840. if test -n "$CONFIG_FILES"; then
  25841. ac_cr=`echo X | tr X '\015'`
  25842. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  25843. # But we know of no other shell where ac_cr would be empty at this
  25844. # point, so we can use a bashism as a fallback.
  25845. if test "x$ac_cr" = x; then
  25846. eval ac_cr=\$\'\\r\'
  25847. fi
  25848. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  25849. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  25850. ac_cs_awk_cr='\\r'
  25851. else
  25852. ac_cs_awk_cr=$ac_cr
  25853. fi
  25854. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  25855. _ACEOF
  25856. {
  25857. echo "cat >conf$$subs.awk <<_ACEOF" &&
  25858. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  25859. echo "_ACEOF"
  25860. } >conf$$subs.sh ||
  25861. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25862. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  25863. ac_delim='%!_!# '
  25864. for ac_last_try in false false false false false :; do
  25865. . ./conf$$subs.sh ||
  25866. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25867. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  25868. if test $ac_delim_n = $ac_delim_num; then
  25869. break
  25870. elif $ac_last_try; then
  25871. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25872. else
  25873. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  25874. fi
  25875. done
  25876. rm -f conf$$subs.sh
  25877. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25878. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  25879. _ACEOF
  25880. sed -n '
  25881. h
  25882. s/^/S["/; s/!.*/"]=/
  25883. p
  25884. g
  25885. s/^[^!]*!//
  25886. :repl
  25887. t repl
  25888. s/'"$ac_delim"'$//
  25889. t delim
  25890. :nl
  25891. h
  25892. s/\(.\{148\}\)..*/\1/
  25893. t more1
  25894. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  25895. p
  25896. n
  25897. b repl
  25898. :more1
  25899. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  25900. p
  25901. g
  25902. s/.\{148\}//
  25903. t nl
  25904. :delim
  25905. h
  25906. s/\(.\{148\}\)..*/\1/
  25907. t more2
  25908. s/["\\]/\\&/g; s/^/"/; s/$/"/
  25909. p
  25910. b
  25911. :more2
  25912. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  25913. p
  25914. g
  25915. s/.\{148\}//
  25916. t delim
  25917. ' <conf$$subs.awk | sed '
  25918. /^[^""]/{
  25919. N
  25920. s/\n//
  25921. }
  25922. ' >>$CONFIG_STATUS || ac_write_fail=1
  25923. rm -f conf$$subs.awk
  25924. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25925. _ACAWK
  25926. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  25927. for (key in S) S_is_set[key] = 1
  25928. FS = ""
  25929. }
  25930. {
  25931. line = $ 0
  25932. nfields = split(line, field, "@")
  25933. substed = 0
  25934. len = length(field[1])
  25935. for (i = 2; i < nfields; i++) {
  25936. key = field[i]
  25937. keylen = length(key)
  25938. if (S_is_set[key]) {
  25939. value = S[key]
  25940. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  25941. len += length(value) + length(field[++i])
  25942. substed = 1
  25943. } else
  25944. len += 1 + keylen
  25945. }
  25946. print line
  25947. }
  25948. _ACAWK
  25949. _ACEOF
  25950. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25951. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  25952. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  25953. else
  25954. cat
  25955. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  25956. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  25957. _ACEOF
  25958. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  25959. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  25960. # trailing colons and then remove the whole line if VPATH becomes empty
  25961. # (actually we leave an empty line to preserve line numbers).
  25962. if test "x$srcdir" = x.; then
  25963. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  25964. h
  25965. s///
  25966. s/^/:/
  25967. s/[ ]*$/:/
  25968. s/:\$(srcdir):/:/g
  25969. s/:\${srcdir}:/:/g
  25970. s/:@srcdir@:/:/g
  25971. s/^:*//
  25972. s/:*$//
  25973. x
  25974. s/\(=[ ]*\).*/\1/
  25975. G
  25976. s/\n//
  25977. s/^[^=]*=[ ]*$//
  25978. }'
  25979. fi
  25980. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25981. fi # test -n "$CONFIG_FILES"
  25982. # Set up the scripts for CONFIG_HEADERS section.
  25983. # No need to generate them if there are no CONFIG_HEADERS.
  25984. # This happens for instance with `./config.status Makefile'.
  25985. if test -n "$CONFIG_HEADERS"; then
  25986. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  25987. BEGIN {
  25988. _ACEOF
  25989. # Transform confdefs.h into an awk script `defines.awk', embedded as
  25990. # here-document in config.status, that substitutes the proper values into
  25991. # config.h.in to produce config.h.
  25992. # Create a delimiter string that does not exist in confdefs.h, to ease
  25993. # handling of long lines.
  25994. ac_delim='%!_!# '
  25995. for ac_last_try in false false :; do
  25996. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  25997. if test -z "$ac_tt"; then
  25998. break
  25999. elif $ac_last_try; then
  26000. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  26001. else
  26002. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26003. fi
  26004. done
  26005. # For the awk script, D is an array of macro values keyed by name,
  26006. # likewise P contains macro parameters if any. Preserve backslash
  26007. # newline sequences.
  26008. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  26009. sed -n '
  26010. s/.\{148\}/&'"$ac_delim"'/g
  26011. t rset
  26012. :rset
  26013. s/^[ ]*#[ ]*define[ ][ ]*/ /
  26014. t def
  26015. d
  26016. :def
  26017. s/\\$//
  26018. t bsnl
  26019. s/["\\]/\\&/g
  26020. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26021. D["\1"]=" \3"/p
  26022. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  26023. d
  26024. :bsnl
  26025. s/["\\]/\\&/g
  26026. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26027. D["\1"]=" \3\\\\\\n"\\/p
  26028. t cont
  26029. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  26030. t cont
  26031. d
  26032. :cont
  26033. n
  26034. s/.\{148\}/&'"$ac_delim"'/g
  26035. t clear
  26036. :clear
  26037. s/\\$//
  26038. t bsnlc
  26039. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  26040. d
  26041. :bsnlc
  26042. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  26043. b cont
  26044. ' <confdefs.h | sed '
  26045. s/'"$ac_delim"'/"\\\
  26046. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  26047. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26048. for (key in D) D_is_set[key] = 1
  26049. FS = ""
  26050. }
  26051. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  26052. line = \$ 0
  26053. split(line, arg, " ")
  26054. if (arg[1] == "#") {
  26055. defundef = arg[2]
  26056. mac1 = arg[3]
  26057. } else {
  26058. defundef = substr(arg[1], 2)
  26059. mac1 = arg[2]
  26060. }
  26061. split(mac1, mac2, "(") #)
  26062. macro = mac2[1]
  26063. prefix = substr(line, 1, index(line, defundef) - 1)
  26064. if (D_is_set[macro]) {
  26065. # Preserve the white space surrounding the "#".
  26066. print prefix "define", macro P[macro] D[macro]
  26067. next
  26068. } else {
  26069. # Replace #undef with comments. This is necessary, for example,
  26070. # in the case of _POSIX_SOURCE, which is predefined and required
  26071. # on some systems where configure will not decide to define it.
  26072. if (defundef == "undef") {
  26073. print "/*", prefix defundef, macro, "*/"
  26074. next
  26075. }
  26076. }
  26077. }
  26078. { print }
  26079. _ACAWK
  26080. _ACEOF
  26081. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26082. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  26083. fi # test -n "$CONFIG_HEADERS"
  26084. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  26085. shift
  26086. for ac_tag
  26087. do
  26088. case $ac_tag in
  26089. :[FHLC]) ac_mode=$ac_tag; continue;;
  26090. esac
  26091. case $ac_mode$ac_tag in
  26092. :[FHL]*:*);;
  26093. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  26094. :[FH]-) ac_tag=-:-;;
  26095. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  26096. esac
  26097. ac_save_IFS=$IFS
  26098. IFS=:
  26099. set x $ac_tag
  26100. IFS=$ac_save_IFS
  26101. shift
  26102. ac_file=$1
  26103. shift
  26104. case $ac_mode in
  26105. :L) ac_source=$1;;
  26106. :[FH])
  26107. ac_file_inputs=
  26108. for ac_f
  26109. do
  26110. case $ac_f in
  26111. -) ac_f="$ac_tmp/stdin";;
  26112. *) # Look for the file first in the build tree, then in the source tree
  26113. # (if the path is not absolute). The absolute path cannot be DOS-style,
  26114. # because $ac_f cannot contain `:'.
  26115. test -f "$ac_f" ||
  26116. case $ac_f in
  26117. [\\/$]*) false;;
  26118. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  26119. esac ||
  26120. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  26121. esac
  26122. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  26123. as_fn_append ac_file_inputs " '$ac_f'"
  26124. done
  26125. # Let's still pretend it is `configure' which instantiates (i.e., don't
  26126. # use $as_me), people would be surprised to read:
  26127. # /* config.h. Generated by config.status. */
  26128. configure_input='Generated from '`
  26129. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  26130. `' by configure.'
  26131. if test x"$ac_file" != x-; then
  26132. configure_input="$ac_file. $configure_input"
  26133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  26134. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  26135. fi
  26136. # Neutralize special characters interpreted by sed in replacement strings.
  26137. case $configure_input in #(
  26138. *\&* | *\|* | *\\* )
  26139. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  26140. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  26141. *) ac_sed_conf_input=$configure_input;;
  26142. esac
  26143. case $ac_tag in
  26144. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  26145. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  26146. esac
  26147. ;;
  26148. esac
  26149. ac_dir=`$as_dirname -- "$ac_file" ||
  26150. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26151. X"$ac_file" : 'X\(//\)[^/]' \| \
  26152. X"$ac_file" : 'X\(//\)$' \| \
  26153. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  26154. printf "%s\n" X"$ac_file" |
  26155. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26156. s//\1/
  26157. q
  26158. }
  26159. /^X\(\/\/\)[^/].*/{
  26160. s//\1/
  26161. q
  26162. }
  26163. /^X\(\/\/\)$/{
  26164. s//\1/
  26165. q
  26166. }
  26167. /^X\(\/\).*/{
  26168. s//\1/
  26169. q
  26170. }
  26171. s/.*/./; q'`
  26172. as_dir="$ac_dir"; as_fn_mkdir_p
  26173. ac_builddir=.
  26174. case "$ac_dir" in
  26175. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26176. *)
  26177. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  26178. # A ".." for each directory in $ac_dir_suffix.
  26179. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  26180. case $ac_top_builddir_sub in
  26181. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26182. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  26183. esac ;;
  26184. esac
  26185. ac_abs_top_builddir=$ac_pwd
  26186. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  26187. # for backward compatibility:
  26188. ac_top_builddir=$ac_top_build_prefix
  26189. case $srcdir in
  26190. .) # We are building in place.
  26191. ac_srcdir=.
  26192. ac_top_srcdir=$ac_top_builddir_sub
  26193. ac_abs_top_srcdir=$ac_pwd ;;
  26194. [\\/]* | ?:[\\/]* ) # Absolute name.
  26195. ac_srcdir=$srcdir$ac_dir_suffix;
  26196. ac_top_srcdir=$srcdir
  26197. ac_abs_top_srcdir=$srcdir ;;
  26198. *) # Relative name.
  26199. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  26200. ac_top_srcdir=$ac_top_build_prefix$srcdir
  26201. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  26202. esac
  26203. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  26204. case $ac_mode in
  26205. :F)
  26206. #
  26207. # CONFIG_FILE
  26208. #
  26209. case $INSTALL in
  26210. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  26211. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  26212. esac
  26213. _ACEOF
  26214. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26215. # If the template does not know about datarootdir, expand it.
  26216. # FIXME: This hack should be removed a few years after 2.60.
  26217. ac_datarootdir_hack=; ac_datarootdir_seen=
  26218. ac_sed_dataroot='
  26219. /datarootdir/ {
  26220. p
  26221. q
  26222. }
  26223. /@datadir@/p
  26224. /@docdir@/p
  26225. /@infodir@/p
  26226. /@localedir@/p
  26227. /@mandir@/p'
  26228. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  26229. *datarootdir*) ac_datarootdir_seen=yes;;
  26230. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  26231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  26232. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  26233. _ACEOF
  26234. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26235. ac_datarootdir_hack='
  26236. s&@datadir@&$datadir&g
  26237. s&@docdir@&$docdir&g
  26238. s&@infodir@&$infodir&g
  26239. s&@localedir@&$localedir&g
  26240. s&@mandir@&$mandir&g
  26241. s&\\\${datarootdir}&$datarootdir&g' ;;
  26242. esac
  26243. _ACEOF
  26244. # Neutralize VPATH when `$srcdir' = `.'.
  26245. # Shell code in configure.ac might set extrasub.
  26246. # FIXME: do we really want to maintain this feature?
  26247. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26248. ac_sed_extra="$ac_vpsub
  26249. $extrasub
  26250. _ACEOF
  26251. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26252. :t
  26253. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  26254. s|@configure_input@|$ac_sed_conf_input|;t t
  26255. s&@top_builddir@&$ac_top_builddir_sub&;t t
  26256. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  26257. s&@srcdir@&$ac_srcdir&;t t
  26258. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  26259. s&@top_srcdir@&$ac_top_srcdir&;t t
  26260. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  26261. s&@builddir@&$ac_builddir&;t t
  26262. s&@abs_builddir@&$ac_abs_builddir&;t t
  26263. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  26264. s&@INSTALL@&$ac_INSTALL&;t t
  26265. $ac_datarootdir_hack
  26266. "
  26267. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  26268. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26269. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  26270. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  26271. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  26272. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  26273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  26274. which seems to be undefined. Please make sure it is defined" >&5
  26275. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  26276. which seems to be undefined. Please make sure it is defined" >&2;}
  26277. rm -f "$ac_tmp/stdin"
  26278. case $ac_file in
  26279. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  26280. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  26281. esac \
  26282. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26283. ;;
  26284. :H)
  26285. #
  26286. # CONFIG_HEADER
  26287. #
  26288. if test x"$ac_file" != x-; then
  26289. {
  26290. printf "%s\n" "/* $configure_input */" >&1 \
  26291. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  26292. } >"$ac_tmp/config.h" \
  26293. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26294. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  26295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  26296. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  26297. else
  26298. rm -f "$ac_file"
  26299. mv "$ac_tmp/config.h" "$ac_file" \
  26300. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26301. fi
  26302. else
  26303. printf "%s\n" "/* $configure_input */" >&1 \
  26304. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  26305. || as_fn_error $? "could not create -" "$LINENO" 5
  26306. fi
  26307. ;;
  26308. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  26309. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  26310. ;;
  26311. esac
  26312. case $ac_file$ac_mode in
  26313. "libtool":C)
  26314. # See if we are running on zsh, and set the options that allow our
  26315. # commands through without removal of \ escapes.
  26316. if test -n "${ZSH_VERSION+set}"; then
  26317. setopt NO_GLOB_SUBST
  26318. fi
  26319. cfgfile=${ofile}T
  26320. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  26321. $RM "$cfgfile"
  26322. cat <<_LT_EOF >> "$cfgfile"
  26323. #! $SHELL
  26324. # Generated automatically by $as_me ($PACKAGE) $VERSION
  26325. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  26326. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  26327. # Provide generalized library-building support services.
  26328. # Written by Gordon Matzigkeit, 1996
  26329. # Copyright (C) 2014 Free Software Foundation, Inc.
  26330. # This is free software; see the source for copying conditions. There is NO
  26331. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  26332. # GNU Libtool is free software; you can redistribute it and/or modify
  26333. # it under the terms of the GNU General Public License as published by
  26334. # the Free Software Foundation; either version 2 of of the License, or
  26335. # (at your option) any later version.
  26336. #
  26337. # As a special exception to the GNU General Public License, if you
  26338. # distribute this file as part of a program or library that is built
  26339. # using GNU Libtool, you may include this file under the same
  26340. # distribution terms that you use for the rest of that program.
  26341. #
  26342. # GNU Libtool is distributed in the hope that it will be useful, but
  26343. # WITHOUT ANY WARRANTY; without even the implied warranty of
  26344. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  26345. # GNU General Public License for more details.
  26346. #
  26347. # You should have received a copy of the GNU General Public License
  26348. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  26349. # The names of the tagged configurations supported by this script.
  26350. available_tags='RC CXX '
  26351. # Configured defaults for sys_lib_dlsearch_path munging.
  26352. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  26353. # ### BEGIN LIBTOOL CONFIG
  26354. # Which release of libtool.m4 was used?
  26355. macro_version=$macro_version
  26356. macro_revision=$macro_revision
  26357. # Assembler program.
  26358. AS=$lt_AS
  26359. # DLL creation program.
  26360. DLLTOOL=$lt_DLLTOOL
  26361. # Object dumper program.
  26362. OBJDUMP=$lt_OBJDUMP
  26363. # Whether or not to build shared libraries.
  26364. build_libtool_libs=$enable_shared
  26365. # Whether or not to build static libraries.
  26366. build_old_libs=$enable_static
  26367. # What type of objects to build.
  26368. pic_mode=$pic_mode
  26369. # Whether or not to optimize for fast installation.
  26370. fast_install=$enable_fast_install
  26371. # Shared archive member basename,for filename based shared library versioning on AIX.
  26372. shared_archive_member_spec=$shared_archive_member_spec
  26373. # Shell to use when invoking shell scripts.
  26374. SHELL=$lt_SHELL
  26375. # An echo program that protects backslashes.
  26376. ECHO=$lt_ECHO
  26377. # The PATH separator for the build system.
  26378. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  26379. # The host system.
  26380. host_alias=$host_alias
  26381. host=$host
  26382. host_os=$host_os
  26383. # The build system.
  26384. build_alias=$build_alias
  26385. build=$build
  26386. build_os=$build_os
  26387. # A sed program that does not truncate output.
  26388. SED=$lt_SED
  26389. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  26390. Xsed="\$SED -e 1s/^X//"
  26391. # A grep program that handles long lines.
  26392. GREP=$lt_GREP
  26393. # An ERE matcher.
  26394. EGREP=$lt_EGREP
  26395. # A literal string matcher.
  26396. FGREP=$lt_FGREP
  26397. # A BSD- or MS-compatible name lister.
  26398. NM=$lt_NM
  26399. # Whether we need soft or hard links.
  26400. LN_S=$lt_LN_S
  26401. # What is the maximum length of a command?
  26402. max_cmd_len=$max_cmd_len
  26403. # Object file suffix (normally "o").
  26404. objext=$ac_objext
  26405. # Executable file suffix (normally "").
  26406. exeext=$exeext
  26407. # whether the shell understands "unset".
  26408. lt_unset=$lt_unset
  26409. # turn spaces into newlines.
  26410. SP2NL=$lt_lt_SP2NL
  26411. # turn newlines into spaces.
  26412. NL2SP=$lt_lt_NL2SP
  26413. # convert \$build file names to \$host format.
  26414. to_host_file_cmd=$lt_cv_to_host_file_cmd
  26415. # convert \$build files to toolchain format.
  26416. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  26417. # Method to check whether dependent libraries are shared objects.
  26418. deplibs_check_method=$lt_deplibs_check_method
  26419. # Command to use when deplibs_check_method = "file_magic".
  26420. file_magic_cmd=$lt_file_magic_cmd
  26421. # How to find potential files when deplibs_check_method = "file_magic".
  26422. file_magic_glob=$lt_file_magic_glob
  26423. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  26424. want_nocaseglob=$lt_want_nocaseglob
  26425. # Command to associate shared and link libraries.
  26426. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  26427. # The archiver.
  26428. AR=$lt_AR
  26429. # Flags to create an archive.
  26430. AR_FLAGS=$lt_AR_FLAGS
  26431. # How to feed a file listing to the archiver.
  26432. archiver_list_spec=$lt_archiver_list_spec
  26433. # A symbol stripping program.
  26434. STRIP=$lt_STRIP
  26435. # Commands used to install an old-style archive.
  26436. RANLIB=$lt_RANLIB
  26437. old_postinstall_cmds=$lt_old_postinstall_cmds
  26438. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  26439. # Whether to use a lock for old archive extraction.
  26440. lock_old_archive_extraction=$lock_old_archive_extraction
  26441. # A C compiler.
  26442. LTCC=$lt_CC
  26443. # LTCC compiler flags.
  26444. LTCFLAGS=$lt_CFLAGS
  26445. # Take the output of nm and produce a listing of raw symbols and C names.
  26446. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  26447. # Transform the output of nm in a proper C declaration.
  26448. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  26449. # Transform the output of nm into a list of symbols to manually relocate.
  26450. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  26451. # Transform the output of nm in a C name address pair.
  26452. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  26453. # Transform the output of nm in a C name address pair when lib prefix is needed.
  26454. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  26455. # The name lister interface.
  26456. nm_interface=$lt_lt_cv_nm_interface
  26457. # Specify filename containing input files for \$NM.
  26458. nm_file_list_spec=$lt_nm_file_list_spec
  26459. # The root where to search for dependent libraries,and where our libraries should be installed.
  26460. lt_sysroot=$lt_sysroot
  26461. # Command to truncate a binary pipe.
  26462. lt_truncate_bin=$lt_lt_cv_truncate_bin
  26463. # The name of the directory that contains temporary libtool files.
  26464. objdir=$objdir
  26465. # Used to examine libraries when file_magic_cmd begins with "file".
  26466. MAGIC_CMD=$MAGIC_CMD
  26467. # Must we lock files when doing compilation?
  26468. need_locks=$lt_need_locks
  26469. # Manifest tool.
  26470. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  26471. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  26472. DSYMUTIL=$lt_DSYMUTIL
  26473. # Tool to change global to local symbols on Mac OS X.
  26474. NMEDIT=$lt_NMEDIT
  26475. # Tool to manipulate fat objects and archives on Mac OS X.
  26476. LIPO=$lt_LIPO
  26477. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  26478. OTOOL=$lt_OTOOL
  26479. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  26480. OTOOL64=$lt_OTOOL64
  26481. # Old archive suffix (normally "a").
  26482. libext=$libext
  26483. # Shared library suffix (normally ".so").
  26484. shrext_cmds=$lt_shrext_cmds
  26485. # The commands to extract the exported symbol list from a shared archive.
  26486. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  26487. # Variables whose values should be saved in libtool wrapper scripts and
  26488. # restored at link time.
  26489. variables_saved_for_relink=$lt_variables_saved_for_relink
  26490. # Do we need the "lib" prefix for modules?
  26491. need_lib_prefix=$need_lib_prefix
  26492. # Do we need a version for libraries?
  26493. need_version=$need_version
  26494. # Library versioning type.
  26495. version_type=$version_type
  26496. # Shared library runtime path variable.
  26497. runpath_var=$runpath_var
  26498. # Shared library path variable.
  26499. shlibpath_var=$shlibpath_var
  26500. # Is shlibpath searched before the hard-coded library search path?
  26501. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  26502. # Format of library name prefix.
  26503. libname_spec=$lt_libname_spec
  26504. # List of archive names. First name is the real one, the rest are links.
  26505. # The last name is the one that the linker finds with -lNAME
  26506. library_names_spec=$lt_library_names_spec
  26507. # The coded name of the library, if different from the real name.
  26508. soname_spec=$lt_soname_spec
  26509. # Permission mode override for installation of shared libraries.
  26510. install_override_mode=$lt_install_override_mode
  26511. # Command to use after installation of a shared archive.
  26512. postinstall_cmds=$lt_postinstall_cmds
  26513. # Command to use after uninstallation of a shared archive.
  26514. postuninstall_cmds=$lt_postuninstall_cmds
  26515. # Commands used to finish a libtool library installation in a directory.
  26516. finish_cmds=$lt_finish_cmds
  26517. # As "finish_cmds", except a single script fragment to be evaled but
  26518. # not shown.
  26519. finish_eval=$lt_finish_eval
  26520. # Whether we should hardcode library paths into libraries.
  26521. hardcode_into_libs=$hardcode_into_libs
  26522. # Compile-time system search path for libraries.
  26523. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  26524. # Detected run-time system search path for libraries.
  26525. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  26526. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  26527. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  26528. # Whether dlopen is supported.
  26529. dlopen_support=$enable_dlopen
  26530. # Whether dlopen of programs is supported.
  26531. dlopen_self=$enable_dlopen_self
  26532. # Whether dlopen of statically linked programs is supported.
  26533. dlopen_self_static=$enable_dlopen_self_static
  26534. # Commands to strip libraries.
  26535. old_striplib=$lt_old_striplib
  26536. striplib=$lt_striplib
  26537. # The linker used to build libraries.
  26538. LD=$lt_LD
  26539. # How to create reloadable object files.
  26540. reload_flag=$lt_reload_flag
  26541. reload_cmds=$lt_reload_cmds
  26542. # Commands used to build an old-style archive.
  26543. old_archive_cmds=$lt_old_archive_cmds
  26544. # A language specific compiler.
  26545. CC=$lt_compiler
  26546. # Is the compiler the GNU compiler?
  26547. with_gcc=$GCC
  26548. # Compiler flag to turn off builtin functions.
  26549. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  26550. # Additional compiler flags for building library objects.
  26551. pic_flag=$lt_lt_prog_compiler_pic
  26552. # How to pass a linker flag through the compiler.
  26553. wl=$lt_lt_prog_compiler_wl
  26554. # Compiler flag to prevent dynamic linking.
  26555. link_static_flag=$lt_lt_prog_compiler_static
  26556. # Does compiler simultaneously support -c and -o options?
  26557. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  26558. # Whether or not to add -lc for building shared libraries.
  26559. build_libtool_need_lc=$archive_cmds_need_lc
  26560. # Whether or not to disallow shared libs when runtime libs are static.
  26561. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  26562. # Compiler flag to allow reflexive dlopens.
  26563. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  26564. # Compiler flag to generate shared objects directly from archives.
  26565. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  26566. # Whether the compiler copes with passing no objects directly.
  26567. compiler_needs_object=$lt_compiler_needs_object
  26568. # Create an old-style archive from a shared archive.
  26569. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  26570. # Create a temporary old-style archive to link instead of a shared archive.
  26571. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  26572. # Commands used to build a shared archive.
  26573. archive_cmds=$lt_archive_cmds
  26574. archive_expsym_cmds=$lt_archive_expsym_cmds
  26575. # Commands used to build a loadable module if different from building
  26576. # a shared archive.
  26577. module_cmds=$lt_module_cmds
  26578. module_expsym_cmds=$lt_module_expsym_cmds
  26579. # Whether we are building with GNU ld or not.
  26580. with_gnu_ld=$lt_with_gnu_ld
  26581. # Flag that allows shared libraries with undefined symbols to be built.
  26582. allow_undefined_flag=$lt_allow_undefined_flag
  26583. # Flag that enforces no undefined symbols.
  26584. no_undefined_flag=$lt_no_undefined_flag
  26585. # Flag to hardcode \$libdir into a binary during linking.
  26586. # This must work even if \$libdir does not exist
  26587. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  26588. # Whether we need a single "-rpath" flag with a separated argument.
  26589. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  26590. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26591. # DIR into the resulting binary.
  26592. hardcode_direct=$hardcode_direct
  26593. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26594. # DIR into the resulting binary and the resulting library dependency is
  26595. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26596. # library is relocated.
  26597. hardcode_direct_absolute=$hardcode_direct_absolute
  26598. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26599. # into the resulting binary.
  26600. hardcode_minus_L=$hardcode_minus_L
  26601. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26602. # into the resulting binary.
  26603. hardcode_shlibpath_var=$hardcode_shlibpath_var
  26604. # Set to "yes" if building a shared library automatically hardcodes DIR
  26605. # into the library and all subsequent libraries and executables linked
  26606. # against it.
  26607. hardcode_automatic=$hardcode_automatic
  26608. # Set to yes if linker adds runtime paths of dependent libraries
  26609. # to runtime path list.
  26610. inherit_rpath=$inherit_rpath
  26611. # Whether libtool must link a program against all its dependency libraries.
  26612. link_all_deplibs=$link_all_deplibs
  26613. # Set to "yes" if exported symbols are required.
  26614. always_export_symbols=$always_export_symbols
  26615. # The commands to list exported symbols.
  26616. export_symbols_cmds=$lt_export_symbols_cmds
  26617. # Symbols that should not be listed in the preloaded symbols.
  26618. exclude_expsyms=$lt_exclude_expsyms
  26619. # Symbols that must always be exported.
  26620. include_expsyms=$lt_include_expsyms
  26621. # Commands necessary for linking programs (against libraries) with templates.
  26622. prelink_cmds=$lt_prelink_cmds
  26623. # Commands necessary for finishing linking programs.
  26624. postlink_cmds=$lt_postlink_cmds
  26625. # Specify filename containing input files.
  26626. file_list_spec=$lt_file_list_spec
  26627. # How to hardcode a shared library path into an executable.
  26628. hardcode_action=$hardcode_action
  26629. # The directories searched by this compiler when creating a shared library.
  26630. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  26631. # Dependencies to place before and after the objects being linked to
  26632. # create a shared library.
  26633. predep_objects=$lt_predep_objects
  26634. postdep_objects=$lt_postdep_objects
  26635. predeps=$lt_predeps
  26636. postdeps=$lt_postdeps
  26637. # The library search path used internally by the compiler when linking
  26638. # a shared library.
  26639. compiler_lib_search_path=$lt_compiler_lib_search_path
  26640. # ### END LIBTOOL CONFIG
  26641. _LT_EOF
  26642. cat <<'_LT_EOF' >> "$cfgfile"
  26643. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  26644. # func_munge_path_list VARIABLE PATH
  26645. # -----------------------------------
  26646. # VARIABLE is name of variable containing _space_ separated list of
  26647. # directories to be munged by the contents of PATH, which is string
  26648. # having a format:
  26649. # "DIR[:DIR]:"
  26650. # string "DIR[ DIR]" will be prepended to VARIABLE
  26651. # ":DIR[:DIR]"
  26652. # string "DIR[ DIR]" will be appended to VARIABLE
  26653. # "DIRP[:DIRP]::[DIRA:]DIRA"
  26654. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  26655. # "DIRA[ DIRA]" will be appended to VARIABLE
  26656. # "DIR[:DIR]"
  26657. # VARIABLE will be replaced by "DIR[ DIR]"
  26658. func_munge_path_list ()
  26659. {
  26660. case x$2 in
  26661. x)
  26662. ;;
  26663. *:)
  26664. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  26665. ;;
  26666. x:*)
  26667. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  26668. ;;
  26669. *::*)
  26670. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  26671. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  26672. ;;
  26673. *)
  26674. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  26675. ;;
  26676. esac
  26677. }
  26678. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  26679. func_cc_basename ()
  26680. {
  26681. for cc_temp in $*""; do
  26682. case $cc_temp in
  26683. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26684. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26685. \-*) ;;
  26686. *) break;;
  26687. esac
  26688. done
  26689. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  26690. }
  26691. # ### END FUNCTIONS SHARED WITH CONFIGURE
  26692. _LT_EOF
  26693. case $host_os in
  26694. aix3*)
  26695. cat <<\_LT_EOF >> "$cfgfile"
  26696. # AIX sometimes has problems with the GCC collect2 program. For some
  26697. # reason, if we set the COLLECT_NAMES environment variable, the problems
  26698. # vanish in a puff of smoke.
  26699. if test set != "${COLLECT_NAMES+set}"; then
  26700. COLLECT_NAMES=
  26701. export COLLECT_NAMES
  26702. fi
  26703. _LT_EOF
  26704. ;;
  26705. esac
  26706. ltmain=$ac_aux_dir/ltmain.sh
  26707. # We use sed instead of cat because bash on DJGPP gets confused if
  26708. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  26709. # text mode, it properly converts lines to CR/LF. This bash problem
  26710. # is reportedly fixed, but why not run on old versions too?
  26711. sed '$q' "$ltmain" >> "$cfgfile" \
  26712. || (rm -f "$cfgfile"; exit 1)
  26713. mv -f "$cfgfile" "$ofile" ||
  26714. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  26715. chmod +x "$ofile"
  26716. cat <<_LT_EOF >> "$ofile"
  26717. # ### BEGIN LIBTOOL TAG CONFIG: RC
  26718. # The linker used to build libraries.
  26719. LD=$lt_LD_RC
  26720. # How to create reloadable object files.
  26721. reload_flag=$lt_reload_flag_RC
  26722. reload_cmds=$lt_reload_cmds_RC
  26723. # Commands used to build an old-style archive.
  26724. old_archive_cmds=$lt_old_archive_cmds_RC
  26725. # A language specific compiler.
  26726. CC=$lt_compiler_RC
  26727. # Is the compiler the GNU compiler?
  26728. with_gcc=$GCC_RC
  26729. # Compiler flag to turn off builtin functions.
  26730. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  26731. # Additional compiler flags for building library objects.
  26732. pic_flag=$lt_lt_prog_compiler_pic_RC
  26733. # How to pass a linker flag through the compiler.
  26734. wl=$lt_lt_prog_compiler_wl_RC
  26735. # Compiler flag to prevent dynamic linking.
  26736. link_static_flag=$lt_lt_prog_compiler_static_RC
  26737. # Does compiler simultaneously support -c and -o options?
  26738. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  26739. # Whether or not to add -lc for building shared libraries.
  26740. build_libtool_need_lc=$archive_cmds_need_lc_RC
  26741. # Whether or not to disallow shared libs when runtime libs are static.
  26742. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  26743. # Compiler flag to allow reflexive dlopens.
  26744. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  26745. # Compiler flag to generate shared objects directly from archives.
  26746. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  26747. # Whether the compiler copes with passing no objects directly.
  26748. compiler_needs_object=$lt_compiler_needs_object_RC
  26749. # Create an old-style archive from a shared archive.
  26750. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  26751. # Create a temporary old-style archive to link instead of a shared archive.
  26752. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  26753. # Commands used to build a shared archive.
  26754. archive_cmds=$lt_archive_cmds_RC
  26755. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  26756. # Commands used to build a loadable module if different from building
  26757. # a shared archive.
  26758. module_cmds=$lt_module_cmds_RC
  26759. module_expsym_cmds=$lt_module_expsym_cmds_RC
  26760. # Whether we are building with GNU ld or not.
  26761. with_gnu_ld=$lt_with_gnu_ld_RC
  26762. # Flag that allows shared libraries with undefined symbols to be built.
  26763. allow_undefined_flag=$lt_allow_undefined_flag_RC
  26764. # Flag that enforces no undefined symbols.
  26765. no_undefined_flag=$lt_no_undefined_flag_RC
  26766. # Flag to hardcode \$libdir into a binary during linking.
  26767. # This must work even if \$libdir does not exist
  26768. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  26769. # Whether we need a single "-rpath" flag with a separated argument.
  26770. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  26771. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26772. # DIR into the resulting binary.
  26773. hardcode_direct=$hardcode_direct_RC
  26774. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26775. # DIR into the resulting binary and the resulting library dependency is
  26776. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26777. # library is relocated.
  26778. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  26779. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26780. # into the resulting binary.
  26781. hardcode_minus_L=$hardcode_minus_L_RC
  26782. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26783. # into the resulting binary.
  26784. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  26785. # Set to "yes" if building a shared library automatically hardcodes DIR
  26786. # into the library and all subsequent libraries and executables linked
  26787. # against it.
  26788. hardcode_automatic=$hardcode_automatic_RC
  26789. # Set to yes if linker adds runtime paths of dependent libraries
  26790. # to runtime path list.
  26791. inherit_rpath=$inherit_rpath_RC
  26792. # Whether libtool must link a program against all its dependency libraries.
  26793. link_all_deplibs=$link_all_deplibs_RC
  26794. # Set to "yes" if exported symbols are required.
  26795. always_export_symbols=$always_export_symbols_RC
  26796. # The commands to list exported symbols.
  26797. export_symbols_cmds=$lt_export_symbols_cmds_RC
  26798. # Symbols that should not be listed in the preloaded symbols.
  26799. exclude_expsyms=$lt_exclude_expsyms_RC
  26800. # Symbols that must always be exported.
  26801. include_expsyms=$lt_include_expsyms_RC
  26802. # Commands necessary for linking programs (against libraries) with templates.
  26803. prelink_cmds=$lt_prelink_cmds_RC
  26804. # Commands necessary for finishing linking programs.
  26805. postlink_cmds=$lt_postlink_cmds_RC
  26806. # Specify filename containing input files.
  26807. file_list_spec=$lt_file_list_spec_RC
  26808. # How to hardcode a shared library path into an executable.
  26809. hardcode_action=$hardcode_action_RC
  26810. # The directories searched by this compiler when creating a shared library.
  26811. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  26812. # Dependencies to place before and after the objects being linked to
  26813. # create a shared library.
  26814. predep_objects=$lt_predep_objects_RC
  26815. postdep_objects=$lt_postdep_objects_RC
  26816. predeps=$lt_predeps_RC
  26817. postdeps=$lt_postdeps_RC
  26818. # The library search path used internally by the compiler when linking
  26819. # a shared library.
  26820. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  26821. # ### END LIBTOOL TAG CONFIG: RC
  26822. _LT_EOF
  26823. cat <<_LT_EOF >> "$ofile"
  26824. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  26825. # The linker used to build libraries.
  26826. LD=$lt_LD_CXX
  26827. # How to create reloadable object files.
  26828. reload_flag=$lt_reload_flag_CXX
  26829. reload_cmds=$lt_reload_cmds_CXX
  26830. # Commands used to build an old-style archive.
  26831. old_archive_cmds=$lt_old_archive_cmds_CXX
  26832. # A language specific compiler.
  26833. CC=$lt_compiler_CXX
  26834. # Is the compiler the GNU compiler?
  26835. with_gcc=$GCC_CXX
  26836. # Compiler flag to turn off builtin functions.
  26837. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  26838. # Additional compiler flags for building library objects.
  26839. pic_flag=$lt_lt_prog_compiler_pic_CXX
  26840. # How to pass a linker flag through the compiler.
  26841. wl=$lt_lt_prog_compiler_wl_CXX
  26842. # Compiler flag to prevent dynamic linking.
  26843. link_static_flag=$lt_lt_prog_compiler_static_CXX
  26844. # Does compiler simultaneously support -c and -o options?
  26845. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  26846. # Whether or not to add -lc for building shared libraries.
  26847. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  26848. # Whether or not to disallow shared libs when runtime libs are static.
  26849. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  26850. # Compiler flag to allow reflexive dlopens.
  26851. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  26852. # Compiler flag to generate shared objects directly from archives.
  26853. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  26854. # Whether the compiler copes with passing no objects directly.
  26855. compiler_needs_object=$lt_compiler_needs_object_CXX
  26856. # Create an old-style archive from a shared archive.
  26857. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  26858. # Create a temporary old-style archive to link instead of a shared archive.
  26859. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  26860. # Commands used to build a shared archive.
  26861. archive_cmds=$lt_archive_cmds_CXX
  26862. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  26863. # Commands used to build a loadable module if different from building
  26864. # a shared archive.
  26865. module_cmds=$lt_module_cmds_CXX
  26866. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  26867. # Whether we are building with GNU ld or not.
  26868. with_gnu_ld=$lt_with_gnu_ld_CXX
  26869. # Flag that allows shared libraries with undefined symbols to be built.
  26870. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  26871. # Flag that enforces no undefined symbols.
  26872. no_undefined_flag=$lt_no_undefined_flag_CXX
  26873. # Flag to hardcode \$libdir into a binary during linking.
  26874. # This must work even if \$libdir does not exist
  26875. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  26876. # Whether we need a single "-rpath" flag with a separated argument.
  26877. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  26878. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26879. # DIR into the resulting binary.
  26880. hardcode_direct=$hardcode_direct_CXX
  26881. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26882. # DIR into the resulting binary and the resulting library dependency is
  26883. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26884. # library is relocated.
  26885. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  26886. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26887. # into the resulting binary.
  26888. hardcode_minus_L=$hardcode_minus_L_CXX
  26889. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26890. # into the resulting binary.
  26891. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  26892. # Set to "yes" if building a shared library automatically hardcodes DIR
  26893. # into the library and all subsequent libraries and executables linked
  26894. # against it.
  26895. hardcode_automatic=$hardcode_automatic_CXX
  26896. # Set to yes if linker adds runtime paths of dependent libraries
  26897. # to runtime path list.
  26898. inherit_rpath=$inherit_rpath_CXX
  26899. # Whether libtool must link a program against all its dependency libraries.
  26900. link_all_deplibs=$link_all_deplibs_CXX
  26901. # Set to "yes" if exported symbols are required.
  26902. always_export_symbols=$always_export_symbols_CXX
  26903. # The commands to list exported symbols.
  26904. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  26905. # Symbols that should not be listed in the preloaded symbols.
  26906. exclude_expsyms=$lt_exclude_expsyms_CXX
  26907. # Symbols that must always be exported.
  26908. include_expsyms=$lt_include_expsyms_CXX
  26909. # Commands necessary for linking programs (against libraries) with templates.
  26910. prelink_cmds=$lt_prelink_cmds_CXX
  26911. # Commands necessary for finishing linking programs.
  26912. postlink_cmds=$lt_postlink_cmds_CXX
  26913. # Specify filename containing input files.
  26914. file_list_spec=$lt_file_list_spec_CXX
  26915. # How to hardcode a shared library path into an executable.
  26916. hardcode_action=$hardcode_action_CXX
  26917. # The directories searched by this compiler when creating a shared library.
  26918. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  26919. # Dependencies to place before and after the objects being linked to
  26920. # create a shared library.
  26921. predep_objects=$lt_predep_objects_CXX
  26922. postdep_objects=$lt_postdep_objects_CXX
  26923. predeps=$lt_predeps_CXX
  26924. postdeps=$lt_postdeps_CXX
  26925. # The library search path used internally by the compiler when linking
  26926. # a shared library.
  26927. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  26928. # ### END LIBTOOL TAG CONFIG: CXX
  26929. _LT_EOF
  26930. ;;
  26931. "sdl3_config":C) chmod a+x sdl3-config ;;
  26932. "summary":C) printf "$SUMMARY" ;;
  26933. esac
  26934. done # for ac_tag
  26935. as_fn_exit 0
  26936. _ACEOF
  26937. ac_clean_files=$ac_clean_files_save
  26938. test $ac_write_fail = 0 ||
  26939. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  26940. # configure is writing to config.log, and then calls config.status.
  26941. # config.status does its own redirection, appending to config.log.
  26942. # Unfortunately, on DOS this fails, as config.log is still kept open
  26943. # by configure, so config.status won't be able to write to it; its
  26944. # output is simply discarded. So we exec the FD to /dev/null,
  26945. # effectively closing config.log, so it can be properly (re)opened and
  26946. # appended to by config.status. When coming back to configure, we
  26947. # need to make the FD available again.
  26948. if test "$no_create" != yes; then
  26949. ac_cs_success=:
  26950. ac_config_status_args=
  26951. test "$silent" = yes &&
  26952. ac_config_status_args="$ac_config_status_args --quiet"
  26953. exec 5>/dev/null
  26954. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  26955. exec 5>>config.log
  26956. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  26957. # would make configure fail if this is the last instruction.
  26958. $ac_cs_success || as_fn_exit 1
  26959. fi
  26960. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  26961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  26962. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  26963. fi