configure 912 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161
  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. ALSA_LIBS
  654. ALSA_CFLAGS
  655. ALLOCA
  656. CPP
  657. LIBTOOLLINKERTAG
  658. LINKER
  659. SORT
  660. PKG_CONFIG_LIBDIR
  661. PKG_CONFIG_PATH
  662. PKG_CONFIG
  663. SET_MAKE
  664. INSTALL_DATA
  665. INSTALL_SCRIPT
  666. INSTALL_PROGRAM
  667. CXXCPP
  668. ac_ct_CXX
  669. CXXFLAGS
  670. CXX
  671. LT_AGE
  672. LT_REVISION
  673. LT_CURRENT
  674. LT_RELEASE
  675. RC
  676. LT_SYS_LIBRARY_PATH
  677. OTOOL64
  678. OTOOL
  679. LIPO
  680. NMEDIT
  681. DSYMUTIL
  682. MANIFEST_TOOL
  683. AWK
  684. RANLIB
  685. STRIP
  686. ac_ct_AR
  687. AR
  688. LN_S
  689. NM
  690. ac_ct_DUMPBIN
  691. DUMPBIN
  692. LD
  693. FGREP
  694. EGREP
  695. GREP
  696. SED
  697. OBJEXT
  698. EXEEXT
  699. ac_ct_CC
  700. CPPFLAGS
  701. LDFLAGS
  702. CFLAGS
  703. CC
  704. host_os
  705. host_vendor
  706. host_cpu
  707. host
  708. build_os
  709. build_vendor
  710. build_cpu
  711. build
  712. LIBTOOL
  713. OBJDUMP
  714. DLLTOOL
  715. AS
  716. SDL_VERSION
  717. SDL_BINARY_AGE
  718. SDL_INTERFACE_AGE
  719. SDL_MICRO_VERSION
  720. SDL_MINOR_VERSION
  721. SDL_MAJOR_VERSION
  722. target_alias
  723. host_alias
  724. build_alias
  725. LIBS
  726. ECHO_T
  727. ECHO_N
  728. ECHO_C
  729. DEFS
  730. mandir
  731. localedir
  732. libdir
  733. psdir
  734. pdfdir
  735. dvidir
  736. htmldir
  737. infodir
  738. docdir
  739. oldincludedir
  740. includedir
  741. runstatedir
  742. localstatedir
  743. sharedstatedir
  744. sysconfdir
  745. datadir
  746. datarootdir
  747. libexecdir
  748. sbindir
  749. bindir
  750. program_transform_name
  751. prefix
  752. exec_prefix
  753. PACKAGE_URL
  754. PACKAGE_BUGREPORT
  755. PACKAGE_STRING
  756. PACKAGE_VERSION
  757. PACKAGE_TARNAME
  758. PACKAGE_NAME
  759. PATH_SEPARATOR
  760. SHELL'
  761. ac_subst_files=''
  762. ac_user_opts='
  763. enable_option_checking
  764. enable_shared
  765. enable_static
  766. with_pic
  767. enable_fast_install
  768. with_aix_soname
  769. with_gnu_ld
  770. with_sysroot
  771. enable_libtool_lock
  772. enable_largefile
  773. enable_assertions
  774. enable_dependency_tracking
  775. enable_libc
  776. enable_system_iconv
  777. enable_gcc_atomics
  778. enable_atomic
  779. enable_audio
  780. enable_video
  781. enable_render
  782. enable_events
  783. enable_joystick
  784. enable_haptic
  785. enable_hidapi
  786. enable_sensor
  787. enable_power
  788. enable_filesystem
  789. enable_timers
  790. enable_file
  791. enable_misc
  792. enable_locale
  793. enable_loadso
  794. enable_cpuinfo
  795. enable_assembly
  796. enable_ssemath
  797. enable_mmx
  798. enable_3dnow
  799. enable_sse
  800. enable_sse2
  801. enable_sse3
  802. enable_altivec
  803. enable_lsx
  804. enable_lasx
  805. enable_oss
  806. enable_alsa
  807. with_alsa_prefix
  808. with_alsa_inc_prefix
  809. enable_alsatest
  810. enable_alsa_shared
  811. enable_pipewire
  812. enable_pipewire_shared
  813. enable_pulseaudio
  814. enable_pulseaudio_shared
  815. enable_sndio
  816. enable_sndio_shared
  817. enable_diskaudio
  818. enable_dummyaudio
  819. enable_libsamplerate
  820. enable_libsamplerate_shared
  821. enable_arm_simd
  822. enable_arm_neon
  823. enable_werror
  824. enable_video_wayland
  825. enable_video_wayland_qt_touch
  826. enable_wayland_shared
  827. enable_libdecor
  828. enable_libdecor_shared
  829. enable_video_rpi
  830. enable_video_x11
  831. with_x
  832. enable_x11_shared
  833. enable_video_x11_xcursor
  834. enable_video_x11_xdbe
  835. enable_video_x11_xinput
  836. enable_video_x11_xfixes
  837. enable_video_x11_xrandr
  838. enable_video_x11_scrnsaver
  839. enable_video_x11_xshape
  840. enable_video_vivante
  841. enable_video_cocoa
  842. enable_video_metal
  843. enable_render_metal
  844. enable_video_kmsdrm
  845. enable_kmsdrm_shared
  846. enable_video_dummy
  847. enable_video_offscreen
  848. enable_video_opengl
  849. enable_video_opengles
  850. enable_video_opengles2
  851. enable_video_vulkan
  852. enable_libudev
  853. enable_dbus
  854. enable_ime
  855. enable_ibus
  856. enable_fcitx
  857. enable_joystick_mfi
  858. enable_pthreads
  859. enable_pthread_sem
  860. enable_directx
  861. enable_xinput
  862. enable_wasapi
  863. enable_hidapi_joystick
  864. enable_hidapi_libusb
  865. enable_clock_gettime
  866. enable_rpath
  867. enable_backgrounding_signal
  868. enable_foregrounding_signal
  869. enable_joystick_virtual
  870. enable_render_d3d
  871. enable_sdl3_config
  872. enable_vendor_info
  873. '
  874. ac_precious_vars='build_alias
  875. host_alias
  876. target_alias
  877. CC
  878. CFLAGS
  879. LDFLAGS
  880. LIBS
  881. CPPFLAGS
  882. LT_SYS_LIBRARY_PATH
  883. CXX
  884. CXXFLAGS
  885. CCC
  886. CXXCPP
  887. PKG_CONFIG
  888. PKG_CONFIG_PATH
  889. PKG_CONFIG_LIBDIR
  890. CPP
  891. PIPEWIRE_CFLAGS
  892. PIPEWIRE_LIBS
  893. PULSEAUDIO_CFLAGS
  894. PULSEAUDIO_LIBS
  895. SNDIO_CFLAGS
  896. SNDIO_LIBS
  897. DECOR_CFLAGS
  898. DECOR_LIBS
  899. RPI_CFLAGS
  900. RPI_LIBS
  901. XMKMF
  902. LIBDRM_CFLAGS
  903. LIBDRM_LIBS
  904. LIBGBM_CFLAGS
  905. LIBGBM_LIBS
  906. DBUS_CFLAGS
  907. DBUS_LIBS
  908. IBUS_CFLAGS
  909. IBUS_LIBS
  910. LIBUSB_CFLAGS
  911. LIBUSB_LIBS'
  912. # Initialize some variables set by options.
  913. ac_init_help=
  914. ac_init_version=false
  915. ac_unrecognized_opts=
  916. ac_unrecognized_sep=
  917. # The variables have the same names as the options, with
  918. # dashes changed to underlines.
  919. cache_file=/dev/null
  920. exec_prefix=NONE
  921. no_create=
  922. no_recursion=
  923. prefix=NONE
  924. program_prefix=NONE
  925. program_suffix=NONE
  926. program_transform_name=s,x,x,
  927. silent=
  928. site=
  929. srcdir=
  930. verbose=
  931. x_includes=NONE
  932. x_libraries=NONE
  933. # Installation directory options.
  934. # These are left unexpanded so users can "make install exec_prefix=/foo"
  935. # and all the variables that are supposed to be based on exec_prefix
  936. # by default will actually change.
  937. # Use braces instead of parens because sh, perl, etc. also accept them.
  938. # (The list follows the same order as the GNU Coding Standards.)
  939. bindir='${exec_prefix}/bin'
  940. sbindir='${exec_prefix}/sbin'
  941. libexecdir='${exec_prefix}/libexec'
  942. datarootdir='${prefix}/share'
  943. datadir='${datarootdir}'
  944. sysconfdir='${prefix}/etc'
  945. sharedstatedir='${prefix}/com'
  946. localstatedir='${prefix}/var'
  947. runstatedir='${localstatedir}/run'
  948. includedir='${prefix}/include'
  949. oldincludedir='/usr/include'
  950. docdir='${datarootdir}/doc/${PACKAGE}'
  951. infodir='${datarootdir}/info'
  952. htmldir='${docdir}'
  953. dvidir='${docdir}'
  954. pdfdir='${docdir}'
  955. psdir='${docdir}'
  956. libdir='${exec_prefix}/lib'
  957. localedir='${datarootdir}/locale'
  958. mandir='${datarootdir}/man'
  959. ac_prev=
  960. ac_dashdash=
  961. for ac_option
  962. do
  963. # If the previous option needs an argument, assign it.
  964. if test -n "$ac_prev"; then
  965. eval $ac_prev=\$ac_option
  966. ac_prev=
  967. continue
  968. fi
  969. case $ac_option in
  970. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  971. *=) ac_optarg= ;;
  972. *) ac_optarg=yes ;;
  973. esac
  974. case $ac_dashdash$ac_option in
  975. --)
  976. ac_dashdash=yes ;;
  977. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  978. ac_prev=bindir ;;
  979. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  980. bindir=$ac_optarg ;;
  981. -build | --build | --buil | --bui | --bu)
  982. ac_prev=build_alias ;;
  983. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  984. build_alias=$ac_optarg ;;
  985. -cache-file | --cache-file | --cache-fil | --cache-fi \
  986. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  987. ac_prev=cache_file ;;
  988. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  989. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  990. cache_file=$ac_optarg ;;
  991. --config-cache | -C)
  992. cache_file=config.cache ;;
  993. -datadir | --datadir | --datadi | --datad)
  994. ac_prev=datadir ;;
  995. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  996. datadir=$ac_optarg ;;
  997. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  998. | --dataroo | --dataro | --datar)
  999. ac_prev=datarootdir ;;
  1000. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1001. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1002. datarootdir=$ac_optarg ;;
  1003. -disable-* | --disable-*)
  1004. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1005. # Reject names that are not valid shell variable names.
  1006. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1007. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1008. ac_useropt_orig=$ac_useropt
  1009. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1010. case $ac_user_opts in
  1011. *"
  1012. "enable_$ac_useropt"
  1013. "*) ;;
  1014. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1015. ac_unrecognized_sep=', ';;
  1016. esac
  1017. eval enable_$ac_useropt=no ;;
  1018. -docdir | --docdir | --docdi | --doc | --do)
  1019. ac_prev=docdir ;;
  1020. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1021. docdir=$ac_optarg ;;
  1022. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1023. ac_prev=dvidir ;;
  1024. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1025. dvidir=$ac_optarg ;;
  1026. -enable-* | --enable-*)
  1027. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1028. # Reject names that are not valid shell variable names.
  1029. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1030. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1031. ac_useropt_orig=$ac_useropt
  1032. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1033. case $ac_user_opts in
  1034. *"
  1035. "enable_$ac_useropt"
  1036. "*) ;;
  1037. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1038. ac_unrecognized_sep=', ';;
  1039. esac
  1040. eval enable_$ac_useropt=\$ac_optarg ;;
  1041. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1042. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1043. | --exec | --exe | --ex)
  1044. ac_prev=exec_prefix ;;
  1045. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1046. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1047. | --exec=* | --exe=* | --ex=*)
  1048. exec_prefix=$ac_optarg ;;
  1049. -gas | --gas | --ga | --g)
  1050. # Obsolete; use --with-gas.
  1051. with_gas=yes ;;
  1052. -help | --help | --hel | --he | -h)
  1053. ac_init_help=long ;;
  1054. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1055. ac_init_help=recursive ;;
  1056. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1057. ac_init_help=short ;;
  1058. -host | --host | --hos | --ho)
  1059. ac_prev=host_alias ;;
  1060. -host=* | --host=* | --hos=* | --ho=*)
  1061. host_alias=$ac_optarg ;;
  1062. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1063. ac_prev=htmldir ;;
  1064. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1065. | --ht=*)
  1066. htmldir=$ac_optarg ;;
  1067. -includedir | --includedir | --includedi | --included | --include \
  1068. | --includ | --inclu | --incl | --inc)
  1069. ac_prev=includedir ;;
  1070. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1071. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1072. includedir=$ac_optarg ;;
  1073. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1074. ac_prev=infodir ;;
  1075. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1076. infodir=$ac_optarg ;;
  1077. -libdir | --libdir | --libdi | --libd)
  1078. ac_prev=libdir ;;
  1079. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1080. libdir=$ac_optarg ;;
  1081. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1082. | --libexe | --libex | --libe)
  1083. ac_prev=libexecdir ;;
  1084. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1085. | --libexe=* | --libex=* | --libe=*)
  1086. libexecdir=$ac_optarg ;;
  1087. -localedir | --localedir | --localedi | --localed | --locale)
  1088. ac_prev=localedir ;;
  1089. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1090. localedir=$ac_optarg ;;
  1091. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1092. | --localstate | --localstat | --localsta | --localst | --locals)
  1093. ac_prev=localstatedir ;;
  1094. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1095. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1096. localstatedir=$ac_optarg ;;
  1097. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1098. ac_prev=mandir ;;
  1099. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1100. mandir=$ac_optarg ;;
  1101. -nfp | --nfp | --nf)
  1102. # Obsolete; use --without-fp.
  1103. with_fp=no ;;
  1104. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1105. | --no-cr | --no-c | -n)
  1106. no_create=yes ;;
  1107. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1108. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1109. no_recursion=yes ;;
  1110. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1111. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1112. | --oldin | --oldi | --old | --ol | --o)
  1113. ac_prev=oldincludedir ;;
  1114. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1115. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1116. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1117. oldincludedir=$ac_optarg ;;
  1118. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1119. ac_prev=prefix ;;
  1120. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1121. prefix=$ac_optarg ;;
  1122. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1123. | --program-pre | --program-pr | --program-p)
  1124. ac_prev=program_prefix ;;
  1125. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1126. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1127. program_prefix=$ac_optarg ;;
  1128. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1129. | --program-suf | --program-su | --program-s)
  1130. ac_prev=program_suffix ;;
  1131. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1132. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1133. program_suffix=$ac_optarg ;;
  1134. -program-transform-name | --program-transform-name \
  1135. | --program-transform-nam | --program-transform-na \
  1136. | --program-transform-n | --program-transform- \
  1137. | --program-transform | --program-transfor \
  1138. | --program-transfo | --program-transf \
  1139. | --program-trans | --program-tran \
  1140. | --progr-tra | --program-tr | --program-t)
  1141. ac_prev=program_transform_name ;;
  1142. -program-transform-name=* | --program-transform-name=* \
  1143. | --program-transform-nam=* | --program-transform-na=* \
  1144. | --program-transform-n=* | --program-transform-=* \
  1145. | --program-transform=* | --program-transfor=* \
  1146. | --program-transfo=* | --program-transf=* \
  1147. | --program-trans=* | --program-tran=* \
  1148. | --progr-tra=* | --program-tr=* | --program-t=*)
  1149. program_transform_name=$ac_optarg ;;
  1150. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1151. ac_prev=pdfdir ;;
  1152. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1153. pdfdir=$ac_optarg ;;
  1154. -psdir | --psdir | --psdi | --psd | --ps)
  1155. ac_prev=psdir ;;
  1156. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1157. psdir=$ac_optarg ;;
  1158. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1159. | -silent | --silent | --silen | --sile | --sil)
  1160. silent=yes ;;
  1161. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1162. | --runstate | --runstat | --runsta | --runst | --runs \
  1163. | --run | --ru | --r)
  1164. ac_prev=runstatedir ;;
  1165. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1166. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1167. | --run=* | --ru=* | --r=*)
  1168. runstatedir=$ac_optarg ;;
  1169. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1170. ac_prev=sbindir ;;
  1171. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1172. | --sbi=* | --sb=*)
  1173. sbindir=$ac_optarg ;;
  1174. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1175. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1176. | --sharedst | --shareds | --shared | --share | --shar \
  1177. | --sha | --sh)
  1178. ac_prev=sharedstatedir ;;
  1179. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1180. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1181. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1182. | --sha=* | --sh=*)
  1183. sharedstatedir=$ac_optarg ;;
  1184. -site | --site | --sit)
  1185. ac_prev=site ;;
  1186. -site=* | --site=* | --sit=*)
  1187. site=$ac_optarg ;;
  1188. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1189. ac_prev=srcdir ;;
  1190. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1191. srcdir=$ac_optarg ;;
  1192. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1193. | --syscon | --sysco | --sysc | --sys | --sy)
  1194. ac_prev=sysconfdir ;;
  1195. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1196. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1197. sysconfdir=$ac_optarg ;;
  1198. -target | --target | --targe | --targ | --tar | --ta | --t)
  1199. ac_prev=target_alias ;;
  1200. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1201. target_alias=$ac_optarg ;;
  1202. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1203. verbose=yes ;;
  1204. -version | --version | --versio | --versi | --vers | -V)
  1205. ac_init_version=: ;;
  1206. -with-* | --with-*)
  1207. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1208. # Reject names that are not valid shell variable names.
  1209. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1210. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1211. ac_useropt_orig=$ac_useropt
  1212. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1213. case $ac_user_opts in
  1214. *"
  1215. "with_$ac_useropt"
  1216. "*) ;;
  1217. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1218. ac_unrecognized_sep=', ';;
  1219. esac
  1220. eval with_$ac_useropt=\$ac_optarg ;;
  1221. -without-* | --without-*)
  1222. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1223. # Reject names that are not valid shell variable names.
  1224. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1225. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1226. ac_useropt_orig=$ac_useropt
  1227. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1228. case $ac_user_opts in
  1229. *"
  1230. "with_$ac_useropt"
  1231. "*) ;;
  1232. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1233. ac_unrecognized_sep=', ';;
  1234. esac
  1235. eval with_$ac_useropt=no ;;
  1236. --x)
  1237. # Obsolete; use --with-x.
  1238. with_x=yes ;;
  1239. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1240. | --x-incl | --x-inc | --x-in | --x-i)
  1241. ac_prev=x_includes ;;
  1242. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1243. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1244. x_includes=$ac_optarg ;;
  1245. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1246. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1247. ac_prev=x_libraries ;;
  1248. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1249. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1250. x_libraries=$ac_optarg ;;
  1251. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1252. Try \`$0 --help' for more information"
  1253. ;;
  1254. *=*)
  1255. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1256. # Reject names that are not valid shell variable names.
  1257. case $ac_envvar in #(
  1258. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1259. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1260. esac
  1261. eval $ac_envvar=\$ac_optarg
  1262. export $ac_envvar ;;
  1263. *)
  1264. # FIXME: should be removed in autoconf 3.0.
  1265. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1266. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1267. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1268. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1269. ;;
  1270. esac
  1271. done
  1272. if test -n "$ac_prev"; then
  1273. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1274. as_fn_error $? "missing argument to $ac_option"
  1275. fi
  1276. if test -n "$ac_unrecognized_opts"; then
  1277. case $enable_option_checking in
  1278. no) ;;
  1279. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1280. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1281. esac
  1282. fi
  1283. # Check all directory arguments for consistency.
  1284. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1285. datadir sysconfdir sharedstatedir localstatedir includedir \
  1286. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1287. libdir localedir mandir runstatedir
  1288. do
  1289. eval ac_val=\$$ac_var
  1290. # Remove trailing slashes.
  1291. case $ac_val in
  1292. */ )
  1293. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1294. eval $ac_var=\$ac_val;;
  1295. esac
  1296. # Be sure to have absolute directory names.
  1297. case $ac_val in
  1298. [\\/$]* | ?:[\\/]* ) continue;;
  1299. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1300. esac
  1301. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1302. done
  1303. # There might be people who depend on the old broken behavior: `$host'
  1304. # used to hold the argument of --host etc.
  1305. # FIXME: To remove some day.
  1306. build=$build_alias
  1307. host=$host_alias
  1308. target=$target_alias
  1309. # FIXME: To remove some day.
  1310. if test "x$host_alias" != x; then
  1311. if test "x$build_alias" = x; then
  1312. cross_compiling=maybe
  1313. elif test "x$build_alias" != "x$host_alias"; then
  1314. cross_compiling=yes
  1315. fi
  1316. fi
  1317. ac_tool_prefix=
  1318. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1319. test "$silent" = yes && exec 6>/dev/null
  1320. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1321. ac_ls_di=`ls -di .` &&
  1322. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1323. as_fn_error $? "working directory cannot be determined"
  1324. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1325. as_fn_error $? "pwd does not report name of working directory"
  1326. # Find the source files, if location was not specified.
  1327. if test -z "$srcdir"; then
  1328. ac_srcdir_defaulted=yes
  1329. # Try the directory containing this script, then the parent directory.
  1330. ac_confdir=`$as_dirname -- "$as_myself" ||
  1331. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1332. X"$as_myself" : 'X\(//\)[^/]' \| \
  1333. X"$as_myself" : 'X\(//\)$' \| \
  1334. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1335. printf "%s\n" X"$as_myself" |
  1336. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1337. s//\1/
  1338. q
  1339. }
  1340. /^X\(\/\/\)[^/].*/{
  1341. s//\1/
  1342. q
  1343. }
  1344. /^X\(\/\/\)$/{
  1345. s//\1/
  1346. q
  1347. }
  1348. /^X\(\/\).*/{
  1349. s//\1/
  1350. q
  1351. }
  1352. s/.*/./; q'`
  1353. srcdir=$ac_confdir
  1354. if test ! -r "$srcdir/$ac_unique_file"; then
  1355. srcdir=..
  1356. fi
  1357. else
  1358. ac_srcdir_defaulted=no
  1359. fi
  1360. if test ! -r "$srcdir/$ac_unique_file"; then
  1361. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1362. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1363. fi
  1364. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1365. ac_abs_confdir=`(
  1366. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1367. pwd)`
  1368. # When building in place, set srcdir=.
  1369. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1370. srcdir=.
  1371. fi
  1372. # Remove unnecessary trailing slashes from srcdir.
  1373. # Double slashes in file names in object file debugging info
  1374. # mess up M-x gdb in Emacs.
  1375. case $srcdir in
  1376. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1377. esac
  1378. for ac_var in $ac_precious_vars; do
  1379. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1380. eval ac_env_${ac_var}_value=\$${ac_var}
  1381. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1382. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1383. done
  1384. #
  1385. # Report the --help message.
  1386. #
  1387. if test "$ac_init_help" = "long"; then
  1388. # Omit some internal or obsolete options to make the list less imposing.
  1389. # This message is too long to be a string in the A/UX 3.1 sh.
  1390. cat <<_ACEOF
  1391. \`configure' configures this package to adapt to many kinds of systems.
  1392. Usage: $0 [OPTION]... [VAR=VALUE]...
  1393. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1394. VAR=VALUE. See below for descriptions of some of the useful variables.
  1395. Defaults for the options are specified in brackets.
  1396. Configuration:
  1397. -h, --help display this help and exit
  1398. --help=short display options specific to this package
  1399. --help=recursive display the short help of all the included packages
  1400. -V, --version display version information and exit
  1401. -q, --quiet, --silent do not print \`checking ...' messages
  1402. --cache-file=FILE cache test results in FILE [disabled]
  1403. -C, --config-cache alias for \`--cache-file=config.cache'
  1404. -n, --no-create do not create output files
  1405. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1406. Installation directories:
  1407. --prefix=PREFIX install architecture-independent files in PREFIX
  1408. [$ac_default_prefix]
  1409. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1410. [PREFIX]
  1411. By default, \`make install' will install all the files in
  1412. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1413. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1414. for instance \`--prefix=\$HOME'.
  1415. For better control, use the options below.
  1416. Fine tuning of the installation directories:
  1417. --bindir=DIR user executables [EPREFIX/bin]
  1418. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1419. --libexecdir=DIR program executables [EPREFIX/libexec]
  1420. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1421. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1422. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1423. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1424. --libdir=DIR object code libraries [EPREFIX/lib]
  1425. --includedir=DIR C header files [PREFIX/include]
  1426. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1427. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1428. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1429. --infodir=DIR info documentation [DATAROOTDIR/info]
  1430. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1431. --mandir=DIR man documentation [DATAROOTDIR/man]
  1432. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1433. --htmldir=DIR html documentation [DOCDIR]
  1434. --dvidir=DIR dvi documentation [DOCDIR]
  1435. --pdfdir=DIR pdf documentation [DOCDIR]
  1436. --psdir=DIR ps documentation [DOCDIR]
  1437. _ACEOF
  1438. cat <<\_ACEOF
  1439. X features:
  1440. --x-includes=DIR X include files are in DIR
  1441. --x-libraries=DIR X library files are in DIR
  1442. System types:
  1443. --build=BUILD configure for building on BUILD [guessed]
  1444. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1445. _ACEOF
  1446. fi
  1447. if test -n "$ac_init_help"; then
  1448. cat <<\_ACEOF
  1449. Optional Features:
  1450. --disable-option-checking ignore unrecognized --enable/--with options
  1451. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1452. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1453. --enable-shared[=PKGS] build shared libraries [default=yes]
  1454. --enable-static[=PKGS] build static libraries [default=yes]
  1455. --enable-fast-install[=PKGS]
  1456. optimize for fast installation [default=yes]
  1457. --disable-libtool-lock avoid locking (might break parallel builds)
  1458. --disable-largefile omit support for large files
  1459. --enable-assertions Enable internal sanity checks
  1460. (auto/disabled/release/enabled/paranoid)
  1461. [default=auto]
  1462. --enable-dependency-tracking
  1463. Use gcc -MMD -MT dependency tracking [default=yes]
  1464. --enable-libc Use the system C library [default=yes]
  1465. --enable-system-iconv Use iconv() from system-installed libraries
  1466. [default=yes]
  1467. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1468. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1469. --enable-audio Enable the audio subsystem [default=yes]
  1470. --enable-video Enable the video subsystem [default=yes]
  1471. --enable-render Enable the render subsystem [default=yes]
  1472. --enable-events Enable the events subsystem [default=yes]
  1473. --enable-joystick Enable the joystick subsystem [default=yes]
  1474. --enable-haptic Enable the haptic (force feedback) subsystem
  1475. [default=yes]
  1476. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1477. --enable-sensor Enable the sensor subsystem [default=yes]
  1478. --enable-power Enable the power subsystem [default=yes]
  1479. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1480. --enable-timers Enable the timer subsystem [default=yes]
  1481. --enable-file Enable the file subsystem [default=yes]
  1482. --enable-misc Enable the misc subsystem [default=yes]
  1483. --enable-locale Enable the locale subsystem [default=yes]
  1484. --enable-loadso Enable the shared object loading subsystem
  1485. [default=yes]
  1486. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1487. --enable-assembly Enable assembly routines [default=yes]
  1488. --enable-ssemath Allow GCC to use SSE floating point math
  1489. [default=maybe]
  1490. --enable-mmx use MMX assembly routines [default=yes]
  1491. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1492. --enable-sse use SSE assembly routines [default=yes]
  1493. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1494. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1495. --enable-altivec use Altivec assembly routines [default=yes]
  1496. --enable-lsx use LSX assembly routines [default=yes]
  1497. --enable-lasx use LASX assembly routines [default=yes]
  1498. --enable-oss support the OSS audio API [default=maybe]
  1499. --enable-alsa support the ALSA audio API [default=yes]
  1500. --disable-alsatest Do not try to compile and run a test Alsa program
  1501. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1502. --enable-pipewire use Pipewire audio [default=yes]
  1503. --enable-pipewire-shared
  1504. dynamically load Pipewire support [default=yes]
  1505. --enable-pulseaudio use PulseAudio [default=yes]
  1506. --enable-pulseaudio-shared
  1507. dynamically load PulseAudio support [default=yes]
  1508. --enable-sndio support the sndio audio API [default=yes]
  1509. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1510. --enable-diskaudio support the disk writer audio driver [default=yes]
  1511. --enable-dummyaudio support the dummy audio driver [default=yes]
  1512. --enable-libsamplerate use libsamplerate for audio rate conversion
  1513. [default=yes]
  1514. --enable-libsamplerate-shared
  1515. dynamically load libsamplerate [default=yes]
  1516. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1517. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1518. --enable-werror treat warnings as errors [default=no]
  1519. --enable-video-wayland use Wayland video driver [default=yes]
  1520. --enable-video-wayland-qt-touch
  1521. QtWayland server support for Wayland video driver
  1522. [default=yes]
  1523. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1524. --enable-libdecor use libdecor for Wayland client-side decorations
  1525. [default=yes]
  1526. --enable-libdecor-shared
  1527. dynamically load libdecor [default=yes]
  1528. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1529. --enable-video-x11 use X11 video driver [default=maybe]
  1530. --enable-x11-shared dynamically load X11 support [default=maybe]
  1531. --enable-video-x11-xcursor
  1532. enable X11 Xcursor support [default=yes]
  1533. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1534. --enable-video-x11-xinput
  1535. enable X11 XInput extension for manymouse, tablets,
  1536. etc [default=yes]
  1537. --enable-video-x11-xfixes
  1538. enable X11 Xfixes support [default=yes]
  1539. --enable-video-x11-xrandr
  1540. enable X11 Xrandr extension for fullscreen
  1541. [default=yes]
  1542. --enable-video-x11-scrnsaver
  1543. enable X11 screensaver extension [default=yes]
  1544. --enable-video-x11-xshape
  1545. enable X11 XShape support [default=yes]
  1546. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1547. --enable-video-cocoa use Cocoa video driver [default=yes]
  1548. --enable-video-metal include Metal support [default=yes]
  1549. --enable-render-metal enable the Metal render driver [default=yes]
  1550. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1551. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1552. --enable-video-dummy use dummy video driver [default=yes]
  1553. --enable-video-offscreen
  1554. use offscreen video driver [default=yes]
  1555. --enable-video-opengl include OpenGL support [default=yes]
  1556. --enable-video-opengles include OpenGL ES support [default=yes]
  1557. --enable-video-opengles2
  1558. include OpenGL ES 2.0 support [default=yes]
  1559. --enable-video-vulkan include Vulkan support [default=yes]
  1560. --enable-libudev enable libudev support [default=yes]
  1561. --enable-dbus enable D-Bus support [default=yes]
  1562. --enable-ime enable IME support [default=yes]
  1563. --enable-ibus enable IBus support [default=yes]
  1564. --enable-fcitx enable fcitx support [default=yes]
  1565. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1566. --enable-pthreads use POSIX threads for multi-threading
  1567. [default=maybe]
  1568. --enable-pthread-sem use pthread semaphores [default=maybe]
  1569. --enable-directx use DirectX for Windows audio/video [default=yes]
  1570. --enable-xinput use Xinput for Windows [default=yes]
  1571. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1572. --enable-hidapi-joystick
  1573. use HIDAPI for low level joystick drivers
  1574. [default=yes]
  1575. --enable-hidapi-libusb use libusb for low level joystick drivers
  1576. [default=maybe]
  1577. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1578. UNIX [default=yes]
  1579. --enable-rpath use an rpath when linking SDL [default=yes]
  1580. --enable-backgrounding-signal
  1581. number to use for magic backgrounding signal or 'no'
  1582. [default=no]
  1583. --enable-foregrounding-signal
  1584. number to use for magic foregrounding signal or 'no'
  1585. [default=no]
  1586. --enable-joystick-virtual
  1587. enable virtual joystick APIs [default=yes]
  1588. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1589. --enable-sdl3-config Install sdl3-config [default=yes]
  1590. --enable-vendor-info=STRING
  1591. Add vendor info to SDL_REVISION
  1592. Optional Packages:
  1593. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1594. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1595. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1596. both]
  1597. --with-aix-soname=aix|svr4|both
  1598. shared library versioning (aka "SONAME") variant to
  1599. provide on AIX, [default=aix].
  1600. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1601. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1602. compiler's sysroot if not specified).
  1603. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1604. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1605. --with-x use the X Window System
  1606. Some influential environment variables:
  1607. CC C compiler command
  1608. CFLAGS C compiler flags
  1609. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1610. nonstandard directory <lib dir>
  1611. LIBS libraries to pass to the linker, e.g. -l<library>
  1612. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1613. you have headers in a nonstandard directory <include dir>
  1614. LT_SYS_LIBRARY_PATH
  1615. User-defined run-time library search path.
  1616. CXX C++ compiler command
  1617. CXXFLAGS C++ compiler flags
  1618. CXXCPP C++ preprocessor
  1619. PKG_CONFIG path to pkg-config utility
  1620. PKG_CONFIG_PATH
  1621. directories to add to pkg-config's search path
  1622. PKG_CONFIG_LIBDIR
  1623. path overriding pkg-config's built-in search path
  1624. CPP C preprocessor
  1625. PIPEWIRE_CFLAGS
  1626. C compiler flags for PIPEWIRE, overriding pkg-config
  1627. PIPEWIRE_LIBS
  1628. linker flags for PIPEWIRE, overriding pkg-config
  1629. PULSEAUDIO_CFLAGS
  1630. C compiler flags for PULSEAUDIO, overriding pkg-config
  1631. PULSEAUDIO_LIBS
  1632. linker flags for PULSEAUDIO, overriding pkg-config
  1633. SNDIO_CFLAGS
  1634. C compiler flags for SNDIO, overriding pkg-config
  1635. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1636. DECOR_CFLAGS
  1637. C compiler flags for DECOR, overriding pkg-config
  1638. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1639. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1640. RPI_LIBS linker flags for RPI, overriding pkg-config
  1641. XMKMF Path to xmkmf, Makefile generator for X Window System
  1642. LIBDRM_CFLAGS
  1643. C compiler flags for LIBDRM, overriding pkg-config
  1644. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1645. LIBGBM_CFLAGS
  1646. C compiler flags for LIBGBM, overriding pkg-config
  1647. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1648. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1649. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1650. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1651. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1652. LIBUSB_CFLAGS
  1653. C compiler flags for LIBUSB, overriding pkg-config
  1654. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1655. Use these variables to override the choices made by `configure' or to help
  1656. it to find libraries and programs with nonstandard names/locations.
  1657. Report bugs to the package provider.
  1658. _ACEOF
  1659. ac_status=$?
  1660. fi
  1661. if test "$ac_init_help" = "recursive"; then
  1662. # If there are subdirs, report their specific --help.
  1663. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1664. test -d "$ac_dir" ||
  1665. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1666. continue
  1667. ac_builddir=.
  1668. case "$ac_dir" in
  1669. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1670. *)
  1671. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1672. # A ".." for each directory in $ac_dir_suffix.
  1673. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1674. case $ac_top_builddir_sub in
  1675. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1676. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1677. esac ;;
  1678. esac
  1679. ac_abs_top_builddir=$ac_pwd
  1680. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1681. # for backward compatibility:
  1682. ac_top_builddir=$ac_top_build_prefix
  1683. case $srcdir in
  1684. .) # We are building in place.
  1685. ac_srcdir=.
  1686. ac_top_srcdir=$ac_top_builddir_sub
  1687. ac_abs_top_srcdir=$ac_pwd ;;
  1688. [\\/]* | ?:[\\/]* ) # Absolute name.
  1689. ac_srcdir=$srcdir$ac_dir_suffix;
  1690. ac_top_srcdir=$srcdir
  1691. ac_abs_top_srcdir=$srcdir ;;
  1692. *) # Relative name.
  1693. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1694. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1695. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1696. esac
  1697. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1698. cd "$ac_dir" || { ac_status=$?; continue; }
  1699. # Check for configure.gnu first; this name is used for a wrapper for
  1700. # Metaconfig's "Configure" on case-insensitive file systems.
  1701. if test -f "$ac_srcdir/configure.gnu"; then
  1702. echo &&
  1703. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1704. elif test -f "$ac_srcdir/configure"; then
  1705. echo &&
  1706. $SHELL "$ac_srcdir/configure" --help=recursive
  1707. else
  1708. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1709. fi || ac_status=$?
  1710. cd "$ac_pwd" || { ac_status=$?; break; }
  1711. done
  1712. fi
  1713. test -n "$ac_init_help" && exit $ac_status
  1714. if $ac_init_version; then
  1715. cat <<\_ACEOF
  1716. configure
  1717. generated by GNU Autoconf 2.71
  1718. Copyright (C) 2021 Free Software Foundation, Inc.
  1719. This configure script is free software; the Free Software Foundation
  1720. gives unlimited permission to copy, distribute and modify it.
  1721. _ACEOF
  1722. exit
  1723. fi
  1724. ## ------------------------ ##
  1725. ## Autoconf initialization. ##
  1726. ## ------------------------ ##
  1727. # ac_fn_c_try_compile LINENO
  1728. # --------------------------
  1729. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1730. ac_fn_c_try_compile ()
  1731. {
  1732. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1733. rm -f conftest.$ac_objext conftest.beam
  1734. if { { ac_try="$ac_compile"
  1735. case "(($ac_try" in
  1736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1737. *) ac_try_echo=$ac_try;;
  1738. esac
  1739. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1740. printf "%s\n" "$ac_try_echo"; } >&5
  1741. (eval "$ac_compile") 2>conftest.err
  1742. ac_status=$?
  1743. if test -s conftest.err; then
  1744. grep -v '^ *+' conftest.err >conftest.er1
  1745. cat conftest.er1 >&5
  1746. mv -f conftest.er1 conftest.err
  1747. fi
  1748. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1749. test $ac_status = 0; } && {
  1750. test -z "$ac_c_werror_flag" ||
  1751. test ! -s conftest.err
  1752. } && test -s conftest.$ac_objext
  1753. then :
  1754. ac_retval=0
  1755. else $as_nop
  1756. printf "%s\n" "$as_me: failed program was:" >&5
  1757. sed 's/^/| /' conftest.$ac_ext >&5
  1758. ac_retval=1
  1759. fi
  1760. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1761. as_fn_set_status $ac_retval
  1762. } # ac_fn_c_try_compile
  1763. # ac_fn_c_try_link LINENO
  1764. # -----------------------
  1765. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1766. ac_fn_c_try_link ()
  1767. {
  1768. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1769. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1770. if { { ac_try="$ac_link"
  1771. case "(($ac_try" in
  1772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1773. *) ac_try_echo=$ac_try;;
  1774. esac
  1775. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1776. printf "%s\n" "$ac_try_echo"; } >&5
  1777. (eval "$ac_link") 2>conftest.err
  1778. ac_status=$?
  1779. if test -s conftest.err; then
  1780. grep -v '^ *+' conftest.err >conftest.er1
  1781. cat conftest.er1 >&5
  1782. mv -f conftest.er1 conftest.err
  1783. fi
  1784. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1785. test $ac_status = 0; } && {
  1786. test -z "$ac_c_werror_flag" ||
  1787. test ! -s conftest.err
  1788. } && test -s conftest$ac_exeext && {
  1789. test "$cross_compiling" = yes ||
  1790. test -x conftest$ac_exeext
  1791. }
  1792. then :
  1793. ac_retval=0
  1794. else $as_nop
  1795. printf "%s\n" "$as_me: failed program was:" >&5
  1796. sed 's/^/| /' conftest.$ac_ext >&5
  1797. ac_retval=1
  1798. fi
  1799. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1800. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1801. # interfere with the next link command; also delete a directory that is
  1802. # left behind by Apple's compiler. We do this before executing the actions.
  1803. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1804. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1805. as_fn_set_status $ac_retval
  1806. } # ac_fn_c_try_link
  1807. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1808. # -------------------------------------------------------
  1809. # Tests whether HEADER exists and can be compiled using the include files in
  1810. # INCLUDES, setting the cache variable VAR accordingly.
  1811. ac_fn_c_check_header_compile ()
  1812. {
  1813. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1815. printf %s "checking for $2... " >&6; }
  1816. if eval test \${$3+y}
  1817. then :
  1818. printf %s "(cached) " >&6
  1819. else $as_nop
  1820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1821. /* end confdefs.h. */
  1822. $4
  1823. #include <$2>
  1824. _ACEOF
  1825. if ac_fn_c_try_compile "$LINENO"
  1826. then :
  1827. eval "$3=yes"
  1828. else $as_nop
  1829. eval "$3=no"
  1830. fi
  1831. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1832. fi
  1833. eval ac_res=\$$3
  1834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1835. printf "%s\n" "$ac_res" >&6; }
  1836. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1837. } # ac_fn_c_check_header_compile
  1838. # ac_fn_c_check_func LINENO FUNC VAR
  1839. # ----------------------------------
  1840. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1841. ac_fn_c_check_func ()
  1842. {
  1843. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1845. printf %s "checking for $2... " >&6; }
  1846. if eval test \${$3+y}
  1847. then :
  1848. printf %s "(cached) " >&6
  1849. else $as_nop
  1850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1851. /* end confdefs.h. */
  1852. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1853. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1854. #define $2 innocuous_$2
  1855. /* System header to define __stub macros and hopefully few prototypes,
  1856. which can conflict with char $2 (); below. */
  1857. #include <limits.h>
  1858. #undef $2
  1859. /* Override any GCC internal prototype to avoid an error.
  1860. Use char because int might match the return type of a GCC
  1861. builtin and then its argument prototype would still apply. */
  1862. #ifdef __cplusplus
  1863. extern "C"
  1864. #endif
  1865. char $2 ();
  1866. /* The GNU C library defines this for functions which it implements
  1867. to always fail with ENOSYS. Some functions are actually named
  1868. something starting with __ and the normal name is an alias. */
  1869. #if defined __stub_$2 || defined __stub___$2
  1870. choke me
  1871. #endif
  1872. int
  1873. main (void)
  1874. {
  1875. return $2 ();
  1876. ;
  1877. return 0;
  1878. }
  1879. _ACEOF
  1880. if ac_fn_c_try_link "$LINENO"
  1881. then :
  1882. eval "$3=yes"
  1883. else $as_nop
  1884. eval "$3=no"
  1885. fi
  1886. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1887. conftest$ac_exeext conftest.$ac_ext
  1888. fi
  1889. eval ac_res=\$$3
  1890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1891. printf "%s\n" "$ac_res" >&6; }
  1892. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1893. } # ac_fn_c_check_func
  1894. # ac_fn_cxx_try_compile LINENO
  1895. # ----------------------------
  1896. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1897. ac_fn_cxx_try_compile ()
  1898. {
  1899. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1900. rm -f conftest.$ac_objext conftest.beam
  1901. if { { ac_try="$ac_compile"
  1902. case "(($ac_try" in
  1903. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1904. *) ac_try_echo=$ac_try;;
  1905. esac
  1906. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1907. printf "%s\n" "$ac_try_echo"; } >&5
  1908. (eval "$ac_compile") 2>conftest.err
  1909. ac_status=$?
  1910. if test -s conftest.err; then
  1911. grep -v '^ *+' conftest.err >conftest.er1
  1912. cat conftest.er1 >&5
  1913. mv -f conftest.er1 conftest.err
  1914. fi
  1915. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1916. test $ac_status = 0; } && {
  1917. test -z "$ac_cxx_werror_flag" ||
  1918. test ! -s conftest.err
  1919. } && test -s conftest.$ac_objext
  1920. then :
  1921. ac_retval=0
  1922. else $as_nop
  1923. printf "%s\n" "$as_me: failed program was:" >&5
  1924. sed 's/^/| /' conftest.$ac_ext >&5
  1925. ac_retval=1
  1926. fi
  1927. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1928. as_fn_set_status $ac_retval
  1929. } # ac_fn_cxx_try_compile
  1930. # ac_fn_cxx_try_cpp LINENO
  1931. # ------------------------
  1932. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1933. ac_fn_cxx_try_cpp ()
  1934. {
  1935. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1936. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1937. case "(($ac_try" in
  1938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1939. *) ac_try_echo=$ac_try;;
  1940. esac
  1941. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1942. printf "%s\n" "$ac_try_echo"; } >&5
  1943. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1944. ac_status=$?
  1945. if test -s conftest.err; then
  1946. grep -v '^ *+' conftest.err >conftest.er1
  1947. cat conftest.er1 >&5
  1948. mv -f conftest.er1 conftest.err
  1949. fi
  1950. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1951. test $ac_status = 0; } > conftest.i && {
  1952. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1953. test ! -s conftest.err
  1954. }
  1955. then :
  1956. ac_retval=0
  1957. else $as_nop
  1958. printf "%s\n" "$as_me: failed program was:" >&5
  1959. sed 's/^/| /' conftest.$ac_ext >&5
  1960. ac_retval=1
  1961. fi
  1962. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1963. as_fn_set_status $ac_retval
  1964. } # ac_fn_cxx_try_cpp
  1965. # ac_fn_cxx_try_link LINENO
  1966. # -------------------------
  1967. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1968. ac_fn_cxx_try_link ()
  1969. {
  1970. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1971. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1972. if { { ac_try="$ac_link"
  1973. case "(($ac_try" in
  1974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1975. *) ac_try_echo=$ac_try;;
  1976. esac
  1977. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1978. printf "%s\n" "$ac_try_echo"; } >&5
  1979. (eval "$ac_link") 2>conftest.err
  1980. ac_status=$?
  1981. if test -s conftest.err; then
  1982. grep -v '^ *+' conftest.err >conftest.er1
  1983. cat conftest.er1 >&5
  1984. mv -f conftest.er1 conftest.err
  1985. fi
  1986. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1987. test $ac_status = 0; } && {
  1988. test -z "$ac_cxx_werror_flag" ||
  1989. test ! -s conftest.err
  1990. } && test -s conftest$ac_exeext && {
  1991. test "$cross_compiling" = yes ||
  1992. test -x conftest$ac_exeext
  1993. }
  1994. then :
  1995. ac_retval=0
  1996. else $as_nop
  1997. printf "%s\n" "$as_me: failed program was:" >&5
  1998. sed 's/^/| /' conftest.$ac_ext >&5
  1999. ac_retval=1
  2000. fi
  2001. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2002. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2003. # interfere with the next link command; also delete a directory that is
  2004. # left behind by Apple's compiler. We do this before executing the actions.
  2005. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2006. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2007. as_fn_set_status $ac_retval
  2008. } # ac_fn_cxx_try_link
  2009. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2010. # -------------------------------------------
  2011. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2012. # variable VAR accordingly.
  2013. ac_fn_c_check_type ()
  2014. {
  2015. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2017. printf %s "checking for $2... " >&6; }
  2018. if eval test \${$3+y}
  2019. then :
  2020. printf %s "(cached) " >&6
  2021. else $as_nop
  2022. eval "$3=no"
  2023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2024. /* end confdefs.h. */
  2025. $4
  2026. int
  2027. main (void)
  2028. {
  2029. if (sizeof ($2))
  2030. return 0;
  2031. ;
  2032. return 0;
  2033. }
  2034. _ACEOF
  2035. if ac_fn_c_try_compile "$LINENO"
  2036. then :
  2037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2038. /* end confdefs.h. */
  2039. $4
  2040. int
  2041. main (void)
  2042. {
  2043. if (sizeof (($2)))
  2044. return 0;
  2045. ;
  2046. return 0;
  2047. }
  2048. _ACEOF
  2049. if ac_fn_c_try_compile "$LINENO"
  2050. then :
  2051. else $as_nop
  2052. eval "$3=yes"
  2053. fi
  2054. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2055. fi
  2056. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2057. fi
  2058. eval ac_res=\$$3
  2059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2060. printf "%s\n" "$ac_res" >&6; }
  2061. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2062. } # ac_fn_c_check_type
  2063. # ac_fn_c_try_cpp LINENO
  2064. # ----------------------
  2065. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2066. ac_fn_c_try_cpp ()
  2067. {
  2068. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2069. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2070. case "(($ac_try" in
  2071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2072. *) ac_try_echo=$ac_try;;
  2073. esac
  2074. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2075. printf "%s\n" "$ac_try_echo"; } >&5
  2076. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2077. ac_status=$?
  2078. if test -s conftest.err; then
  2079. grep -v '^ *+' conftest.err >conftest.er1
  2080. cat conftest.er1 >&5
  2081. mv -f conftest.er1 conftest.err
  2082. fi
  2083. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2084. test $ac_status = 0; } > conftest.i && {
  2085. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2086. test ! -s conftest.err
  2087. }
  2088. then :
  2089. ac_retval=0
  2090. else $as_nop
  2091. printf "%s\n" "$as_me: failed program was:" >&5
  2092. sed 's/^/| /' conftest.$ac_ext >&5
  2093. ac_retval=1
  2094. fi
  2095. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2096. as_fn_set_status $ac_retval
  2097. } # ac_fn_c_try_cpp
  2098. # ac_fn_c_try_run LINENO
  2099. # ----------------------
  2100. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2101. # executables *can* be run.
  2102. ac_fn_c_try_run ()
  2103. {
  2104. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2105. if { { ac_try="$ac_link"
  2106. case "(($ac_try" in
  2107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2108. *) ac_try_echo=$ac_try;;
  2109. esac
  2110. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2111. printf "%s\n" "$ac_try_echo"; } >&5
  2112. (eval "$ac_link") 2>&5
  2113. ac_status=$?
  2114. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2115. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2116. { { case "(($ac_try" in
  2117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2118. *) ac_try_echo=$ac_try;;
  2119. esac
  2120. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2121. printf "%s\n" "$ac_try_echo"; } >&5
  2122. (eval "$ac_try") 2>&5
  2123. ac_status=$?
  2124. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2125. test $ac_status = 0; }; }
  2126. then :
  2127. ac_retval=0
  2128. else $as_nop
  2129. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2130. printf "%s\n" "$as_me: failed program was:" >&5
  2131. sed 's/^/| /' conftest.$ac_ext >&5
  2132. ac_retval=$ac_status
  2133. fi
  2134. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2135. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2136. as_fn_set_status $ac_retval
  2137. } # ac_fn_c_try_run
  2138. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2139. # ----------------------------------------------------
  2140. # Tries to find if the field MEMBER exists in type AGGR, after including
  2141. # INCLUDES, setting cache variable VAR accordingly.
  2142. ac_fn_c_check_member ()
  2143. {
  2144. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2146. printf %s "checking for $2.$3... " >&6; }
  2147. if eval test \${$4+y}
  2148. then :
  2149. printf %s "(cached) " >&6
  2150. else $as_nop
  2151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2152. /* end confdefs.h. */
  2153. $5
  2154. int
  2155. main (void)
  2156. {
  2157. static $2 ac_aggr;
  2158. if (ac_aggr.$3)
  2159. return 0;
  2160. ;
  2161. return 0;
  2162. }
  2163. _ACEOF
  2164. if ac_fn_c_try_compile "$LINENO"
  2165. then :
  2166. eval "$4=yes"
  2167. else $as_nop
  2168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2169. /* end confdefs.h. */
  2170. $5
  2171. int
  2172. main (void)
  2173. {
  2174. static $2 ac_aggr;
  2175. if (sizeof ac_aggr.$3)
  2176. return 0;
  2177. ;
  2178. return 0;
  2179. }
  2180. _ACEOF
  2181. if ac_fn_c_try_compile "$LINENO"
  2182. then :
  2183. eval "$4=yes"
  2184. else $as_nop
  2185. eval "$4=no"
  2186. fi
  2187. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2188. fi
  2189. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2190. fi
  2191. eval ac_res=\$$4
  2192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2193. printf "%s\n" "$ac_res" >&6; }
  2194. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2195. } # ac_fn_c_check_member
  2196. ac_configure_args_raw=
  2197. for ac_arg
  2198. do
  2199. case $ac_arg in
  2200. *\'*)
  2201. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2202. esac
  2203. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2204. done
  2205. case $ac_configure_args_raw in
  2206. *$as_nl*)
  2207. ac_safe_unquote= ;;
  2208. *)
  2209. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2210. ac_unsafe_a="$ac_unsafe_z#~"
  2211. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2212. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2213. esac
  2214. cat >config.log <<_ACEOF
  2215. This file contains any messages produced by compilers while
  2216. running configure, to aid debugging if configure makes a mistake.
  2217. It was created by $as_me, which was
  2218. generated by GNU Autoconf 2.71. Invocation command line was
  2219. $ $0$ac_configure_args_raw
  2220. _ACEOF
  2221. exec 5>>config.log
  2222. {
  2223. cat <<_ASUNAME
  2224. ## --------- ##
  2225. ## Platform. ##
  2226. ## --------- ##
  2227. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2228. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2229. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2230. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2231. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2232. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2233. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2234. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2235. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2236. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2237. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2238. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2239. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2240. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2241. _ASUNAME
  2242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2243. for as_dir in $PATH
  2244. do
  2245. IFS=$as_save_IFS
  2246. case $as_dir in #(((
  2247. '') as_dir=./ ;;
  2248. */) ;;
  2249. *) as_dir=$as_dir/ ;;
  2250. esac
  2251. printf "%s\n" "PATH: $as_dir"
  2252. done
  2253. IFS=$as_save_IFS
  2254. } >&5
  2255. cat >&5 <<_ACEOF
  2256. ## ----------- ##
  2257. ## Core tests. ##
  2258. ## ----------- ##
  2259. _ACEOF
  2260. # Keep a trace of the command line.
  2261. # Strip out --no-create and --no-recursion so they do not pile up.
  2262. # Strip out --silent because we don't want to record it for future runs.
  2263. # Also quote any args containing shell meta-characters.
  2264. # Make two passes to allow for proper duplicate-argument suppression.
  2265. ac_configure_args=
  2266. ac_configure_args0=
  2267. ac_configure_args1=
  2268. ac_must_keep_next=false
  2269. for ac_pass in 1 2
  2270. do
  2271. for ac_arg
  2272. do
  2273. case $ac_arg in
  2274. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2275. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2276. | -silent | --silent | --silen | --sile | --sil)
  2277. continue ;;
  2278. *\'*)
  2279. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2280. esac
  2281. case $ac_pass in
  2282. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2283. 2)
  2284. as_fn_append ac_configure_args1 " '$ac_arg'"
  2285. if test $ac_must_keep_next = true; then
  2286. ac_must_keep_next=false # Got value, back to normal.
  2287. else
  2288. case $ac_arg in
  2289. *=* | --config-cache | -C | -disable-* | --disable-* \
  2290. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2291. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2292. | -with-* | --with-* | -without-* | --without-* | --x)
  2293. case "$ac_configure_args0 " in
  2294. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2295. esac
  2296. ;;
  2297. -* ) ac_must_keep_next=true ;;
  2298. esac
  2299. fi
  2300. as_fn_append ac_configure_args " '$ac_arg'"
  2301. ;;
  2302. esac
  2303. done
  2304. done
  2305. { ac_configure_args0=; unset ac_configure_args0;}
  2306. { ac_configure_args1=; unset ac_configure_args1;}
  2307. # When interrupted or exit'd, cleanup temporary files, and complete
  2308. # config.log. We remove comments because anyway the quotes in there
  2309. # would cause problems or look ugly.
  2310. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2311. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2312. trap 'exit_status=$?
  2313. # Sanitize IFS.
  2314. IFS=" "" $as_nl"
  2315. # Save into config.log some information that might help in debugging.
  2316. {
  2317. echo
  2318. printf "%s\n" "## ---------------- ##
  2319. ## Cache variables. ##
  2320. ## ---------------- ##"
  2321. echo
  2322. # The following way of writing the cache mishandles newlines in values,
  2323. (
  2324. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2325. eval ac_val=\$$ac_var
  2326. case $ac_val in #(
  2327. *${as_nl}*)
  2328. case $ac_var in #(
  2329. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2330. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2331. esac
  2332. case $ac_var in #(
  2333. _ | IFS | as_nl) ;; #(
  2334. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2335. *) { eval $ac_var=; unset $ac_var;} ;;
  2336. esac ;;
  2337. esac
  2338. done
  2339. (set) 2>&1 |
  2340. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2341. *${as_nl}ac_space=\ *)
  2342. sed -n \
  2343. "s/'\''/'\''\\\\'\'''\''/g;
  2344. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2345. ;; #(
  2346. *)
  2347. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2348. ;;
  2349. esac |
  2350. sort
  2351. )
  2352. echo
  2353. printf "%s\n" "## ----------------- ##
  2354. ## Output variables. ##
  2355. ## ----------------- ##"
  2356. echo
  2357. for ac_var in $ac_subst_vars
  2358. do
  2359. eval ac_val=\$$ac_var
  2360. case $ac_val in
  2361. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2362. esac
  2363. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2364. done | sort
  2365. echo
  2366. if test -n "$ac_subst_files"; then
  2367. printf "%s\n" "## ------------------- ##
  2368. ## File substitutions. ##
  2369. ## ------------------- ##"
  2370. echo
  2371. for ac_var in $ac_subst_files
  2372. do
  2373. eval ac_val=\$$ac_var
  2374. case $ac_val in
  2375. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2376. esac
  2377. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2378. done | sort
  2379. echo
  2380. fi
  2381. if test -s confdefs.h; then
  2382. printf "%s\n" "## ----------- ##
  2383. ## confdefs.h. ##
  2384. ## ----------- ##"
  2385. echo
  2386. cat confdefs.h
  2387. echo
  2388. fi
  2389. test "$ac_signal" != 0 &&
  2390. printf "%s\n" "$as_me: caught signal $ac_signal"
  2391. printf "%s\n" "$as_me: exit $exit_status"
  2392. } >&5
  2393. rm -f core *.core core.conftest.* &&
  2394. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2395. exit $exit_status
  2396. ' 0
  2397. for ac_signal in 1 2 13 15; do
  2398. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2399. done
  2400. ac_signal=0
  2401. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2402. rm -f -r conftest* confdefs.h
  2403. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2404. # Predefined preprocessor variables.
  2405. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2406. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2407. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2408. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2409. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2410. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2411. # Let the site file select an alternate cache file if it wants to.
  2412. # Prefer an explicitly selected file to automatically selected ones.
  2413. if test -n "$CONFIG_SITE"; then
  2414. ac_site_files="$CONFIG_SITE"
  2415. elif test "x$prefix" != xNONE; then
  2416. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2417. else
  2418. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2419. fi
  2420. for ac_site_file in $ac_site_files
  2421. do
  2422. case $ac_site_file in #(
  2423. */*) :
  2424. ;; #(
  2425. *) :
  2426. ac_site_file=./$ac_site_file ;;
  2427. esac
  2428. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2430. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2431. sed 's/^/| /' "$ac_site_file" >&5
  2432. . "$ac_site_file" \
  2433. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2434. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2435. as_fn_error $? "failed to load site script $ac_site_file
  2436. See \`config.log' for more details" "$LINENO" 5; }
  2437. fi
  2438. done
  2439. if test -r "$cache_file"; then
  2440. # Some versions of bash will fail to source /dev/null (special files
  2441. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2442. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2444. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2445. case $cache_file in
  2446. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2447. *) . "./$cache_file";;
  2448. esac
  2449. fi
  2450. else
  2451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2452. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2453. >$cache_file
  2454. fi
  2455. # Test code for whether the C compiler supports C89 (global declarations)
  2456. ac_c_conftest_c89_globals='
  2457. /* Does the compiler advertise C89 conformance?
  2458. Do not test the value of __STDC__, because some compilers set it to 0
  2459. while being otherwise adequately conformant. */
  2460. #if !defined __STDC__
  2461. # error "Compiler does not advertise C89 conformance"
  2462. #endif
  2463. #include <stddef.h>
  2464. #include <stdarg.h>
  2465. struct stat;
  2466. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2467. struct buf { int x; };
  2468. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2469. static char *e (p, i)
  2470. char **p;
  2471. int i;
  2472. {
  2473. return p[i];
  2474. }
  2475. static char *f (char * (*g) (char **, int), char **p, ...)
  2476. {
  2477. char *s;
  2478. va_list v;
  2479. va_start (v,p);
  2480. s = g (p, va_arg (v,int));
  2481. va_end (v);
  2482. return s;
  2483. }
  2484. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2485. function prototypes and stuff, but not \xHH hex character constants.
  2486. These do not provoke an error unfortunately, instead are silently treated
  2487. as an "x". The following induces an error, until -std is added to get
  2488. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2489. array size at least. It is necessary to write \x00 == 0 to get something
  2490. that is true only with -std. */
  2491. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2492. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2493. inside strings and character constants. */
  2494. #define FOO(x) '\''x'\''
  2495. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2496. int test (int i, double x);
  2497. struct s1 {int (*f) (int a);};
  2498. struct s2 {int (*f) (double a);};
  2499. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2500. int, int);'
  2501. # Test code for whether the C compiler supports C89 (body of main).
  2502. ac_c_conftest_c89_main='
  2503. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2504. '
  2505. # Test code for whether the C compiler supports C99 (global declarations)
  2506. ac_c_conftest_c99_globals='
  2507. // Does the compiler advertise C99 conformance?
  2508. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2509. # error "Compiler does not advertise C99 conformance"
  2510. #endif
  2511. #include <stdbool.h>
  2512. extern int puts (const char *);
  2513. extern int printf (const char *, ...);
  2514. extern int dprintf (int, const char *, ...);
  2515. extern void *malloc (size_t);
  2516. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2517. // dprintf is used instead of fprintf to avoid needing to declare
  2518. // FILE and stderr.
  2519. #define debug(...) dprintf (2, __VA_ARGS__)
  2520. #define showlist(...) puts (#__VA_ARGS__)
  2521. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2522. static void
  2523. test_varargs_macros (void)
  2524. {
  2525. int x = 1234;
  2526. int y = 5678;
  2527. debug ("Flag");
  2528. debug ("X = %d\n", x);
  2529. showlist (The first, second, and third items.);
  2530. report (x>y, "x is %d but y is %d", x, y);
  2531. }
  2532. // Check long long types.
  2533. #define BIG64 18446744073709551615ull
  2534. #define BIG32 4294967295ul
  2535. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2536. #if !BIG_OK
  2537. #error "your preprocessor is broken"
  2538. #endif
  2539. #if BIG_OK
  2540. #else
  2541. #error "your preprocessor is broken"
  2542. #endif
  2543. static long long int bignum = -9223372036854775807LL;
  2544. static unsigned long long int ubignum = BIG64;
  2545. struct incomplete_array
  2546. {
  2547. int datasize;
  2548. double data[];
  2549. };
  2550. struct named_init {
  2551. int number;
  2552. const wchar_t *name;
  2553. double average;
  2554. };
  2555. typedef const char *ccp;
  2556. static inline int
  2557. test_restrict (ccp restrict text)
  2558. {
  2559. // See if C++-style comments work.
  2560. // Iterate through items via the restricted pointer.
  2561. // Also check for declarations in for loops.
  2562. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2563. continue;
  2564. return 0;
  2565. }
  2566. // Check varargs and va_copy.
  2567. static bool
  2568. test_varargs (const char *format, ...)
  2569. {
  2570. va_list args;
  2571. va_start (args, format);
  2572. va_list args_copy;
  2573. va_copy (args_copy, args);
  2574. const char *str = "";
  2575. int number = 0;
  2576. float fnumber = 0;
  2577. while (*format)
  2578. {
  2579. switch (*format++)
  2580. {
  2581. case '\''s'\'': // string
  2582. str = va_arg (args_copy, const char *);
  2583. break;
  2584. case '\''d'\'': // int
  2585. number = va_arg (args_copy, int);
  2586. break;
  2587. case '\''f'\'': // float
  2588. fnumber = va_arg (args_copy, double);
  2589. break;
  2590. default:
  2591. break;
  2592. }
  2593. }
  2594. va_end (args_copy);
  2595. va_end (args);
  2596. return *str && number && fnumber;
  2597. }
  2598. '
  2599. # Test code for whether the C compiler supports C99 (body of main).
  2600. ac_c_conftest_c99_main='
  2601. // Check bool.
  2602. _Bool success = false;
  2603. success |= (argc != 0);
  2604. // Check restrict.
  2605. if (test_restrict ("String literal") == 0)
  2606. success = true;
  2607. char *restrict newvar = "Another string";
  2608. // Check varargs.
  2609. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2610. test_varargs_macros ();
  2611. // Check flexible array members.
  2612. struct incomplete_array *ia =
  2613. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2614. ia->datasize = 10;
  2615. for (int i = 0; i < ia->datasize; ++i)
  2616. ia->data[i] = i * 1.234;
  2617. // Check named initializers.
  2618. struct named_init ni = {
  2619. .number = 34,
  2620. .name = L"Test wide string",
  2621. .average = 543.34343,
  2622. };
  2623. ni.number = 58;
  2624. int dynamic_array[ni.number];
  2625. dynamic_array[0] = argv[0][0];
  2626. dynamic_array[ni.number - 1] = 543;
  2627. // work around unused variable warnings
  2628. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2629. || dynamic_array[ni.number - 1] != 543);
  2630. '
  2631. # Test code for whether the C compiler supports C11 (global declarations)
  2632. ac_c_conftest_c11_globals='
  2633. // Does the compiler advertise C11 conformance?
  2634. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2635. # error "Compiler does not advertise C11 conformance"
  2636. #endif
  2637. // Check _Alignas.
  2638. char _Alignas (double) aligned_as_double;
  2639. char _Alignas (0) no_special_alignment;
  2640. extern char aligned_as_int;
  2641. char _Alignas (0) _Alignas (int) aligned_as_int;
  2642. // Check _Alignof.
  2643. enum
  2644. {
  2645. int_alignment = _Alignof (int),
  2646. int_array_alignment = _Alignof (int[100]),
  2647. char_alignment = _Alignof (char)
  2648. };
  2649. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2650. // Check _Noreturn.
  2651. int _Noreturn does_not_return (void) { for (;;) continue; }
  2652. // Check _Static_assert.
  2653. struct test_static_assert
  2654. {
  2655. int x;
  2656. _Static_assert (sizeof (int) <= sizeof (long int),
  2657. "_Static_assert does not work in struct");
  2658. long int y;
  2659. };
  2660. // Check UTF-8 literals.
  2661. #define u8 syntax error!
  2662. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2663. // Check duplicate typedefs.
  2664. typedef long *long_ptr;
  2665. typedef long int *long_ptr;
  2666. typedef long_ptr long_ptr;
  2667. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2668. struct anonymous
  2669. {
  2670. union {
  2671. struct { int i; int j; };
  2672. struct { int k; long int l; } w;
  2673. };
  2674. int m;
  2675. } v1;
  2676. '
  2677. # Test code for whether the C compiler supports C11 (body of main).
  2678. ac_c_conftest_c11_main='
  2679. _Static_assert ((offsetof (struct anonymous, i)
  2680. == offsetof (struct anonymous, w.k)),
  2681. "Anonymous union alignment botch");
  2682. v1.i = 2;
  2683. v1.w.k = 5;
  2684. ok |= v1.i != 5;
  2685. '
  2686. # Test code for whether the C compiler supports C11 (complete).
  2687. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2688. ${ac_c_conftest_c99_globals}
  2689. ${ac_c_conftest_c11_globals}
  2690. int
  2691. main (int argc, char **argv)
  2692. {
  2693. int ok = 0;
  2694. ${ac_c_conftest_c89_main}
  2695. ${ac_c_conftest_c99_main}
  2696. ${ac_c_conftest_c11_main}
  2697. return ok;
  2698. }
  2699. "
  2700. # Test code for whether the C compiler supports C99 (complete).
  2701. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2702. ${ac_c_conftest_c99_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. return ok;
  2710. }
  2711. "
  2712. # Test code for whether the C compiler supports C89 (complete).
  2713. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2714. int
  2715. main (int argc, char **argv)
  2716. {
  2717. int ok = 0;
  2718. ${ac_c_conftest_c89_main}
  2719. return ok;
  2720. }
  2721. "
  2722. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2723. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2724. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2725. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2726. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2727. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2728. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2729. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2730. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2731. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2732. ac_cxx_conftest_cxx98_globals='
  2733. // Does the compiler advertise C++98 conformance?
  2734. #if !defined __cplusplus || __cplusplus < 199711L
  2735. # error "Compiler does not advertise C++98 conformance"
  2736. #endif
  2737. // These inclusions are to reject old compilers that
  2738. // lack the unsuffixed header files.
  2739. #include <cstdlib>
  2740. #include <exception>
  2741. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2742. extern void assert (int);
  2743. namespace std {
  2744. extern int strcmp (const char *, const char *);
  2745. }
  2746. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2747. using std::exception;
  2748. using std::strcmp;
  2749. namespace {
  2750. void test_exception_syntax()
  2751. {
  2752. try {
  2753. throw "test";
  2754. } catch (const char *s) {
  2755. // Extra parentheses suppress a warning when building autoconf itself,
  2756. // due to lint rules shared with more typical C programs.
  2757. assert (!(strcmp) (s, "test"));
  2758. }
  2759. }
  2760. template <typename T> struct test_template
  2761. {
  2762. T const val;
  2763. explicit test_template(T t) : val(t) {}
  2764. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2765. };
  2766. } // anonymous namespace
  2767. '
  2768. # Test code for whether the C++ compiler supports C++98 (body of main)
  2769. ac_cxx_conftest_cxx98_main='
  2770. assert (argc);
  2771. assert (! argv[0]);
  2772. {
  2773. test_exception_syntax ();
  2774. test_template<double> tt (2.0);
  2775. assert (tt.add (4) == 6.0);
  2776. assert (true && !false);
  2777. }
  2778. '
  2779. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2780. ac_cxx_conftest_cxx11_globals='
  2781. // Does the compiler advertise C++ 2011 conformance?
  2782. #if !defined __cplusplus || __cplusplus < 201103L
  2783. # error "Compiler does not advertise C++11 conformance"
  2784. #endif
  2785. namespace cxx11test
  2786. {
  2787. constexpr int get_val() { return 20; }
  2788. struct testinit
  2789. {
  2790. int i;
  2791. double d;
  2792. };
  2793. class delegate
  2794. {
  2795. public:
  2796. delegate(int n) : n(n) {}
  2797. delegate(): delegate(2354) {}
  2798. virtual int getval() { return this->n; };
  2799. protected:
  2800. int n;
  2801. };
  2802. class overridden : public delegate
  2803. {
  2804. public:
  2805. overridden(int n): delegate(n) {}
  2806. virtual int getval() override final { return this->n * 2; }
  2807. };
  2808. class nocopy
  2809. {
  2810. public:
  2811. nocopy(int i): i(i) {}
  2812. nocopy() = default;
  2813. nocopy(const nocopy&) = delete;
  2814. nocopy & operator=(const nocopy&) = delete;
  2815. private:
  2816. int i;
  2817. };
  2818. // for testing lambda expressions
  2819. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2820. {
  2821. return f(v);
  2822. }
  2823. // for testing variadic templates and trailing return types
  2824. template <typename V> auto sum(V first) -> V
  2825. {
  2826. return first;
  2827. }
  2828. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2829. {
  2830. return first + sum(rest...);
  2831. }
  2832. }
  2833. '
  2834. # Test code for whether the C++ compiler supports C++11 (body of main)
  2835. ac_cxx_conftest_cxx11_main='
  2836. {
  2837. // Test auto and decltype
  2838. auto a1 = 6538;
  2839. auto a2 = 48573953.4;
  2840. auto a3 = "String literal";
  2841. int total = 0;
  2842. for (auto i = a3; *i; ++i) { total += *i; }
  2843. decltype(a2) a4 = 34895.034;
  2844. }
  2845. {
  2846. // Test constexpr
  2847. short sa[cxx11test::get_val()] = { 0 };
  2848. }
  2849. {
  2850. // Test initializer lists
  2851. cxx11test::testinit il = { 4323, 435234.23544 };
  2852. }
  2853. {
  2854. // Test range-based for
  2855. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2856. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2857. for (auto &x : array) { x += 23; }
  2858. }
  2859. {
  2860. // Test lambda expressions
  2861. using cxx11test::eval;
  2862. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2863. double d = 2.0;
  2864. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2865. assert (d == 5.0);
  2866. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2867. assert (d == 5.0);
  2868. }
  2869. {
  2870. // Test use of variadic templates
  2871. using cxx11test::sum;
  2872. auto a = sum(1);
  2873. auto b = sum(1, 2);
  2874. auto c = sum(1.0, 2.0, 3.0);
  2875. }
  2876. {
  2877. // Test constructor delegation
  2878. cxx11test::delegate d1;
  2879. cxx11test::delegate d2();
  2880. cxx11test::delegate d3(45);
  2881. }
  2882. {
  2883. // Test override and final
  2884. cxx11test::overridden o1(55464);
  2885. }
  2886. {
  2887. // Test nullptr
  2888. char *c = nullptr;
  2889. }
  2890. {
  2891. // Test template brackets
  2892. test_template<::test_template<int>> v(test_template<int>(12));
  2893. }
  2894. {
  2895. // Unicode literals
  2896. char const *utf8 = u8"UTF-8 string \u2500";
  2897. char16_t const *utf16 = u"UTF-8 string \u2500";
  2898. char32_t const *utf32 = U"UTF-32 string \u2500";
  2899. }
  2900. '
  2901. # Test code for whether the C compiler supports C++11 (complete).
  2902. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2903. ${ac_cxx_conftest_cxx11_globals}
  2904. int
  2905. main (int argc, char **argv)
  2906. {
  2907. int ok = 0;
  2908. ${ac_cxx_conftest_cxx98_main}
  2909. ${ac_cxx_conftest_cxx11_main}
  2910. return ok;
  2911. }
  2912. "
  2913. # Test code for whether the C compiler supports C++98 (complete).
  2914. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2915. int
  2916. main (int argc, char **argv)
  2917. {
  2918. int ok = 0;
  2919. ${ac_cxx_conftest_cxx98_main}
  2920. return ok;
  2921. }
  2922. "
  2923. # Auxiliary files required by this configure script.
  2924. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2925. # Locations in which to look for auxiliary files.
  2926. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2927. # Search for a directory containing all of the required auxiliary files,
  2928. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2929. # If we don't find one directory that contains all the files we need,
  2930. # we report the set of missing files from the *first* directory in
  2931. # $ac_aux_dir_candidates and give up.
  2932. ac_missing_aux_files=""
  2933. ac_first_candidate=:
  2934. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2936. as_found=false
  2937. for as_dir in $ac_aux_dir_candidates
  2938. do
  2939. IFS=$as_save_IFS
  2940. case $as_dir in #(((
  2941. '') as_dir=./ ;;
  2942. */) ;;
  2943. *) as_dir=$as_dir/ ;;
  2944. esac
  2945. as_found=:
  2946. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2947. ac_aux_dir_found=yes
  2948. ac_install_sh=
  2949. for ac_aux in $ac_aux_files
  2950. do
  2951. # As a special case, if "install-sh" is required, that requirement
  2952. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2953. # and $ac_install_sh is set appropriately for whichever one is found.
  2954. if test x"$ac_aux" = x"install-sh"
  2955. then
  2956. if test -f "${as_dir}install-sh"; then
  2957. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2958. ac_install_sh="${as_dir}install-sh -c"
  2959. elif test -f "${as_dir}install.sh"; then
  2960. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2961. ac_install_sh="${as_dir}install.sh -c"
  2962. elif test -f "${as_dir}shtool"; then
  2963. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2964. ac_install_sh="${as_dir}shtool install -c"
  2965. else
  2966. ac_aux_dir_found=no
  2967. if $ac_first_candidate; then
  2968. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2969. else
  2970. break
  2971. fi
  2972. fi
  2973. else
  2974. if test -f "${as_dir}${ac_aux}"; then
  2975. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2976. else
  2977. ac_aux_dir_found=no
  2978. if $ac_first_candidate; then
  2979. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2980. else
  2981. break
  2982. fi
  2983. fi
  2984. fi
  2985. done
  2986. if test "$ac_aux_dir_found" = yes; then
  2987. ac_aux_dir="$as_dir"
  2988. break
  2989. fi
  2990. ac_first_candidate=false
  2991. as_found=false
  2992. done
  2993. IFS=$as_save_IFS
  2994. if $as_found
  2995. then :
  2996. else $as_nop
  2997. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2998. fi
  2999. # These three variables are undocumented and unsupported,
  3000. # and are intended to be withdrawn in a future Autoconf release.
  3001. # They can cause serious problems if a builder's source tree is in a directory
  3002. # whose full name contains unusual characters.
  3003. if test -f "${ac_aux_dir}config.guess"; then
  3004. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3005. fi
  3006. if test -f "${ac_aux_dir}config.sub"; then
  3007. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3008. fi
  3009. if test -f "$ac_aux_dir/configure"; then
  3010. ac_configure="$SHELL ${ac_aux_dir}configure"
  3011. fi
  3012. # Check that the precious variables saved in the cache have kept the same
  3013. # value.
  3014. ac_cache_corrupted=false
  3015. for ac_var in $ac_precious_vars; do
  3016. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3017. eval ac_new_set=\$ac_env_${ac_var}_set
  3018. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3019. eval ac_new_val=\$ac_env_${ac_var}_value
  3020. case $ac_old_set,$ac_new_set in
  3021. set,)
  3022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3023. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3024. ac_cache_corrupted=: ;;
  3025. ,set)
  3026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3027. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3028. ac_cache_corrupted=: ;;
  3029. ,);;
  3030. *)
  3031. if test "x$ac_old_val" != "x$ac_new_val"; then
  3032. # differences in whitespace do not lead to failure.
  3033. ac_old_val_w=`echo x $ac_old_val`
  3034. ac_new_val_w=`echo x $ac_new_val`
  3035. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3037. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3038. ac_cache_corrupted=:
  3039. else
  3040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3041. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3042. eval $ac_var=\$ac_old_val
  3043. fi
  3044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3045. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3047. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3048. fi;;
  3049. esac
  3050. # Pass precious variables to config.status.
  3051. if test "$ac_new_set" = set; then
  3052. case $ac_new_val in
  3053. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3054. *) ac_arg=$ac_var=$ac_new_val ;;
  3055. esac
  3056. case " $ac_configure_args " in
  3057. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3058. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3059. esac
  3060. fi
  3061. done
  3062. if $ac_cache_corrupted; then
  3063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3064. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3066. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3067. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3068. and start over" "$LINENO" 5
  3069. fi
  3070. ## -------------------- ##
  3071. ## Main body of script. ##
  3072. ## -------------------- ##
  3073. ac_ext=c
  3074. ac_cpp='$CPP $CPPFLAGS'
  3075. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3076. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3077. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3078. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3079. orig_CFLAGS="$CFLAGS"
  3080. # See docs/release_checklist.md
  3081. SDL_MAJOR_VERSION=3
  3082. SDL_MINOR_VERSION=0
  3083. SDL_MICRO_VERSION=0
  3084. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3085. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3086. case "$SDL_MINOR_VERSION" in #(
  3087. *[02468]) :
  3088. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3089. *) :
  3090. SDL_INTERFACE_AGE=0 ;; #(
  3091. *) :
  3092. ;;
  3093. esac
  3094. # libtool versioning
  3095. case `pwd` in
  3096. *\ * | *\ *)
  3097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3098. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3099. esac
  3100. macro_version='2.4.6'
  3101. macro_revision='2.4.6'
  3102. ltmain=$ac_aux_dir/ltmain.sh
  3103. # Make sure we can run config.sub.
  3104. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3105. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3107. printf %s "checking build system type... " >&6; }
  3108. if test ${ac_cv_build+y}
  3109. then :
  3110. printf %s "(cached) " >&6
  3111. else $as_nop
  3112. ac_build_alias=$build_alias
  3113. test "x$ac_build_alias" = x &&
  3114. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3115. test "x$ac_build_alias" = x &&
  3116. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3117. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3118. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3119. fi
  3120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3121. printf "%s\n" "$ac_cv_build" >&6; }
  3122. case $ac_cv_build in
  3123. *-*-*) ;;
  3124. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3125. esac
  3126. build=$ac_cv_build
  3127. ac_save_IFS=$IFS; IFS='-'
  3128. set x $ac_cv_build
  3129. shift
  3130. build_cpu=$1
  3131. build_vendor=$2
  3132. shift; shift
  3133. # Remember, the first character of IFS is used to create $*,
  3134. # except with old shells:
  3135. build_os=$*
  3136. IFS=$ac_save_IFS
  3137. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3139. printf %s "checking host system type... " >&6; }
  3140. if test ${ac_cv_host+y}
  3141. then :
  3142. printf %s "(cached) " >&6
  3143. else $as_nop
  3144. if test "x$host_alias" = x; then
  3145. ac_cv_host=$ac_cv_build
  3146. else
  3147. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3148. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3149. fi
  3150. fi
  3151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3152. printf "%s\n" "$ac_cv_host" >&6; }
  3153. case $ac_cv_host in
  3154. *-*-*) ;;
  3155. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3156. esac
  3157. host=$ac_cv_host
  3158. ac_save_IFS=$IFS; IFS='-'
  3159. set x $ac_cv_host
  3160. shift
  3161. host_cpu=$1
  3162. host_vendor=$2
  3163. shift; shift
  3164. # Remember, the first character of IFS is used to create $*,
  3165. # except with old shells:
  3166. host_os=$*
  3167. IFS=$ac_save_IFS
  3168. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3169. # Backslashify metacharacters that are still active within
  3170. # double-quoted strings.
  3171. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3172. # Same as above, but do not quote variable references.
  3173. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3174. # Sed substitution to delay expansion of an escaped shell variable in a
  3175. # double_quote_subst'ed string.
  3176. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3177. # Sed substitution to delay expansion of an escaped single quote.
  3178. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3179. # Sed substitution to avoid accidental globbing in evaled expressions
  3180. no_glob_subst='s/\*/\\\*/g'
  3181. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3182. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3183. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3185. printf %s "checking how to print strings... " >&6; }
  3186. # Test print first, because it will be a builtin if present.
  3187. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3188. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3189. ECHO='print -r --'
  3190. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3191. ECHO='printf %s\n'
  3192. else
  3193. # Use this function as a fallback that always works.
  3194. func_fallback_echo ()
  3195. {
  3196. eval 'cat <<_LTECHO_EOF
  3197. $1
  3198. _LTECHO_EOF'
  3199. }
  3200. ECHO='func_fallback_echo'
  3201. fi
  3202. # func_echo_all arg...
  3203. # Invoke $ECHO with all args, space-separated.
  3204. func_echo_all ()
  3205. {
  3206. $ECHO ""
  3207. }
  3208. case $ECHO in
  3209. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3210. printf "%s\n" "printf" >&6; } ;;
  3211. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3212. printf "%s\n" "print -r" >&6; } ;;
  3213. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3214. printf "%s\n" "cat" >&6; } ;;
  3215. esac
  3216. ac_ext=c
  3217. ac_cpp='$CPP $CPPFLAGS'
  3218. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3219. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3220. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3221. if test -n "$ac_tool_prefix"; then
  3222. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3223. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3225. printf %s "checking for $ac_word... " >&6; }
  3226. if test ${ac_cv_prog_CC+y}
  3227. then :
  3228. printf %s "(cached) " >&6
  3229. else $as_nop
  3230. if test -n "$CC"; then
  3231. ac_cv_prog_CC="$CC" # Let the user override the test.
  3232. else
  3233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3234. for as_dir in $PATH
  3235. do
  3236. IFS=$as_save_IFS
  3237. case $as_dir in #(((
  3238. '') as_dir=./ ;;
  3239. */) ;;
  3240. *) as_dir=$as_dir/ ;;
  3241. esac
  3242. for ac_exec_ext in '' $ac_executable_extensions; do
  3243. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3244. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3245. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3246. break 2
  3247. fi
  3248. done
  3249. done
  3250. IFS=$as_save_IFS
  3251. fi
  3252. fi
  3253. CC=$ac_cv_prog_CC
  3254. if test -n "$CC"; then
  3255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3256. printf "%s\n" "$CC" >&6; }
  3257. else
  3258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3259. printf "%s\n" "no" >&6; }
  3260. fi
  3261. fi
  3262. if test -z "$ac_cv_prog_CC"; then
  3263. ac_ct_CC=$CC
  3264. # Extract the first word of "gcc", so it can be a program name with args.
  3265. set dummy gcc; ac_word=$2
  3266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3267. printf %s "checking for $ac_word... " >&6; }
  3268. if test ${ac_cv_prog_ac_ct_CC+y}
  3269. then :
  3270. printf %s "(cached) " >&6
  3271. else $as_nop
  3272. if test -n "$ac_ct_CC"; then
  3273. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3274. else
  3275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3276. for as_dir in $PATH
  3277. do
  3278. IFS=$as_save_IFS
  3279. case $as_dir in #(((
  3280. '') as_dir=./ ;;
  3281. */) ;;
  3282. *) as_dir=$as_dir/ ;;
  3283. esac
  3284. for ac_exec_ext in '' $ac_executable_extensions; do
  3285. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3286. ac_cv_prog_ac_ct_CC="gcc"
  3287. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3288. break 2
  3289. fi
  3290. done
  3291. done
  3292. IFS=$as_save_IFS
  3293. fi
  3294. fi
  3295. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3296. if test -n "$ac_ct_CC"; then
  3297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3298. printf "%s\n" "$ac_ct_CC" >&6; }
  3299. else
  3300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3301. printf "%s\n" "no" >&6; }
  3302. fi
  3303. if test "x$ac_ct_CC" = x; then
  3304. CC=""
  3305. else
  3306. case $cross_compiling:$ac_tool_warned in
  3307. yes:)
  3308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3309. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3310. ac_tool_warned=yes ;;
  3311. esac
  3312. CC=$ac_ct_CC
  3313. fi
  3314. else
  3315. CC="$ac_cv_prog_CC"
  3316. fi
  3317. if test -z "$CC"; then
  3318. if test -n "$ac_tool_prefix"; then
  3319. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3320. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3322. printf %s "checking for $ac_word... " >&6; }
  3323. if test ${ac_cv_prog_CC+y}
  3324. then :
  3325. printf %s "(cached) " >&6
  3326. else $as_nop
  3327. if test -n "$CC"; then
  3328. ac_cv_prog_CC="$CC" # Let the user override the test.
  3329. else
  3330. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3331. for as_dir in $PATH
  3332. do
  3333. IFS=$as_save_IFS
  3334. case $as_dir in #(((
  3335. '') as_dir=./ ;;
  3336. */) ;;
  3337. *) as_dir=$as_dir/ ;;
  3338. esac
  3339. for ac_exec_ext in '' $ac_executable_extensions; do
  3340. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3341. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3342. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3343. break 2
  3344. fi
  3345. done
  3346. done
  3347. IFS=$as_save_IFS
  3348. fi
  3349. fi
  3350. CC=$ac_cv_prog_CC
  3351. if test -n "$CC"; then
  3352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3353. printf "%s\n" "$CC" >&6; }
  3354. else
  3355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3356. printf "%s\n" "no" >&6; }
  3357. fi
  3358. fi
  3359. fi
  3360. if test -z "$CC"; then
  3361. # Extract the first word of "cc", so it can be a program name with args.
  3362. set dummy cc; ac_word=$2
  3363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3364. printf %s "checking for $ac_word... " >&6; }
  3365. if test ${ac_cv_prog_CC+y}
  3366. then :
  3367. printf %s "(cached) " >&6
  3368. else $as_nop
  3369. if test -n "$CC"; then
  3370. ac_cv_prog_CC="$CC" # Let the user override the test.
  3371. else
  3372. ac_prog_rejected=no
  3373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3374. for as_dir in $PATH
  3375. do
  3376. IFS=$as_save_IFS
  3377. case $as_dir in #(((
  3378. '') as_dir=./ ;;
  3379. */) ;;
  3380. *) as_dir=$as_dir/ ;;
  3381. esac
  3382. for ac_exec_ext in '' $ac_executable_extensions; do
  3383. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3384. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3385. ac_prog_rejected=yes
  3386. continue
  3387. fi
  3388. ac_cv_prog_CC="cc"
  3389. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3390. break 2
  3391. fi
  3392. done
  3393. done
  3394. IFS=$as_save_IFS
  3395. if test $ac_prog_rejected = yes; then
  3396. # We found a bogon in the path, so make sure we never use it.
  3397. set dummy $ac_cv_prog_CC
  3398. shift
  3399. if test $# != 0; then
  3400. # We chose a different compiler from the bogus one.
  3401. # However, it has the same basename, so the bogon will be chosen
  3402. # first if we set CC to just the basename; use the full file name.
  3403. shift
  3404. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3405. fi
  3406. fi
  3407. fi
  3408. fi
  3409. CC=$ac_cv_prog_CC
  3410. if test -n "$CC"; then
  3411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3412. printf "%s\n" "$CC" >&6; }
  3413. else
  3414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3415. printf "%s\n" "no" >&6; }
  3416. fi
  3417. fi
  3418. if test -z "$CC"; then
  3419. if test -n "$ac_tool_prefix"; then
  3420. for ac_prog in cl.exe
  3421. do
  3422. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3423. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3425. printf %s "checking for $ac_word... " >&6; }
  3426. if test ${ac_cv_prog_CC+y}
  3427. then :
  3428. printf %s "(cached) " >&6
  3429. else $as_nop
  3430. if test -n "$CC"; then
  3431. ac_cv_prog_CC="$CC" # Let the user override the test.
  3432. else
  3433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3434. for as_dir in $PATH
  3435. do
  3436. IFS=$as_save_IFS
  3437. case $as_dir in #(((
  3438. '') as_dir=./ ;;
  3439. */) ;;
  3440. *) as_dir=$as_dir/ ;;
  3441. esac
  3442. for ac_exec_ext in '' $ac_executable_extensions; do
  3443. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3444. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3445. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3446. break 2
  3447. fi
  3448. done
  3449. done
  3450. IFS=$as_save_IFS
  3451. fi
  3452. fi
  3453. CC=$ac_cv_prog_CC
  3454. if test -n "$CC"; then
  3455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3456. printf "%s\n" "$CC" >&6; }
  3457. else
  3458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3459. printf "%s\n" "no" >&6; }
  3460. fi
  3461. test -n "$CC" && break
  3462. done
  3463. fi
  3464. if test -z "$CC"; then
  3465. ac_ct_CC=$CC
  3466. for ac_prog in cl.exe
  3467. do
  3468. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3469. set dummy $ac_prog; ac_word=$2
  3470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3471. printf %s "checking for $ac_word... " >&6; }
  3472. if test ${ac_cv_prog_ac_ct_CC+y}
  3473. then :
  3474. printf %s "(cached) " >&6
  3475. else $as_nop
  3476. if test -n "$ac_ct_CC"; then
  3477. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3478. else
  3479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3480. for as_dir in $PATH
  3481. do
  3482. IFS=$as_save_IFS
  3483. case $as_dir in #(((
  3484. '') as_dir=./ ;;
  3485. */) ;;
  3486. *) as_dir=$as_dir/ ;;
  3487. esac
  3488. for ac_exec_ext in '' $ac_executable_extensions; do
  3489. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3490. ac_cv_prog_ac_ct_CC="$ac_prog"
  3491. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3492. break 2
  3493. fi
  3494. done
  3495. done
  3496. IFS=$as_save_IFS
  3497. fi
  3498. fi
  3499. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3500. if test -n "$ac_ct_CC"; then
  3501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3502. printf "%s\n" "$ac_ct_CC" >&6; }
  3503. else
  3504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3505. printf "%s\n" "no" >&6; }
  3506. fi
  3507. test -n "$ac_ct_CC" && break
  3508. done
  3509. if test "x$ac_ct_CC" = x; then
  3510. CC=""
  3511. else
  3512. case $cross_compiling:$ac_tool_warned in
  3513. yes:)
  3514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3515. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3516. ac_tool_warned=yes ;;
  3517. esac
  3518. CC=$ac_ct_CC
  3519. fi
  3520. fi
  3521. fi
  3522. if test -z "$CC"; then
  3523. if test -n "$ac_tool_prefix"; then
  3524. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3525. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3527. printf %s "checking for $ac_word... " >&6; }
  3528. if test ${ac_cv_prog_CC+y}
  3529. then :
  3530. printf %s "(cached) " >&6
  3531. else $as_nop
  3532. if test -n "$CC"; then
  3533. ac_cv_prog_CC="$CC" # Let the user override the test.
  3534. else
  3535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3536. for as_dir in $PATH
  3537. do
  3538. IFS=$as_save_IFS
  3539. case $as_dir in #(((
  3540. '') as_dir=./ ;;
  3541. */) ;;
  3542. *) as_dir=$as_dir/ ;;
  3543. esac
  3544. for ac_exec_ext in '' $ac_executable_extensions; do
  3545. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3546. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3547. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3548. break 2
  3549. fi
  3550. done
  3551. done
  3552. IFS=$as_save_IFS
  3553. fi
  3554. fi
  3555. CC=$ac_cv_prog_CC
  3556. if test -n "$CC"; then
  3557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3558. printf "%s\n" "$CC" >&6; }
  3559. else
  3560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3561. printf "%s\n" "no" >&6; }
  3562. fi
  3563. fi
  3564. if test -z "$ac_cv_prog_CC"; then
  3565. ac_ct_CC=$CC
  3566. # Extract the first word of "clang", so it can be a program name with args.
  3567. set dummy clang; ac_word=$2
  3568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3569. printf %s "checking for $ac_word... " >&6; }
  3570. if test ${ac_cv_prog_ac_ct_CC+y}
  3571. then :
  3572. printf %s "(cached) " >&6
  3573. else $as_nop
  3574. if test -n "$ac_ct_CC"; then
  3575. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3576. else
  3577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3578. for as_dir in $PATH
  3579. do
  3580. IFS=$as_save_IFS
  3581. case $as_dir in #(((
  3582. '') as_dir=./ ;;
  3583. */) ;;
  3584. *) as_dir=$as_dir/ ;;
  3585. esac
  3586. for ac_exec_ext in '' $ac_executable_extensions; do
  3587. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3588. ac_cv_prog_ac_ct_CC="clang"
  3589. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3590. break 2
  3591. fi
  3592. done
  3593. done
  3594. IFS=$as_save_IFS
  3595. fi
  3596. fi
  3597. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3598. if test -n "$ac_ct_CC"; then
  3599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3600. printf "%s\n" "$ac_ct_CC" >&6; }
  3601. else
  3602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3603. printf "%s\n" "no" >&6; }
  3604. fi
  3605. if test "x$ac_ct_CC" = x; then
  3606. CC=""
  3607. else
  3608. case $cross_compiling:$ac_tool_warned in
  3609. yes:)
  3610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3611. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3612. ac_tool_warned=yes ;;
  3613. esac
  3614. CC=$ac_ct_CC
  3615. fi
  3616. else
  3617. CC="$ac_cv_prog_CC"
  3618. fi
  3619. fi
  3620. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3621. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3622. as_fn_error $? "no acceptable C compiler found in \$PATH
  3623. See \`config.log' for more details" "$LINENO" 5; }
  3624. # Provide some information about the compiler.
  3625. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3626. set X $ac_compile
  3627. ac_compiler=$2
  3628. for ac_option in --version -v -V -qversion -version; do
  3629. { { ac_try="$ac_compiler $ac_option >&5"
  3630. case "(($ac_try" in
  3631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3632. *) ac_try_echo=$ac_try;;
  3633. esac
  3634. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3635. printf "%s\n" "$ac_try_echo"; } >&5
  3636. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3637. ac_status=$?
  3638. if test -s conftest.err; then
  3639. sed '10a\
  3640. ... rest of stderr output deleted ...
  3641. 10q' conftest.err >conftest.er1
  3642. cat conftest.er1 >&5
  3643. fi
  3644. rm -f conftest.er1 conftest.err
  3645. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3646. test $ac_status = 0; }
  3647. done
  3648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3649. /* end confdefs.h. */
  3650. int
  3651. main (void)
  3652. {
  3653. ;
  3654. return 0;
  3655. }
  3656. _ACEOF
  3657. ac_clean_files_save=$ac_clean_files
  3658. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3659. # Try to create an executable without -o first, disregard a.out.
  3660. # It will help us diagnose broken compilers, and finding out an intuition
  3661. # of exeext.
  3662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3663. printf %s "checking whether the C compiler works... " >&6; }
  3664. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3665. # The possible output files:
  3666. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3667. ac_rmfiles=
  3668. for ac_file in $ac_files
  3669. do
  3670. case $ac_file in
  3671. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3672. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3673. esac
  3674. done
  3675. rm -f $ac_rmfiles
  3676. if { { ac_try="$ac_link_default"
  3677. case "(($ac_try" in
  3678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3679. *) ac_try_echo=$ac_try;;
  3680. esac
  3681. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3682. printf "%s\n" "$ac_try_echo"; } >&5
  3683. (eval "$ac_link_default") 2>&5
  3684. ac_status=$?
  3685. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3686. test $ac_status = 0; }
  3687. then :
  3688. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3689. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3690. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3691. # so that the user can short-circuit this test for compilers unknown to
  3692. # Autoconf.
  3693. for ac_file in $ac_files ''
  3694. do
  3695. test -f "$ac_file" || continue
  3696. case $ac_file in
  3697. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3698. ;;
  3699. [ab].out )
  3700. # We found the default executable, but exeext='' is most
  3701. # certainly right.
  3702. break;;
  3703. *.* )
  3704. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3705. then :; else
  3706. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3707. fi
  3708. # We set ac_cv_exeext here because the later test for it is not
  3709. # safe: cross compilers may not add the suffix if given an `-o'
  3710. # argument, so we may need to know it at that point already.
  3711. # Even if this section looks crufty: it has the advantage of
  3712. # actually working.
  3713. break;;
  3714. * )
  3715. break;;
  3716. esac
  3717. done
  3718. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3719. else $as_nop
  3720. ac_file=''
  3721. fi
  3722. if test -z "$ac_file"
  3723. then :
  3724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3725. printf "%s\n" "no" >&6; }
  3726. printf "%s\n" "$as_me: failed program was:" >&5
  3727. sed 's/^/| /' conftest.$ac_ext >&5
  3728. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3729. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3730. as_fn_error 77 "C compiler cannot create executables
  3731. See \`config.log' for more details" "$LINENO" 5; }
  3732. else $as_nop
  3733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3734. printf "%s\n" "yes" >&6; }
  3735. fi
  3736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3737. printf %s "checking for C compiler default output file name... " >&6; }
  3738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3739. printf "%s\n" "$ac_file" >&6; }
  3740. ac_exeext=$ac_cv_exeext
  3741. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3742. ac_clean_files=$ac_clean_files_save
  3743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3744. printf %s "checking for suffix of executables... " >&6; }
  3745. if { { ac_try="$ac_link"
  3746. case "(($ac_try" in
  3747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3748. *) ac_try_echo=$ac_try;;
  3749. esac
  3750. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3751. printf "%s\n" "$ac_try_echo"; } >&5
  3752. (eval "$ac_link") 2>&5
  3753. ac_status=$?
  3754. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3755. test $ac_status = 0; }
  3756. then :
  3757. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3758. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3759. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3760. # `rm'.
  3761. for ac_file in conftest.exe conftest conftest.*; do
  3762. test -f "$ac_file" || continue
  3763. case $ac_file in
  3764. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3765. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3766. break;;
  3767. * ) break;;
  3768. esac
  3769. done
  3770. else $as_nop
  3771. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3772. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3773. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3774. See \`config.log' for more details" "$LINENO" 5; }
  3775. fi
  3776. rm -f conftest conftest$ac_cv_exeext
  3777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3778. printf "%s\n" "$ac_cv_exeext" >&6; }
  3779. rm -f conftest.$ac_ext
  3780. EXEEXT=$ac_cv_exeext
  3781. ac_exeext=$EXEEXT
  3782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3783. /* end confdefs.h. */
  3784. #include <stdio.h>
  3785. int
  3786. main (void)
  3787. {
  3788. FILE *f = fopen ("conftest.out", "w");
  3789. return ferror (f) || fclose (f) != 0;
  3790. ;
  3791. return 0;
  3792. }
  3793. _ACEOF
  3794. ac_clean_files="$ac_clean_files conftest.out"
  3795. # Check that the compiler produces executables we can run. If not, either
  3796. # the compiler is broken, or we cross compile.
  3797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3798. printf %s "checking whether we are cross compiling... " >&6; }
  3799. if test "$cross_compiling" != yes; then
  3800. { { ac_try="$ac_link"
  3801. case "(($ac_try" in
  3802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3803. *) ac_try_echo=$ac_try;;
  3804. esac
  3805. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3806. printf "%s\n" "$ac_try_echo"; } >&5
  3807. (eval "$ac_link") 2>&5
  3808. ac_status=$?
  3809. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3810. test $ac_status = 0; }
  3811. if { ac_try='./conftest$ac_cv_exeext'
  3812. { { case "(($ac_try" in
  3813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3814. *) ac_try_echo=$ac_try;;
  3815. esac
  3816. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3817. printf "%s\n" "$ac_try_echo"; } >&5
  3818. (eval "$ac_try") 2>&5
  3819. ac_status=$?
  3820. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3821. test $ac_status = 0; }; }; then
  3822. cross_compiling=no
  3823. else
  3824. if test "$cross_compiling" = maybe; then
  3825. cross_compiling=yes
  3826. else
  3827. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3828. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3829. as_fn_error 77 "cannot run C compiled programs.
  3830. If you meant to cross compile, use \`--host'.
  3831. See \`config.log' for more details" "$LINENO" 5; }
  3832. fi
  3833. fi
  3834. fi
  3835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3836. printf "%s\n" "$cross_compiling" >&6; }
  3837. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3838. ac_clean_files=$ac_clean_files_save
  3839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3840. printf %s "checking for suffix of object files... " >&6; }
  3841. if test ${ac_cv_objext+y}
  3842. then :
  3843. printf %s "(cached) " >&6
  3844. else $as_nop
  3845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3846. /* end confdefs.h. */
  3847. int
  3848. main (void)
  3849. {
  3850. ;
  3851. return 0;
  3852. }
  3853. _ACEOF
  3854. rm -f conftest.o conftest.obj
  3855. if { { ac_try="$ac_compile"
  3856. case "(($ac_try" in
  3857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3858. *) ac_try_echo=$ac_try;;
  3859. esac
  3860. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3861. printf "%s\n" "$ac_try_echo"; } >&5
  3862. (eval "$ac_compile") 2>&5
  3863. ac_status=$?
  3864. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3865. test $ac_status = 0; }
  3866. then :
  3867. for ac_file in conftest.o conftest.obj conftest.*; do
  3868. test -f "$ac_file" || continue;
  3869. case $ac_file in
  3870. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3871. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3872. break;;
  3873. esac
  3874. done
  3875. else $as_nop
  3876. printf "%s\n" "$as_me: failed program was:" >&5
  3877. sed 's/^/| /' conftest.$ac_ext >&5
  3878. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3879. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3880. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3881. See \`config.log' for more details" "$LINENO" 5; }
  3882. fi
  3883. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3884. fi
  3885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3886. printf "%s\n" "$ac_cv_objext" >&6; }
  3887. OBJEXT=$ac_cv_objext
  3888. ac_objext=$OBJEXT
  3889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3890. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3891. if test ${ac_cv_c_compiler_gnu+y}
  3892. then :
  3893. printf %s "(cached) " >&6
  3894. else $as_nop
  3895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3896. /* end confdefs.h. */
  3897. int
  3898. main (void)
  3899. {
  3900. #ifndef __GNUC__
  3901. choke me
  3902. #endif
  3903. ;
  3904. return 0;
  3905. }
  3906. _ACEOF
  3907. if ac_fn_c_try_compile "$LINENO"
  3908. then :
  3909. ac_compiler_gnu=yes
  3910. else $as_nop
  3911. ac_compiler_gnu=no
  3912. fi
  3913. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3914. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3915. fi
  3916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3917. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3918. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3919. if test $ac_compiler_gnu = yes; then
  3920. GCC=yes
  3921. else
  3922. GCC=
  3923. fi
  3924. ac_test_CFLAGS=${CFLAGS+y}
  3925. ac_save_CFLAGS=$CFLAGS
  3926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3927. printf %s "checking whether $CC accepts -g... " >&6; }
  3928. if test ${ac_cv_prog_cc_g+y}
  3929. then :
  3930. printf %s "(cached) " >&6
  3931. else $as_nop
  3932. ac_save_c_werror_flag=$ac_c_werror_flag
  3933. ac_c_werror_flag=yes
  3934. ac_cv_prog_cc_g=no
  3935. CFLAGS="-g"
  3936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3937. /* end confdefs.h. */
  3938. int
  3939. main (void)
  3940. {
  3941. ;
  3942. return 0;
  3943. }
  3944. _ACEOF
  3945. if ac_fn_c_try_compile "$LINENO"
  3946. then :
  3947. ac_cv_prog_cc_g=yes
  3948. else $as_nop
  3949. CFLAGS=""
  3950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3951. /* end confdefs.h. */
  3952. int
  3953. main (void)
  3954. {
  3955. ;
  3956. return 0;
  3957. }
  3958. _ACEOF
  3959. if ac_fn_c_try_compile "$LINENO"
  3960. then :
  3961. else $as_nop
  3962. ac_c_werror_flag=$ac_save_c_werror_flag
  3963. CFLAGS="-g"
  3964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3965. /* end confdefs.h. */
  3966. int
  3967. main (void)
  3968. {
  3969. ;
  3970. return 0;
  3971. }
  3972. _ACEOF
  3973. if ac_fn_c_try_compile "$LINENO"
  3974. then :
  3975. ac_cv_prog_cc_g=yes
  3976. fi
  3977. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3978. fi
  3979. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3980. fi
  3981. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3982. ac_c_werror_flag=$ac_save_c_werror_flag
  3983. fi
  3984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3985. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3986. if test $ac_test_CFLAGS; then
  3987. CFLAGS=$ac_save_CFLAGS
  3988. elif test $ac_cv_prog_cc_g = yes; then
  3989. if test "$GCC" = yes; then
  3990. CFLAGS="-g -O2"
  3991. else
  3992. CFLAGS="-g"
  3993. fi
  3994. else
  3995. if test "$GCC" = yes; then
  3996. CFLAGS="-O2"
  3997. else
  3998. CFLAGS=
  3999. fi
  4000. fi
  4001. ac_prog_cc_stdc=no
  4002. if test x$ac_prog_cc_stdc = xno
  4003. then :
  4004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4005. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4006. if test ${ac_cv_prog_cc_c11+y}
  4007. then :
  4008. printf %s "(cached) " >&6
  4009. else $as_nop
  4010. ac_cv_prog_cc_c11=no
  4011. ac_save_CC=$CC
  4012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4013. /* end confdefs.h. */
  4014. $ac_c_conftest_c11_program
  4015. _ACEOF
  4016. for ac_arg in '' -std=gnu11
  4017. do
  4018. CC="$ac_save_CC $ac_arg"
  4019. if ac_fn_c_try_compile "$LINENO"
  4020. then :
  4021. ac_cv_prog_cc_c11=$ac_arg
  4022. fi
  4023. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4024. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4025. done
  4026. rm -f conftest.$ac_ext
  4027. CC=$ac_save_CC
  4028. fi
  4029. if test "x$ac_cv_prog_cc_c11" = xno
  4030. then :
  4031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4032. printf "%s\n" "unsupported" >&6; }
  4033. else $as_nop
  4034. if test "x$ac_cv_prog_cc_c11" = x
  4035. then :
  4036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4037. printf "%s\n" "none needed" >&6; }
  4038. else $as_nop
  4039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4040. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4041. CC="$CC $ac_cv_prog_cc_c11"
  4042. fi
  4043. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4044. ac_prog_cc_stdc=c11
  4045. fi
  4046. fi
  4047. if test x$ac_prog_cc_stdc = xno
  4048. then :
  4049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4050. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4051. if test ${ac_cv_prog_cc_c99+y}
  4052. then :
  4053. printf %s "(cached) " >&6
  4054. else $as_nop
  4055. ac_cv_prog_cc_c99=no
  4056. ac_save_CC=$CC
  4057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4058. /* end confdefs.h. */
  4059. $ac_c_conftest_c99_program
  4060. _ACEOF
  4061. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4062. do
  4063. CC="$ac_save_CC $ac_arg"
  4064. if ac_fn_c_try_compile "$LINENO"
  4065. then :
  4066. ac_cv_prog_cc_c99=$ac_arg
  4067. fi
  4068. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4069. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4070. done
  4071. rm -f conftest.$ac_ext
  4072. CC=$ac_save_CC
  4073. fi
  4074. if test "x$ac_cv_prog_cc_c99" = xno
  4075. then :
  4076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4077. printf "%s\n" "unsupported" >&6; }
  4078. else $as_nop
  4079. if test "x$ac_cv_prog_cc_c99" = x
  4080. then :
  4081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4082. printf "%s\n" "none needed" >&6; }
  4083. else $as_nop
  4084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4085. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4086. CC="$CC $ac_cv_prog_cc_c99"
  4087. fi
  4088. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4089. ac_prog_cc_stdc=c99
  4090. fi
  4091. fi
  4092. if test x$ac_prog_cc_stdc = xno
  4093. then :
  4094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4095. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4096. if test ${ac_cv_prog_cc_c89+y}
  4097. then :
  4098. printf %s "(cached) " >&6
  4099. else $as_nop
  4100. ac_cv_prog_cc_c89=no
  4101. ac_save_CC=$CC
  4102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4103. /* end confdefs.h. */
  4104. $ac_c_conftest_c89_program
  4105. _ACEOF
  4106. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4107. do
  4108. CC="$ac_save_CC $ac_arg"
  4109. if ac_fn_c_try_compile "$LINENO"
  4110. then :
  4111. ac_cv_prog_cc_c89=$ac_arg
  4112. fi
  4113. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4114. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4115. done
  4116. rm -f conftest.$ac_ext
  4117. CC=$ac_save_CC
  4118. fi
  4119. if test "x$ac_cv_prog_cc_c89" = xno
  4120. then :
  4121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4122. printf "%s\n" "unsupported" >&6; }
  4123. else $as_nop
  4124. if test "x$ac_cv_prog_cc_c89" = x
  4125. then :
  4126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4127. printf "%s\n" "none needed" >&6; }
  4128. else $as_nop
  4129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4130. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4131. CC="$CC $ac_cv_prog_cc_c89"
  4132. fi
  4133. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4134. ac_prog_cc_stdc=c89
  4135. fi
  4136. fi
  4137. ac_ext=c
  4138. ac_cpp='$CPP $CPPFLAGS'
  4139. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4140. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4141. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4143. printf %s "checking for a sed that does not truncate output... " >&6; }
  4144. if test ${ac_cv_path_SED+y}
  4145. then :
  4146. printf %s "(cached) " >&6
  4147. else $as_nop
  4148. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4149. for ac_i in 1 2 3 4 5 6 7; do
  4150. ac_script="$ac_script$as_nl$ac_script"
  4151. done
  4152. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4153. { ac_script=; unset ac_script;}
  4154. if test -z "$SED"; then
  4155. ac_path_SED_found=false
  4156. # Loop through the user's path and test for each of PROGNAME-LIST
  4157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4158. for as_dir in $PATH
  4159. do
  4160. IFS=$as_save_IFS
  4161. case $as_dir in #(((
  4162. '') as_dir=./ ;;
  4163. */) ;;
  4164. *) as_dir=$as_dir/ ;;
  4165. esac
  4166. for ac_prog in sed gsed
  4167. do
  4168. for ac_exec_ext in '' $ac_executable_extensions; do
  4169. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4170. as_fn_executable_p "$ac_path_SED" || continue
  4171. # Check for GNU ac_path_SED and select it if it is found.
  4172. # Check for GNU $ac_path_SED
  4173. case `"$ac_path_SED" --version 2>&1` in
  4174. *GNU*)
  4175. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4176. *)
  4177. ac_count=0
  4178. printf %s 0123456789 >"conftest.in"
  4179. while :
  4180. do
  4181. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4182. mv "conftest.tmp" "conftest.in"
  4183. cp "conftest.in" "conftest.nl"
  4184. printf "%s\n" '' >> "conftest.nl"
  4185. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4186. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4187. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4188. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4189. # Best one so far, save it but keep looking for a better one
  4190. ac_cv_path_SED="$ac_path_SED"
  4191. ac_path_SED_max=$ac_count
  4192. fi
  4193. # 10*(2^10) chars as input seems more than enough
  4194. test $ac_count -gt 10 && break
  4195. done
  4196. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4197. esac
  4198. $ac_path_SED_found && break 3
  4199. done
  4200. done
  4201. done
  4202. IFS=$as_save_IFS
  4203. if test -z "$ac_cv_path_SED"; then
  4204. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4205. fi
  4206. else
  4207. ac_cv_path_SED=$SED
  4208. fi
  4209. fi
  4210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4211. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4212. SED="$ac_cv_path_SED"
  4213. rm -f conftest.sed
  4214. test -z "$SED" && SED=sed
  4215. Xsed="$SED -e 1s/^X//"
  4216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4217. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4218. if test ${ac_cv_path_GREP+y}
  4219. then :
  4220. printf %s "(cached) " >&6
  4221. else $as_nop
  4222. if test -z "$GREP"; then
  4223. ac_path_GREP_found=false
  4224. # Loop through the user's path and test for each of PROGNAME-LIST
  4225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4226. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4227. do
  4228. IFS=$as_save_IFS
  4229. case $as_dir in #(((
  4230. '') as_dir=./ ;;
  4231. */) ;;
  4232. *) as_dir=$as_dir/ ;;
  4233. esac
  4234. for ac_prog in grep ggrep
  4235. do
  4236. for ac_exec_ext in '' $ac_executable_extensions; do
  4237. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4238. as_fn_executable_p "$ac_path_GREP" || continue
  4239. # Check for GNU ac_path_GREP and select it if it is found.
  4240. # Check for GNU $ac_path_GREP
  4241. case `"$ac_path_GREP" --version 2>&1` in
  4242. *GNU*)
  4243. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4244. *)
  4245. ac_count=0
  4246. printf %s 0123456789 >"conftest.in"
  4247. while :
  4248. do
  4249. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4250. mv "conftest.tmp" "conftest.in"
  4251. cp "conftest.in" "conftest.nl"
  4252. printf "%s\n" 'GREP' >> "conftest.nl"
  4253. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4254. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4255. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4256. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4257. # Best one so far, save it but keep looking for a better one
  4258. ac_cv_path_GREP="$ac_path_GREP"
  4259. ac_path_GREP_max=$ac_count
  4260. fi
  4261. # 10*(2^10) chars as input seems more than enough
  4262. test $ac_count -gt 10 && break
  4263. done
  4264. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4265. esac
  4266. $ac_path_GREP_found && break 3
  4267. done
  4268. done
  4269. done
  4270. IFS=$as_save_IFS
  4271. if test -z "$ac_cv_path_GREP"; then
  4272. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4273. fi
  4274. else
  4275. ac_cv_path_GREP=$GREP
  4276. fi
  4277. fi
  4278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4279. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4280. GREP="$ac_cv_path_GREP"
  4281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4282. printf %s "checking for egrep... " >&6; }
  4283. if test ${ac_cv_path_EGREP+y}
  4284. then :
  4285. printf %s "(cached) " >&6
  4286. else $as_nop
  4287. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4288. then ac_cv_path_EGREP="$GREP -E"
  4289. else
  4290. if test -z "$EGREP"; then
  4291. ac_path_EGREP_found=false
  4292. # Loop through the user's path and test for each of PROGNAME-LIST
  4293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4294. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4295. do
  4296. IFS=$as_save_IFS
  4297. case $as_dir in #(((
  4298. '') as_dir=./ ;;
  4299. */) ;;
  4300. *) as_dir=$as_dir/ ;;
  4301. esac
  4302. for ac_prog in egrep
  4303. do
  4304. for ac_exec_ext in '' $ac_executable_extensions; do
  4305. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4306. as_fn_executable_p "$ac_path_EGREP" || continue
  4307. # Check for GNU ac_path_EGREP and select it if it is found.
  4308. # Check for GNU $ac_path_EGREP
  4309. case `"$ac_path_EGREP" --version 2>&1` in
  4310. *GNU*)
  4311. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4312. *)
  4313. ac_count=0
  4314. printf %s 0123456789 >"conftest.in"
  4315. while :
  4316. do
  4317. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4318. mv "conftest.tmp" "conftest.in"
  4319. cp "conftest.in" "conftest.nl"
  4320. printf "%s\n" 'EGREP' >> "conftest.nl"
  4321. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4322. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4323. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4324. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4325. # Best one so far, save it but keep looking for a better one
  4326. ac_cv_path_EGREP="$ac_path_EGREP"
  4327. ac_path_EGREP_max=$ac_count
  4328. fi
  4329. # 10*(2^10) chars as input seems more than enough
  4330. test $ac_count -gt 10 && break
  4331. done
  4332. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4333. esac
  4334. $ac_path_EGREP_found && break 3
  4335. done
  4336. done
  4337. done
  4338. IFS=$as_save_IFS
  4339. if test -z "$ac_cv_path_EGREP"; then
  4340. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4341. fi
  4342. else
  4343. ac_cv_path_EGREP=$EGREP
  4344. fi
  4345. fi
  4346. fi
  4347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4348. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4349. EGREP="$ac_cv_path_EGREP"
  4350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4351. printf %s "checking for fgrep... " >&6; }
  4352. if test ${ac_cv_path_FGREP+y}
  4353. then :
  4354. printf %s "(cached) " >&6
  4355. else $as_nop
  4356. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4357. then ac_cv_path_FGREP="$GREP -F"
  4358. else
  4359. if test -z "$FGREP"; then
  4360. ac_path_FGREP_found=false
  4361. # Loop through the user's path and test for each of PROGNAME-LIST
  4362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4363. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4364. do
  4365. IFS=$as_save_IFS
  4366. case $as_dir in #(((
  4367. '') as_dir=./ ;;
  4368. */) ;;
  4369. *) as_dir=$as_dir/ ;;
  4370. esac
  4371. for ac_prog in fgrep
  4372. do
  4373. for ac_exec_ext in '' $ac_executable_extensions; do
  4374. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4375. as_fn_executable_p "$ac_path_FGREP" || continue
  4376. # Check for GNU ac_path_FGREP and select it if it is found.
  4377. # Check for GNU $ac_path_FGREP
  4378. case `"$ac_path_FGREP" --version 2>&1` in
  4379. *GNU*)
  4380. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4381. *)
  4382. ac_count=0
  4383. printf %s 0123456789 >"conftest.in"
  4384. while :
  4385. do
  4386. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4387. mv "conftest.tmp" "conftest.in"
  4388. cp "conftest.in" "conftest.nl"
  4389. printf "%s\n" 'FGREP' >> "conftest.nl"
  4390. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4391. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4392. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4393. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4394. # Best one so far, save it but keep looking for a better one
  4395. ac_cv_path_FGREP="$ac_path_FGREP"
  4396. ac_path_FGREP_max=$ac_count
  4397. fi
  4398. # 10*(2^10) chars as input seems more than enough
  4399. test $ac_count -gt 10 && break
  4400. done
  4401. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4402. esac
  4403. $ac_path_FGREP_found && break 3
  4404. done
  4405. done
  4406. done
  4407. IFS=$as_save_IFS
  4408. if test -z "$ac_cv_path_FGREP"; then
  4409. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4410. fi
  4411. else
  4412. ac_cv_path_FGREP=$FGREP
  4413. fi
  4414. fi
  4415. fi
  4416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4417. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4418. FGREP="$ac_cv_path_FGREP"
  4419. test -z "$GREP" && GREP=grep
  4420. # Check whether --with-gnu-ld was given.
  4421. if test ${with_gnu_ld+y}
  4422. then :
  4423. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4424. else $as_nop
  4425. with_gnu_ld=no
  4426. fi
  4427. ac_prog=ld
  4428. if test yes = "$GCC"; then
  4429. # Check if gcc -print-prog-name=ld gives a path.
  4430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4431. printf %s "checking for ld used by $CC... " >&6; }
  4432. case $host in
  4433. *-*-mingw*)
  4434. # gcc leaves a trailing carriage return, which upsets mingw
  4435. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4436. *)
  4437. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4438. esac
  4439. case $ac_prog in
  4440. # Accept absolute paths.
  4441. [\\/]* | ?:[\\/]*)
  4442. re_direlt='/[^/][^/]*/\.\./'
  4443. # Canonicalize the pathname of ld
  4444. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4445. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4446. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4447. done
  4448. test -z "$LD" && LD=$ac_prog
  4449. ;;
  4450. "")
  4451. # If it fails, then pretend we aren't using GCC.
  4452. ac_prog=ld
  4453. ;;
  4454. *)
  4455. # If it is relative, then search for the first ld in PATH.
  4456. with_gnu_ld=unknown
  4457. ;;
  4458. esac
  4459. elif test yes = "$with_gnu_ld"; then
  4460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4461. printf %s "checking for GNU ld... " >&6; }
  4462. else
  4463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4464. printf %s "checking for non-GNU ld... " >&6; }
  4465. fi
  4466. if test ${lt_cv_path_LD+y}
  4467. then :
  4468. printf %s "(cached) " >&6
  4469. else $as_nop
  4470. if test -z "$LD"; then
  4471. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4472. for ac_dir in $PATH; do
  4473. IFS=$lt_save_ifs
  4474. test -z "$ac_dir" && ac_dir=.
  4475. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4476. lt_cv_path_LD=$ac_dir/$ac_prog
  4477. # Check to see if the program is GNU ld. I'd rather use --version,
  4478. # but apparently some variants of GNU ld only accept -v.
  4479. # Break only if it was the GNU/non-GNU ld that we prefer.
  4480. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4481. *GNU* | *'with BFD'*)
  4482. test no != "$with_gnu_ld" && break
  4483. ;;
  4484. *)
  4485. test yes != "$with_gnu_ld" && break
  4486. ;;
  4487. esac
  4488. fi
  4489. done
  4490. IFS=$lt_save_ifs
  4491. else
  4492. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4493. fi
  4494. fi
  4495. LD=$lt_cv_path_LD
  4496. if test -n "$LD"; then
  4497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4498. printf "%s\n" "$LD" >&6; }
  4499. else
  4500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4501. printf "%s\n" "no" >&6; }
  4502. fi
  4503. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4505. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4506. if test ${lt_cv_prog_gnu_ld+y}
  4507. then :
  4508. printf %s "(cached) " >&6
  4509. else $as_nop
  4510. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4511. case `$LD -v 2>&1 </dev/null` in
  4512. *GNU* | *'with BFD'*)
  4513. lt_cv_prog_gnu_ld=yes
  4514. ;;
  4515. *)
  4516. lt_cv_prog_gnu_ld=no
  4517. ;;
  4518. esac
  4519. fi
  4520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4521. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4522. with_gnu_ld=$lt_cv_prog_gnu_ld
  4523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4524. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4525. if test ${lt_cv_path_NM+y}
  4526. then :
  4527. printf %s "(cached) " >&6
  4528. else $as_nop
  4529. if test -n "$NM"; then
  4530. # Let the user override the test.
  4531. lt_cv_path_NM=$NM
  4532. else
  4533. lt_nm_to_check=${ac_tool_prefix}nm
  4534. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4535. lt_nm_to_check="$lt_nm_to_check nm"
  4536. fi
  4537. for lt_tmp_nm in $lt_nm_to_check; do
  4538. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4539. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4540. IFS=$lt_save_ifs
  4541. test -z "$ac_dir" && ac_dir=.
  4542. tmp_nm=$ac_dir/$lt_tmp_nm
  4543. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4544. # Check to see if the nm accepts a BSD-compat flag.
  4545. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4546. # nm: unknown option "B" ignored
  4547. # Tru64's nm complains that /dev/null is an invalid object file
  4548. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4549. case $build_os in
  4550. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4551. *) lt_bad_file=/dev/null ;;
  4552. esac
  4553. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4554. *$lt_bad_file* | *'Invalid file or object type'*)
  4555. lt_cv_path_NM="$tmp_nm -B"
  4556. break 2
  4557. ;;
  4558. *)
  4559. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4560. */dev/null*)
  4561. lt_cv_path_NM="$tmp_nm -p"
  4562. break 2
  4563. ;;
  4564. *)
  4565. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4566. continue # so that we can try to find one that supports BSD flags
  4567. ;;
  4568. esac
  4569. ;;
  4570. esac
  4571. fi
  4572. done
  4573. IFS=$lt_save_ifs
  4574. done
  4575. : ${lt_cv_path_NM=no}
  4576. fi
  4577. fi
  4578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4579. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4580. if test no != "$lt_cv_path_NM"; then
  4581. NM=$lt_cv_path_NM
  4582. else
  4583. # Didn't find any BSD compatible name lister, look for dumpbin.
  4584. if test -n "$DUMPBIN"; then :
  4585. # Let the user override the test.
  4586. else
  4587. if test -n "$ac_tool_prefix"; then
  4588. for ac_prog in dumpbin "link -dump"
  4589. do
  4590. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4591. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4593. printf %s "checking for $ac_word... " >&6; }
  4594. if test ${ac_cv_prog_DUMPBIN+y}
  4595. then :
  4596. printf %s "(cached) " >&6
  4597. else $as_nop
  4598. if test -n "$DUMPBIN"; then
  4599. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4600. else
  4601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4602. for as_dir in $PATH
  4603. do
  4604. IFS=$as_save_IFS
  4605. case $as_dir in #(((
  4606. '') as_dir=./ ;;
  4607. */) ;;
  4608. *) as_dir=$as_dir/ ;;
  4609. esac
  4610. for ac_exec_ext in '' $ac_executable_extensions; do
  4611. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4612. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4613. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4614. break 2
  4615. fi
  4616. done
  4617. done
  4618. IFS=$as_save_IFS
  4619. fi
  4620. fi
  4621. DUMPBIN=$ac_cv_prog_DUMPBIN
  4622. if test -n "$DUMPBIN"; then
  4623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4624. printf "%s\n" "$DUMPBIN" >&6; }
  4625. else
  4626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4627. printf "%s\n" "no" >&6; }
  4628. fi
  4629. test -n "$DUMPBIN" && break
  4630. done
  4631. fi
  4632. if test -z "$DUMPBIN"; then
  4633. ac_ct_DUMPBIN=$DUMPBIN
  4634. for ac_prog in dumpbin "link -dump"
  4635. do
  4636. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4637. set dummy $ac_prog; ac_word=$2
  4638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4639. printf %s "checking for $ac_word... " >&6; }
  4640. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4641. then :
  4642. printf %s "(cached) " >&6
  4643. else $as_nop
  4644. if test -n "$ac_ct_DUMPBIN"; then
  4645. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4646. else
  4647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4648. for as_dir in $PATH
  4649. do
  4650. IFS=$as_save_IFS
  4651. case $as_dir in #(((
  4652. '') as_dir=./ ;;
  4653. */) ;;
  4654. *) as_dir=$as_dir/ ;;
  4655. esac
  4656. for ac_exec_ext in '' $ac_executable_extensions; do
  4657. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4658. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4659. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4660. break 2
  4661. fi
  4662. done
  4663. done
  4664. IFS=$as_save_IFS
  4665. fi
  4666. fi
  4667. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4668. if test -n "$ac_ct_DUMPBIN"; then
  4669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4670. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4671. else
  4672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4673. printf "%s\n" "no" >&6; }
  4674. fi
  4675. test -n "$ac_ct_DUMPBIN" && break
  4676. done
  4677. if test "x$ac_ct_DUMPBIN" = x; then
  4678. DUMPBIN=":"
  4679. else
  4680. case $cross_compiling:$ac_tool_warned in
  4681. yes:)
  4682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4683. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4684. ac_tool_warned=yes ;;
  4685. esac
  4686. DUMPBIN=$ac_ct_DUMPBIN
  4687. fi
  4688. fi
  4689. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4690. *COFF*)
  4691. DUMPBIN="$DUMPBIN -symbols -headers"
  4692. ;;
  4693. *)
  4694. DUMPBIN=:
  4695. ;;
  4696. esac
  4697. fi
  4698. if test : != "$DUMPBIN"; then
  4699. NM=$DUMPBIN
  4700. fi
  4701. fi
  4702. test -z "$NM" && NM=nm
  4703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4704. printf %s "checking the name lister ($NM) interface... " >&6; }
  4705. if test ${lt_cv_nm_interface+y}
  4706. then :
  4707. printf %s "(cached) " >&6
  4708. else $as_nop
  4709. lt_cv_nm_interface="BSD nm"
  4710. echo "int some_variable = 0;" > conftest.$ac_ext
  4711. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4712. (eval "$ac_compile" 2>conftest.err)
  4713. cat conftest.err >&5
  4714. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4715. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4716. cat conftest.err >&5
  4717. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4718. cat conftest.out >&5
  4719. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4720. lt_cv_nm_interface="MS dumpbin"
  4721. fi
  4722. rm -f conftest*
  4723. fi
  4724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4725. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4727. printf %s "checking whether ln -s works... " >&6; }
  4728. LN_S=$as_ln_s
  4729. if test "$LN_S" = "ln -s"; then
  4730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4731. printf "%s\n" "yes" >&6; }
  4732. else
  4733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4734. printf "%s\n" "no, using $LN_S" >&6; }
  4735. fi
  4736. # find the maximum length of command line arguments
  4737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4738. printf %s "checking the maximum length of command line arguments... " >&6; }
  4739. if test ${lt_cv_sys_max_cmd_len+y}
  4740. then :
  4741. printf %s "(cached) " >&6
  4742. else $as_nop
  4743. i=0
  4744. teststring=ABCD
  4745. case $build_os in
  4746. msdosdjgpp*)
  4747. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4748. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4749. # during glob expansion). Even if it were fixed, the result of this
  4750. # check would be larger than it should be.
  4751. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4752. ;;
  4753. gnu*)
  4754. # Under GNU Hurd, this test is not required because there is
  4755. # no limit to the length of command line arguments.
  4756. # Libtool will interpret -1 as no limit whatsoever
  4757. lt_cv_sys_max_cmd_len=-1;
  4758. ;;
  4759. cygwin* | mingw* | cegcc*)
  4760. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4761. # about 5 minutes as the teststring grows exponentially.
  4762. # Worse, since 9x/ME are not pre-emptively multitasking,
  4763. # you end up with a "frozen" computer, even though with patience
  4764. # the test eventually succeeds (with a max line length of 256k).
  4765. # Instead, let's just punt: use the minimum linelength reported by
  4766. # all of the supported platforms: 8192 (on NT/2K/XP).
  4767. lt_cv_sys_max_cmd_len=8192;
  4768. ;;
  4769. mint*)
  4770. # On MiNT this can take a long time and run out of memory.
  4771. lt_cv_sys_max_cmd_len=8192;
  4772. ;;
  4773. amigaos*)
  4774. # On AmigaOS with pdksh, this test takes hours, literally.
  4775. # So we just punt and use a minimum line length of 8192.
  4776. lt_cv_sys_max_cmd_len=8192;
  4777. ;;
  4778. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4779. # This has been around since 386BSD, at least. Likely further.
  4780. if test -x /sbin/sysctl; then
  4781. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4782. elif test -x /usr/sbin/sysctl; then
  4783. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4784. else
  4785. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4786. fi
  4787. # And add a safety zone
  4788. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4789. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4790. ;;
  4791. interix*)
  4792. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4793. lt_cv_sys_max_cmd_len=196608
  4794. ;;
  4795. os2*)
  4796. # The test takes a long time on OS/2.
  4797. lt_cv_sys_max_cmd_len=8192
  4798. ;;
  4799. osf*)
  4800. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4801. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4802. # nice to cause kernel panics so lets avoid the loop below.
  4803. # First set a reasonable default.
  4804. lt_cv_sys_max_cmd_len=16384
  4805. #
  4806. if test -x /sbin/sysconfig; then
  4807. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4808. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4809. esac
  4810. fi
  4811. ;;
  4812. sco3.2v5*)
  4813. lt_cv_sys_max_cmd_len=102400
  4814. ;;
  4815. sysv5* | sco5v6* | sysv4.2uw2*)
  4816. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4817. if test -n "$kargmax"; then
  4818. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4819. else
  4820. lt_cv_sys_max_cmd_len=32768
  4821. fi
  4822. ;;
  4823. *)
  4824. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4825. if test -n "$lt_cv_sys_max_cmd_len" && \
  4826. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4827. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4828. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4829. else
  4830. # Make teststring a little bigger before we do anything with it.
  4831. # a 1K string should be a reasonable start.
  4832. for i in 1 2 3 4 5 6 7 8; do
  4833. teststring=$teststring$teststring
  4834. done
  4835. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4836. # If test is not a shell built-in, we'll probably end up computing a
  4837. # maximum length that is only half of the actual maximum length, but
  4838. # we can't tell.
  4839. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4840. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4841. test 17 != "$i" # 1/2 MB should be enough
  4842. do
  4843. i=`expr $i + 1`
  4844. teststring=$teststring$teststring
  4845. done
  4846. # Only check the string length outside the loop.
  4847. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4848. teststring=
  4849. # Add a significant safety factor because C++ compilers can tack on
  4850. # massive amounts of additional arguments before passing them to the
  4851. # linker. It appears as though 1/2 is a usable value.
  4852. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4853. fi
  4854. ;;
  4855. esac
  4856. fi
  4857. if test -n "$lt_cv_sys_max_cmd_len"; then
  4858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4859. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4860. else
  4861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4862. printf "%s\n" "none" >&6; }
  4863. fi
  4864. max_cmd_len=$lt_cv_sys_max_cmd_len
  4865. : ${CP="cp -f"}
  4866. : ${MV="mv -f"}
  4867. : ${RM="rm -f"}
  4868. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4869. lt_unset=unset
  4870. else
  4871. lt_unset=false
  4872. fi
  4873. # test EBCDIC or ASCII
  4874. case `echo X|tr X '\101'` in
  4875. A) # ASCII based system
  4876. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4877. lt_SP2NL='tr \040 \012'
  4878. lt_NL2SP='tr \015\012 \040\040'
  4879. ;;
  4880. *) # EBCDIC based system
  4881. lt_SP2NL='tr \100 \n'
  4882. lt_NL2SP='tr \r\n \100\100'
  4883. ;;
  4884. esac
  4885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4886. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4887. if test ${lt_cv_to_host_file_cmd+y}
  4888. then :
  4889. printf %s "(cached) " >&6
  4890. else $as_nop
  4891. case $host in
  4892. *-*-mingw* )
  4893. case $build in
  4894. *-*-mingw* ) # actually msys
  4895. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4896. ;;
  4897. *-*-cygwin* )
  4898. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4899. ;;
  4900. * ) # otherwise, assume *nix
  4901. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4902. ;;
  4903. esac
  4904. ;;
  4905. *-*-cygwin* )
  4906. case $build in
  4907. *-*-mingw* ) # actually msys
  4908. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4909. ;;
  4910. *-*-cygwin* )
  4911. lt_cv_to_host_file_cmd=func_convert_file_noop
  4912. ;;
  4913. * ) # otherwise, assume *nix
  4914. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4915. ;;
  4916. esac
  4917. ;;
  4918. * ) # unhandled hosts (and "normal" native builds)
  4919. lt_cv_to_host_file_cmd=func_convert_file_noop
  4920. ;;
  4921. esac
  4922. fi
  4923. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4925. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4927. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4928. if test ${lt_cv_to_tool_file_cmd+y}
  4929. then :
  4930. printf %s "(cached) " >&6
  4931. else $as_nop
  4932. #assume ordinary cross tools, or native build.
  4933. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4934. case $host in
  4935. *-*-mingw* )
  4936. case $build in
  4937. *-*-mingw* ) # actually msys
  4938. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4939. ;;
  4940. esac
  4941. ;;
  4942. esac
  4943. fi
  4944. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4946. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  4947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4948. printf %s "checking for $LD option to reload object files... " >&6; }
  4949. if test ${lt_cv_ld_reload_flag+y}
  4950. then :
  4951. printf %s "(cached) " >&6
  4952. else $as_nop
  4953. lt_cv_ld_reload_flag='-r'
  4954. fi
  4955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4956. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  4957. reload_flag=$lt_cv_ld_reload_flag
  4958. case $reload_flag in
  4959. "" | " "*) ;;
  4960. *) reload_flag=" $reload_flag" ;;
  4961. esac
  4962. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4963. case $host_os in
  4964. cygwin* | mingw* | pw32* | cegcc*)
  4965. if test yes != "$GCC"; then
  4966. reload_cmds=false
  4967. fi
  4968. ;;
  4969. darwin*)
  4970. if test yes = "$GCC"; then
  4971. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4972. else
  4973. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4974. fi
  4975. ;;
  4976. esac
  4977. if test -n "$ac_tool_prefix"; then
  4978. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4979. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4981. printf %s "checking for $ac_word... " >&6; }
  4982. if test ${ac_cv_prog_OBJDUMP+y}
  4983. then :
  4984. printf %s "(cached) " >&6
  4985. else $as_nop
  4986. if test -n "$OBJDUMP"; then
  4987. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4988. else
  4989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4990. for as_dir in $PATH
  4991. do
  4992. IFS=$as_save_IFS
  4993. case $as_dir in #(((
  4994. '') as_dir=./ ;;
  4995. */) ;;
  4996. *) as_dir=$as_dir/ ;;
  4997. esac
  4998. for ac_exec_ext in '' $ac_executable_extensions; do
  4999. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5000. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5001. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5002. break 2
  5003. fi
  5004. done
  5005. done
  5006. IFS=$as_save_IFS
  5007. fi
  5008. fi
  5009. OBJDUMP=$ac_cv_prog_OBJDUMP
  5010. if test -n "$OBJDUMP"; then
  5011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5012. printf "%s\n" "$OBJDUMP" >&6; }
  5013. else
  5014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5015. printf "%s\n" "no" >&6; }
  5016. fi
  5017. fi
  5018. if test -z "$ac_cv_prog_OBJDUMP"; then
  5019. ac_ct_OBJDUMP=$OBJDUMP
  5020. # Extract the first word of "objdump", so it can be a program name with args.
  5021. set dummy objdump; ac_word=$2
  5022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5023. printf %s "checking for $ac_word... " >&6; }
  5024. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5025. then :
  5026. printf %s "(cached) " >&6
  5027. else $as_nop
  5028. if test -n "$ac_ct_OBJDUMP"; then
  5029. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5030. else
  5031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5032. for as_dir in $PATH
  5033. do
  5034. IFS=$as_save_IFS
  5035. case $as_dir in #(((
  5036. '') as_dir=./ ;;
  5037. */) ;;
  5038. *) as_dir=$as_dir/ ;;
  5039. esac
  5040. for ac_exec_ext in '' $ac_executable_extensions; do
  5041. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5042. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5043. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5044. break 2
  5045. fi
  5046. done
  5047. done
  5048. IFS=$as_save_IFS
  5049. fi
  5050. fi
  5051. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5052. if test -n "$ac_ct_OBJDUMP"; then
  5053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5054. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5055. else
  5056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5057. printf "%s\n" "no" >&6; }
  5058. fi
  5059. if test "x$ac_ct_OBJDUMP" = x; then
  5060. OBJDUMP="false"
  5061. else
  5062. case $cross_compiling:$ac_tool_warned in
  5063. yes:)
  5064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5065. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5066. ac_tool_warned=yes ;;
  5067. esac
  5068. OBJDUMP=$ac_ct_OBJDUMP
  5069. fi
  5070. else
  5071. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5072. fi
  5073. test -z "$OBJDUMP" && OBJDUMP=objdump
  5074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5075. printf %s "checking how to recognize dependent libraries... " >&6; }
  5076. if test ${lt_cv_deplibs_check_method+y}
  5077. then :
  5078. printf %s "(cached) " >&6
  5079. else $as_nop
  5080. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5081. lt_cv_file_magic_test_file=
  5082. lt_cv_deplibs_check_method='unknown'
  5083. # Need to set the preceding variable on all platforms that support
  5084. # interlibrary dependencies.
  5085. # 'none' -- dependencies not supported.
  5086. # 'unknown' -- same as none, but documents that we really don't know.
  5087. # 'pass_all' -- all dependencies passed with no checks.
  5088. # 'test_compile' -- check by making test program.
  5089. # 'file_magic [[regex]]' -- check by looking for files in library path
  5090. # that responds to the $file_magic_cmd with a given extended regex.
  5091. # If you have 'file' or equivalent on your system and you're not sure
  5092. # whether 'pass_all' will *always* work, you probably want this one.
  5093. case $host_os in
  5094. aix[4-9]*)
  5095. lt_cv_deplibs_check_method=pass_all
  5096. ;;
  5097. beos*)
  5098. lt_cv_deplibs_check_method=pass_all
  5099. ;;
  5100. bsdi[45]*)
  5101. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5102. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5103. lt_cv_file_magic_test_file=/shlib/libc.so
  5104. ;;
  5105. cygwin*)
  5106. # func_win32_libid is a shell function defined in ltmain.sh
  5107. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5108. lt_cv_file_magic_cmd='func_win32_libid'
  5109. lt_cv_deplibs_check_method=pass_all # SDL customization
  5110. ;;
  5111. mingw* | pw32*)
  5112. # Base MSYS/MinGW do not provide the 'file' command needed by
  5113. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5114. # unless we find 'file', for example because we are cross-compiling.
  5115. if ( file / ) >/dev/null 2>&1; then
  5116. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5117. lt_cv_file_magic_cmd='func_win32_libid'
  5118. else
  5119. # Keep this pattern in sync with the one in func_win32_libid.
  5120. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5121. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5122. fi
  5123. lt_cv_deplibs_check_method=pass_all # SDL customization
  5124. ;;
  5125. cegcc*)
  5126. # use the weaker test based on 'objdump'. See mingw*.
  5127. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5128. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5129. ;;
  5130. darwin* | rhapsody*)
  5131. lt_cv_deplibs_check_method=pass_all
  5132. ;;
  5133. freebsd* | dragonfly* | midnightbsd*)
  5134. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5135. case $host_cpu in
  5136. i*86 )
  5137. # Not sure whether the presence of OpenBSD here was a mistake.
  5138. # Let's accept both of them until this is cleared up.
  5139. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5140. lt_cv_file_magic_cmd=/usr/bin/file
  5141. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5142. ;;
  5143. esac
  5144. else
  5145. lt_cv_deplibs_check_method=pass_all
  5146. fi
  5147. ;;
  5148. haiku*)
  5149. lt_cv_deplibs_check_method=pass_all
  5150. ;;
  5151. hpux10.20* | hpux11*)
  5152. lt_cv_file_magic_cmd=/usr/bin/file
  5153. case $host_cpu in
  5154. ia64*)
  5155. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5156. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5157. ;;
  5158. hppa*64*)
  5159. 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]'
  5160. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5161. ;;
  5162. *)
  5163. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5164. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5165. ;;
  5166. esac
  5167. ;;
  5168. interix[3-9]*)
  5169. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5170. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5171. ;;
  5172. irix5* | irix6* | nonstopux*)
  5173. case $LD in
  5174. *-32|*"-32 ") libmagic=32-bit;;
  5175. *-n32|*"-n32 ") libmagic=N32;;
  5176. *-64|*"-64 ") libmagic=64-bit;;
  5177. *) libmagic=never-match;;
  5178. esac
  5179. lt_cv_deplibs_check_method=pass_all
  5180. ;;
  5181. # This must be glibc/ELF.
  5182. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5183. lt_cv_deplibs_check_method=pass_all
  5184. ;;
  5185. netbsd*)
  5186. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5187. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5188. else
  5189. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5190. fi
  5191. ;;
  5192. newos6*)
  5193. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5194. lt_cv_file_magic_cmd=/usr/bin/file
  5195. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5196. ;;
  5197. *nto* | *qnx*)
  5198. lt_cv_deplibs_check_method=pass_all
  5199. ;;
  5200. openbsd* | bitrig*)
  5201. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5202. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5203. else
  5204. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5205. fi
  5206. ;;
  5207. osf3* | osf4* | osf5*)
  5208. lt_cv_deplibs_check_method=pass_all
  5209. ;;
  5210. rdos*)
  5211. lt_cv_deplibs_check_method=pass_all
  5212. ;;
  5213. solaris*)
  5214. lt_cv_deplibs_check_method=pass_all
  5215. ;;
  5216. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5217. lt_cv_deplibs_check_method=pass_all
  5218. ;;
  5219. sysv4 | sysv4.3*)
  5220. case $host_vendor in
  5221. motorola)
  5222. 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]'
  5223. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5224. ;;
  5225. ncr)
  5226. lt_cv_deplibs_check_method=pass_all
  5227. ;;
  5228. sequent)
  5229. lt_cv_file_magic_cmd='/bin/file'
  5230. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5231. ;;
  5232. sni)
  5233. lt_cv_file_magic_cmd='/bin/file'
  5234. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5235. lt_cv_file_magic_test_file=/lib/libc.so
  5236. ;;
  5237. siemens)
  5238. lt_cv_deplibs_check_method=pass_all
  5239. ;;
  5240. pc)
  5241. lt_cv_deplibs_check_method=pass_all
  5242. ;;
  5243. esac
  5244. ;;
  5245. tpf*)
  5246. lt_cv_deplibs_check_method=pass_all
  5247. ;;
  5248. os2*)
  5249. lt_cv_deplibs_check_method=pass_all
  5250. ;;
  5251. esac
  5252. fi
  5253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5254. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5255. file_magic_glob=
  5256. want_nocaseglob=no
  5257. if test "$build" = "$host"; then
  5258. case $host_os in
  5259. mingw* | pw32*)
  5260. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5261. want_nocaseglob=yes
  5262. else
  5263. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5264. fi
  5265. ;;
  5266. esac
  5267. fi
  5268. file_magic_cmd=$lt_cv_file_magic_cmd
  5269. deplibs_check_method=$lt_cv_deplibs_check_method
  5270. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5271. if test -n "$ac_tool_prefix"; then
  5272. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5273. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5275. printf %s "checking for $ac_word... " >&6; }
  5276. if test ${ac_cv_prog_DLLTOOL+y}
  5277. then :
  5278. printf %s "(cached) " >&6
  5279. else $as_nop
  5280. if test -n "$DLLTOOL"; then
  5281. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5282. else
  5283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5284. for as_dir in $PATH
  5285. do
  5286. IFS=$as_save_IFS
  5287. case $as_dir in #(((
  5288. '') as_dir=./ ;;
  5289. */) ;;
  5290. *) as_dir=$as_dir/ ;;
  5291. esac
  5292. for ac_exec_ext in '' $ac_executable_extensions; do
  5293. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5294. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5295. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5296. break 2
  5297. fi
  5298. done
  5299. done
  5300. IFS=$as_save_IFS
  5301. fi
  5302. fi
  5303. DLLTOOL=$ac_cv_prog_DLLTOOL
  5304. if test -n "$DLLTOOL"; then
  5305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5306. printf "%s\n" "$DLLTOOL" >&6; }
  5307. else
  5308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5309. printf "%s\n" "no" >&6; }
  5310. fi
  5311. fi
  5312. if test -z "$ac_cv_prog_DLLTOOL"; then
  5313. ac_ct_DLLTOOL=$DLLTOOL
  5314. # Extract the first word of "dlltool", so it can be a program name with args.
  5315. set dummy dlltool; ac_word=$2
  5316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5317. printf %s "checking for $ac_word... " >&6; }
  5318. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5319. then :
  5320. printf %s "(cached) " >&6
  5321. else $as_nop
  5322. if test -n "$ac_ct_DLLTOOL"; then
  5323. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5324. else
  5325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5326. for as_dir in $PATH
  5327. do
  5328. IFS=$as_save_IFS
  5329. case $as_dir in #(((
  5330. '') as_dir=./ ;;
  5331. */) ;;
  5332. *) as_dir=$as_dir/ ;;
  5333. esac
  5334. for ac_exec_ext in '' $ac_executable_extensions; do
  5335. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5336. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5337. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5338. break 2
  5339. fi
  5340. done
  5341. done
  5342. IFS=$as_save_IFS
  5343. fi
  5344. fi
  5345. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5346. if test -n "$ac_ct_DLLTOOL"; then
  5347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5348. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5349. else
  5350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5351. printf "%s\n" "no" >&6; }
  5352. fi
  5353. if test "x$ac_ct_DLLTOOL" = x; then
  5354. DLLTOOL="false"
  5355. else
  5356. case $cross_compiling:$ac_tool_warned in
  5357. yes:)
  5358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5359. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5360. ac_tool_warned=yes ;;
  5361. esac
  5362. DLLTOOL=$ac_ct_DLLTOOL
  5363. fi
  5364. else
  5365. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5366. fi
  5367. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5369. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5370. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5371. then :
  5372. printf %s "(cached) " >&6
  5373. else $as_nop
  5374. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5375. case $host_os in
  5376. cygwin* | mingw* | pw32* | cegcc*)
  5377. # two different shell functions defined in ltmain.sh;
  5378. # decide which one to use based on capabilities of $DLLTOOL
  5379. case `$DLLTOOL --help 2>&1` in
  5380. *--identify-strict*)
  5381. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5382. ;;
  5383. *)
  5384. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5385. ;;
  5386. esac
  5387. ;;
  5388. *)
  5389. # fallback: assume linklib IS sharedlib
  5390. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5391. ;;
  5392. esac
  5393. fi
  5394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5395. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5396. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5397. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5398. if test -n "$ac_tool_prefix"; then
  5399. for ac_prog in ar
  5400. do
  5401. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5402. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5404. printf %s "checking for $ac_word... " >&6; }
  5405. if test ${ac_cv_prog_AR+y}
  5406. then :
  5407. printf %s "(cached) " >&6
  5408. else $as_nop
  5409. if test -n "$AR"; then
  5410. ac_cv_prog_AR="$AR" # Let the user override the test.
  5411. else
  5412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5413. for as_dir in $PATH
  5414. do
  5415. IFS=$as_save_IFS
  5416. case $as_dir in #(((
  5417. '') as_dir=./ ;;
  5418. */) ;;
  5419. *) as_dir=$as_dir/ ;;
  5420. esac
  5421. for ac_exec_ext in '' $ac_executable_extensions; do
  5422. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5423. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5424. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5425. break 2
  5426. fi
  5427. done
  5428. done
  5429. IFS=$as_save_IFS
  5430. fi
  5431. fi
  5432. AR=$ac_cv_prog_AR
  5433. if test -n "$AR"; then
  5434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5435. printf "%s\n" "$AR" >&6; }
  5436. else
  5437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5438. printf "%s\n" "no" >&6; }
  5439. fi
  5440. test -n "$AR" && break
  5441. done
  5442. fi
  5443. if test -z "$AR"; then
  5444. ac_ct_AR=$AR
  5445. for ac_prog in ar
  5446. do
  5447. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5448. set dummy $ac_prog; ac_word=$2
  5449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5450. printf %s "checking for $ac_word... " >&6; }
  5451. if test ${ac_cv_prog_ac_ct_AR+y}
  5452. then :
  5453. printf %s "(cached) " >&6
  5454. else $as_nop
  5455. if test -n "$ac_ct_AR"; then
  5456. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5457. else
  5458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5459. for as_dir in $PATH
  5460. do
  5461. IFS=$as_save_IFS
  5462. case $as_dir in #(((
  5463. '') as_dir=./ ;;
  5464. */) ;;
  5465. *) as_dir=$as_dir/ ;;
  5466. esac
  5467. for ac_exec_ext in '' $ac_executable_extensions; do
  5468. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5469. ac_cv_prog_ac_ct_AR="$ac_prog"
  5470. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5471. break 2
  5472. fi
  5473. done
  5474. done
  5475. IFS=$as_save_IFS
  5476. fi
  5477. fi
  5478. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5479. if test -n "$ac_ct_AR"; then
  5480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5481. printf "%s\n" "$ac_ct_AR" >&6; }
  5482. else
  5483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5484. printf "%s\n" "no" >&6; }
  5485. fi
  5486. test -n "$ac_ct_AR" && break
  5487. done
  5488. if test "x$ac_ct_AR" = x; then
  5489. AR="false"
  5490. else
  5491. case $cross_compiling:$ac_tool_warned in
  5492. yes:)
  5493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5494. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5495. ac_tool_warned=yes ;;
  5496. esac
  5497. AR=$ac_ct_AR
  5498. fi
  5499. fi
  5500. : ${AR=ar}
  5501. : ${AR_FLAGS=cru}
  5502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5503. printf %s "checking for archiver @FILE support... " >&6; }
  5504. if test ${lt_cv_ar_at_file+y}
  5505. then :
  5506. printf %s "(cached) " >&6
  5507. else $as_nop
  5508. lt_cv_ar_at_file=no
  5509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5510. /* end confdefs.h. */
  5511. int
  5512. main (void)
  5513. {
  5514. ;
  5515. return 0;
  5516. }
  5517. _ACEOF
  5518. if ac_fn_c_try_compile "$LINENO"
  5519. then :
  5520. echo conftest.$ac_objext > conftest.lst
  5521. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5522. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5523. (eval $lt_ar_try) 2>&5
  5524. ac_status=$?
  5525. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5526. test $ac_status = 0; }
  5527. if test 0 -eq "$ac_status"; then
  5528. # Ensure the archiver fails upon bogus file names.
  5529. rm -f conftest.$ac_objext libconftest.a
  5530. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5531. (eval $lt_ar_try) 2>&5
  5532. ac_status=$?
  5533. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5534. test $ac_status = 0; }
  5535. if test 0 -ne "$ac_status"; then
  5536. lt_cv_ar_at_file=@
  5537. fi
  5538. fi
  5539. rm -f conftest.* libconftest.a
  5540. fi
  5541. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5542. fi
  5543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5544. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5545. if test no = "$lt_cv_ar_at_file"; then
  5546. archiver_list_spec=
  5547. else
  5548. archiver_list_spec=$lt_cv_ar_at_file
  5549. fi
  5550. if test -n "$ac_tool_prefix"; then
  5551. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5552. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5554. printf %s "checking for $ac_word... " >&6; }
  5555. if test ${ac_cv_prog_STRIP+y}
  5556. then :
  5557. printf %s "(cached) " >&6
  5558. else $as_nop
  5559. if test -n "$STRIP"; then
  5560. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5561. else
  5562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5563. for as_dir in $PATH
  5564. do
  5565. IFS=$as_save_IFS
  5566. case $as_dir in #(((
  5567. '') as_dir=./ ;;
  5568. */) ;;
  5569. *) as_dir=$as_dir/ ;;
  5570. esac
  5571. for ac_exec_ext in '' $ac_executable_extensions; do
  5572. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5573. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5574. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5575. break 2
  5576. fi
  5577. done
  5578. done
  5579. IFS=$as_save_IFS
  5580. fi
  5581. fi
  5582. STRIP=$ac_cv_prog_STRIP
  5583. if test -n "$STRIP"; then
  5584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5585. printf "%s\n" "$STRIP" >&6; }
  5586. else
  5587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5588. printf "%s\n" "no" >&6; }
  5589. fi
  5590. fi
  5591. if test -z "$ac_cv_prog_STRIP"; then
  5592. ac_ct_STRIP=$STRIP
  5593. # Extract the first word of "strip", so it can be a program name with args.
  5594. set dummy strip; ac_word=$2
  5595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5596. printf %s "checking for $ac_word... " >&6; }
  5597. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5598. then :
  5599. printf %s "(cached) " >&6
  5600. else $as_nop
  5601. if test -n "$ac_ct_STRIP"; then
  5602. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5603. else
  5604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5605. for as_dir in $PATH
  5606. do
  5607. IFS=$as_save_IFS
  5608. case $as_dir in #(((
  5609. '') as_dir=./ ;;
  5610. */) ;;
  5611. *) as_dir=$as_dir/ ;;
  5612. esac
  5613. for ac_exec_ext in '' $ac_executable_extensions; do
  5614. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5615. ac_cv_prog_ac_ct_STRIP="strip"
  5616. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5617. break 2
  5618. fi
  5619. done
  5620. done
  5621. IFS=$as_save_IFS
  5622. fi
  5623. fi
  5624. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5625. if test -n "$ac_ct_STRIP"; then
  5626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5627. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5628. else
  5629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5630. printf "%s\n" "no" >&6; }
  5631. fi
  5632. if test "x$ac_ct_STRIP" = x; then
  5633. STRIP=":"
  5634. else
  5635. case $cross_compiling:$ac_tool_warned in
  5636. yes:)
  5637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5638. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5639. ac_tool_warned=yes ;;
  5640. esac
  5641. STRIP=$ac_ct_STRIP
  5642. fi
  5643. else
  5644. STRIP="$ac_cv_prog_STRIP"
  5645. fi
  5646. test -z "$STRIP" && STRIP=:
  5647. if test -n "$ac_tool_prefix"; then
  5648. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5649. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5651. printf %s "checking for $ac_word... " >&6; }
  5652. if test ${ac_cv_prog_RANLIB+y}
  5653. then :
  5654. printf %s "(cached) " >&6
  5655. else $as_nop
  5656. if test -n "$RANLIB"; then
  5657. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5658. else
  5659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5660. for as_dir in $PATH
  5661. do
  5662. IFS=$as_save_IFS
  5663. case $as_dir in #(((
  5664. '') as_dir=./ ;;
  5665. */) ;;
  5666. *) as_dir=$as_dir/ ;;
  5667. esac
  5668. for ac_exec_ext in '' $ac_executable_extensions; do
  5669. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5670. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5671. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5672. break 2
  5673. fi
  5674. done
  5675. done
  5676. IFS=$as_save_IFS
  5677. fi
  5678. fi
  5679. RANLIB=$ac_cv_prog_RANLIB
  5680. if test -n "$RANLIB"; then
  5681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5682. printf "%s\n" "$RANLIB" >&6; }
  5683. else
  5684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5685. printf "%s\n" "no" >&6; }
  5686. fi
  5687. fi
  5688. if test -z "$ac_cv_prog_RANLIB"; then
  5689. ac_ct_RANLIB=$RANLIB
  5690. # Extract the first word of "ranlib", so it can be a program name with args.
  5691. set dummy ranlib; ac_word=$2
  5692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5693. printf %s "checking for $ac_word... " >&6; }
  5694. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5695. then :
  5696. printf %s "(cached) " >&6
  5697. else $as_nop
  5698. if test -n "$ac_ct_RANLIB"; then
  5699. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5700. else
  5701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5702. for as_dir in $PATH
  5703. do
  5704. IFS=$as_save_IFS
  5705. case $as_dir in #(((
  5706. '') as_dir=./ ;;
  5707. */) ;;
  5708. *) as_dir=$as_dir/ ;;
  5709. esac
  5710. for ac_exec_ext in '' $ac_executable_extensions; do
  5711. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5712. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5713. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5714. break 2
  5715. fi
  5716. done
  5717. done
  5718. IFS=$as_save_IFS
  5719. fi
  5720. fi
  5721. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5722. if test -n "$ac_ct_RANLIB"; then
  5723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5724. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5725. else
  5726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5727. printf "%s\n" "no" >&6; }
  5728. fi
  5729. if test "x$ac_ct_RANLIB" = x; then
  5730. RANLIB=":"
  5731. else
  5732. case $cross_compiling:$ac_tool_warned in
  5733. yes:)
  5734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5735. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5736. ac_tool_warned=yes ;;
  5737. esac
  5738. RANLIB=$ac_ct_RANLIB
  5739. fi
  5740. else
  5741. RANLIB="$ac_cv_prog_RANLIB"
  5742. fi
  5743. test -z "$RANLIB" && RANLIB=:
  5744. # Determine commands to create old-style static archives.
  5745. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5746. old_postinstall_cmds='chmod 644 $oldlib'
  5747. old_postuninstall_cmds=
  5748. if test -n "$RANLIB"; then
  5749. case $host_os in
  5750. bitrig* | openbsd*)
  5751. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5752. ;;
  5753. *)
  5754. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5755. ;;
  5756. esac
  5757. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5758. fi
  5759. case $host_os in
  5760. darwin*)
  5761. lock_old_archive_extraction=yes ;;
  5762. *)
  5763. lock_old_archive_extraction=no ;;
  5764. esac
  5765. for ac_prog in gawk mawk nawk awk
  5766. do
  5767. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5768. set dummy $ac_prog; ac_word=$2
  5769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5770. printf %s "checking for $ac_word... " >&6; }
  5771. if test ${ac_cv_prog_AWK+y}
  5772. then :
  5773. printf %s "(cached) " >&6
  5774. else $as_nop
  5775. if test -n "$AWK"; then
  5776. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5777. else
  5778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5779. for as_dir in $PATH
  5780. do
  5781. IFS=$as_save_IFS
  5782. case $as_dir in #(((
  5783. '') as_dir=./ ;;
  5784. */) ;;
  5785. *) as_dir=$as_dir/ ;;
  5786. esac
  5787. for ac_exec_ext in '' $ac_executable_extensions; do
  5788. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5789. ac_cv_prog_AWK="$ac_prog"
  5790. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5791. break 2
  5792. fi
  5793. done
  5794. done
  5795. IFS=$as_save_IFS
  5796. fi
  5797. fi
  5798. AWK=$ac_cv_prog_AWK
  5799. if test -n "$AWK"; then
  5800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5801. printf "%s\n" "$AWK" >&6; }
  5802. else
  5803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5804. printf "%s\n" "no" >&6; }
  5805. fi
  5806. test -n "$AWK" && break
  5807. done
  5808. # If no C compiler was specified, use CC.
  5809. LTCC=${LTCC-"$CC"}
  5810. # If no C compiler flags were specified, use CFLAGS.
  5811. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5812. # Allow CC to be a program name with arguments.
  5813. compiler=$CC
  5814. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5816. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5817. if test ${lt_cv_sys_global_symbol_pipe+y}
  5818. then :
  5819. printf %s "(cached) " >&6
  5820. else $as_nop
  5821. # These are sane defaults that work on at least a few old systems.
  5822. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5823. # Character class describing NM global symbol codes.
  5824. symcode='[BCDEGRST]'
  5825. # Regexp to match symbols that can be accessed directly from C.
  5826. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5827. # Define system-specific variables.
  5828. case $host_os in
  5829. aix*)
  5830. symcode='[BCDT]'
  5831. ;;
  5832. cygwin* | mingw* | pw32* | cegcc*)
  5833. symcode='[ABCDGISTW]'
  5834. ;;
  5835. hpux*)
  5836. if test ia64 = "$host_cpu"; then
  5837. symcode='[ABCDEGRST]'
  5838. fi
  5839. ;;
  5840. irix* | nonstopux*)
  5841. symcode='[BCDEGRST]'
  5842. ;;
  5843. osf*)
  5844. symcode='[BCDEGQRST]'
  5845. ;;
  5846. solaris*)
  5847. symcode='[BCDRT]'
  5848. ;;
  5849. sco3.2v5*)
  5850. symcode='[DT]'
  5851. ;;
  5852. sysv4.2uw2*)
  5853. symcode='[DT]'
  5854. ;;
  5855. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5856. symcode='[ABDT]'
  5857. ;;
  5858. sysv4)
  5859. symcode='[DFNSTU]'
  5860. ;;
  5861. esac
  5862. # If we're using GNU nm, then use its standard symbol codes.
  5863. case `$NM -V 2>&1` in
  5864. *GNU* | *'with BFD'*)
  5865. symcode='[ABCDGIRSTW]' ;;
  5866. esac
  5867. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5868. # Gets list of data symbols to import.
  5869. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5870. # Adjust the below global symbol transforms to fixup imported variables.
  5871. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5872. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5873. lt_c_name_lib_hook="\
  5874. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5875. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5876. else
  5877. # Disable hooks by default.
  5878. lt_cv_sys_global_symbol_to_import=
  5879. lt_cdecl_hook=
  5880. lt_c_name_hook=
  5881. lt_c_name_lib_hook=
  5882. fi
  5883. # Transform an extracted symbol line into a proper C declaration.
  5884. # Some systems (esp. on ia64) link data and code symbols differently,
  5885. # so use this general approach.
  5886. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5887. $lt_cdecl_hook\
  5888. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5889. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5890. # Transform an extracted symbol line into symbol name and symbol address
  5891. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5892. $lt_c_name_hook\
  5893. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5894. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5895. # Transform an extracted symbol line into symbol name with lib prefix and
  5896. # symbol address.
  5897. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5898. $lt_c_name_lib_hook\
  5899. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5900. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5901. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5902. # Handle CRLF in mingw tool chain
  5903. opt_cr=
  5904. case $build_os in
  5905. mingw*)
  5906. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5907. ;;
  5908. esac
  5909. # Try without a prefix underscore, then with it.
  5910. for ac_symprfx in "" "_"; do
  5911. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5912. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5913. # Write the raw and C identifiers.
  5914. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5915. # Fake it for dumpbin and say T for any non-static function,
  5916. # D for any global variable and I for any imported variable.
  5917. # Also find C++ and __fastcall symbols from MSVC++,
  5918. # which start with @ or ?.
  5919. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5920. " {last_section=section; section=\$ 3};"\
  5921. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5922. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5923. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5924. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5925. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5926. " \$ 0!~/External *\|/{next};"\
  5927. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5928. " {if(hide[section]) next};"\
  5929. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5930. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5931. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5932. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5933. " ' prfx=^$ac_symprfx"
  5934. else
  5935. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5936. fi
  5937. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5938. # Check to see that the pipe works correctly.
  5939. pipe_works=no
  5940. rm -f conftest*
  5941. cat > conftest.$ac_ext <<_LT_EOF
  5942. #ifdef __cplusplus
  5943. extern "C" {
  5944. #endif
  5945. char nm_test_var;
  5946. void nm_test_func(void);
  5947. void nm_test_func(void){}
  5948. #ifdef __cplusplus
  5949. }
  5950. #endif
  5951. int main(){nm_test_var='a';nm_test_func();return(0);}
  5952. _LT_EOF
  5953. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5954. (eval $ac_compile) 2>&5
  5955. ac_status=$?
  5956. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5957. test $ac_status = 0; }; then
  5958. # Now try to grab the symbols.
  5959. nlist=conftest.nm
  5960. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5961. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5962. ac_status=$?
  5963. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5964. test $ac_status = 0; } && test -s "$nlist"; then
  5965. # Try sorting and uniquifying the output.
  5966. if sort "$nlist" | uniq > "$nlist"T; then
  5967. mv -f "$nlist"T "$nlist"
  5968. else
  5969. rm -f "$nlist"T
  5970. fi
  5971. # Make sure that we snagged all the symbols we need.
  5972. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5973. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5974. cat <<_LT_EOF > conftest.$ac_ext
  5975. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5976. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5977. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5978. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5979. # define LT_DLSYM_CONST
  5980. #elif defined __osf__
  5981. /* This system does not cope well with relocations in const data. */
  5982. # define LT_DLSYM_CONST
  5983. #else
  5984. # define LT_DLSYM_CONST const
  5985. #endif
  5986. #ifdef __cplusplus
  5987. extern "C" {
  5988. #endif
  5989. _LT_EOF
  5990. # Now generate the symbol file.
  5991. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5992. cat <<_LT_EOF >> conftest.$ac_ext
  5993. /* The mapping between symbol names and symbols. */
  5994. LT_DLSYM_CONST struct {
  5995. const char *name;
  5996. void *address;
  5997. }
  5998. lt__PROGRAM__LTX_preloaded_symbols[] =
  5999. {
  6000. { "@PROGRAM@", (void *) 0 },
  6001. _LT_EOF
  6002. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6003. cat <<\_LT_EOF >> conftest.$ac_ext
  6004. {0, (void *) 0}
  6005. };
  6006. /* This works around a problem in FreeBSD linker */
  6007. #ifdef FREEBSD_WORKAROUND
  6008. static const void *lt_preloaded_setup() {
  6009. return lt__PROGRAM__LTX_preloaded_symbols;
  6010. }
  6011. #endif
  6012. #ifdef __cplusplus
  6013. }
  6014. #endif
  6015. _LT_EOF
  6016. # Now try linking the two files.
  6017. mv conftest.$ac_objext conftstm.$ac_objext
  6018. lt_globsym_save_LIBS=$LIBS
  6019. lt_globsym_save_CFLAGS=$CFLAGS
  6020. LIBS=conftstm.$ac_objext
  6021. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6022. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6023. (eval $ac_link) 2>&5
  6024. ac_status=$?
  6025. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6026. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6027. pipe_works=yes
  6028. fi
  6029. LIBS=$lt_globsym_save_LIBS
  6030. CFLAGS=$lt_globsym_save_CFLAGS
  6031. else
  6032. echo "cannot find nm_test_func in $nlist" >&5
  6033. fi
  6034. else
  6035. echo "cannot find nm_test_var in $nlist" >&5
  6036. fi
  6037. else
  6038. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6039. fi
  6040. else
  6041. echo "$progname: failed program was:" >&5
  6042. cat conftest.$ac_ext >&5
  6043. fi
  6044. rm -rf conftest* conftst*
  6045. # Do not use the global_symbol_pipe unless it works.
  6046. if test yes = "$pipe_works"; then
  6047. break
  6048. else
  6049. lt_cv_sys_global_symbol_pipe=
  6050. fi
  6051. done
  6052. fi
  6053. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6054. lt_cv_sys_global_symbol_to_cdecl=
  6055. fi
  6056. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6058. printf "%s\n" "failed" >&6; }
  6059. else
  6060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6061. printf "%s\n" "ok" >&6; }
  6062. fi
  6063. # Response file support.
  6064. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6065. nm_file_list_spec='@'
  6066. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6067. nm_file_list_spec='@'
  6068. fi
  6069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6070. printf %s "checking for sysroot... " >&6; }
  6071. # Check whether --with-sysroot was given.
  6072. if test ${with_sysroot+y}
  6073. then :
  6074. withval=$with_sysroot;
  6075. else $as_nop
  6076. with_sysroot=no
  6077. fi
  6078. lt_sysroot=
  6079. case $with_sysroot in #(
  6080. yes)
  6081. if test yes = "$GCC"; then
  6082. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6083. fi
  6084. ;; #(
  6085. /*)
  6086. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6087. ;; #(
  6088. no|'')
  6089. ;; #(
  6090. *)
  6091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6092. printf "%s\n" "$with_sysroot" >&6; }
  6093. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6094. ;;
  6095. esac
  6096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6097. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6099. printf %s "checking for a working dd... " >&6; }
  6100. if test ${ac_cv_path_lt_DD+y}
  6101. then :
  6102. printf %s "(cached) " >&6
  6103. else $as_nop
  6104. printf 0123456789abcdef0123456789abcdef >conftest.i
  6105. cat conftest.i conftest.i >conftest2.i
  6106. : ${lt_DD:=$DD}
  6107. if test -z "$lt_DD"; then
  6108. ac_path_lt_DD_found=false
  6109. # Loop through the user's path and test for each of PROGNAME-LIST
  6110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6111. for as_dir in $PATH
  6112. do
  6113. IFS=$as_save_IFS
  6114. case $as_dir in #(((
  6115. '') as_dir=./ ;;
  6116. */) ;;
  6117. *) as_dir=$as_dir/ ;;
  6118. esac
  6119. for ac_prog in dd
  6120. do
  6121. for ac_exec_ext in '' $ac_executable_extensions; do
  6122. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6123. as_fn_executable_p "$ac_path_lt_DD" || continue
  6124. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6125. cmp -s conftest.i conftest.out \
  6126. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6127. fi
  6128. $ac_path_lt_DD_found && break 3
  6129. done
  6130. done
  6131. done
  6132. IFS=$as_save_IFS
  6133. if test -z "$ac_cv_path_lt_DD"; then
  6134. :
  6135. fi
  6136. else
  6137. ac_cv_path_lt_DD=$lt_DD
  6138. fi
  6139. rm -f conftest.i conftest2.i conftest.out
  6140. fi
  6141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6142. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6144. printf %s "checking how to truncate binary pipes... " >&6; }
  6145. if test ${lt_cv_truncate_bin+y}
  6146. then :
  6147. printf %s "(cached) " >&6
  6148. else $as_nop
  6149. printf 0123456789abcdef0123456789abcdef >conftest.i
  6150. cat conftest.i conftest.i >conftest2.i
  6151. lt_cv_truncate_bin=
  6152. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6153. cmp -s conftest.i conftest.out \
  6154. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6155. fi
  6156. rm -f conftest.i conftest2.i conftest.out
  6157. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6158. fi
  6159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6160. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6161. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6162. func_cc_basename ()
  6163. {
  6164. for cc_temp in $*""; do
  6165. case $cc_temp in
  6166. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6167. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6168. \-*) ;;
  6169. *) break;;
  6170. esac
  6171. done
  6172. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6173. }
  6174. # Check whether --enable-libtool-lock was given.
  6175. if test ${enable_libtool_lock+y}
  6176. then :
  6177. enableval=$enable_libtool_lock;
  6178. fi
  6179. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6180. # Some flags need to be propagated to the compiler or linker for good
  6181. # libtool support.
  6182. case $host in
  6183. ia64-*-hpux*)
  6184. # Find out what ABI is being produced by ac_compile, and set mode
  6185. # options accordingly.
  6186. echo 'int i;' > conftest.$ac_ext
  6187. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6188. (eval $ac_compile) 2>&5
  6189. ac_status=$?
  6190. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6191. test $ac_status = 0; }; then
  6192. case `/usr/bin/file conftest.$ac_objext` in
  6193. *ELF-32*)
  6194. HPUX_IA64_MODE=32
  6195. ;;
  6196. *ELF-64*)
  6197. HPUX_IA64_MODE=64
  6198. ;;
  6199. esac
  6200. fi
  6201. rm -rf conftest*
  6202. ;;
  6203. *-*-irix6*)
  6204. # Find out what ABI is being produced by ac_compile, and set linker
  6205. # options accordingly.
  6206. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6207. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6208. (eval $ac_compile) 2>&5
  6209. ac_status=$?
  6210. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6211. test $ac_status = 0; }; then
  6212. if test yes = "$lt_cv_prog_gnu_ld"; then
  6213. case `/usr/bin/file conftest.$ac_objext` in
  6214. *32-bit*)
  6215. LD="${LD-ld} -melf32bsmip"
  6216. ;;
  6217. *N32*)
  6218. LD="${LD-ld} -melf32bmipn32"
  6219. ;;
  6220. *64-bit*)
  6221. LD="${LD-ld} -melf64bmip"
  6222. ;;
  6223. esac
  6224. else
  6225. case `/usr/bin/file conftest.$ac_objext` in
  6226. *32-bit*)
  6227. LD="${LD-ld} -32"
  6228. ;;
  6229. *N32*)
  6230. LD="${LD-ld} -n32"
  6231. ;;
  6232. *64-bit*)
  6233. LD="${LD-ld} -64"
  6234. ;;
  6235. esac
  6236. fi
  6237. fi
  6238. rm -rf conftest*
  6239. ;;
  6240. mips64*-*linux*)
  6241. # Find out what ABI is being produced by ac_compile, and set linker
  6242. # options accordingly.
  6243. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6244. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6245. (eval $ac_compile) 2>&5
  6246. ac_status=$?
  6247. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6248. test $ac_status = 0; }; then
  6249. emul=elf
  6250. case `/usr/bin/file conftest.$ac_objext` in
  6251. *32-bit*)
  6252. emul="${emul}32"
  6253. ;;
  6254. *64-bit*)
  6255. emul="${emul}64"
  6256. ;;
  6257. esac
  6258. case `/usr/bin/file conftest.$ac_objext` in
  6259. *MSB*)
  6260. emul="${emul}btsmip"
  6261. ;;
  6262. *LSB*)
  6263. emul="${emul}ltsmip"
  6264. ;;
  6265. esac
  6266. case `/usr/bin/file conftest.$ac_objext` in
  6267. *N32*)
  6268. emul="${emul}n32"
  6269. ;;
  6270. esac
  6271. LD="${LD-ld} -m $emul"
  6272. fi
  6273. rm -rf conftest*
  6274. ;;
  6275. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6276. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6277. # Find out what ABI is being produced by ac_compile, and set linker
  6278. # options accordingly. Note that the listed cases only cover the
  6279. # situations where additional linker options are needed (such as when
  6280. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6281. # vice versa); the common cases where no linker options are needed do
  6282. # not appear in the list.
  6283. echo 'int i;' > conftest.$ac_ext
  6284. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6285. (eval $ac_compile) 2>&5
  6286. ac_status=$?
  6287. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6288. test $ac_status = 0; }; then
  6289. case `/usr/bin/file conftest.o` in
  6290. *32-bit*)
  6291. case $host in
  6292. x86_64-*kfreebsd*-gnu)
  6293. LD="${LD-ld} -m elf_i386_fbsd"
  6294. ;;
  6295. x86_64-*linux*)
  6296. case `/usr/bin/file conftest.o` in
  6297. *x86-64*)
  6298. LD="${LD-ld} -m elf32_x86_64"
  6299. ;;
  6300. *)
  6301. LD="${LD-ld} -m elf_i386"
  6302. ;;
  6303. esac
  6304. ;;
  6305. powerpc64le-*linux*)
  6306. LD="${LD-ld} -m elf32lppclinux"
  6307. ;;
  6308. powerpc64-*linux*)
  6309. LD="${LD-ld} -m elf32ppclinux"
  6310. ;;
  6311. s390x-*linux*)
  6312. LD="${LD-ld} -m elf_s390"
  6313. ;;
  6314. sparc64-*linux*)
  6315. LD="${LD-ld} -m elf32_sparc"
  6316. ;;
  6317. esac
  6318. ;;
  6319. *64-bit*)
  6320. case $host in
  6321. x86_64-*kfreebsd*-gnu)
  6322. LD="${LD-ld} -m elf_x86_64_fbsd"
  6323. ;;
  6324. x86_64-*linux*)
  6325. LD="${LD-ld} -m elf_x86_64"
  6326. ;;
  6327. powerpcle-*linux*|powerpc64le-*linux*)
  6328. LD="${LD-ld} -m elf64lppc"
  6329. ;;
  6330. powerpc-*linux*|powerpc64-*linux*)
  6331. LD="${LD-ld} -m elf64ppc"
  6332. ;;
  6333. s390*-*linux*|s390*-*tpf*)
  6334. LD="${LD-ld} -m elf64_s390"
  6335. ;;
  6336. sparc*-*linux*)
  6337. LD="${LD-ld} -m elf64_sparc"
  6338. ;;
  6339. esac
  6340. ;;
  6341. esac
  6342. fi
  6343. rm -rf conftest*
  6344. ;;
  6345. *-*-sco3.2v5*)
  6346. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6347. SAVE_CFLAGS=$CFLAGS
  6348. CFLAGS="$CFLAGS -belf"
  6349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6350. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6351. if test ${lt_cv_cc_needs_belf+y}
  6352. then :
  6353. printf %s "(cached) " >&6
  6354. else $as_nop
  6355. ac_ext=c
  6356. ac_cpp='$CPP $CPPFLAGS'
  6357. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6358. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6359. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6361. /* end confdefs.h. */
  6362. int
  6363. main (void)
  6364. {
  6365. ;
  6366. return 0;
  6367. }
  6368. _ACEOF
  6369. if ac_fn_c_try_link "$LINENO"
  6370. then :
  6371. lt_cv_cc_needs_belf=yes
  6372. else $as_nop
  6373. lt_cv_cc_needs_belf=no
  6374. fi
  6375. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6376. conftest$ac_exeext conftest.$ac_ext
  6377. ac_ext=c
  6378. ac_cpp='$CPP $CPPFLAGS'
  6379. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6380. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6381. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6382. fi
  6383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6384. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6385. if test yes != "$lt_cv_cc_needs_belf"; then
  6386. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6387. CFLAGS=$SAVE_CFLAGS
  6388. fi
  6389. ;;
  6390. *-*solaris*)
  6391. # Find out what ABI is being produced by ac_compile, and set linker
  6392. # options accordingly.
  6393. echo 'int i;' > conftest.$ac_ext
  6394. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6395. (eval $ac_compile) 2>&5
  6396. ac_status=$?
  6397. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6398. test $ac_status = 0; }; then
  6399. case `/usr/bin/file conftest.o` in
  6400. *64-bit*)
  6401. case $lt_cv_prog_gnu_ld in
  6402. yes*)
  6403. case $host in
  6404. i?86-*-solaris*|x86_64-*-solaris*)
  6405. LD="${LD-ld} -m elf_x86_64"
  6406. ;;
  6407. sparc*-*-solaris*)
  6408. LD="${LD-ld} -m elf64_sparc"
  6409. ;;
  6410. esac
  6411. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6412. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6413. LD=${LD-ld}_sol2
  6414. fi
  6415. ;;
  6416. *)
  6417. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6418. LD="${LD-ld} -64"
  6419. fi
  6420. ;;
  6421. esac
  6422. ;;
  6423. esac
  6424. fi
  6425. rm -rf conftest*
  6426. ;;
  6427. esac
  6428. need_locks=$enable_libtool_lock
  6429. if test -n "$ac_tool_prefix"; then
  6430. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6431. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6433. printf %s "checking for $ac_word... " >&6; }
  6434. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6435. then :
  6436. printf %s "(cached) " >&6
  6437. else $as_nop
  6438. if test -n "$MANIFEST_TOOL"; then
  6439. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6440. else
  6441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6442. for as_dir in $PATH
  6443. do
  6444. IFS=$as_save_IFS
  6445. case $as_dir in #(((
  6446. '') as_dir=./ ;;
  6447. */) ;;
  6448. *) as_dir=$as_dir/ ;;
  6449. esac
  6450. for ac_exec_ext in '' $ac_executable_extensions; do
  6451. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6452. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6453. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6454. break 2
  6455. fi
  6456. done
  6457. done
  6458. IFS=$as_save_IFS
  6459. fi
  6460. fi
  6461. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6462. if test -n "$MANIFEST_TOOL"; then
  6463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6464. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6465. else
  6466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6467. printf "%s\n" "no" >&6; }
  6468. fi
  6469. fi
  6470. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6471. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6472. # Extract the first word of "mt", so it can be a program name with args.
  6473. set dummy mt; ac_word=$2
  6474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6475. printf %s "checking for $ac_word... " >&6; }
  6476. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6477. then :
  6478. printf %s "(cached) " >&6
  6479. else $as_nop
  6480. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6481. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6482. else
  6483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6484. for as_dir in $PATH
  6485. do
  6486. IFS=$as_save_IFS
  6487. case $as_dir in #(((
  6488. '') as_dir=./ ;;
  6489. */) ;;
  6490. *) as_dir=$as_dir/ ;;
  6491. esac
  6492. for ac_exec_ext in '' $ac_executable_extensions; do
  6493. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6494. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6495. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6496. break 2
  6497. fi
  6498. done
  6499. done
  6500. IFS=$as_save_IFS
  6501. fi
  6502. fi
  6503. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6504. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6506. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6507. else
  6508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6509. printf "%s\n" "no" >&6; }
  6510. fi
  6511. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6512. MANIFEST_TOOL=":"
  6513. else
  6514. case $cross_compiling:$ac_tool_warned in
  6515. yes:)
  6516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6517. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6518. ac_tool_warned=yes ;;
  6519. esac
  6520. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6521. fi
  6522. else
  6523. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6524. fi
  6525. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6527. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6528. if test ${lt_cv_path_mainfest_tool+y}
  6529. then :
  6530. printf %s "(cached) " >&6
  6531. else $as_nop
  6532. lt_cv_path_mainfest_tool=no
  6533. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6534. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6535. cat conftest.err >&5
  6536. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6537. lt_cv_path_mainfest_tool=yes
  6538. fi
  6539. rm -f conftest*
  6540. fi
  6541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6542. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6543. if test yes != "$lt_cv_path_mainfest_tool"; then
  6544. MANIFEST_TOOL=:
  6545. fi
  6546. case $host_os in
  6547. rhapsody* | darwin*)
  6548. if test -n "$ac_tool_prefix"; then
  6549. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6550. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6552. printf %s "checking for $ac_word... " >&6; }
  6553. if test ${ac_cv_prog_DSYMUTIL+y}
  6554. then :
  6555. printf %s "(cached) " >&6
  6556. else $as_nop
  6557. if test -n "$DSYMUTIL"; then
  6558. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6559. else
  6560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6561. for as_dir in $PATH
  6562. do
  6563. IFS=$as_save_IFS
  6564. case $as_dir in #(((
  6565. '') as_dir=./ ;;
  6566. */) ;;
  6567. *) as_dir=$as_dir/ ;;
  6568. esac
  6569. for ac_exec_ext in '' $ac_executable_extensions; do
  6570. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6571. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6572. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6573. break 2
  6574. fi
  6575. done
  6576. done
  6577. IFS=$as_save_IFS
  6578. fi
  6579. fi
  6580. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6581. if test -n "$DSYMUTIL"; then
  6582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6583. printf "%s\n" "$DSYMUTIL" >&6; }
  6584. else
  6585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6586. printf "%s\n" "no" >&6; }
  6587. fi
  6588. fi
  6589. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6590. ac_ct_DSYMUTIL=$DSYMUTIL
  6591. # Extract the first word of "dsymutil", so it can be a program name with args.
  6592. set dummy dsymutil; ac_word=$2
  6593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6594. printf %s "checking for $ac_word... " >&6; }
  6595. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6596. then :
  6597. printf %s "(cached) " >&6
  6598. else $as_nop
  6599. if test -n "$ac_ct_DSYMUTIL"; then
  6600. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6601. else
  6602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6603. for as_dir in $PATH
  6604. do
  6605. IFS=$as_save_IFS
  6606. case $as_dir in #(((
  6607. '') as_dir=./ ;;
  6608. */) ;;
  6609. *) as_dir=$as_dir/ ;;
  6610. esac
  6611. for ac_exec_ext in '' $ac_executable_extensions; do
  6612. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6613. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6614. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6615. break 2
  6616. fi
  6617. done
  6618. done
  6619. IFS=$as_save_IFS
  6620. fi
  6621. fi
  6622. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6623. if test -n "$ac_ct_DSYMUTIL"; then
  6624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6625. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6626. else
  6627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6628. printf "%s\n" "no" >&6; }
  6629. fi
  6630. if test "x$ac_ct_DSYMUTIL" = x; then
  6631. DSYMUTIL=":"
  6632. else
  6633. case $cross_compiling:$ac_tool_warned in
  6634. yes:)
  6635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6636. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6637. ac_tool_warned=yes ;;
  6638. esac
  6639. DSYMUTIL=$ac_ct_DSYMUTIL
  6640. fi
  6641. else
  6642. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6643. fi
  6644. if test -n "$ac_tool_prefix"; then
  6645. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6646. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6648. printf %s "checking for $ac_word... " >&6; }
  6649. if test ${ac_cv_prog_NMEDIT+y}
  6650. then :
  6651. printf %s "(cached) " >&6
  6652. else $as_nop
  6653. if test -n "$NMEDIT"; then
  6654. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6655. else
  6656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6657. for as_dir in $PATH
  6658. do
  6659. IFS=$as_save_IFS
  6660. case $as_dir in #(((
  6661. '') as_dir=./ ;;
  6662. */) ;;
  6663. *) as_dir=$as_dir/ ;;
  6664. esac
  6665. for ac_exec_ext in '' $ac_executable_extensions; do
  6666. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6667. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6668. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6669. break 2
  6670. fi
  6671. done
  6672. done
  6673. IFS=$as_save_IFS
  6674. fi
  6675. fi
  6676. NMEDIT=$ac_cv_prog_NMEDIT
  6677. if test -n "$NMEDIT"; then
  6678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6679. printf "%s\n" "$NMEDIT" >&6; }
  6680. else
  6681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6682. printf "%s\n" "no" >&6; }
  6683. fi
  6684. fi
  6685. if test -z "$ac_cv_prog_NMEDIT"; then
  6686. ac_ct_NMEDIT=$NMEDIT
  6687. # Extract the first word of "nmedit", so it can be a program name with args.
  6688. set dummy nmedit; ac_word=$2
  6689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6690. printf %s "checking for $ac_word... " >&6; }
  6691. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6692. then :
  6693. printf %s "(cached) " >&6
  6694. else $as_nop
  6695. if test -n "$ac_ct_NMEDIT"; then
  6696. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6697. else
  6698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6699. for as_dir in $PATH
  6700. do
  6701. IFS=$as_save_IFS
  6702. case $as_dir in #(((
  6703. '') as_dir=./ ;;
  6704. */) ;;
  6705. *) as_dir=$as_dir/ ;;
  6706. esac
  6707. for ac_exec_ext in '' $ac_executable_extensions; do
  6708. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6709. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6710. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6711. break 2
  6712. fi
  6713. done
  6714. done
  6715. IFS=$as_save_IFS
  6716. fi
  6717. fi
  6718. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6719. if test -n "$ac_ct_NMEDIT"; then
  6720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6721. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6722. else
  6723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6724. printf "%s\n" "no" >&6; }
  6725. fi
  6726. if test "x$ac_ct_NMEDIT" = x; then
  6727. NMEDIT=":"
  6728. else
  6729. case $cross_compiling:$ac_tool_warned in
  6730. yes:)
  6731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6732. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6733. ac_tool_warned=yes ;;
  6734. esac
  6735. NMEDIT=$ac_ct_NMEDIT
  6736. fi
  6737. else
  6738. NMEDIT="$ac_cv_prog_NMEDIT"
  6739. fi
  6740. if test -n "$ac_tool_prefix"; then
  6741. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6742. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6744. printf %s "checking for $ac_word... " >&6; }
  6745. if test ${ac_cv_prog_LIPO+y}
  6746. then :
  6747. printf %s "(cached) " >&6
  6748. else $as_nop
  6749. if test -n "$LIPO"; then
  6750. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6751. else
  6752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6753. for as_dir in $PATH
  6754. do
  6755. IFS=$as_save_IFS
  6756. case $as_dir in #(((
  6757. '') as_dir=./ ;;
  6758. */) ;;
  6759. *) as_dir=$as_dir/ ;;
  6760. esac
  6761. for ac_exec_ext in '' $ac_executable_extensions; do
  6762. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6763. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6764. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6765. break 2
  6766. fi
  6767. done
  6768. done
  6769. IFS=$as_save_IFS
  6770. fi
  6771. fi
  6772. LIPO=$ac_cv_prog_LIPO
  6773. if test -n "$LIPO"; then
  6774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6775. printf "%s\n" "$LIPO" >&6; }
  6776. else
  6777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6778. printf "%s\n" "no" >&6; }
  6779. fi
  6780. fi
  6781. if test -z "$ac_cv_prog_LIPO"; then
  6782. ac_ct_LIPO=$LIPO
  6783. # Extract the first word of "lipo", so it can be a program name with args.
  6784. set dummy lipo; ac_word=$2
  6785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6786. printf %s "checking for $ac_word... " >&6; }
  6787. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6788. then :
  6789. printf %s "(cached) " >&6
  6790. else $as_nop
  6791. if test -n "$ac_ct_LIPO"; then
  6792. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6793. else
  6794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6795. for as_dir in $PATH
  6796. do
  6797. IFS=$as_save_IFS
  6798. case $as_dir in #(((
  6799. '') as_dir=./ ;;
  6800. */) ;;
  6801. *) as_dir=$as_dir/ ;;
  6802. esac
  6803. for ac_exec_ext in '' $ac_executable_extensions; do
  6804. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6805. ac_cv_prog_ac_ct_LIPO="lipo"
  6806. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6807. break 2
  6808. fi
  6809. done
  6810. done
  6811. IFS=$as_save_IFS
  6812. fi
  6813. fi
  6814. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6815. if test -n "$ac_ct_LIPO"; then
  6816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6817. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6818. else
  6819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6820. printf "%s\n" "no" >&6; }
  6821. fi
  6822. if test "x$ac_ct_LIPO" = x; then
  6823. LIPO=":"
  6824. else
  6825. case $cross_compiling:$ac_tool_warned in
  6826. yes:)
  6827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6828. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6829. ac_tool_warned=yes ;;
  6830. esac
  6831. LIPO=$ac_ct_LIPO
  6832. fi
  6833. else
  6834. LIPO="$ac_cv_prog_LIPO"
  6835. fi
  6836. if test -n "$ac_tool_prefix"; then
  6837. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6838. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6840. printf %s "checking for $ac_word... " >&6; }
  6841. if test ${ac_cv_prog_OTOOL+y}
  6842. then :
  6843. printf %s "(cached) " >&6
  6844. else $as_nop
  6845. if test -n "$OTOOL"; then
  6846. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6847. else
  6848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6849. for as_dir in $PATH
  6850. do
  6851. IFS=$as_save_IFS
  6852. case $as_dir in #(((
  6853. '') as_dir=./ ;;
  6854. */) ;;
  6855. *) as_dir=$as_dir/ ;;
  6856. esac
  6857. for ac_exec_ext in '' $ac_executable_extensions; do
  6858. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6859. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6860. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6861. break 2
  6862. fi
  6863. done
  6864. done
  6865. IFS=$as_save_IFS
  6866. fi
  6867. fi
  6868. OTOOL=$ac_cv_prog_OTOOL
  6869. if test -n "$OTOOL"; then
  6870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6871. printf "%s\n" "$OTOOL" >&6; }
  6872. else
  6873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6874. printf "%s\n" "no" >&6; }
  6875. fi
  6876. fi
  6877. if test -z "$ac_cv_prog_OTOOL"; then
  6878. ac_ct_OTOOL=$OTOOL
  6879. # Extract the first word of "otool", so it can be a program name with args.
  6880. set dummy otool; ac_word=$2
  6881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6882. printf %s "checking for $ac_word... " >&6; }
  6883. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6884. then :
  6885. printf %s "(cached) " >&6
  6886. else $as_nop
  6887. if test -n "$ac_ct_OTOOL"; then
  6888. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6889. else
  6890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6891. for as_dir in $PATH
  6892. do
  6893. IFS=$as_save_IFS
  6894. case $as_dir in #(((
  6895. '') as_dir=./ ;;
  6896. */) ;;
  6897. *) as_dir=$as_dir/ ;;
  6898. esac
  6899. for ac_exec_ext in '' $ac_executable_extensions; do
  6900. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6901. ac_cv_prog_ac_ct_OTOOL="otool"
  6902. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6903. break 2
  6904. fi
  6905. done
  6906. done
  6907. IFS=$as_save_IFS
  6908. fi
  6909. fi
  6910. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6911. if test -n "$ac_ct_OTOOL"; then
  6912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6913. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6914. else
  6915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6916. printf "%s\n" "no" >&6; }
  6917. fi
  6918. if test "x$ac_ct_OTOOL" = x; then
  6919. OTOOL=":"
  6920. else
  6921. case $cross_compiling:$ac_tool_warned in
  6922. yes:)
  6923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6924. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6925. ac_tool_warned=yes ;;
  6926. esac
  6927. OTOOL=$ac_ct_OTOOL
  6928. fi
  6929. else
  6930. OTOOL="$ac_cv_prog_OTOOL"
  6931. fi
  6932. if test -n "$ac_tool_prefix"; then
  6933. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6934. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6936. printf %s "checking for $ac_word... " >&6; }
  6937. if test ${ac_cv_prog_OTOOL64+y}
  6938. then :
  6939. printf %s "(cached) " >&6
  6940. else $as_nop
  6941. if test -n "$OTOOL64"; then
  6942. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6943. else
  6944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6945. for as_dir in $PATH
  6946. do
  6947. IFS=$as_save_IFS
  6948. case $as_dir in #(((
  6949. '') as_dir=./ ;;
  6950. */) ;;
  6951. *) as_dir=$as_dir/ ;;
  6952. esac
  6953. for ac_exec_ext in '' $ac_executable_extensions; do
  6954. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6955. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6956. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6957. break 2
  6958. fi
  6959. done
  6960. done
  6961. IFS=$as_save_IFS
  6962. fi
  6963. fi
  6964. OTOOL64=$ac_cv_prog_OTOOL64
  6965. if test -n "$OTOOL64"; then
  6966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6967. printf "%s\n" "$OTOOL64" >&6; }
  6968. else
  6969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6970. printf "%s\n" "no" >&6; }
  6971. fi
  6972. fi
  6973. if test -z "$ac_cv_prog_OTOOL64"; then
  6974. ac_ct_OTOOL64=$OTOOL64
  6975. # Extract the first word of "otool64", so it can be a program name with args.
  6976. set dummy otool64; ac_word=$2
  6977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6978. printf %s "checking for $ac_word... " >&6; }
  6979. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  6980. then :
  6981. printf %s "(cached) " >&6
  6982. else $as_nop
  6983. if test -n "$ac_ct_OTOOL64"; then
  6984. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6985. else
  6986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6987. for as_dir in $PATH
  6988. do
  6989. IFS=$as_save_IFS
  6990. case $as_dir in #(((
  6991. '') as_dir=./ ;;
  6992. */) ;;
  6993. *) as_dir=$as_dir/ ;;
  6994. esac
  6995. for ac_exec_ext in '' $ac_executable_extensions; do
  6996. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6997. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6998. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6999. break 2
  7000. fi
  7001. done
  7002. done
  7003. IFS=$as_save_IFS
  7004. fi
  7005. fi
  7006. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7007. if test -n "$ac_ct_OTOOL64"; then
  7008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7009. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7010. else
  7011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7012. printf "%s\n" "no" >&6; }
  7013. fi
  7014. if test "x$ac_ct_OTOOL64" = x; then
  7015. OTOOL64=":"
  7016. else
  7017. case $cross_compiling:$ac_tool_warned in
  7018. yes:)
  7019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7020. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7021. ac_tool_warned=yes ;;
  7022. esac
  7023. OTOOL64=$ac_ct_OTOOL64
  7024. fi
  7025. else
  7026. OTOOL64="$ac_cv_prog_OTOOL64"
  7027. fi
  7028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7029. printf %s "checking for -single_module linker flag... " >&6; }
  7030. if test ${lt_cv_apple_cc_single_mod+y}
  7031. then :
  7032. printf %s "(cached) " >&6
  7033. else $as_nop
  7034. lt_cv_apple_cc_single_mod=no
  7035. if test -z "$LT_MULTI_MODULE"; then
  7036. # By default we will add the -single_module flag. You can override
  7037. # by either setting the environment variable LT_MULTI_MODULE
  7038. # non-empty at configure time, or by adding -multi_module to the
  7039. # link flags.
  7040. rm -rf libconftest.dylib*
  7041. echo "int foo(void){return 1;}" > conftest.c
  7042. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7043. -dynamiclib -Wl,-single_module conftest.c" >&5
  7044. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7045. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7046. _lt_result=$?
  7047. # If there is a non-empty error log, and "single_module"
  7048. # appears in it, assume the flag caused a linker warning
  7049. if test -s conftest.err && $GREP single_module conftest.err; then
  7050. cat conftest.err >&5
  7051. # Otherwise, if the output was created with a 0 exit code from
  7052. # the compiler, it worked.
  7053. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7054. lt_cv_apple_cc_single_mod=yes
  7055. else
  7056. cat conftest.err >&5
  7057. fi
  7058. rm -rf libconftest.dylib*
  7059. rm -f conftest.*
  7060. fi
  7061. fi
  7062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7063. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7065. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7066. if test ${lt_cv_ld_exported_symbols_list+y}
  7067. then :
  7068. printf %s "(cached) " >&6
  7069. else $as_nop
  7070. lt_cv_ld_exported_symbols_list=no
  7071. save_LDFLAGS=$LDFLAGS
  7072. echo "_main" > conftest.sym
  7073. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7075. /* end confdefs.h. */
  7076. int
  7077. main (void)
  7078. {
  7079. ;
  7080. return 0;
  7081. }
  7082. _ACEOF
  7083. if ac_fn_c_try_link "$LINENO"
  7084. then :
  7085. lt_cv_ld_exported_symbols_list=yes
  7086. else $as_nop
  7087. lt_cv_ld_exported_symbols_list=no
  7088. fi
  7089. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7090. conftest$ac_exeext conftest.$ac_ext
  7091. LDFLAGS=$save_LDFLAGS
  7092. fi
  7093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7094. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7096. printf %s "checking for -force_load linker flag... " >&6; }
  7097. if test ${lt_cv_ld_force_load+y}
  7098. then :
  7099. printf %s "(cached) " >&6
  7100. else $as_nop
  7101. lt_cv_ld_force_load=no
  7102. cat > conftest.c << _LT_EOF
  7103. int forced_loaded() { return 2;}
  7104. _LT_EOF
  7105. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7106. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7107. echo "$AR cru libconftest.a conftest.o" >&5
  7108. $AR cru libconftest.a conftest.o 2>&5
  7109. echo "$RANLIB libconftest.a" >&5
  7110. $RANLIB libconftest.a 2>&5
  7111. cat > conftest.c << _LT_EOF
  7112. int main() { return 0;}
  7113. _LT_EOF
  7114. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7115. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7116. _lt_result=$?
  7117. if test -s conftest.err && $GREP force_load conftest.err; then
  7118. cat conftest.err >&5
  7119. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7120. lt_cv_ld_force_load=yes
  7121. else
  7122. cat conftest.err >&5
  7123. fi
  7124. rm -f conftest.err libconftest.a conftest conftest.c
  7125. rm -rf conftest.dSYM
  7126. fi
  7127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7128. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7129. case $host_os in
  7130. rhapsody* | darwin1.[012])
  7131. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7132. darwin1.*)
  7133. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7134. darwin*)
  7135. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7136. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7137. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7138. *)
  7139. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7140. esac
  7141. ;;
  7142. esac
  7143. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7144. _lt_dar_single_mod='$single_module'
  7145. fi
  7146. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7147. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7148. else
  7149. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7150. fi
  7151. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7152. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7153. else
  7154. _lt_dsymutil=
  7155. fi
  7156. ;;
  7157. esac
  7158. # func_munge_path_list VARIABLE PATH
  7159. # -----------------------------------
  7160. # VARIABLE is name of variable containing _space_ separated list of
  7161. # directories to be munged by the contents of PATH, which is string
  7162. # having a format:
  7163. # "DIR[:DIR]:"
  7164. # string "DIR[ DIR]" will be prepended to VARIABLE
  7165. # ":DIR[:DIR]"
  7166. # string "DIR[ DIR]" will be appended to VARIABLE
  7167. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7168. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7169. # "DIRA[ DIRA]" will be appended to VARIABLE
  7170. # "DIR[:DIR]"
  7171. # VARIABLE will be replaced by "DIR[ DIR]"
  7172. func_munge_path_list ()
  7173. {
  7174. case x$2 in
  7175. x)
  7176. ;;
  7177. *:)
  7178. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7179. ;;
  7180. x:*)
  7181. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7182. ;;
  7183. *::*)
  7184. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7185. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7186. ;;
  7187. *)
  7188. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7189. ;;
  7190. esac
  7191. }
  7192. ac_header= ac_cache=
  7193. for ac_item in $ac_header_c_list
  7194. do
  7195. if test $ac_cache; then
  7196. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7197. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7198. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7199. fi
  7200. ac_header= ac_cache=
  7201. elif test $ac_header; then
  7202. ac_cache=$ac_item
  7203. else
  7204. ac_header=$ac_item
  7205. fi
  7206. done
  7207. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7208. then :
  7209. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7210. fi
  7211. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7212. "
  7213. if test "x$ac_cv_header_dlfcn_h" = xyes
  7214. then :
  7215. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7216. fi
  7217. # Set options
  7218. enable_win32_dll=yes
  7219. case $host in
  7220. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7221. if test -n "$ac_tool_prefix"; then
  7222. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7223. set dummy ${ac_tool_prefix}as; ac_word=$2
  7224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7225. printf %s "checking for $ac_word... " >&6; }
  7226. if test ${ac_cv_prog_AS+y}
  7227. then :
  7228. printf %s "(cached) " >&6
  7229. else $as_nop
  7230. if test -n "$AS"; then
  7231. ac_cv_prog_AS="$AS" # Let the user override the test.
  7232. else
  7233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7234. for as_dir in $PATH
  7235. do
  7236. IFS=$as_save_IFS
  7237. case $as_dir in #(((
  7238. '') as_dir=./ ;;
  7239. */) ;;
  7240. *) as_dir=$as_dir/ ;;
  7241. esac
  7242. for ac_exec_ext in '' $ac_executable_extensions; do
  7243. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7244. ac_cv_prog_AS="${ac_tool_prefix}as"
  7245. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7246. break 2
  7247. fi
  7248. done
  7249. done
  7250. IFS=$as_save_IFS
  7251. fi
  7252. fi
  7253. AS=$ac_cv_prog_AS
  7254. if test -n "$AS"; then
  7255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7256. printf "%s\n" "$AS" >&6; }
  7257. else
  7258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7259. printf "%s\n" "no" >&6; }
  7260. fi
  7261. fi
  7262. if test -z "$ac_cv_prog_AS"; then
  7263. ac_ct_AS=$AS
  7264. # Extract the first word of "as", so it can be a program name with args.
  7265. set dummy as; ac_word=$2
  7266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7267. printf %s "checking for $ac_word... " >&6; }
  7268. if test ${ac_cv_prog_ac_ct_AS+y}
  7269. then :
  7270. printf %s "(cached) " >&6
  7271. else $as_nop
  7272. if test -n "$ac_ct_AS"; then
  7273. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7274. else
  7275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7276. for as_dir in $PATH
  7277. do
  7278. IFS=$as_save_IFS
  7279. case $as_dir in #(((
  7280. '') as_dir=./ ;;
  7281. */) ;;
  7282. *) as_dir=$as_dir/ ;;
  7283. esac
  7284. for ac_exec_ext in '' $ac_executable_extensions; do
  7285. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7286. ac_cv_prog_ac_ct_AS="as"
  7287. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7288. break 2
  7289. fi
  7290. done
  7291. done
  7292. IFS=$as_save_IFS
  7293. fi
  7294. fi
  7295. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7296. if test -n "$ac_ct_AS"; then
  7297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7298. printf "%s\n" "$ac_ct_AS" >&6; }
  7299. else
  7300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7301. printf "%s\n" "no" >&6; }
  7302. fi
  7303. if test "x$ac_ct_AS" = x; then
  7304. AS="false"
  7305. else
  7306. case $cross_compiling:$ac_tool_warned in
  7307. yes:)
  7308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7309. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7310. ac_tool_warned=yes ;;
  7311. esac
  7312. AS=$ac_ct_AS
  7313. fi
  7314. else
  7315. AS="$ac_cv_prog_AS"
  7316. fi
  7317. if test -n "$ac_tool_prefix"; then
  7318. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7319. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7321. printf %s "checking for $ac_word... " >&6; }
  7322. if test ${ac_cv_prog_DLLTOOL+y}
  7323. then :
  7324. printf %s "(cached) " >&6
  7325. else $as_nop
  7326. if test -n "$DLLTOOL"; then
  7327. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7328. else
  7329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7330. for as_dir in $PATH
  7331. do
  7332. IFS=$as_save_IFS
  7333. case $as_dir in #(((
  7334. '') as_dir=./ ;;
  7335. */) ;;
  7336. *) as_dir=$as_dir/ ;;
  7337. esac
  7338. for ac_exec_ext in '' $ac_executable_extensions; do
  7339. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7340. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7341. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7342. break 2
  7343. fi
  7344. done
  7345. done
  7346. IFS=$as_save_IFS
  7347. fi
  7348. fi
  7349. DLLTOOL=$ac_cv_prog_DLLTOOL
  7350. if test -n "$DLLTOOL"; then
  7351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7352. printf "%s\n" "$DLLTOOL" >&6; }
  7353. else
  7354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7355. printf "%s\n" "no" >&6; }
  7356. fi
  7357. fi
  7358. if test -z "$ac_cv_prog_DLLTOOL"; then
  7359. ac_ct_DLLTOOL=$DLLTOOL
  7360. # Extract the first word of "dlltool", so it can be a program name with args.
  7361. set dummy dlltool; ac_word=$2
  7362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7363. printf %s "checking for $ac_word... " >&6; }
  7364. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7365. then :
  7366. printf %s "(cached) " >&6
  7367. else $as_nop
  7368. if test -n "$ac_ct_DLLTOOL"; then
  7369. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7370. else
  7371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7372. for as_dir in $PATH
  7373. do
  7374. IFS=$as_save_IFS
  7375. case $as_dir in #(((
  7376. '') as_dir=./ ;;
  7377. */) ;;
  7378. *) as_dir=$as_dir/ ;;
  7379. esac
  7380. for ac_exec_ext in '' $ac_executable_extensions; do
  7381. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7382. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7383. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7384. break 2
  7385. fi
  7386. done
  7387. done
  7388. IFS=$as_save_IFS
  7389. fi
  7390. fi
  7391. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7392. if test -n "$ac_ct_DLLTOOL"; then
  7393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7394. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7395. else
  7396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7397. printf "%s\n" "no" >&6; }
  7398. fi
  7399. if test "x$ac_ct_DLLTOOL" = x; then
  7400. DLLTOOL="false"
  7401. else
  7402. case $cross_compiling:$ac_tool_warned in
  7403. yes:)
  7404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7405. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7406. ac_tool_warned=yes ;;
  7407. esac
  7408. DLLTOOL=$ac_ct_DLLTOOL
  7409. fi
  7410. else
  7411. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7412. fi
  7413. if test -n "$ac_tool_prefix"; then
  7414. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7415. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7417. printf %s "checking for $ac_word... " >&6; }
  7418. if test ${ac_cv_prog_OBJDUMP+y}
  7419. then :
  7420. printf %s "(cached) " >&6
  7421. else $as_nop
  7422. if test -n "$OBJDUMP"; then
  7423. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7424. else
  7425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7426. for as_dir in $PATH
  7427. do
  7428. IFS=$as_save_IFS
  7429. case $as_dir in #(((
  7430. '') as_dir=./ ;;
  7431. */) ;;
  7432. *) as_dir=$as_dir/ ;;
  7433. esac
  7434. for ac_exec_ext in '' $ac_executable_extensions; do
  7435. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7436. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7437. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7438. break 2
  7439. fi
  7440. done
  7441. done
  7442. IFS=$as_save_IFS
  7443. fi
  7444. fi
  7445. OBJDUMP=$ac_cv_prog_OBJDUMP
  7446. if test -n "$OBJDUMP"; then
  7447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7448. printf "%s\n" "$OBJDUMP" >&6; }
  7449. else
  7450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7451. printf "%s\n" "no" >&6; }
  7452. fi
  7453. fi
  7454. if test -z "$ac_cv_prog_OBJDUMP"; then
  7455. ac_ct_OBJDUMP=$OBJDUMP
  7456. # Extract the first word of "objdump", so it can be a program name with args.
  7457. set dummy objdump; ac_word=$2
  7458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7459. printf %s "checking for $ac_word... " >&6; }
  7460. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7461. then :
  7462. printf %s "(cached) " >&6
  7463. else $as_nop
  7464. if test -n "$ac_ct_OBJDUMP"; then
  7465. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7466. else
  7467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7468. for as_dir in $PATH
  7469. do
  7470. IFS=$as_save_IFS
  7471. case $as_dir in #(((
  7472. '') as_dir=./ ;;
  7473. */) ;;
  7474. *) as_dir=$as_dir/ ;;
  7475. esac
  7476. for ac_exec_ext in '' $ac_executable_extensions; do
  7477. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7478. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7479. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7480. break 2
  7481. fi
  7482. done
  7483. done
  7484. IFS=$as_save_IFS
  7485. fi
  7486. fi
  7487. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7488. if test -n "$ac_ct_OBJDUMP"; then
  7489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7490. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7491. else
  7492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7493. printf "%s\n" "no" >&6; }
  7494. fi
  7495. if test "x$ac_ct_OBJDUMP" = x; then
  7496. OBJDUMP="false"
  7497. else
  7498. case $cross_compiling:$ac_tool_warned in
  7499. yes:)
  7500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7501. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7502. ac_tool_warned=yes ;;
  7503. esac
  7504. OBJDUMP=$ac_ct_OBJDUMP
  7505. fi
  7506. else
  7507. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7508. fi
  7509. ;;
  7510. esac
  7511. test -z "$AS" && AS=as
  7512. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7513. test -z "$OBJDUMP" && OBJDUMP=objdump
  7514. enable_dlopen=no
  7515. # Check whether --enable-shared was given.
  7516. if test ${enable_shared+y}
  7517. then :
  7518. enableval=$enable_shared; p=${PACKAGE-default}
  7519. case $enableval in
  7520. yes) enable_shared=yes ;;
  7521. no) enable_shared=no ;;
  7522. *)
  7523. enable_shared=no
  7524. # Look at the argument we got. We use all the common list separators.
  7525. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7526. for pkg in $enableval; do
  7527. IFS=$lt_save_ifs
  7528. if test "X$pkg" = "X$p"; then
  7529. enable_shared=yes
  7530. fi
  7531. done
  7532. IFS=$lt_save_ifs
  7533. ;;
  7534. esac
  7535. else $as_nop
  7536. enable_shared=yes
  7537. fi
  7538. # Check whether --enable-static was given.
  7539. if test ${enable_static+y}
  7540. then :
  7541. enableval=$enable_static; p=${PACKAGE-default}
  7542. case $enableval in
  7543. yes) enable_static=yes ;;
  7544. no) enable_static=no ;;
  7545. *)
  7546. enable_static=no
  7547. # Look at the argument we got. We use all the common list separators.
  7548. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7549. for pkg in $enableval; do
  7550. IFS=$lt_save_ifs
  7551. if test "X$pkg" = "X$p"; then
  7552. enable_static=yes
  7553. fi
  7554. done
  7555. IFS=$lt_save_ifs
  7556. ;;
  7557. esac
  7558. else $as_nop
  7559. enable_static=yes
  7560. fi
  7561. # Check whether --with-pic was given.
  7562. if test ${with_pic+y}
  7563. then :
  7564. withval=$with_pic; lt_p=${PACKAGE-default}
  7565. case $withval in
  7566. yes|no) pic_mode=$withval ;;
  7567. *)
  7568. pic_mode=default
  7569. # Look at the argument we got. We use all the common list separators.
  7570. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7571. for lt_pkg in $withval; do
  7572. IFS=$lt_save_ifs
  7573. if test "X$lt_pkg" = "X$lt_p"; then
  7574. pic_mode=yes
  7575. fi
  7576. done
  7577. IFS=$lt_save_ifs
  7578. ;;
  7579. esac
  7580. else $as_nop
  7581. pic_mode=default
  7582. fi
  7583. # Check whether --enable-fast-install was given.
  7584. if test ${enable_fast_install+y}
  7585. then :
  7586. enableval=$enable_fast_install; p=${PACKAGE-default}
  7587. case $enableval in
  7588. yes) enable_fast_install=yes ;;
  7589. no) enable_fast_install=no ;;
  7590. *)
  7591. enable_fast_install=no
  7592. # Look at the argument we got. We use all the common list separators.
  7593. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7594. for pkg in $enableval; do
  7595. IFS=$lt_save_ifs
  7596. if test "X$pkg" = "X$p"; then
  7597. enable_fast_install=yes
  7598. fi
  7599. done
  7600. IFS=$lt_save_ifs
  7601. ;;
  7602. esac
  7603. else $as_nop
  7604. enable_fast_install=yes
  7605. fi
  7606. shared_archive_member_spec=
  7607. case $host,$enable_shared in
  7608. power*-*-aix[5-9]*,yes)
  7609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7610. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7611. # Check whether --with-aix-soname was given.
  7612. if test ${with_aix_soname+y}
  7613. then :
  7614. withval=$with_aix_soname; case $withval in
  7615. aix|svr4|both)
  7616. ;;
  7617. *)
  7618. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7619. ;;
  7620. esac
  7621. lt_cv_with_aix_soname=$with_aix_soname
  7622. else $as_nop
  7623. if test ${lt_cv_with_aix_soname+y}
  7624. then :
  7625. printf %s "(cached) " >&6
  7626. else $as_nop
  7627. lt_cv_with_aix_soname=aix
  7628. fi
  7629. with_aix_soname=$lt_cv_with_aix_soname
  7630. fi
  7631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7632. printf "%s\n" "$with_aix_soname" >&6; }
  7633. if test aix != "$with_aix_soname"; then
  7634. # For the AIX way of multilib, we name the shared archive member
  7635. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7636. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7637. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7638. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7639. if test 64 = "${OBJECT_MODE-32}"; then
  7640. shared_archive_member_spec=shr_64
  7641. else
  7642. shared_archive_member_spec=shr
  7643. fi
  7644. fi
  7645. ;;
  7646. *)
  7647. with_aix_soname=aix
  7648. ;;
  7649. esac
  7650. # This can be used to rebuild libtool when needed
  7651. LIBTOOL_DEPS=$ltmain
  7652. # Always use our own libtool.
  7653. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7654. test -z "$LN_S" && LN_S="ln -s"
  7655. if test -n "${ZSH_VERSION+set}"; then
  7656. setopt NO_GLOB_SUBST
  7657. fi
  7658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7659. printf %s "checking for objdir... " >&6; }
  7660. if test ${lt_cv_objdir+y}
  7661. then :
  7662. printf %s "(cached) " >&6
  7663. else $as_nop
  7664. rm -f .libs 2>/dev/null
  7665. mkdir .libs 2>/dev/null
  7666. if test -d .libs; then
  7667. lt_cv_objdir=.libs
  7668. else
  7669. # MS-DOS does not allow filenames that begin with a dot.
  7670. lt_cv_objdir=_libs
  7671. fi
  7672. rmdir .libs 2>/dev/null
  7673. fi
  7674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7675. printf "%s\n" "$lt_cv_objdir" >&6; }
  7676. objdir=$lt_cv_objdir
  7677. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7678. case $host_os in
  7679. aix3*)
  7680. # AIX sometimes has problems with the GCC collect2 program. For some
  7681. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7682. # vanish in a puff of smoke.
  7683. if test set != "${COLLECT_NAMES+set}"; then
  7684. COLLECT_NAMES=
  7685. export COLLECT_NAMES
  7686. fi
  7687. ;;
  7688. esac
  7689. # Global variables:
  7690. ofile=libtool
  7691. can_build_shared=yes
  7692. # All known linkers require a '.a' archive for static linking (except MSVC,
  7693. # which needs '.lib').
  7694. libext=a
  7695. with_gnu_ld=$lt_cv_prog_gnu_ld
  7696. old_CC=$CC
  7697. old_CFLAGS=$CFLAGS
  7698. # Set sane defaults for various variables
  7699. test -z "$CC" && CC=cc
  7700. test -z "$LTCC" && LTCC=$CC
  7701. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7702. test -z "$LD" && LD=ld
  7703. test -z "$ac_objext" && ac_objext=o
  7704. func_cc_basename $compiler
  7705. cc_basename=$func_cc_basename_result
  7706. # Only perform the check for file, if the check method requires it
  7707. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7708. case $deplibs_check_method in
  7709. file_magic*)
  7710. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7712. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7713. if test ${lt_cv_path_MAGIC_CMD+y}
  7714. then :
  7715. printf %s "(cached) " >&6
  7716. else $as_nop
  7717. case $MAGIC_CMD in
  7718. [\\/*] | ?:[\\/]*)
  7719. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7720. ;;
  7721. *)
  7722. lt_save_MAGIC_CMD=$MAGIC_CMD
  7723. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7724. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7725. for ac_dir in $ac_dummy; do
  7726. IFS=$lt_save_ifs
  7727. test -z "$ac_dir" && ac_dir=.
  7728. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7729. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7730. if test -n "$file_magic_test_file"; then
  7731. case $deplibs_check_method in
  7732. "file_magic "*)
  7733. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7734. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7735. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7736. $EGREP "$file_magic_regex" > /dev/null; then
  7737. :
  7738. else
  7739. cat <<_LT_EOF 1>&2
  7740. *** Warning: the command libtool uses to detect shared libraries,
  7741. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7742. *** The result is that libtool may fail to recognize shared libraries
  7743. *** as such. This will affect the creation of libtool libraries that
  7744. *** depend on shared libraries, but programs linked with such libtool
  7745. *** libraries will work regardless of this problem. Nevertheless, you
  7746. *** may want to report the problem to your system manager and/or to
  7747. *** bug-libtool@gnu.org
  7748. _LT_EOF
  7749. fi ;;
  7750. esac
  7751. fi
  7752. break
  7753. fi
  7754. done
  7755. IFS=$lt_save_ifs
  7756. MAGIC_CMD=$lt_save_MAGIC_CMD
  7757. ;;
  7758. esac
  7759. fi
  7760. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7761. if test -n "$MAGIC_CMD"; then
  7762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7763. printf "%s\n" "$MAGIC_CMD" >&6; }
  7764. else
  7765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7766. printf "%s\n" "no" >&6; }
  7767. fi
  7768. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7769. if test -n "$ac_tool_prefix"; then
  7770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7771. printf %s "checking for file... " >&6; }
  7772. if test ${lt_cv_path_MAGIC_CMD+y}
  7773. then :
  7774. printf %s "(cached) " >&6
  7775. else $as_nop
  7776. case $MAGIC_CMD in
  7777. [\\/*] | ?:[\\/]*)
  7778. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7779. ;;
  7780. *)
  7781. lt_save_MAGIC_CMD=$MAGIC_CMD
  7782. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7783. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7784. for ac_dir in $ac_dummy; do
  7785. IFS=$lt_save_ifs
  7786. test -z "$ac_dir" && ac_dir=.
  7787. if test -f "$ac_dir/file"; then
  7788. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7789. if test -n "$file_magic_test_file"; then
  7790. case $deplibs_check_method in
  7791. "file_magic "*)
  7792. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7793. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7794. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7795. $EGREP "$file_magic_regex" > /dev/null; then
  7796. :
  7797. else
  7798. cat <<_LT_EOF 1>&2
  7799. *** Warning: the command libtool uses to detect shared libraries,
  7800. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7801. *** The result is that libtool may fail to recognize shared libraries
  7802. *** as such. This will affect the creation of libtool libraries that
  7803. *** depend on shared libraries, but programs linked with such libtool
  7804. *** libraries will work regardless of this problem. Nevertheless, you
  7805. *** may want to report the problem to your system manager and/or to
  7806. *** bug-libtool@gnu.org
  7807. _LT_EOF
  7808. fi ;;
  7809. esac
  7810. fi
  7811. break
  7812. fi
  7813. done
  7814. IFS=$lt_save_ifs
  7815. MAGIC_CMD=$lt_save_MAGIC_CMD
  7816. ;;
  7817. esac
  7818. fi
  7819. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7820. if test -n "$MAGIC_CMD"; then
  7821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7822. printf "%s\n" "$MAGIC_CMD" >&6; }
  7823. else
  7824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7825. printf "%s\n" "no" >&6; }
  7826. fi
  7827. else
  7828. MAGIC_CMD=:
  7829. fi
  7830. fi
  7831. fi
  7832. ;;
  7833. esac
  7834. # Use C for the default configuration in the libtool script
  7835. lt_save_CC=$CC
  7836. ac_ext=c
  7837. ac_cpp='$CPP $CPPFLAGS'
  7838. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7839. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7840. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7841. # Source file extension for C test sources.
  7842. ac_ext=c
  7843. # Object file extension for compiled C test sources.
  7844. objext=o
  7845. objext=$objext
  7846. # Code to be used in simple compile tests
  7847. lt_simple_compile_test_code="int some_variable = 0;"
  7848. # Code to be used in simple link tests
  7849. lt_simple_link_test_code='int main(){return(0);}'
  7850. # If no C compiler was specified, use CC.
  7851. LTCC=${LTCC-"$CC"}
  7852. # If no C compiler flags were specified, use CFLAGS.
  7853. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7854. # Allow CC to be a program name with arguments.
  7855. compiler=$CC
  7856. # Save the default compiler, since it gets overwritten when the other
  7857. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7858. compiler_DEFAULT=$CC
  7859. # save warnings/boilerplate of simple test code
  7860. ac_outfile=conftest.$ac_objext
  7861. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7862. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7863. _lt_compiler_boilerplate=`cat conftest.err`
  7864. $RM conftest*
  7865. ac_outfile=conftest.$ac_objext
  7866. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7867. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7868. _lt_linker_boilerplate=`cat conftest.err`
  7869. $RM -r conftest*
  7870. ## CAVEAT EMPTOR:
  7871. ## There is no encapsulation within the following macros, do not change
  7872. ## the running order or otherwise move them around unless you know exactly
  7873. ## what you are doing...
  7874. if test -n "$compiler"; then
  7875. lt_prog_compiler_no_builtin_flag=
  7876. if test yes = "$GCC"; then
  7877. case $cc_basename in
  7878. nvcc*)
  7879. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7880. *)
  7881. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7882. esac
  7883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7884. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7885. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7886. then :
  7887. printf %s "(cached) " >&6
  7888. else $as_nop
  7889. lt_cv_prog_compiler_rtti_exceptions=no
  7890. ac_outfile=conftest.$ac_objext
  7891. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7892. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7893. # Insert the option either (1) after the last *FLAGS variable, or
  7894. # (2) before a word containing "conftest.", or (3) at the end.
  7895. # Note that $ac_compile itself does not contain backslashes and begins
  7896. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7897. # The option is referenced via a variable to avoid confusing sed.
  7898. lt_compile=`echo "$ac_compile" | $SED \
  7899. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7900. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7901. -e 's:$: $lt_compiler_flag:'`
  7902. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7903. (eval "$lt_compile" 2>conftest.err)
  7904. ac_status=$?
  7905. cat conftest.err >&5
  7906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7907. if (exit $ac_status) && test -s "$ac_outfile"; then
  7908. # The compiler can only warn and ignore the option if not recognized
  7909. # So say no if there are warnings other than the usual output.
  7910. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7911. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7912. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7913. lt_cv_prog_compiler_rtti_exceptions=yes
  7914. fi
  7915. fi
  7916. $RM conftest*
  7917. fi
  7918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7919. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7920. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7921. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7922. else
  7923. :
  7924. fi
  7925. fi
  7926. lt_prog_compiler_wl=
  7927. lt_prog_compiler_pic=
  7928. lt_prog_compiler_static=
  7929. if test yes = "$GCC"; then
  7930. lt_prog_compiler_wl='-Wl,'
  7931. lt_prog_compiler_static='-static'
  7932. case $host_os in
  7933. aix*)
  7934. # All AIX code is PIC.
  7935. if test ia64 = "$host_cpu"; then
  7936. # AIX 5 now supports IA64 processor
  7937. lt_prog_compiler_static='-Bstatic'
  7938. fi
  7939. lt_prog_compiler_pic='-fPIC'
  7940. ;;
  7941. amigaos*)
  7942. case $host_cpu in
  7943. powerpc)
  7944. # see comment about AmigaOS4 .so support
  7945. lt_prog_compiler_pic='-fPIC'
  7946. ;;
  7947. m68k)
  7948. # FIXME: we need at least 68020 code to build shared libraries, but
  7949. # adding the '-m68020' flag to GCC prevents building anything better,
  7950. # like '-m68040'.
  7951. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7952. ;;
  7953. esac
  7954. ;;
  7955. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7956. # PIC is the default for these OSes.
  7957. ;;
  7958. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7959. # This hack is so that the source file can tell whether it is being
  7960. # built for inclusion in a dll (and should export symbols for example).
  7961. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7962. # (--disable-auto-import) libraries
  7963. lt_prog_compiler_pic='-DDLL_EXPORT'
  7964. case $host_os in
  7965. os2*)
  7966. lt_prog_compiler_static='$wl-static'
  7967. ;;
  7968. esac
  7969. ;;
  7970. darwin* | rhapsody*)
  7971. # PIC is the default on this platform
  7972. # Common symbols not allowed in MH_DYLIB files
  7973. lt_prog_compiler_pic='-fno-common'
  7974. ;;
  7975. haiku*)
  7976. # PIC is the default for Haiku.
  7977. # The "-static" flag exists, but is broken.
  7978. lt_prog_compiler_static=
  7979. ;;
  7980. hpux*)
  7981. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7982. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7983. # sets the default TLS model and affects inlining.
  7984. case $host_cpu in
  7985. hppa*64*)
  7986. # +Z the default
  7987. ;;
  7988. *)
  7989. lt_prog_compiler_pic='-fPIC'
  7990. ;;
  7991. esac
  7992. ;;
  7993. interix[3-9]*)
  7994. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7995. # Instead, we relocate shared libraries at runtime.
  7996. ;;
  7997. msdosdjgpp*)
  7998. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7999. # on systems that don't support them.
  8000. lt_prog_compiler_can_build_shared=no
  8001. enable_shared=no
  8002. ;;
  8003. *nto* | *qnx*)
  8004. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8005. # it will coredump.
  8006. lt_prog_compiler_pic='-fPIC -shared'
  8007. ;;
  8008. sysv4*MP*)
  8009. if test -d /usr/nec; then
  8010. lt_prog_compiler_pic=-Kconform_pic
  8011. fi
  8012. ;;
  8013. *)
  8014. lt_prog_compiler_pic='-fPIC'
  8015. ;;
  8016. esac
  8017. case $cc_basename in
  8018. nvcc*) # Cuda Compiler Driver 2.2
  8019. lt_prog_compiler_wl='-Xlinker '
  8020. if test -n "$lt_prog_compiler_pic"; then
  8021. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8022. fi
  8023. ;;
  8024. esac
  8025. else
  8026. # PORTME Check for flag to pass linker flags through the system compiler.
  8027. case $host_os in
  8028. aix*)
  8029. lt_prog_compiler_wl='-Wl,'
  8030. if test ia64 = "$host_cpu"; then
  8031. # AIX 5 now supports IA64 processor
  8032. lt_prog_compiler_static='-Bstatic'
  8033. else
  8034. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8035. fi
  8036. ;;
  8037. darwin* | rhapsody*)
  8038. # PIC is the default on this platform
  8039. # Common symbols not allowed in MH_DYLIB files
  8040. lt_prog_compiler_pic='-fno-common'
  8041. case $cc_basename in
  8042. nagfor*)
  8043. # NAG Fortran compiler
  8044. lt_prog_compiler_wl='-Wl,-Wl,,'
  8045. lt_prog_compiler_pic='-PIC'
  8046. lt_prog_compiler_static='-Bstatic'
  8047. ;;
  8048. esac
  8049. ;;
  8050. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8051. # This hack is so that the source file can tell whether it is being
  8052. # built for inclusion in a dll (and should export symbols for example).
  8053. lt_prog_compiler_pic='-DDLL_EXPORT'
  8054. case $host_os in
  8055. os2*)
  8056. lt_prog_compiler_static='$wl-static'
  8057. ;;
  8058. esac
  8059. ;;
  8060. hpux9* | hpux10* | hpux11*)
  8061. lt_prog_compiler_wl='-Wl,'
  8062. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8063. # not for PA HP-UX.
  8064. case $host_cpu in
  8065. hppa*64*|ia64*)
  8066. # +Z the default
  8067. ;;
  8068. *)
  8069. lt_prog_compiler_pic='+Z'
  8070. ;;
  8071. esac
  8072. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8073. lt_prog_compiler_static='$wl-a ${wl}archive'
  8074. ;;
  8075. irix5* | irix6* | nonstopux*)
  8076. lt_prog_compiler_wl='-Wl,'
  8077. # PIC (with -KPIC) is the default.
  8078. lt_prog_compiler_static='-non_shared'
  8079. ;;
  8080. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8081. case $cc_basename in
  8082. # old Intel for x86_64, which still supported -KPIC.
  8083. ecc*)
  8084. lt_prog_compiler_wl='-Wl,'
  8085. lt_prog_compiler_pic='-KPIC'
  8086. lt_prog_compiler_static='-static'
  8087. ;;
  8088. # icc used to be incompatible with GCC.
  8089. # ICC 10 doesn't accept -KPIC any more.
  8090. icc* | ifort*)
  8091. lt_prog_compiler_wl='-Wl,'
  8092. lt_prog_compiler_pic='-fPIC'
  8093. lt_prog_compiler_static='-static'
  8094. ;;
  8095. # Lahey Fortran 8.1.
  8096. lf95*)
  8097. lt_prog_compiler_wl='-Wl,'
  8098. lt_prog_compiler_pic='--shared'
  8099. lt_prog_compiler_static='--static'
  8100. ;;
  8101. nagfor*)
  8102. # NAG Fortran compiler
  8103. lt_prog_compiler_wl='-Wl,-Wl,,'
  8104. lt_prog_compiler_pic='-PIC'
  8105. lt_prog_compiler_static='-Bstatic'
  8106. ;;
  8107. tcc*)
  8108. # Fabrice Bellard et al's Tiny C Compiler
  8109. lt_prog_compiler_wl='-Wl,'
  8110. lt_prog_compiler_pic='-fPIC'
  8111. lt_prog_compiler_static='-static'
  8112. ;;
  8113. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8114. # Portland Group compilers (*not* the Pentium gcc compiler,
  8115. # which looks to be a dead project)
  8116. lt_prog_compiler_wl='-Wl,'
  8117. lt_prog_compiler_pic='-fpic'
  8118. lt_prog_compiler_static='-Bstatic'
  8119. ;;
  8120. ccc*)
  8121. lt_prog_compiler_wl='-Wl,'
  8122. # All Alpha code is PIC.
  8123. lt_prog_compiler_static='-non_shared'
  8124. ;;
  8125. xl* | bgxl* | bgf* | mpixl*)
  8126. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8127. lt_prog_compiler_wl='-Wl,'
  8128. lt_prog_compiler_pic='-qpic'
  8129. lt_prog_compiler_static='-qstaticlink'
  8130. ;;
  8131. *)
  8132. case `$CC -V 2>&1 | sed 5q` in
  8133. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8134. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8135. lt_prog_compiler_pic='-KPIC'
  8136. lt_prog_compiler_static='-Bstatic'
  8137. lt_prog_compiler_wl=''
  8138. ;;
  8139. *Sun\ F* | *Sun*Fortran*)
  8140. lt_prog_compiler_pic='-KPIC'
  8141. lt_prog_compiler_static='-Bstatic'
  8142. lt_prog_compiler_wl='-Qoption ld '
  8143. ;;
  8144. *Sun\ C*)
  8145. # Sun C 5.9
  8146. lt_prog_compiler_pic='-KPIC'
  8147. lt_prog_compiler_static='-Bstatic'
  8148. lt_prog_compiler_wl='-Wl,'
  8149. ;;
  8150. *Intel*\ [CF]*Compiler*)
  8151. lt_prog_compiler_wl='-Wl,'
  8152. lt_prog_compiler_pic='-fPIC'
  8153. lt_prog_compiler_static='-static'
  8154. ;;
  8155. *Portland\ Group*)
  8156. lt_prog_compiler_wl='-Wl,'
  8157. lt_prog_compiler_pic='-fpic'
  8158. lt_prog_compiler_static='-Bstatic'
  8159. ;;
  8160. esac
  8161. ;;
  8162. esac
  8163. ;;
  8164. newsos6)
  8165. lt_prog_compiler_pic='-KPIC'
  8166. lt_prog_compiler_static='-Bstatic'
  8167. ;;
  8168. *nto* | *qnx*)
  8169. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8170. # it will coredump.
  8171. lt_prog_compiler_pic='-fPIC -shared'
  8172. ;;
  8173. osf3* | osf4* | osf5*)
  8174. lt_prog_compiler_wl='-Wl,'
  8175. # All OSF/1 code is PIC.
  8176. lt_prog_compiler_static='-non_shared'
  8177. ;;
  8178. rdos*)
  8179. lt_prog_compiler_static='-non_shared'
  8180. ;;
  8181. solaris*)
  8182. lt_prog_compiler_pic='-KPIC'
  8183. lt_prog_compiler_static='-Bstatic'
  8184. case $cc_basename in
  8185. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8186. lt_prog_compiler_wl='-Qoption ld ';;
  8187. *)
  8188. lt_prog_compiler_wl='-Wl,';;
  8189. esac
  8190. ;;
  8191. sunos4*)
  8192. lt_prog_compiler_wl='-Qoption ld '
  8193. lt_prog_compiler_pic='-PIC'
  8194. lt_prog_compiler_static='-Bstatic'
  8195. ;;
  8196. sysv4 | sysv4.2uw2* | sysv4.3*)
  8197. lt_prog_compiler_wl='-Wl,'
  8198. lt_prog_compiler_pic='-KPIC'
  8199. lt_prog_compiler_static='-Bstatic'
  8200. ;;
  8201. sysv4*MP*)
  8202. if test -d /usr/nec; then
  8203. lt_prog_compiler_pic='-Kconform_pic'
  8204. lt_prog_compiler_static='-Bstatic'
  8205. fi
  8206. ;;
  8207. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8208. lt_prog_compiler_wl='-Wl,'
  8209. lt_prog_compiler_pic='-KPIC'
  8210. lt_prog_compiler_static='-Bstatic'
  8211. ;;
  8212. unicos*)
  8213. lt_prog_compiler_wl='-Wl,'
  8214. lt_prog_compiler_can_build_shared=no
  8215. ;;
  8216. uts4*)
  8217. lt_prog_compiler_pic='-pic'
  8218. lt_prog_compiler_static='-Bstatic'
  8219. ;;
  8220. *)
  8221. lt_prog_compiler_can_build_shared=no
  8222. ;;
  8223. esac
  8224. fi
  8225. case $host_os in
  8226. # For platforms that do not support PIC, -DPIC is meaningless:
  8227. *djgpp*)
  8228. lt_prog_compiler_pic=
  8229. ;;
  8230. *)
  8231. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8232. ;;
  8233. esac
  8234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8235. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8236. if test ${lt_cv_prog_compiler_pic+y}
  8237. then :
  8238. printf %s "(cached) " >&6
  8239. else $as_nop
  8240. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8241. fi
  8242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8243. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8244. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8245. #
  8246. # Check to make sure the PIC flag actually works.
  8247. #
  8248. if test -n "$lt_prog_compiler_pic"; then
  8249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8250. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8251. if test ${lt_cv_prog_compiler_pic_works+y}
  8252. then :
  8253. printf %s "(cached) " >&6
  8254. else $as_nop
  8255. lt_cv_prog_compiler_pic_works=no
  8256. ac_outfile=conftest.$ac_objext
  8257. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8258. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8259. # Insert the option either (1) after the last *FLAGS variable, or
  8260. # (2) before a word containing "conftest.", or (3) at the end.
  8261. # Note that $ac_compile itself does not contain backslashes and begins
  8262. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8263. # The option is referenced via a variable to avoid confusing sed.
  8264. lt_compile=`echo "$ac_compile" | $SED \
  8265. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8266. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8267. -e 's:$: $lt_compiler_flag:'`
  8268. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8269. (eval "$lt_compile" 2>conftest.err)
  8270. ac_status=$?
  8271. cat conftest.err >&5
  8272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8273. if (exit $ac_status) && test -s "$ac_outfile"; then
  8274. # The compiler can only warn and ignore the option if not recognized
  8275. # So say no if there are warnings other than the usual output.
  8276. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8277. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8278. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8279. lt_cv_prog_compiler_pic_works=yes
  8280. fi
  8281. fi
  8282. $RM conftest*
  8283. fi
  8284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8285. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8286. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8287. case $lt_prog_compiler_pic in
  8288. "" | " "*) ;;
  8289. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8290. esac
  8291. else
  8292. lt_prog_compiler_pic=
  8293. lt_prog_compiler_can_build_shared=no
  8294. fi
  8295. fi
  8296. #
  8297. # Check to make sure the static flag actually works.
  8298. #
  8299. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8301. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8302. if test ${lt_cv_prog_compiler_static_works+y}
  8303. then :
  8304. printf %s "(cached) " >&6
  8305. else $as_nop
  8306. lt_cv_prog_compiler_static_works=no
  8307. save_LDFLAGS=$LDFLAGS
  8308. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8309. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8310. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8311. # The linker can only warn and ignore the option if not recognized
  8312. # So say no if there are warnings
  8313. if test -s conftest.err; then
  8314. # Append any errors to the config.log.
  8315. cat conftest.err 1>&5
  8316. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8317. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8318. if diff conftest.exp conftest.er2 >/dev/null; then
  8319. lt_cv_prog_compiler_static_works=yes
  8320. fi
  8321. else
  8322. lt_cv_prog_compiler_static_works=yes
  8323. fi
  8324. fi
  8325. $RM -r conftest*
  8326. LDFLAGS=$save_LDFLAGS
  8327. fi
  8328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8329. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8330. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8331. :
  8332. else
  8333. lt_prog_compiler_static=
  8334. fi
  8335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8336. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8337. if test ${lt_cv_prog_compiler_c_o+y}
  8338. then :
  8339. printf %s "(cached) " >&6
  8340. else $as_nop
  8341. lt_cv_prog_compiler_c_o=no
  8342. $RM -r conftest 2>/dev/null
  8343. mkdir conftest
  8344. cd conftest
  8345. mkdir out
  8346. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8347. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8348. # Insert the option either (1) after the last *FLAGS variable, or
  8349. # (2) before a word containing "conftest.", or (3) at the end.
  8350. # Note that $ac_compile itself does not contain backslashes and begins
  8351. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8352. lt_compile=`echo "$ac_compile" | $SED \
  8353. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8354. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8355. -e 's:$: $lt_compiler_flag:'`
  8356. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8357. (eval "$lt_compile" 2>out/conftest.err)
  8358. ac_status=$?
  8359. cat out/conftest.err >&5
  8360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8361. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8362. then
  8363. # The compiler can only warn and ignore the option if not recognized
  8364. # So say no if there are warnings
  8365. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8366. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8367. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8368. lt_cv_prog_compiler_c_o=yes
  8369. fi
  8370. fi
  8371. chmod u+w . 2>&5
  8372. $RM conftest*
  8373. # SGI C++ compiler will create directory out/ii_files/ for
  8374. # template instantiation
  8375. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8376. $RM out/* && rmdir out
  8377. cd ..
  8378. $RM -r conftest
  8379. $RM conftest*
  8380. fi
  8381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8382. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8384. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8385. if test ${lt_cv_prog_compiler_c_o+y}
  8386. then :
  8387. printf %s "(cached) " >&6
  8388. else $as_nop
  8389. lt_cv_prog_compiler_c_o=no
  8390. $RM -r conftest 2>/dev/null
  8391. mkdir conftest
  8392. cd conftest
  8393. mkdir out
  8394. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8395. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8396. # Insert the option either (1) after the last *FLAGS variable, or
  8397. # (2) before a word containing "conftest.", or (3) at the end.
  8398. # Note that $ac_compile itself does not contain backslashes and begins
  8399. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8400. lt_compile=`echo "$ac_compile" | $SED \
  8401. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8402. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8403. -e 's:$: $lt_compiler_flag:'`
  8404. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8405. (eval "$lt_compile" 2>out/conftest.err)
  8406. ac_status=$?
  8407. cat out/conftest.err >&5
  8408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8409. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8410. then
  8411. # The compiler can only warn and ignore the option if not recognized
  8412. # So say no if there are warnings
  8413. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8414. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8415. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8416. lt_cv_prog_compiler_c_o=yes
  8417. fi
  8418. fi
  8419. chmod u+w . 2>&5
  8420. $RM conftest*
  8421. # SGI C++ compiler will create directory out/ii_files/ for
  8422. # template instantiation
  8423. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8424. $RM out/* && rmdir out
  8425. cd ..
  8426. $RM -r conftest
  8427. $RM conftest*
  8428. fi
  8429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8430. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8431. hard_links=nottested
  8432. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8433. # do not overwrite the value of need_locks provided by the user
  8434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8435. printf %s "checking if we can lock with hard links... " >&6; }
  8436. hard_links=yes
  8437. $RM conftest*
  8438. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8439. touch conftest.a
  8440. ln conftest.a conftest.b 2>&5 || hard_links=no
  8441. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8443. printf "%s\n" "$hard_links" >&6; }
  8444. if test no = "$hard_links"; then
  8445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8446. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8447. need_locks=warn
  8448. fi
  8449. else
  8450. need_locks=no
  8451. fi
  8452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8453. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8454. runpath_var=
  8455. allow_undefined_flag=
  8456. always_export_symbols=no
  8457. archive_cmds=
  8458. archive_expsym_cmds=
  8459. compiler_needs_object=no
  8460. enable_shared_with_static_runtimes=no
  8461. export_dynamic_flag_spec=
  8462. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8463. hardcode_automatic=no
  8464. hardcode_direct=no
  8465. hardcode_direct_absolute=no
  8466. hardcode_libdir_flag_spec=
  8467. hardcode_libdir_separator=
  8468. hardcode_minus_L=no
  8469. hardcode_shlibpath_var=unsupported
  8470. inherit_rpath=no
  8471. link_all_deplibs=unknown
  8472. module_cmds=
  8473. module_expsym_cmds=
  8474. old_archive_from_new_cmds=
  8475. old_archive_from_expsyms_cmds=
  8476. thread_safe_flag_spec=
  8477. whole_archive_flag_spec=
  8478. # include_expsyms should be a list of space-separated symbols to be *always*
  8479. # included in the symbol list
  8480. include_expsyms=
  8481. # exclude_expsyms can be an extended regexp of symbols to exclude
  8482. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8483. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8484. # as well as any symbol that contains 'd'.
  8485. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8486. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8487. # platforms (ab)use it in PIC code, but their linkers get confused if
  8488. # the symbol is explicitly referenced. Since portable code cannot
  8489. # rely on this symbol name, it's probably fine to never include it in
  8490. # preloaded symbol tables.
  8491. # Exclude shared library initialization/finalization symbols.
  8492. extract_expsyms_cmds=
  8493. case $host_os in
  8494. cygwin* | mingw* | pw32* | cegcc*)
  8495. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8496. # When not using gcc, we currently assume that we are using
  8497. # Microsoft Visual C++.
  8498. if test yes != "$GCC"; then
  8499. with_gnu_ld=no
  8500. fi
  8501. ;;
  8502. interix*)
  8503. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8504. with_gnu_ld=yes
  8505. ;;
  8506. openbsd* | bitrig*)
  8507. with_gnu_ld=no
  8508. ;;
  8509. esac
  8510. ld_shlibs=yes
  8511. # On some targets, GNU ld is compatible enough with the native linker
  8512. # that we're better off using the native interface for both.
  8513. lt_use_gnu_ld_interface=no
  8514. if test yes = "$with_gnu_ld"; then
  8515. case $host_os in
  8516. aix*)
  8517. # The AIX port of GNU ld has always aspired to compatibility
  8518. # with the native linker. However, as the warning in the GNU ld
  8519. # block says, versions before 2.19.5* couldn't really create working
  8520. # shared libraries, regardless of the interface used.
  8521. case `$LD -v 2>&1` in
  8522. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8523. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8524. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8525. *)
  8526. lt_use_gnu_ld_interface=yes
  8527. ;;
  8528. esac
  8529. ;;
  8530. *)
  8531. lt_use_gnu_ld_interface=yes
  8532. ;;
  8533. esac
  8534. fi
  8535. if test yes = "$lt_use_gnu_ld_interface"; then
  8536. # If archive_cmds runs LD, not CC, wlarc should be empty
  8537. wlarc='$wl'
  8538. # Set some defaults for GNU ld with shared library support. These
  8539. # are reset later if shared libraries are not supported. Putting them
  8540. # here allows them to be overridden if necessary.
  8541. runpath_var=LD_RUN_PATH
  8542. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8543. export_dynamic_flag_spec='$wl--export-dynamic'
  8544. # ancient GNU ld didn't support --whole-archive et. al.
  8545. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8546. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8547. else
  8548. whole_archive_flag_spec=
  8549. fi
  8550. supports_anon_versioning=no
  8551. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8552. *GNU\ gold*) supports_anon_versioning=yes ;;
  8553. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8554. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8555. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8556. *\ 2.11.*) ;; # other 2.11 versions
  8557. *) supports_anon_versioning=yes ;;
  8558. esac
  8559. # See if GNU ld supports shared libraries.
  8560. case $host_os in
  8561. aix[3-9]*)
  8562. # On AIX/PPC, the GNU linker is very broken
  8563. if test ia64 != "$host_cpu"; then
  8564. ld_shlibs=no
  8565. cat <<_LT_EOF 1>&2
  8566. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8567. *** to be unable to reliably create shared libraries on AIX.
  8568. *** Therefore, libtool is disabling shared libraries support. If you
  8569. *** really care for shared libraries, you may want to install binutils
  8570. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8571. *** You will then need to restart the configuration process.
  8572. _LT_EOF
  8573. fi
  8574. ;;
  8575. amigaos*)
  8576. case $host_cpu in
  8577. powerpc)
  8578. # see comment about AmigaOS4 .so support
  8579. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8580. archive_expsym_cmds=''
  8581. ;;
  8582. m68k)
  8583. 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)'
  8584. hardcode_libdir_flag_spec='-L$libdir'
  8585. hardcode_minus_L=yes
  8586. ;;
  8587. esac
  8588. ;;
  8589. beos*)
  8590. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8591. allow_undefined_flag=unsupported
  8592. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8593. # support --undefined. This deserves some investigation. FIXME
  8594. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8595. else
  8596. ld_shlibs=no
  8597. fi
  8598. ;;
  8599. cygwin* | mingw* | pw32* | cegcc*)
  8600. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8601. # as there is no search path for DLLs.
  8602. hardcode_libdir_flag_spec='-L$libdir'
  8603. export_dynamic_flag_spec='$wl--export-all-symbols'
  8604. allow_undefined_flag=unsupported
  8605. always_export_symbols=no
  8606. enable_shared_with_static_runtimes=yes
  8607. 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'
  8608. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8609. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8610. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8611. # If the export-symbols file already is a .def file, use it as
  8612. # is; otherwise, prepend EXPORTS...
  8613. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8614. cp $export_symbols $output_objdir/$soname.def;
  8615. else
  8616. echo EXPORTS > $output_objdir/$soname.def;
  8617. cat $export_symbols >> $output_objdir/$soname.def;
  8618. fi~
  8619. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8620. else
  8621. ld_shlibs=no
  8622. fi
  8623. ;;
  8624. haiku*)
  8625. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8626. link_all_deplibs=yes
  8627. ;;
  8628. os2*)
  8629. hardcode_libdir_flag_spec='-L$libdir'
  8630. hardcode_minus_L=yes
  8631. allow_undefined_flag=unsupported
  8632. shrext_cmds=.dll
  8633. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8634. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8635. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8636. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8637. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8638. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8639. emximp -o $lib $output_objdir/$libname.def'
  8640. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8641. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8642. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8643. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8644. prefix_cmds="$SED"~
  8645. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8646. prefix_cmds="$prefix_cmds -e 1d";
  8647. fi~
  8648. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8649. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8650. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8651. emximp -o $lib $output_objdir/$libname.def'
  8652. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8653. enable_shared_with_static_runtimes=yes
  8654. file_list_spec='@'
  8655. ;;
  8656. interix[3-9]*)
  8657. hardcode_direct=no
  8658. hardcode_shlibpath_var=no
  8659. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8660. export_dynamic_flag_spec='$wl-E'
  8661. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8662. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8663. # default) and relocated if they conflict, which is a slow very memory
  8664. # consuming and fragmenting process. To avoid this, we pick a random,
  8665. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8666. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8667. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8668. 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'
  8669. ;;
  8670. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8671. tmp_diet=no
  8672. if test linux-dietlibc = "$host_os"; then
  8673. case $cc_basename in
  8674. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8675. esac
  8676. fi
  8677. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8678. && test no = "$tmp_diet"
  8679. then
  8680. tmp_addflag=' $pic_flag'
  8681. tmp_sharedflag='-shared'
  8682. case $cc_basename,$host_cpu in
  8683. pgcc*) # Portland Group C compiler
  8684. 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'
  8685. tmp_addflag=' $pic_flag'
  8686. ;;
  8687. pgf77* | pgf90* | pgf95* | pgfortran*)
  8688. # Portland Group f77 and f90 compilers
  8689. 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'
  8690. tmp_addflag=' $pic_flag -Mnomain' ;;
  8691. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8692. tmp_addflag=' -i_dynamic' ;;
  8693. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8694. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8695. ifc* | ifort*) # Intel Fortran compiler
  8696. tmp_addflag=' -nofor_main' ;;
  8697. lf95*) # Lahey Fortran 8.1
  8698. whole_archive_flag_spec=
  8699. tmp_sharedflag='--shared' ;;
  8700. nagfor*) # NAGFOR 5.3
  8701. tmp_sharedflag='-Wl,-shared' ;;
  8702. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8703. tmp_sharedflag='-qmkshrobj'
  8704. tmp_addflag= ;;
  8705. nvcc*) # Cuda Compiler Driver 2.2
  8706. 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'
  8707. compiler_needs_object=yes
  8708. ;;
  8709. esac
  8710. case `$CC -V 2>&1 | sed 5q` in
  8711. *Sun\ C*) # Sun C 5.9
  8712. 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'
  8713. compiler_needs_object=yes
  8714. tmp_sharedflag='-G' ;;
  8715. *Sun\ F*) # Sun Fortran 8.3
  8716. tmp_sharedflag='-G' ;;
  8717. esac
  8718. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8719. if test yes = "$supports_anon_versioning"; then
  8720. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8721. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8722. echo "local: *; };" >> $output_objdir/$libname.ver~
  8723. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8724. fi
  8725. case $cc_basename in
  8726. tcc*)
  8727. export_dynamic_flag_spec='-rdynamic'
  8728. ;;
  8729. xlf* | bgf* | bgxlf* | mpixlf*)
  8730. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8731. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8732. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8733. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8734. if test yes = "$supports_anon_versioning"; then
  8735. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8736. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8737. echo "local: *; };" >> $output_objdir/$libname.ver~
  8738. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8739. fi
  8740. ;;
  8741. esac
  8742. else
  8743. ld_shlibs=no
  8744. fi
  8745. ;;
  8746. netbsd*)
  8747. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8748. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8749. wlarc=
  8750. else
  8751. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8752. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8753. fi
  8754. ;;
  8755. solaris*)
  8756. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8757. ld_shlibs=no
  8758. cat <<_LT_EOF 1>&2
  8759. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8760. *** create shared libraries on Solaris systems. Therefore, libtool
  8761. *** is disabling shared libraries support. We urge you to upgrade GNU
  8762. *** binutils to release 2.9.1 or newer. Another option is to modify
  8763. *** your PATH or compiler configuration so that the native linker is
  8764. *** used, and then restart.
  8765. _LT_EOF
  8766. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8767. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8768. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8769. else
  8770. ld_shlibs=no
  8771. fi
  8772. ;;
  8773. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8774. case `$LD -v 2>&1` in
  8775. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8776. ld_shlibs=no
  8777. cat <<_LT_EOF 1>&2
  8778. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8779. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8780. *** is disabling shared libraries support. We urge you to upgrade GNU
  8781. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8782. *** your PATH or compiler configuration so that the native linker is
  8783. *** used, and then restart.
  8784. _LT_EOF
  8785. ;;
  8786. *)
  8787. # For security reasons, it is highly recommended that you always
  8788. # use absolute paths for naming shared libraries, and exclude the
  8789. # DT_RUNPATH tag from executables and libraries. But doing so
  8790. # requires that you compile everything twice, which is a pain.
  8791. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8792. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8793. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8794. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8795. else
  8796. ld_shlibs=no
  8797. fi
  8798. ;;
  8799. esac
  8800. ;;
  8801. sunos4*)
  8802. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8803. wlarc=
  8804. hardcode_direct=yes
  8805. hardcode_shlibpath_var=no
  8806. ;;
  8807. *)
  8808. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8809. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8810. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8811. else
  8812. ld_shlibs=no
  8813. fi
  8814. ;;
  8815. esac
  8816. if test no = "$ld_shlibs"; then
  8817. runpath_var=
  8818. hardcode_libdir_flag_spec=
  8819. export_dynamic_flag_spec=
  8820. whole_archive_flag_spec=
  8821. fi
  8822. else
  8823. # PORTME fill in a description of your system's linker (not GNU ld)
  8824. case $host_os in
  8825. aix3*)
  8826. allow_undefined_flag=unsupported
  8827. always_export_symbols=yes
  8828. 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'
  8829. # Note: this linker hardcodes the directories in LIBPATH if there
  8830. # are no directories specified by -L.
  8831. hardcode_minus_L=yes
  8832. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8833. # Neither direct hardcoding nor static linking is supported with a
  8834. # broken collect2.
  8835. hardcode_direct=unsupported
  8836. fi
  8837. ;;
  8838. aix[4-9]*)
  8839. if test ia64 = "$host_cpu"; then
  8840. # On IA64, the linker does run time linking by default, so we don't
  8841. # have to do anything special.
  8842. aix_use_runtimelinking=no
  8843. exp_sym_flag='-Bexport'
  8844. no_entry_flag=
  8845. else
  8846. # If we're using GNU nm, then we don't want the "-C" option.
  8847. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8848. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8849. # weak defined symbols like other global defined symbols, whereas
  8850. # GNU nm marks them as "W".
  8851. # While the 'weak' keyword is ignored in the Export File, we need
  8852. # it in the Import File for the 'aix-soname' feature, so we have
  8853. # to replace the "-B" option with "-P" for AIX nm.
  8854. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8855. 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'
  8856. else
  8857. 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'
  8858. fi
  8859. aix_use_runtimelinking=no
  8860. # Test if we are trying to use run time linking or normal
  8861. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8862. # have runtime linking enabled, and use it for executables.
  8863. # For shared libraries, we enable/disable runtime linking
  8864. # depending on the kind of the shared library created -
  8865. # when "with_aix_soname,aix_use_runtimelinking" is:
  8866. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8867. # "aix,yes" lib.so shared, rtl:yes, for executables
  8868. # lib.a static archive
  8869. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8870. # lib.a(lib.so.V) shared, rtl:no, for executables
  8871. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8872. # lib.a(lib.so.V) shared, rtl:no
  8873. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8874. # lib.a static archive
  8875. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8876. for ld_flag in $LDFLAGS; do
  8877. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8878. aix_use_runtimelinking=yes
  8879. break
  8880. fi
  8881. done
  8882. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8883. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8884. # so we don't have lib.a shared libs to link our executables.
  8885. # We have to force runtime linking in this case.
  8886. aix_use_runtimelinking=yes
  8887. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8888. fi
  8889. ;;
  8890. esac
  8891. exp_sym_flag='-bexport'
  8892. no_entry_flag='-bnoentry'
  8893. fi
  8894. # When large executables or shared objects are built, AIX ld can
  8895. # have problems creating the table of contents. If linking a library
  8896. # or program results in "error TOC overflow" add -mminimal-toc to
  8897. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8898. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8899. archive_cmds=''
  8900. hardcode_direct=yes
  8901. hardcode_direct_absolute=yes
  8902. hardcode_libdir_separator=':'
  8903. link_all_deplibs=yes
  8904. file_list_spec='$wl-f,'
  8905. case $with_aix_soname,$aix_use_runtimelinking in
  8906. aix,*) ;; # traditional, no import file
  8907. svr4,* | *,yes) # use import file
  8908. # The Import File defines what to hardcode.
  8909. hardcode_direct=no
  8910. hardcode_direct_absolute=no
  8911. ;;
  8912. esac
  8913. if test yes = "$GCC"; then
  8914. case $host_os in aix4.[012]|aix4.[012].*)
  8915. # We only want to do this on AIX 4.2 and lower, the check
  8916. # below for broken collect2 doesn't work under 4.3+
  8917. collect2name=`$CC -print-prog-name=collect2`
  8918. if test -f "$collect2name" &&
  8919. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8920. then
  8921. # We have reworked collect2
  8922. :
  8923. else
  8924. # We have old collect2
  8925. hardcode_direct=unsupported
  8926. # It fails to find uninstalled libraries when the uninstalled
  8927. # path is not listed in the libpath. Setting hardcode_minus_L
  8928. # to unsupported forces relinking
  8929. hardcode_minus_L=yes
  8930. hardcode_libdir_flag_spec='-L$libdir'
  8931. hardcode_libdir_separator=
  8932. fi
  8933. ;;
  8934. esac
  8935. shared_flag='-shared'
  8936. if test yes = "$aix_use_runtimelinking"; then
  8937. shared_flag="$shared_flag "'$wl-G'
  8938. fi
  8939. # Need to ensure runtime linking is disabled for the traditional
  8940. # shared library, or the linker may eventually find shared libraries
  8941. # /with/ Import File - we do not want to mix them.
  8942. shared_flag_aix='-shared'
  8943. shared_flag_svr4='-shared $wl-G'
  8944. else
  8945. # not using gcc
  8946. if test ia64 = "$host_cpu"; then
  8947. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8948. # chokes on -Wl,-G. The following line is correct:
  8949. shared_flag='-G'
  8950. else
  8951. if test yes = "$aix_use_runtimelinking"; then
  8952. shared_flag='$wl-G'
  8953. else
  8954. shared_flag='$wl-bM:SRE'
  8955. fi
  8956. shared_flag_aix='$wl-bM:SRE'
  8957. shared_flag_svr4='$wl-G'
  8958. fi
  8959. fi
  8960. export_dynamic_flag_spec='$wl-bexpall'
  8961. # It seems that -bexpall does not export symbols beginning with
  8962. # underscore (_), so it is better to generate a list of symbols to export.
  8963. always_export_symbols=yes
  8964. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8965. # Warning - without using the other runtime loading flags (-brtl),
  8966. # -berok will link without error, but may produce a broken library.
  8967. allow_undefined_flag='-berok'
  8968. # Determine the default libpath from the value encoded in an
  8969. # empty executable.
  8970. if test set = "${lt_cv_aix_libpath+set}"; then
  8971. aix_libpath=$lt_cv_aix_libpath
  8972. else
  8973. if test ${lt_cv_aix_libpath_+y}
  8974. then :
  8975. printf %s "(cached) " >&6
  8976. else $as_nop
  8977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8978. /* end confdefs.h. */
  8979. int
  8980. main (void)
  8981. {
  8982. ;
  8983. return 0;
  8984. }
  8985. _ACEOF
  8986. if ac_fn_c_try_link "$LINENO"
  8987. then :
  8988. lt_aix_libpath_sed='
  8989. /Import File Strings/,/^$/ {
  8990. /^0/ {
  8991. s/^0 *\([^ ]*\) *$/\1/
  8992. p
  8993. }
  8994. }'
  8995. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8996. # Check for a 64-bit object if we didn't find anything.
  8997. if test -z "$lt_cv_aix_libpath_"; then
  8998. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8999. fi
  9000. fi
  9001. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9002. conftest$ac_exeext conftest.$ac_ext
  9003. if test -z "$lt_cv_aix_libpath_"; then
  9004. lt_cv_aix_libpath_=/usr/lib:/lib
  9005. fi
  9006. fi
  9007. aix_libpath=$lt_cv_aix_libpath_
  9008. fi
  9009. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9010. 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
  9011. else
  9012. if test ia64 = "$host_cpu"; then
  9013. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9014. allow_undefined_flag="-z nodefs"
  9015. 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"
  9016. else
  9017. # Determine the default libpath from the value encoded in an
  9018. # empty executable.
  9019. if test set = "${lt_cv_aix_libpath+set}"; then
  9020. aix_libpath=$lt_cv_aix_libpath
  9021. else
  9022. if test ${lt_cv_aix_libpath_+y}
  9023. then :
  9024. printf %s "(cached) " >&6
  9025. else $as_nop
  9026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9027. /* end confdefs.h. */
  9028. int
  9029. main (void)
  9030. {
  9031. ;
  9032. return 0;
  9033. }
  9034. _ACEOF
  9035. if ac_fn_c_try_link "$LINENO"
  9036. then :
  9037. lt_aix_libpath_sed='
  9038. /Import File Strings/,/^$/ {
  9039. /^0/ {
  9040. s/^0 *\([^ ]*\) *$/\1/
  9041. p
  9042. }
  9043. }'
  9044. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9045. # Check for a 64-bit object if we didn't find anything.
  9046. if test -z "$lt_cv_aix_libpath_"; then
  9047. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9048. fi
  9049. fi
  9050. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9051. conftest$ac_exeext conftest.$ac_ext
  9052. if test -z "$lt_cv_aix_libpath_"; then
  9053. lt_cv_aix_libpath_=/usr/lib:/lib
  9054. fi
  9055. fi
  9056. aix_libpath=$lt_cv_aix_libpath_
  9057. fi
  9058. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9059. # Warning - without using the other run time loading flags,
  9060. # -berok will link without error, but may produce a broken library.
  9061. no_undefined_flag=' $wl-bernotok'
  9062. allow_undefined_flag=' $wl-berok'
  9063. if test yes = "$with_gnu_ld"; then
  9064. # We only use this code for GNU lds that support --whole-archive.
  9065. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9066. else
  9067. # Exported symbols can be pulled into shared objects from archives
  9068. whole_archive_flag_spec='$convenience'
  9069. fi
  9070. archive_cmds_need_lc=yes
  9071. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9072. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9073. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9074. if test svr4 != "$with_aix_soname"; then
  9075. # This is similar to how AIX traditionally builds its shared libraries.
  9076. 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'
  9077. fi
  9078. if test aix != "$with_aix_soname"; then
  9079. 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'
  9080. else
  9081. # used by -dlpreopen to get the symbols
  9082. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9083. fi
  9084. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9085. fi
  9086. fi
  9087. ;;
  9088. amigaos*)
  9089. case $host_cpu in
  9090. powerpc)
  9091. # see comment about AmigaOS4 .so support
  9092. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9093. archive_expsym_cmds=''
  9094. ;;
  9095. m68k)
  9096. 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)'
  9097. hardcode_libdir_flag_spec='-L$libdir'
  9098. hardcode_minus_L=yes
  9099. ;;
  9100. esac
  9101. ;;
  9102. bsdi[45]*)
  9103. export_dynamic_flag_spec=-rdynamic
  9104. ;;
  9105. cygwin* | mingw* | pw32* | cegcc*)
  9106. # When not using gcc, we currently assume that we are using
  9107. # Microsoft Visual C++.
  9108. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9109. # no search path for DLLs.
  9110. case $cc_basename in
  9111. cl*)
  9112. # Native MSVC
  9113. hardcode_libdir_flag_spec=' '
  9114. allow_undefined_flag=unsupported
  9115. always_export_symbols=yes
  9116. file_list_spec='@'
  9117. # Tell ltmain to make .lib files, not .a files.
  9118. libext=lib
  9119. # Tell ltmain to make .dll files, not .so files.
  9120. shrext_cmds=.dll
  9121. # FIXME: Setting linknames here is a bad hack.
  9122. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9123. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9124. cp "$export_symbols" "$output_objdir/$soname.def";
  9125. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9126. else
  9127. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9128. fi~
  9129. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9130. linknames='
  9131. # The linker will not automatically build a static lib if we build a DLL.
  9132. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9133. enable_shared_with_static_runtimes=yes
  9134. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9135. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9136. # Don't use ranlib
  9137. old_postinstall_cmds='chmod 644 $oldlib'
  9138. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9139. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9140. case $lt_outputfile in
  9141. *.exe|*.EXE) ;;
  9142. *)
  9143. lt_outputfile=$lt_outputfile.exe
  9144. lt_tool_outputfile=$lt_tool_outputfile.exe
  9145. ;;
  9146. esac~
  9147. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9148. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9149. $RM "$lt_outputfile.manifest";
  9150. fi'
  9151. ;;
  9152. *)
  9153. # Assume MSVC wrapper
  9154. hardcode_libdir_flag_spec=' '
  9155. allow_undefined_flag=unsupported
  9156. # Tell ltmain to make .lib files, not .a files.
  9157. libext=lib
  9158. # Tell ltmain to make .dll files, not .so files.
  9159. shrext_cmds=.dll
  9160. # FIXME: Setting linknames here is a bad hack.
  9161. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9162. # The linker will automatically build a .lib file if we build a DLL.
  9163. old_archive_from_new_cmds='true'
  9164. # FIXME: Should let the user specify the lib program.
  9165. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9166. enable_shared_with_static_runtimes=yes
  9167. ;;
  9168. esac
  9169. ;;
  9170. darwin* | rhapsody*)
  9171. archive_cmds_need_lc=no
  9172. hardcode_direct=no
  9173. hardcode_automatic=yes
  9174. hardcode_shlibpath_var=unsupported
  9175. if test yes = "$lt_cv_ld_force_load"; then
  9176. 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\"`'
  9177. else
  9178. whole_archive_flag_spec=''
  9179. fi
  9180. link_all_deplibs=yes
  9181. allow_undefined_flag=$_lt_dar_allow_undefined
  9182. case $cc_basename in
  9183. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9184. *) _lt_dar_can_shared=$GCC ;;
  9185. esac
  9186. if test yes = "$_lt_dar_can_shared"; then
  9187. output_verbose_link_cmd=func_echo_all
  9188. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9189. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9190. 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"
  9191. 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"
  9192. else
  9193. ld_shlibs=no
  9194. fi
  9195. ;;
  9196. dgux*)
  9197. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9198. hardcode_libdir_flag_spec='-L$libdir'
  9199. hardcode_shlibpath_var=no
  9200. ;;
  9201. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9202. # support. Future versions do this automatically, but an explicit c++rt0.o
  9203. # does not break anything, and helps significantly (at the cost of a little
  9204. # extra space).
  9205. freebsd2.2*)
  9206. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9207. hardcode_libdir_flag_spec='-R$libdir'
  9208. hardcode_direct=yes
  9209. hardcode_shlibpath_var=no
  9210. ;;
  9211. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9212. freebsd2.*)
  9213. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9214. hardcode_direct=yes
  9215. hardcode_minus_L=yes
  9216. hardcode_shlibpath_var=no
  9217. ;;
  9218. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9219. freebsd* | dragonfly* | midnightbsd*)
  9220. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9221. hardcode_libdir_flag_spec='-R$libdir'
  9222. hardcode_direct=yes
  9223. hardcode_shlibpath_var=no
  9224. ;;
  9225. hpux9*)
  9226. if test yes = "$GCC"; then
  9227. 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'
  9228. else
  9229. 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'
  9230. fi
  9231. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9232. hardcode_libdir_separator=:
  9233. hardcode_direct=yes
  9234. # hardcode_minus_L: Not really in the search PATH,
  9235. # but as the default location of the library.
  9236. hardcode_minus_L=yes
  9237. export_dynamic_flag_spec='$wl-E'
  9238. ;;
  9239. hpux10*)
  9240. if test yes,no = "$GCC,$with_gnu_ld"; then
  9241. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9242. else
  9243. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9244. fi
  9245. if test no = "$with_gnu_ld"; then
  9246. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9247. hardcode_libdir_separator=:
  9248. hardcode_direct=yes
  9249. hardcode_direct_absolute=yes
  9250. export_dynamic_flag_spec='$wl-E'
  9251. # hardcode_minus_L: Not really in the search PATH,
  9252. # but as the default location of the library.
  9253. hardcode_minus_L=yes
  9254. fi
  9255. ;;
  9256. hpux11*)
  9257. if test yes,no = "$GCC,$with_gnu_ld"; then
  9258. case $host_cpu in
  9259. hppa*64*)
  9260. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9261. ;;
  9262. ia64*)
  9263. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9264. ;;
  9265. *)
  9266. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9267. ;;
  9268. esac
  9269. else
  9270. case $host_cpu in
  9271. hppa*64*)
  9272. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9273. ;;
  9274. ia64*)
  9275. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9276. ;;
  9277. *)
  9278. # Older versions of the 11.00 compiler do not understand -b yet
  9279. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9281. printf %s "checking if $CC understands -b... " >&6; }
  9282. if test ${lt_cv_prog_compiler__b+y}
  9283. then :
  9284. printf %s "(cached) " >&6
  9285. else $as_nop
  9286. lt_cv_prog_compiler__b=no
  9287. save_LDFLAGS=$LDFLAGS
  9288. LDFLAGS="$LDFLAGS -b"
  9289. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9290. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9291. # The linker can only warn and ignore the option if not recognized
  9292. # So say no if there are warnings
  9293. if test -s conftest.err; then
  9294. # Append any errors to the config.log.
  9295. cat conftest.err 1>&5
  9296. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9297. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9298. if diff conftest.exp conftest.er2 >/dev/null; then
  9299. lt_cv_prog_compiler__b=yes
  9300. fi
  9301. else
  9302. lt_cv_prog_compiler__b=yes
  9303. fi
  9304. fi
  9305. $RM -r conftest*
  9306. LDFLAGS=$save_LDFLAGS
  9307. fi
  9308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9309. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9310. if test yes = "$lt_cv_prog_compiler__b"; then
  9311. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9312. else
  9313. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9314. fi
  9315. ;;
  9316. esac
  9317. fi
  9318. if test no = "$with_gnu_ld"; then
  9319. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9320. hardcode_libdir_separator=:
  9321. case $host_cpu in
  9322. hppa*64*|ia64*)
  9323. hardcode_direct=no
  9324. hardcode_shlibpath_var=no
  9325. ;;
  9326. *)
  9327. hardcode_direct=yes
  9328. hardcode_direct_absolute=yes
  9329. export_dynamic_flag_spec='$wl-E'
  9330. # hardcode_minus_L: Not really in the search PATH,
  9331. # but as the default location of the library.
  9332. hardcode_minus_L=yes
  9333. ;;
  9334. esac
  9335. fi
  9336. ;;
  9337. irix5* | irix6* | nonstopux*)
  9338. if test yes = "$GCC"; then
  9339. 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'
  9340. # Try to use the -exported_symbol ld option, if it does not
  9341. # work, assume that -exports_file does not work either and
  9342. # implicitly export all symbols.
  9343. # This should be the same for all languages, so no per-tag cache variable.
  9344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9345. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9346. if test ${lt_cv_irix_exported_symbol+y}
  9347. then :
  9348. printf %s "(cached) " >&6
  9349. else $as_nop
  9350. save_LDFLAGS=$LDFLAGS
  9351. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9353. /* end confdefs.h. */
  9354. int foo (void) { return 0; }
  9355. _ACEOF
  9356. if ac_fn_c_try_link "$LINENO"
  9357. then :
  9358. lt_cv_irix_exported_symbol=yes
  9359. else $as_nop
  9360. lt_cv_irix_exported_symbol=no
  9361. fi
  9362. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9363. conftest$ac_exeext conftest.$ac_ext
  9364. LDFLAGS=$save_LDFLAGS
  9365. fi
  9366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9367. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9368. if test yes = "$lt_cv_irix_exported_symbol"; then
  9369. 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'
  9370. fi
  9371. else
  9372. 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'
  9373. 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'
  9374. fi
  9375. archive_cmds_need_lc='no'
  9376. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9377. hardcode_libdir_separator=:
  9378. inherit_rpath=yes
  9379. link_all_deplibs=yes
  9380. ;;
  9381. linux*)
  9382. case $cc_basename in
  9383. tcc*)
  9384. # Fabrice Bellard et al's Tiny C Compiler
  9385. ld_shlibs=yes
  9386. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9387. ;;
  9388. esac
  9389. ;;
  9390. netbsd*)
  9391. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9392. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9393. else
  9394. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9395. fi
  9396. hardcode_libdir_flag_spec='-R$libdir'
  9397. hardcode_direct=yes
  9398. hardcode_shlibpath_var=no
  9399. ;;
  9400. newsos6)
  9401. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9402. hardcode_direct=yes
  9403. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9404. hardcode_libdir_separator=:
  9405. hardcode_shlibpath_var=no
  9406. ;;
  9407. *nto* | *qnx*)
  9408. ;;
  9409. openbsd* | bitrig*)
  9410. if test -f /usr/libexec/ld.so; then
  9411. hardcode_direct=yes
  9412. hardcode_shlibpath_var=no
  9413. hardcode_direct_absolute=yes
  9414. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9415. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9416. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9417. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9418. export_dynamic_flag_spec='$wl-E'
  9419. else
  9420. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9421. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9422. fi
  9423. else
  9424. ld_shlibs=no
  9425. fi
  9426. ;;
  9427. os2*)
  9428. hardcode_libdir_flag_spec='-L$libdir'
  9429. hardcode_minus_L=yes
  9430. allow_undefined_flag=unsupported
  9431. shrext_cmds=.dll
  9432. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9433. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9434. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9435. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9436. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9437. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9438. emximp -o $lib $output_objdir/$libname.def'
  9439. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9440. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9441. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9442. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9443. prefix_cmds="$SED"~
  9444. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9445. prefix_cmds="$prefix_cmds -e 1d";
  9446. fi~
  9447. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9448. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9449. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9450. emximp -o $lib $output_objdir/$libname.def'
  9451. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9452. enable_shared_with_static_runtimes=yes
  9453. file_list_spec='@'
  9454. ;;
  9455. osf3*)
  9456. if test yes = "$GCC"; then
  9457. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9458. 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'
  9459. else
  9460. allow_undefined_flag=' -expect_unresolved \*'
  9461. 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'
  9462. fi
  9463. archive_cmds_need_lc='no'
  9464. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9465. hardcode_libdir_separator=:
  9466. ;;
  9467. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9468. if test yes = "$GCC"; then
  9469. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9470. 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'
  9471. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9472. else
  9473. allow_undefined_flag=' -expect_unresolved \*'
  9474. 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'
  9475. 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~
  9476. $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'
  9477. # Both c and cxx compiler support -rpath directly
  9478. hardcode_libdir_flag_spec='-rpath $libdir'
  9479. fi
  9480. archive_cmds_need_lc='no'
  9481. hardcode_libdir_separator=:
  9482. ;;
  9483. solaris*)
  9484. no_undefined_flag=' -z defs'
  9485. if test yes = "$GCC"; then
  9486. wlarc='$wl'
  9487. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9488. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9489. $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'
  9490. else
  9491. case `$CC -V 2>&1` in
  9492. *"Compilers 5.0"*)
  9493. wlarc=''
  9494. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9495. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9496. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9497. ;;
  9498. *)
  9499. wlarc='$wl'
  9500. archive_cmds='$CC -G$allow_undefined_flag -h $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 -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9503. ;;
  9504. esac
  9505. fi
  9506. hardcode_libdir_flag_spec='-R$libdir'
  9507. hardcode_shlibpath_var=no
  9508. case $host_os in
  9509. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9510. *)
  9511. # The compiler driver will combine and reorder linker options,
  9512. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9513. # but is careful enough not to reorder.
  9514. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9515. if test yes = "$GCC"; then
  9516. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9517. else
  9518. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9519. fi
  9520. ;;
  9521. esac
  9522. link_all_deplibs=yes
  9523. ;;
  9524. sunos4*)
  9525. if test sequent = "$host_vendor"; then
  9526. # Use $CC to link under sequent, because it throws in some extra .o
  9527. # files that make .init and .fini sections work.
  9528. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9529. else
  9530. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9531. fi
  9532. hardcode_libdir_flag_spec='-L$libdir'
  9533. hardcode_direct=yes
  9534. hardcode_minus_L=yes
  9535. hardcode_shlibpath_var=no
  9536. ;;
  9537. sysv4)
  9538. case $host_vendor in
  9539. sni)
  9540. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9541. hardcode_direct=yes # is this really true???
  9542. ;;
  9543. siemens)
  9544. ## LD is ld it makes a PLAMLIB
  9545. ## CC just makes a GrossModule.
  9546. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9547. reload_cmds='$CC -r -o $output$reload_objs'
  9548. hardcode_direct=no
  9549. ;;
  9550. motorola)
  9551. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9552. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9553. ;;
  9554. esac
  9555. runpath_var='LD_RUN_PATH'
  9556. hardcode_shlibpath_var=no
  9557. ;;
  9558. sysv4.3*)
  9559. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9560. hardcode_shlibpath_var=no
  9561. export_dynamic_flag_spec='-Bexport'
  9562. ;;
  9563. sysv4*MP*)
  9564. if test -d /usr/nec; then
  9565. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9566. hardcode_shlibpath_var=no
  9567. runpath_var=LD_RUN_PATH
  9568. hardcode_runpath_var=yes
  9569. ld_shlibs=yes
  9570. fi
  9571. ;;
  9572. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9573. no_undefined_flag='$wl-z,text'
  9574. archive_cmds_need_lc=no
  9575. hardcode_shlibpath_var=no
  9576. runpath_var='LD_RUN_PATH'
  9577. if test yes = "$GCC"; then
  9578. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9579. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9580. else
  9581. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9582. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9583. fi
  9584. ;;
  9585. sysv5* | sco3.2v5* | sco5v6*)
  9586. # Note: We CANNOT use -z defs as we might desire, because we do not
  9587. # link with -lc, and that would cause any symbols used from libc to
  9588. # always be unresolved, which means just about no library would
  9589. # ever link correctly. If we're not using GNU ld we use -z text
  9590. # though, which does catch some bad symbols but isn't as heavy-handed
  9591. # as -z defs.
  9592. no_undefined_flag='$wl-z,text'
  9593. allow_undefined_flag='$wl-z,nodefs'
  9594. archive_cmds_need_lc=no
  9595. hardcode_shlibpath_var=no
  9596. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9597. hardcode_libdir_separator=':'
  9598. link_all_deplibs=yes
  9599. export_dynamic_flag_spec='$wl-Bexport'
  9600. runpath_var='LD_RUN_PATH'
  9601. if test yes = "$GCC"; then
  9602. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9603. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9604. else
  9605. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9606. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9607. fi
  9608. ;;
  9609. uts4*)
  9610. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9611. hardcode_libdir_flag_spec='-L$libdir'
  9612. hardcode_shlibpath_var=no
  9613. ;;
  9614. *)
  9615. ld_shlibs=no
  9616. ;;
  9617. esac
  9618. if test sni = "$host_vendor"; then
  9619. case $host in
  9620. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9621. export_dynamic_flag_spec='$wl-Blargedynsym'
  9622. ;;
  9623. esac
  9624. fi
  9625. fi
  9626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9627. printf "%s\n" "$ld_shlibs" >&6; }
  9628. test no = "$ld_shlibs" && can_build_shared=no
  9629. with_gnu_ld=$with_gnu_ld
  9630. #
  9631. # Do we need to explicitly link libc?
  9632. #
  9633. case "x$archive_cmds_need_lc" in
  9634. x|xyes)
  9635. # Assume -lc should be added
  9636. archive_cmds_need_lc=yes
  9637. if test yes,yes = "$GCC,$enable_shared"; then
  9638. case $archive_cmds in
  9639. *'~'*)
  9640. # FIXME: we may have to deal with multi-command sequences.
  9641. ;;
  9642. '$CC '*)
  9643. # Test whether the compiler implicitly links with -lc since on some
  9644. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9645. # to ld, don't add -lc before -lgcc.
  9646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9647. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9648. if test ${lt_cv_archive_cmds_need_lc+y}
  9649. then :
  9650. printf %s "(cached) " >&6
  9651. else $as_nop
  9652. $RM conftest*
  9653. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9654. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9655. (eval $ac_compile) 2>&5
  9656. ac_status=$?
  9657. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9658. test $ac_status = 0; } 2>conftest.err; then
  9659. soname=conftest
  9660. lib=conftest
  9661. libobjs=conftest.$ac_objext
  9662. deplibs=
  9663. wl=$lt_prog_compiler_wl
  9664. pic_flag=$lt_prog_compiler_pic
  9665. compiler_flags=-v
  9666. linker_flags=-v
  9667. verstring=
  9668. output_objdir=.
  9669. libname=conftest
  9670. lt_save_allow_undefined_flag=$allow_undefined_flag
  9671. allow_undefined_flag=
  9672. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9673. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9674. ac_status=$?
  9675. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9676. test $ac_status = 0; }
  9677. then
  9678. lt_cv_archive_cmds_need_lc=no
  9679. else
  9680. lt_cv_archive_cmds_need_lc=yes
  9681. fi
  9682. allow_undefined_flag=$lt_save_allow_undefined_flag
  9683. else
  9684. cat conftest.err 1>&5
  9685. fi
  9686. $RM conftest*
  9687. fi
  9688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9689. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9690. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9691. ;;
  9692. esac
  9693. fi
  9694. ;;
  9695. esac
  9696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9697. printf %s "checking dynamic linker characteristics... " >&6; }
  9698. if test yes = "$GCC"; then
  9699. case $host_os in
  9700. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9701. *) lt_awk_arg='/^libraries:/' ;;
  9702. esac
  9703. case $host_os in
  9704. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9705. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9706. esac
  9707. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9708. case $lt_search_path_spec in
  9709. *\;*)
  9710. # if the path contains ";" then we assume it to be the separator
  9711. # otherwise default to the standard path separator (i.e. ":") - it is
  9712. # assumed that no part of a normal pathname contains ";" but that should
  9713. # okay in the real world where ";" in dirpaths is itself problematic.
  9714. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9715. ;;
  9716. *)
  9717. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9718. ;;
  9719. esac
  9720. # Ok, now we have the path, separated by spaces, we can step through it
  9721. # and add multilib dir if necessary...
  9722. lt_tmp_lt_search_path_spec=
  9723. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9724. # ...but if some path component already ends with the multilib dir we assume
  9725. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9726. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9727. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9728. lt_multi_os_dir=
  9729. ;;
  9730. esac
  9731. for lt_sys_path in $lt_search_path_spec; do
  9732. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9733. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9734. elif test -n "$lt_multi_os_dir"; then
  9735. test -d "$lt_sys_path" && \
  9736. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9737. fi
  9738. done
  9739. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9740. BEGIN {RS = " "; FS = "/|\n";} {
  9741. lt_foo = "";
  9742. lt_count = 0;
  9743. for (lt_i = NF; lt_i > 0; lt_i--) {
  9744. if ($lt_i != "" && $lt_i != ".") {
  9745. if ($lt_i == "..") {
  9746. lt_count++;
  9747. } else {
  9748. if (lt_count == 0) {
  9749. lt_foo = "/" $lt_i lt_foo;
  9750. } else {
  9751. lt_count--;
  9752. }
  9753. }
  9754. }
  9755. }
  9756. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9757. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9758. }'`
  9759. # AWK program above erroneously prepends '/' to C:/dos/paths
  9760. # for these hosts.
  9761. case $host_os in
  9762. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9763. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9764. esac
  9765. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9766. else
  9767. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9768. fi
  9769. library_names_spec=
  9770. libname_spec='lib$name'
  9771. soname_spec=
  9772. shrext_cmds=.so
  9773. postinstall_cmds=
  9774. postuninstall_cmds=
  9775. finish_cmds=
  9776. finish_eval=
  9777. shlibpath_var=
  9778. shlibpath_overrides_runpath=unknown
  9779. version_type=none
  9780. dynamic_linker="$host_os ld.so"
  9781. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9782. need_lib_prefix=unknown
  9783. hardcode_into_libs=no
  9784. # when you set need_version to no, make sure it does not cause -set_version
  9785. # flags to be left without arguments
  9786. need_version=unknown
  9787. case $host_os in
  9788. aix3*)
  9789. version_type=linux # correct to gnu/linux during the next big refactor
  9790. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9791. shlibpath_var=LIBPATH
  9792. # AIX 3 has no versioning support, so we append a major version to the name.
  9793. soname_spec='$libname$release$shared_ext$major'
  9794. ;;
  9795. aix[4-9]*)
  9796. version_type=linux # correct to gnu/linux during the next big refactor
  9797. need_lib_prefix=no
  9798. need_version=no
  9799. hardcode_into_libs=yes
  9800. if test ia64 = "$host_cpu"; then
  9801. # AIX 5 supports IA64
  9802. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9803. shlibpath_var=LD_LIBRARY_PATH
  9804. else
  9805. # With GCC up to 2.95.x, collect2 would create an import file
  9806. # for dependence libraries. The import file would start with
  9807. # the line '#! .'. This would cause the generated library to
  9808. # depend on '.', always an invalid library. This was fixed in
  9809. # development snapshots of GCC prior to 3.0.
  9810. case $host_os in
  9811. aix4 | aix4.[01] | aix4.[01].*)
  9812. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9813. echo ' yes '
  9814. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9815. :
  9816. else
  9817. can_build_shared=no
  9818. fi
  9819. ;;
  9820. esac
  9821. # Using Import Files as archive members, it is possible to support
  9822. # filename-based versioning of shared library archives on AIX. While
  9823. # this would work for both with and without runtime linking, it will
  9824. # prevent static linking of such archives. So we do filename-based
  9825. # shared library versioning with .so extension only, which is used
  9826. # when both runtime linking and shared linking is enabled.
  9827. # Unfortunately, runtime linking may impact performance, so we do
  9828. # not want this to be the default eventually. Also, we use the
  9829. # versioned .so libs for executables only if there is the -brtl
  9830. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9831. # To allow for filename-based versioning support, we need to create
  9832. # libNAME.so.V as an archive file, containing:
  9833. # *) an Import File, referring to the versioned filename of the
  9834. # archive as well as the shared archive member, telling the
  9835. # bitwidth (32 or 64) of that shared object, and providing the
  9836. # list of exported symbols of that shared object, eventually
  9837. # decorated with the 'weak' keyword
  9838. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9839. # it being seen by the linker.
  9840. # At run time we better use the real file rather than another symlink,
  9841. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9842. case $with_aix_soname,$aix_use_runtimelinking in
  9843. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9844. # soname into executable. Probably we can add versioning support to
  9845. # collect2, so additional links can be useful in future.
  9846. aix,yes) # traditional libtool
  9847. dynamic_linker='AIX unversionable lib.so'
  9848. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9849. # instead of lib<name>.a to let people know that these are not
  9850. # typical AIX shared libraries.
  9851. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9852. ;;
  9853. aix,no) # traditional AIX only
  9854. dynamic_linker='AIX lib.a(lib.so.V)'
  9855. # We preserve .a as extension for shared libraries through AIX4.2
  9856. # and later when we are not doing run time linking.
  9857. library_names_spec='$libname$release.a $libname.a'
  9858. soname_spec='$libname$release$shared_ext$major'
  9859. ;;
  9860. svr4,*) # full svr4 only
  9861. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9862. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9863. # We do not specify a path in Import Files, so LIBPATH fires.
  9864. shlibpath_overrides_runpath=yes
  9865. ;;
  9866. *,yes) # both, prefer svr4
  9867. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9868. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9869. # unpreferred sharedlib libNAME.a needs extra handling
  9870. 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"'
  9871. 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"'
  9872. # We do not specify a path in Import Files, so LIBPATH fires.
  9873. shlibpath_overrides_runpath=yes
  9874. ;;
  9875. *,no) # both, prefer aix
  9876. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9877. library_names_spec='$libname$release.a $libname.a'
  9878. soname_spec='$libname$release$shared_ext$major'
  9879. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9880. 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)'
  9881. 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"'
  9882. ;;
  9883. esac
  9884. shlibpath_var=LIBPATH
  9885. fi
  9886. ;;
  9887. amigaos*)
  9888. case $host_cpu in
  9889. powerpc)
  9890. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9891. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9892. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9893. ;;
  9894. m68k)
  9895. library_names_spec='$libname.ixlibrary $libname.a'
  9896. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9897. 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'
  9898. ;;
  9899. esac
  9900. ;;
  9901. beos*)
  9902. library_names_spec='$libname$shared_ext'
  9903. dynamic_linker="$host_os ld.so"
  9904. shlibpath_var=LIBRARY_PATH
  9905. ;;
  9906. bsdi[45]*)
  9907. version_type=linux # correct to gnu/linux during the next big refactor
  9908. need_version=no
  9909. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9910. soname_spec='$libname$release$shared_ext$major'
  9911. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9912. shlibpath_var=LD_LIBRARY_PATH
  9913. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9914. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9915. # the default ld.so.conf also contains /usr/contrib/lib and
  9916. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9917. # libtool to hard-code these into programs
  9918. ;;
  9919. cygwin* | mingw* | pw32* | cegcc*)
  9920. version_type=windows
  9921. shrext_cmds=.dll
  9922. need_version=no
  9923. need_lib_prefix=no
  9924. case $GCC,$cc_basename in
  9925. yes,*)
  9926. # gcc
  9927. library_names_spec='$libname.dll.a'
  9928. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9929. postinstall_cmds='base_file=`basename \$file`~
  9930. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9931. dldir=$destdir/`dirname \$dlpath`~
  9932. test -d \$dldir || mkdir -p \$dldir~
  9933. $install_prog $dir/$dlname \$dldir/$dlname~
  9934. chmod a+x \$dldir/$dlname~
  9935. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9936. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9937. fi'
  9938. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9939. dlpath=$dir/\$dldll~
  9940. $RM \$dlpath'
  9941. shlibpath_overrides_runpath=yes
  9942. case $host_os in
  9943. cygwin*)
  9944. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9945. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9946. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9947. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9948. ;;
  9949. mingw* | cegcc*)
  9950. # MinGW DLLs use traditional 'lib' prefix
  9951. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9952. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9953. ;;
  9954. pw32*)
  9955. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9956. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9957. ;;
  9958. esac
  9959. dynamic_linker='Win32 ld.exe'
  9960. ;;
  9961. *,cl*)
  9962. # Native MSVC
  9963. libname_spec='$name'
  9964. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9965. library_names_spec='$libname.dll.lib'
  9966. case $build_os in
  9967. mingw*)
  9968. sys_lib_search_path_spec=
  9969. lt_save_ifs=$IFS
  9970. IFS=';'
  9971. for lt_path in $LIB
  9972. do
  9973. IFS=$lt_save_ifs
  9974. # Let DOS variable expansion print the short 8.3 style file name.
  9975. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9976. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9977. done
  9978. IFS=$lt_save_ifs
  9979. # Convert to MSYS style.
  9980. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9981. ;;
  9982. cygwin*)
  9983. # Convert to unix form, then to dos form, then back to unix form
  9984. # but this time dos style (no spaces!) so that the unix form looks
  9985. # like /cygdrive/c/PROGRA~1:/cygdr...
  9986. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9987. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9988. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9989. ;;
  9990. *)
  9991. sys_lib_search_path_spec=$LIB
  9992. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9993. # It is most probably a Windows format PATH.
  9994. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9995. else
  9996. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9997. fi
  9998. # FIXME: find the short name or the path components, as spaces are
  9999. # common. (e.g. "Program Files" -> "PROGRA~1")
  10000. ;;
  10001. esac
  10002. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10003. postinstall_cmds='base_file=`basename \$file`~
  10004. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10005. dldir=$destdir/`dirname \$dlpath`~
  10006. test -d \$dldir || mkdir -p \$dldir~
  10007. $install_prog $dir/$dlname \$dldir/$dlname'
  10008. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10009. dlpath=$dir/\$dldll~
  10010. $RM \$dlpath'
  10011. shlibpath_overrides_runpath=yes
  10012. dynamic_linker='Win32 link.exe'
  10013. ;;
  10014. *)
  10015. # Assume MSVC wrapper
  10016. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10017. dynamic_linker='Win32 ld.exe'
  10018. ;;
  10019. esac
  10020. # FIXME: first we should search . and the directory the executable is in
  10021. shlibpath_var=PATH
  10022. ;;
  10023. darwin* | rhapsody*)
  10024. dynamic_linker="$host_os dyld"
  10025. version_type=darwin
  10026. need_lib_prefix=no
  10027. need_version=no
  10028. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10029. soname_spec='$libname$release$major$shared_ext'
  10030. shlibpath_overrides_runpath=yes
  10031. shlibpath_var=DYLD_LIBRARY_PATH
  10032. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10033. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10034. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10035. ;;
  10036. dgux*)
  10037. version_type=linux # correct to gnu/linux during the next big refactor
  10038. need_lib_prefix=no
  10039. need_version=no
  10040. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10041. soname_spec='$libname$release$shared_ext$major'
  10042. shlibpath_var=LD_LIBRARY_PATH
  10043. ;;
  10044. freebsd* | dragonfly* | midnightbsd*)
  10045. # DragonFly does not have aout. When/if they implement a new
  10046. # versioning mechanism, adjust this.
  10047. if test -x /usr/bin/objformat; then
  10048. objformat=`/usr/bin/objformat`
  10049. else
  10050. case $host_os in
  10051. freebsd[23].*) objformat=aout ;;
  10052. *) objformat=elf ;;
  10053. esac
  10054. fi
  10055. version_type=freebsd-$objformat
  10056. case $version_type in
  10057. freebsd-elf*)
  10058. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10059. soname_spec='$libname$release$shared_ext$major'
  10060. need_version=no
  10061. need_lib_prefix=no
  10062. ;;
  10063. freebsd-*)
  10064. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10065. need_version=yes
  10066. ;;
  10067. esac
  10068. shlibpath_var=LD_LIBRARY_PATH
  10069. case $host_os in
  10070. freebsd2.*)
  10071. shlibpath_overrides_runpath=yes
  10072. ;;
  10073. freebsd3.[01]* | freebsdelf3.[01]*)
  10074. shlibpath_overrides_runpath=yes
  10075. hardcode_into_libs=yes
  10076. ;;
  10077. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10078. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10079. shlibpath_overrides_runpath=no
  10080. hardcode_into_libs=yes
  10081. ;;
  10082. *) # from 4.6 on, and DragonFly
  10083. shlibpath_overrides_runpath=yes
  10084. hardcode_into_libs=yes
  10085. ;;
  10086. esac
  10087. ;;
  10088. haiku*)
  10089. version_type=linux # correct to gnu/linux during the next big refactor
  10090. need_lib_prefix=no
  10091. need_version=no
  10092. dynamic_linker="$host_os runtime_loader"
  10093. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10094. soname_spec='$libname$release$shared_ext$major'
  10095. shlibpath_var=LIBRARY_PATH
  10096. shlibpath_overrides_runpath=no
  10097. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10098. hardcode_into_libs=yes
  10099. ;;
  10100. hpux9* | hpux10* | hpux11*)
  10101. # Give a soname corresponding to the major version so that dld.sl refuses to
  10102. # link against other versions.
  10103. version_type=sunos
  10104. need_lib_prefix=no
  10105. need_version=no
  10106. case $host_cpu in
  10107. ia64*)
  10108. shrext_cmds='.so'
  10109. hardcode_into_libs=yes
  10110. dynamic_linker="$host_os dld.so"
  10111. shlibpath_var=LD_LIBRARY_PATH
  10112. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10113. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10114. soname_spec='$libname$release$shared_ext$major'
  10115. if test 32 = "$HPUX_IA64_MODE"; then
  10116. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10117. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10118. else
  10119. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10120. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10121. fi
  10122. ;;
  10123. hppa*64*)
  10124. shrext_cmds='.sl'
  10125. hardcode_into_libs=yes
  10126. dynamic_linker="$host_os dld.sl"
  10127. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10128. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10129. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10130. soname_spec='$libname$release$shared_ext$major'
  10131. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10132. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10133. ;;
  10134. *)
  10135. shrext_cmds='.sl'
  10136. dynamic_linker="$host_os dld.sl"
  10137. shlibpath_var=SHLIB_PATH
  10138. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10139. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10140. soname_spec='$libname$release$shared_ext$major'
  10141. ;;
  10142. esac
  10143. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10144. postinstall_cmds='chmod 555 $lib'
  10145. # or fails outright, so override atomically:
  10146. install_override_mode=555
  10147. ;;
  10148. interix[3-9]*)
  10149. version_type=linux # correct to gnu/linux during the next big refactor
  10150. need_lib_prefix=no
  10151. need_version=no
  10152. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10153. soname_spec='$libname$release$shared_ext$major'
  10154. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10155. shlibpath_var=LD_LIBRARY_PATH
  10156. shlibpath_overrides_runpath=no
  10157. hardcode_into_libs=yes
  10158. ;;
  10159. irix5* | irix6* | nonstopux*)
  10160. case $host_os in
  10161. nonstopux*) version_type=nonstopux ;;
  10162. *)
  10163. if test yes = "$lt_cv_prog_gnu_ld"; then
  10164. version_type=linux # correct to gnu/linux during the next big refactor
  10165. else
  10166. version_type=irix
  10167. fi ;;
  10168. esac
  10169. need_lib_prefix=no
  10170. need_version=no
  10171. soname_spec='$libname$release$shared_ext$major'
  10172. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10173. case $host_os in
  10174. irix5* | nonstopux*)
  10175. libsuff= shlibsuff=
  10176. ;;
  10177. *)
  10178. case $LD in # libtool.m4 will add one of these switches to LD
  10179. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10180. libsuff= shlibsuff= libmagic=32-bit;;
  10181. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10182. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10183. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10184. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10185. *) libsuff= shlibsuff= libmagic=never-match;;
  10186. esac
  10187. ;;
  10188. esac
  10189. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10190. shlibpath_overrides_runpath=no
  10191. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10192. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10193. hardcode_into_libs=yes
  10194. ;;
  10195. # No shared lib support for Linux oldld, aout, or coff.
  10196. linux*oldld* | linux*aout* | linux*coff*)
  10197. dynamic_linker=no
  10198. ;;
  10199. linux*android*)
  10200. version_type=none # Android doesn't support versioned libraries.
  10201. need_lib_prefix=no
  10202. need_version=no
  10203. library_names_spec='$libname$release$shared_ext'
  10204. soname_spec='$libname$release$shared_ext'
  10205. finish_cmds=
  10206. shlibpath_var=LD_LIBRARY_PATH
  10207. shlibpath_overrides_runpath=yes
  10208. # This implies no fast_install, which is unacceptable.
  10209. # Some rework will be needed to allow for fast_install
  10210. # before this can be enabled.
  10211. hardcode_into_libs=yes
  10212. dynamic_linker='Android linker'
  10213. # Don't embed -rpath directories since the linker doesn't support them.
  10214. hardcode_libdir_flag_spec='-L$libdir'
  10215. ;;
  10216. # This must be glibc/ELF.
  10217. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10218. version_type=linux # correct to gnu/linux during the next big refactor
  10219. need_lib_prefix=no
  10220. need_version=no
  10221. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10222. soname_spec='$libname$release$shared_ext$major'
  10223. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10224. shlibpath_var=LD_LIBRARY_PATH
  10225. shlibpath_overrides_runpath=no
  10226. # Some binutils ld are patched to set DT_RUNPATH
  10227. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10228. then :
  10229. printf %s "(cached) " >&6
  10230. else $as_nop
  10231. lt_cv_shlibpath_overrides_runpath=no
  10232. save_LDFLAGS=$LDFLAGS
  10233. save_libdir=$libdir
  10234. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10235. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10237. /* end confdefs.h. */
  10238. int
  10239. main (void)
  10240. {
  10241. ;
  10242. return 0;
  10243. }
  10244. _ACEOF
  10245. if ac_fn_c_try_link "$LINENO"
  10246. then :
  10247. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10248. then :
  10249. lt_cv_shlibpath_overrides_runpath=yes
  10250. fi
  10251. fi
  10252. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10253. conftest$ac_exeext conftest.$ac_ext
  10254. LDFLAGS=$save_LDFLAGS
  10255. libdir=$save_libdir
  10256. fi
  10257. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10258. # This implies no fast_install, which is unacceptable.
  10259. # Some rework will be needed to allow for fast_install
  10260. # before this can be enabled.
  10261. hardcode_into_libs=yes
  10262. # Add ABI-specific directories to the system library path.
  10263. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10264. # Ideally, we could use ldconfig to report *all* directores which are
  10265. # searched for libraries, however this is still not possible. Aside from not
  10266. # being certain /sbin/ldconfig is available, command
  10267. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10268. # even though it is searched at run-time. Try to do the best guess by
  10269. # appending ld.so.conf contents (and includes) to the search path.
  10270. if test -f /etc/ld.so.conf; then
  10271. 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' ' '`
  10272. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10273. fi
  10274. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10275. # powerpc, because MkLinux only supported shared libraries with the
  10276. # GNU dynamic linker. Since this was broken with cross compilers,
  10277. # most powerpc-linux boxes support dynamic linking these days and
  10278. # people can always --disable-shared, the test was removed, and we
  10279. # assume the GNU/Linux dynamic linker is in use.
  10280. dynamic_linker='GNU/Linux ld.so'
  10281. ;;
  10282. netbsd*)
  10283. version_type=sunos
  10284. need_lib_prefix=no
  10285. need_version=no
  10286. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10287. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10288. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10289. dynamic_linker='NetBSD (a.out) ld.so'
  10290. else
  10291. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10292. soname_spec='$libname$release$shared_ext$major'
  10293. dynamic_linker='NetBSD ld.elf_so'
  10294. fi
  10295. shlibpath_var=LD_LIBRARY_PATH
  10296. shlibpath_overrides_runpath=yes
  10297. hardcode_into_libs=yes
  10298. ;;
  10299. newsos6)
  10300. version_type=linux # correct to gnu/linux during the next big refactor
  10301. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10302. shlibpath_var=LD_LIBRARY_PATH
  10303. shlibpath_overrides_runpath=yes
  10304. ;;
  10305. *nto* | *qnx*)
  10306. version_type=qnx
  10307. need_lib_prefix=no
  10308. need_version=no
  10309. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10310. soname_spec='$libname$release$shared_ext$major'
  10311. shlibpath_var=LD_LIBRARY_PATH
  10312. shlibpath_overrides_runpath=no
  10313. hardcode_into_libs=yes
  10314. dynamic_linker='ldqnx.so'
  10315. ;;
  10316. openbsd* | bitrig*)
  10317. version_type=sunos
  10318. sys_lib_dlsearch_path_spec=/usr/lib
  10319. need_lib_prefix=no
  10320. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10321. need_version=no
  10322. else
  10323. need_version=yes
  10324. fi
  10325. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10326. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10327. shlibpath_var=LD_LIBRARY_PATH
  10328. shlibpath_overrides_runpath=yes
  10329. ;;
  10330. os2*)
  10331. libname_spec='$name'
  10332. shrext_cmds=.dll
  10333. need_lib_prefix=no
  10334. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10335. # SDL customization: removed versioning support.
  10336. # version_type=windows
  10337. # need_version=no
  10338. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10339. # v=$($ECHO $release$versuffix | tr -d .-);
  10340. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10341. # $ECHO $n$v`$shared_ext'
  10342. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10343. library_names_spec='${libname}_dll.$libext'
  10344. dynamic_linker='OS/2 ld.exe'
  10345. shlibpath_var=BEGINLIBPATH
  10346. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10347. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10348. postinstall_cmds='base_file=`basename \$file`~
  10349. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10350. dldir=$destdir/`dirname \$dlpath`~
  10351. test -d \$dldir || mkdir -p \$dldir~
  10352. $install_prog $dir/$dlname \$dldir/$dlname~
  10353. chmod a+x \$dldir/$dlname~
  10354. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10355. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10356. fi'
  10357. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10358. dlpath=$dir/\$dldll~
  10359. $RM \$dlpath'
  10360. ;;
  10361. osf3* | osf4* | osf5*)
  10362. version_type=osf
  10363. need_lib_prefix=no
  10364. need_version=no
  10365. soname_spec='$libname$release$shared_ext$major'
  10366. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10367. shlibpath_var=LD_LIBRARY_PATH
  10368. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10369. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10370. ;;
  10371. rdos*)
  10372. dynamic_linker=no
  10373. ;;
  10374. solaris*)
  10375. version_type=linux # correct to gnu/linux during the next big refactor
  10376. need_lib_prefix=no
  10377. need_version=no
  10378. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10379. soname_spec='$libname$release$shared_ext$major'
  10380. shlibpath_var=LD_LIBRARY_PATH
  10381. shlibpath_overrides_runpath=yes
  10382. hardcode_into_libs=yes
  10383. # ldd complains unless libraries are executable
  10384. postinstall_cmds='chmod +x $lib'
  10385. ;;
  10386. sunos4*)
  10387. version_type=sunos
  10388. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10389. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10390. shlibpath_var=LD_LIBRARY_PATH
  10391. shlibpath_overrides_runpath=yes
  10392. if test yes = "$with_gnu_ld"; then
  10393. need_lib_prefix=no
  10394. fi
  10395. need_version=yes
  10396. ;;
  10397. sysv4 | sysv4.3*)
  10398. version_type=linux # correct to gnu/linux during the next big refactor
  10399. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10400. soname_spec='$libname$release$shared_ext$major'
  10401. shlibpath_var=LD_LIBRARY_PATH
  10402. case $host_vendor in
  10403. sni)
  10404. shlibpath_overrides_runpath=no
  10405. need_lib_prefix=no
  10406. runpath_var=LD_RUN_PATH
  10407. ;;
  10408. siemens)
  10409. need_lib_prefix=no
  10410. ;;
  10411. motorola)
  10412. need_lib_prefix=no
  10413. need_version=no
  10414. shlibpath_overrides_runpath=no
  10415. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10416. ;;
  10417. esac
  10418. ;;
  10419. sysv4*MP*)
  10420. if test -d /usr/nec; then
  10421. version_type=linux # correct to gnu/linux during the next big refactor
  10422. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10423. soname_spec='$libname$shared_ext.$major'
  10424. shlibpath_var=LD_LIBRARY_PATH
  10425. fi
  10426. ;;
  10427. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10428. version_type=sco
  10429. need_lib_prefix=no
  10430. need_version=no
  10431. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10432. soname_spec='$libname$release$shared_ext$major'
  10433. shlibpath_var=LD_LIBRARY_PATH
  10434. shlibpath_overrides_runpath=yes
  10435. hardcode_into_libs=yes
  10436. if test yes = "$with_gnu_ld"; then
  10437. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10438. else
  10439. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10440. case $host_os in
  10441. sco3.2v5*)
  10442. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10443. ;;
  10444. esac
  10445. fi
  10446. sys_lib_dlsearch_path_spec='/usr/lib'
  10447. ;;
  10448. tpf*)
  10449. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10450. version_type=linux # correct to gnu/linux during the next big refactor
  10451. need_lib_prefix=no
  10452. need_version=no
  10453. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10454. shlibpath_var=LD_LIBRARY_PATH
  10455. shlibpath_overrides_runpath=no
  10456. hardcode_into_libs=yes
  10457. ;;
  10458. uts4*)
  10459. version_type=linux # correct to gnu/linux during the next big refactor
  10460. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10461. soname_spec='$libname$release$shared_ext$major'
  10462. shlibpath_var=LD_LIBRARY_PATH
  10463. ;;
  10464. *)
  10465. dynamic_linker=no
  10466. ;;
  10467. esac
  10468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10469. printf "%s\n" "$dynamic_linker" >&6; }
  10470. test no = "$dynamic_linker" && can_build_shared=no
  10471. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10472. if test yes = "$GCC"; then
  10473. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10474. fi
  10475. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10476. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10477. fi
  10478. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10479. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10480. fi
  10481. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10482. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10483. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10484. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10485. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10486. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10488. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10489. hardcode_action=
  10490. if test -n "$hardcode_libdir_flag_spec" ||
  10491. test -n "$runpath_var" ||
  10492. test yes = "$hardcode_automatic"; then
  10493. # We can hardcode non-existent directories.
  10494. if test no != "$hardcode_direct" &&
  10495. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10496. # have to relink, otherwise we might link with an installed library
  10497. # when we should be linking with a yet-to-be-installed one
  10498. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10499. test no != "$hardcode_minus_L"; then
  10500. # Linking always hardcodes the temporary library directory.
  10501. hardcode_action=relink
  10502. else
  10503. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10504. hardcode_action=immediate
  10505. fi
  10506. else
  10507. # We cannot hardcode anything, or else we can only hardcode existing
  10508. # directories.
  10509. hardcode_action=unsupported
  10510. fi
  10511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10512. printf "%s\n" "$hardcode_action" >&6; }
  10513. if test relink = "$hardcode_action" ||
  10514. test yes = "$inherit_rpath"; then
  10515. # Fast installation is not supported
  10516. enable_fast_install=no
  10517. elif test yes = "$shlibpath_overrides_runpath" ||
  10518. test no = "$enable_shared"; then
  10519. # Fast installation is not necessary
  10520. enable_fast_install=needless
  10521. fi
  10522. if test yes != "$enable_dlopen"; then
  10523. enable_dlopen=unknown
  10524. enable_dlopen_self=unknown
  10525. enable_dlopen_self_static=unknown
  10526. else
  10527. lt_cv_dlopen=no
  10528. lt_cv_dlopen_libs=
  10529. case $host_os in
  10530. beos*)
  10531. lt_cv_dlopen=load_add_on
  10532. lt_cv_dlopen_libs=
  10533. lt_cv_dlopen_self=yes
  10534. ;;
  10535. mingw* | pw32* | cegcc*)
  10536. lt_cv_dlopen=LoadLibrary
  10537. lt_cv_dlopen_libs=
  10538. ;;
  10539. cygwin*)
  10540. lt_cv_dlopen=dlopen
  10541. lt_cv_dlopen_libs=
  10542. ;;
  10543. darwin*)
  10544. # if libdl is installed we need to link against it
  10545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10546. printf %s "checking for dlopen in -ldl... " >&6; }
  10547. if test ${ac_cv_lib_dl_dlopen+y}
  10548. then :
  10549. printf %s "(cached) " >&6
  10550. else $as_nop
  10551. ac_check_lib_save_LIBS=$LIBS
  10552. LIBS="-ldl $LIBS"
  10553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10554. /* end confdefs.h. */
  10555. /* Override any GCC internal prototype to avoid an error.
  10556. Use char because int might match the return type of a GCC
  10557. builtin and then its argument prototype would still apply. */
  10558. char dlopen ();
  10559. int
  10560. main (void)
  10561. {
  10562. return dlopen ();
  10563. ;
  10564. return 0;
  10565. }
  10566. _ACEOF
  10567. if ac_fn_c_try_link "$LINENO"
  10568. then :
  10569. ac_cv_lib_dl_dlopen=yes
  10570. else $as_nop
  10571. ac_cv_lib_dl_dlopen=no
  10572. fi
  10573. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10574. conftest$ac_exeext conftest.$ac_ext
  10575. LIBS=$ac_check_lib_save_LIBS
  10576. fi
  10577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10578. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10579. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10580. then :
  10581. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10582. else $as_nop
  10583. lt_cv_dlopen=dyld
  10584. lt_cv_dlopen_libs=
  10585. lt_cv_dlopen_self=yes
  10586. fi
  10587. ;;
  10588. tpf*)
  10589. # Don't try to run any link tests for TPF. We know it's impossible
  10590. # because TPF is a cross-compiler, and we know how we open DSOs.
  10591. lt_cv_dlopen=dlopen
  10592. lt_cv_dlopen_libs=
  10593. lt_cv_dlopen_self=no
  10594. ;;
  10595. *)
  10596. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10597. if test "x$ac_cv_func_shl_load" = xyes
  10598. then :
  10599. lt_cv_dlopen=shl_load
  10600. else $as_nop
  10601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10602. printf %s "checking for shl_load in -ldld... " >&6; }
  10603. if test ${ac_cv_lib_dld_shl_load+y}
  10604. then :
  10605. printf %s "(cached) " >&6
  10606. else $as_nop
  10607. ac_check_lib_save_LIBS=$LIBS
  10608. LIBS="-ldld $LIBS"
  10609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10610. /* end confdefs.h. */
  10611. /* Override any GCC internal prototype to avoid an error.
  10612. Use char because int might match the return type of a GCC
  10613. builtin and then its argument prototype would still apply. */
  10614. char shl_load ();
  10615. int
  10616. main (void)
  10617. {
  10618. return shl_load ();
  10619. ;
  10620. return 0;
  10621. }
  10622. _ACEOF
  10623. if ac_fn_c_try_link "$LINENO"
  10624. then :
  10625. ac_cv_lib_dld_shl_load=yes
  10626. else $as_nop
  10627. ac_cv_lib_dld_shl_load=no
  10628. fi
  10629. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10630. conftest$ac_exeext conftest.$ac_ext
  10631. LIBS=$ac_check_lib_save_LIBS
  10632. fi
  10633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10634. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10635. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10636. then :
  10637. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10638. else $as_nop
  10639. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10640. if test "x$ac_cv_func_dlopen" = xyes
  10641. then :
  10642. lt_cv_dlopen=dlopen
  10643. else $as_nop
  10644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10645. printf %s "checking for dlopen in -ldl... " >&6; }
  10646. if test ${ac_cv_lib_dl_dlopen+y}
  10647. then :
  10648. printf %s "(cached) " >&6
  10649. else $as_nop
  10650. ac_check_lib_save_LIBS=$LIBS
  10651. LIBS="-ldl $LIBS"
  10652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10653. /* end confdefs.h. */
  10654. /* Override any GCC internal prototype to avoid an error.
  10655. Use char because int might match the return type of a GCC
  10656. builtin and then its argument prototype would still apply. */
  10657. char dlopen ();
  10658. int
  10659. main (void)
  10660. {
  10661. return dlopen ();
  10662. ;
  10663. return 0;
  10664. }
  10665. _ACEOF
  10666. if ac_fn_c_try_link "$LINENO"
  10667. then :
  10668. ac_cv_lib_dl_dlopen=yes
  10669. else $as_nop
  10670. ac_cv_lib_dl_dlopen=no
  10671. fi
  10672. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10673. conftest$ac_exeext conftest.$ac_ext
  10674. LIBS=$ac_check_lib_save_LIBS
  10675. fi
  10676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10677. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10678. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10679. then :
  10680. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10681. else $as_nop
  10682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10683. printf %s "checking for dlopen in -lsvld... " >&6; }
  10684. if test ${ac_cv_lib_svld_dlopen+y}
  10685. then :
  10686. printf %s "(cached) " >&6
  10687. else $as_nop
  10688. ac_check_lib_save_LIBS=$LIBS
  10689. LIBS="-lsvld $LIBS"
  10690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10691. /* end confdefs.h. */
  10692. /* Override any GCC internal prototype to avoid an error.
  10693. Use char because int might match the return type of a GCC
  10694. builtin and then its argument prototype would still apply. */
  10695. char dlopen ();
  10696. int
  10697. main (void)
  10698. {
  10699. return dlopen ();
  10700. ;
  10701. return 0;
  10702. }
  10703. _ACEOF
  10704. if ac_fn_c_try_link "$LINENO"
  10705. then :
  10706. ac_cv_lib_svld_dlopen=yes
  10707. else $as_nop
  10708. ac_cv_lib_svld_dlopen=no
  10709. fi
  10710. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10711. conftest$ac_exeext conftest.$ac_ext
  10712. LIBS=$ac_check_lib_save_LIBS
  10713. fi
  10714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10715. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10716. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10717. then :
  10718. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10719. else $as_nop
  10720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10721. printf %s "checking for dld_link in -ldld... " >&6; }
  10722. if test ${ac_cv_lib_dld_dld_link+y}
  10723. then :
  10724. printf %s "(cached) " >&6
  10725. else $as_nop
  10726. ac_check_lib_save_LIBS=$LIBS
  10727. LIBS="-ldld $LIBS"
  10728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10729. /* end confdefs.h. */
  10730. /* Override any GCC internal prototype to avoid an error.
  10731. Use char because int might match the return type of a GCC
  10732. builtin and then its argument prototype would still apply. */
  10733. char dld_link ();
  10734. int
  10735. main (void)
  10736. {
  10737. return dld_link ();
  10738. ;
  10739. return 0;
  10740. }
  10741. _ACEOF
  10742. if ac_fn_c_try_link "$LINENO"
  10743. then :
  10744. ac_cv_lib_dld_dld_link=yes
  10745. else $as_nop
  10746. ac_cv_lib_dld_dld_link=no
  10747. fi
  10748. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10749. conftest$ac_exeext conftest.$ac_ext
  10750. LIBS=$ac_check_lib_save_LIBS
  10751. fi
  10752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10753. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10754. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10755. then :
  10756. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10757. fi
  10758. fi
  10759. fi
  10760. fi
  10761. fi
  10762. fi
  10763. ;;
  10764. esac
  10765. if test no = "$lt_cv_dlopen"; then
  10766. enable_dlopen=no
  10767. else
  10768. enable_dlopen=yes
  10769. fi
  10770. case $lt_cv_dlopen in
  10771. dlopen)
  10772. save_CPPFLAGS=$CPPFLAGS
  10773. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10774. save_LDFLAGS=$LDFLAGS
  10775. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10776. save_LIBS=$LIBS
  10777. LIBS="$lt_cv_dlopen_libs $LIBS"
  10778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10779. printf %s "checking whether a program can dlopen itself... " >&6; }
  10780. if test ${lt_cv_dlopen_self+y}
  10781. then :
  10782. printf %s "(cached) " >&6
  10783. else $as_nop
  10784. if test yes = "$cross_compiling"; then :
  10785. lt_cv_dlopen_self=cross
  10786. else
  10787. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10788. lt_status=$lt_dlunknown
  10789. cat > conftest.$ac_ext <<_LT_EOF
  10790. #line $LINENO "configure"
  10791. #include "confdefs.h"
  10792. #if HAVE_DLFCN_H
  10793. #include <dlfcn.h>
  10794. #endif
  10795. #include <stdio.h>
  10796. #ifdef RTLD_GLOBAL
  10797. # define LT_DLGLOBAL RTLD_GLOBAL
  10798. #else
  10799. # ifdef DL_GLOBAL
  10800. # define LT_DLGLOBAL DL_GLOBAL
  10801. # else
  10802. # define LT_DLGLOBAL 0
  10803. # endif
  10804. #endif
  10805. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10806. find out it does not work in some platform. */
  10807. #ifndef LT_DLLAZY_OR_NOW
  10808. # ifdef RTLD_LAZY
  10809. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10810. # else
  10811. # ifdef DL_LAZY
  10812. # define LT_DLLAZY_OR_NOW DL_LAZY
  10813. # else
  10814. # ifdef RTLD_NOW
  10815. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10816. # else
  10817. # ifdef DL_NOW
  10818. # define LT_DLLAZY_OR_NOW DL_NOW
  10819. # else
  10820. # define LT_DLLAZY_OR_NOW 0
  10821. # endif
  10822. # endif
  10823. # endif
  10824. # endif
  10825. #endif
  10826. /* When -fvisibility=hidden is used, assume the code has been annotated
  10827. correspondingly for the symbols needed. */
  10828. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10829. int fnord () __attribute__((visibility("default")));
  10830. #endif
  10831. int fnord () { return 42; }
  10832. int main ()
  10833. {
  10834. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10835. int status = $lt_dlunknown;
  10836. if (self)
  10837. {
  10838. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10839. else
  10840. {
  10841. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10842. else puts (dlerror ());
  10843. }
  10844. /* dlclose (self); */
  10845. }
  10846. else
  10847. puts (dlerror ());
  10848. return status;
  10849. }
  10850. _LT_EOF
  10851. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10852. (eval $ac_link) 2>&5
  10853. ac_status=$?
  10854. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10855. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10856. (./conftest; exit; ) >&5 2>/dev/null
  10857. lt_status=$?
  10858. case x$lt_status in
  10859. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10860. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10861. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10862. esac
  10863. else :
  10864. # compilation failed
  10865. lt_cv_dlopen_self=no
  10866. fi
  10867. fi
  10868. rm -fr conftest*
  10869. fi
  10870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10871. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10872. if test yes = "$lt_cv_dlopen_self"; then
  10873. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10875. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10876. if test ${lt_cv_dlopen_self_static+y}
  10877. then :
  10878. printf %s "(cached) " >&6
  10879. else $as_nop
  10880. if test yes = "$cross_compiling"; then :
  10881. lt_cv_dlopen_self_static=cross
  10882. else
  10883. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10884. lt_status=$lt_dlunknown
  10885. cat > conftest.$ac_ext <<_LT_EOF
  10886. #line $LINENO "configure"
  10887. #include "confdefs.h"
  10888. #if HAVE_DLFCN_H
  10889. #include <dlfcn.h>
  10890. #endif
  10891. #include <stdio.h>
  10892. #ifdef RTLD_GLOBAL
  10893. # define LT_DLGLOBAL RTLD_GLOBAL
  10894. #else
  10895. # ifdef DL_GLOBAL
  10896. # define LT_DLGLOBAL DL_GLOBAL
  10897. # else
  10898. # define LT_DLGLOBAL 0
  10899. # endif
  10900. #endif
  10901. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10902. find out it does not work in some platform. */
  10903. #ifndef LT_DLLAZY_OR_NOW
  10904. # ifdef RTLD_LAZY
  10905. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10906. # else
  10907. # ifdef DL_LAZY
  10908. # define LT_DLLAZY_OR_NOW DL_LAZY
  10909. # else
  10910. # ifdef RTLD_NOW
  10911. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10912. # else
  10913. # ifdef DL_NOW
  10914. # define LT_DLLAZY_OR_NOW DL_NOW
  10915. # else
  10916. # define LT_DLLAZY_OR_NOW 0
  10917. # endif
  10918. # endif
  10919. # endif
  10920. # endif
  10921. #endif
  10922. /* When -fvisibility=hidden is used, assume the code has been annotated
  10923. correspondingly for the symbols needed. */
  10924. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10925. int fnord () __attribute__((visibility("default")));
  10926. #endif
  10927. int fnord () { return 42; }
  10928. int main ()
  10929. {
  10930. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10931. int status = $lt_dlunknown;
  10932. if (self)
  10933. {
  10934. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10935. else
  10936. {
  10937. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10938. else puts (dlerror ());
  10939. }
  10940. /* dlclose (self); */
  10941. }
  10942. else
  10943. puts (dlerror ());
  10944. return status;
  10945. }
  10946. _LT_EOF
  10947. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10948. (eval $ac_link) 2>&5
  10949. ac_status=$?
  10950. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10951. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10952. (./conftest; exit; ) >&5 2>/dev/null
  10953. lt_status=$?
  10954. case x$lt_status in
  10955. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10956. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10957. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10958. esac
  10959. else :
  10960. # compilation failed
  10961. lt_cv_dlopen_self_static=no
  10962. fi
  10963. fi
  10964. rm -fr conftest*
  10965. fi
  10966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10967. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  10968. fi
  10969. CPPFLAGS=$save_CPPFLAGS
  10970. LDFLAGS=$save_LDFLAGS
  10971. LIBS=$save_LIBS
  10972. ;;
  10973. esac
  10974. case $lt_cv_dlopen_self in
  10975. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10976. *) enable_dlopen_self=unknown ;;
  10977. esac
  10978. case $lt_cv_dlopen_self_static in
  10979. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10980. *) enable_dlopen_self_static=unknown ;;
  10981. esac
  10982. fi
  10983. striplib=
  10984. old_striplib=
  10985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10986. printf %s "checking whether stripping libraries is possible... " >&6; }
  10987. if test -z "$STRIP"; then
  10988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10989. printf "%s\n" "no" >&6; }
  10990. else
  10991. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10992. old_striplib="$STRIP --strip-debug"
  10993. striplib="$STRIP --strip-unneeded"
  10994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10995. printf "%s\n" "yes" >&6; }
  10996. else
  10997. case $host_os in
  10998. darwin*)
  10999. # FIXME - insert some real tests, host_os isn't really good enough
  11000. striplib="$STRIP -x"
  11001. old_striplib="$STRIP -S"
  11002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11003. printf "%s\n" "yes" >&6; }
  11004. ;;
  11005. freebsd*)
  11006. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11007. old_striplib="$STRIP --strip-debug"
  11008. striplib="$STRIP --strip-unneeded"
  11009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11010. printf "%s\n" "yes" >&6; }
  11011. else
  11012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11013. printf "%s\n" "no" >&6; }
  11014. fi
  11015. ;;
  11016. *)
  11017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11018. printf "%s\n" "no" >&6; }
  11019. ;;
  11020. esac
  11021. fi
  11022. fi
  11023. # Report what library types will actually be built
  11024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11025. printf %s "checking if libtool supports shared libraries... " >&6; }
  11026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11027. printf "%s\n" "$can_build_shared" >&6; }
  11028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11029. printf %s "checking whether to build shared libraries... " >&6; }
  11030. test no = "$can_build_shared" && enable_shared=no
  11031. # On AIX, shared libraries and static libraries use the same namespace, and
  11032. # are all built from PIC.
  11033. case $host_os in
  11034. aix3*)
  11035. test yes = "$enable_shared" && enable_static=no
  11036. if test -n "$RANLIB"; then
  11037. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11038. postinstall_cmds='$RANLIB $lib'
  11039. fi
  11040. ;;
  11041. aix[4-9]*)
  11042. if test ia64 != "$host_cpu"; then
  11043. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11044. yes,aix,yes) ;; # shared object as lib.so file only
  11045. yes,svr4,*) ;; # shared object as lib.so archive member only
  11046. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11047. esac
  11048. fi
  11049. ;;
  11050. esac
  11051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11052. printf "%s\n" "$enable_shared" >&6; }
  11053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11054. printf %s "checking whether to build static libraries... " >&6; }
  11055. # Make sure either enable_shared or enable_static is yes.
  11056. test yes = "$enable_shared" || enable_static=yes
  11057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11058. printf "%s\n" "$enable_static" >&6; }
  11059. fi
  11060. ac_ext=c
  11061. ac_cpp='$CPP $CPPFLAGS'
  11062. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11063. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11064. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11065. CC=$lt_save_CC
  11066. ac_config_commands="$ac_config_commands libtool"
  11067. # Only expand once:
  11068. if test -n "$ac_tool_prefix"; then
  11069. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11070. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11072. printf %s "checking for $ac_word... " >&6; }
  11073. if test ${ac_cv_prog_RC+y}
  11074. then :
  11075. printf %s "(cached) " >&6
  11076. else $as_nop
  11077. if test -n "$RC"; then
  11078. ac_cv_prog_RC="$RC" # Let the user override the test.
  11079. else
  11080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11081. for as_dir in $PATH
  11082. do
  11083. IFS=$as_save_IFS
  11084. case $as_dir in #(((
  11085. '') as_dir=./ ;;
  11086. */) ;;
  11087. *) as_dir=$as_dir/ ;;
  11088. esac
  11089. for ac_exec_ext in '' $ac_executable_extensions; do
  11090. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11091. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11092. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11093. break 2
  11094. fi
  11095. done
  11096. done
  11097. IFS=$as_save_IFS
  11098. fi
  11099. fi
  11100. RC=$ac_cv_prog_RC
  11101. if test -n "$RC"; then
  11102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11103. printf "%s\n" "$RC" >&6; }
  11104. else
  11105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11106. printf "%s\n" "no" >&6; }
  11107. fi
  11108. fi
  11109. if test -z "$ac_cv_prog_RC"; then
  11110. ac_ct_RC=$RC
  11111. # Extract the first word of "windres", so it can be a program name with args.
  11112. set dummy windres; ac_word=$2
  11113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11114. printf %s "checking for $ac_word... " >&6; }
  11115. if test ${ac_cv_prog_ac_ct_RC+y}
  11116. then :
  11117. printf %s "(cached) " >&6
  11118. else $as_nop
  11119. if test -n "$ac_ct_RC"; then
  11120. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11121. else
  11122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11123. for as_dir in $PATH
  11124. do
  11125. IFS=$as_save_IFS
  11126. case $as_dir in #(((
  11127. '') as_dir=./ ;;
  11128. */) ;;
  11129. *) as_dir=$as_dir/ ;;
  11130. esac
  11131. for ac_exec_ext in '' $ac_executable_extensions; do
  11132. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11133. ac_cv_prog_ac_ct_RC="windres"
  11134. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11135. break 2
  11136. fi
  11137. done
  11138. done
  11139. IFS=$as_save_IFS
  11140. fi
  11141. fi
  11142. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11143. if test -n "$ac_ct_RC"; then
  11144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11145. printf "%s\n" "$ac_ct_RC" >&6; }
  11146. else
  11147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11148. printf "%s\n" "no" >&6; }
  11149. fi
  11150. if test "x$ac_ct_RC" = x; then
  11151. RC=""
  11152. else
  11153. case $cross_compiling:$ac_tool_warned in
  11154. yes:)
  11155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11156. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11157. ac_tool_warned=yes ;;
  11158. esac
  11159. RC=$ac_ct_RC
  11160. fi
  11161. else
  11162. RC="$ac_cv_prog_RC"
  11163. fi
  11164. # Source file extension for RC test sources.
  11165. ac_ext=rc
  11166. # Object file extension for compiled RC test sources.
  11167. objext=o
  11168. objext_RC=$objext
  11169. # Code to be used in simple compile tests
  11170. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11171. # Code to be used in simple link tests
  11172. lt_simple_link_test_code=$lt_simple_compile_test_code
  11173. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11174. # If no C compiler was specified, use CC.
  11175. LTCC=${LTCC-"$CC"}
  11176. # If no C compiler flags were specified, use CFLAGS.
  11177. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11178. # Allow CC to be a program name with arguments.
  11179. compiler=$CC
  11180. # save warnings/boilerplate of simple test code
  11181. ac_outfile=conftest.$ac_objext
  11182. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11183. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11184. _lt_compiler_boilerplate=`cat conftest.err`
  11185. $RM conftest*
  11186. ac_outfile=conftest.$ac_objext
  11187. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11188. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11189. _lt_linker_boilerplate=`cat conftest.err`
  11190. $RM -r conftest*
  11191. # Allow CC to be a program name with arguments.
  11192. lt_save_CC=$CC
  11193. lt_save_CFLAGS=$CFLAGS
  11194. lt_save_GCC=$GCC
  11195. GCC=
  11196. CC=${RC-"windres"}
  11197. CFLAGS=
  11198. compiler=$CC
  11199. compiler_RC=$CC
  11200. func_cc_basename $compiler
  11201. cc_basename=$func_cc_basename_result
  11202. lt_cv_prog_compiler_c_o_RC=yes
  11203. if test -n "$compiler"; then
  11204. :
  11205. fi
  11206. GCC=$lt_save_GCC
  11207. ac_ext=c
  11208. ac_cpp='$CPP $CPPFLAGS'
  11209. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11210. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11211. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11212. CC=$lt_save_CC
  11213. CFLAGS=$lt_save_CFLAGS
  11214. # For historical reasons, the library name redundantly includes the major
  11215. # version twice: libSDL3-3.0.so.0.
  11216. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11217. LT_RELEASE=3.0
  11218. # Increment this if there is an incompatible change - but if that happens,
  11219. # we should rename the library from SDL2 to SDL3, at which point this would
  11220. # reset to 0 anyway.
  11221. LT_MAJOR=0
  11222. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11223. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11224. LT_REVISION=$SDL_INTERFACE_AGE
  11225. for ac_prog in gawk mawk nawk awk
  11226. do
  11227. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11228. set dummy $ac_prog; ac_word=$2
  11229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11230. printf %s "checking for $ac_word... " >&6; }
  11231. if test ${ac_cv_prog_AWK+y}
  11232. then :
  11233. printf %s "(cached) " >&6
  11234. else $as_nop
  11235. if test -n "$AWK"; then
  11236. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11237. else
  11238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11239. for as_dir in $PATH
  11240. do
  11241. IFS=$as_save_IFS
  11242. case $as_dir in #(((
  11243. '') as_dir=./ ;;
  11244. */) ;;
  11245. *) as_dir=$as_dir/ ;;
  11246. esac
  11247. for ac_exec_ext in '' $ac_executable_extensions; do
  11248. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11249. ac_cv_prog_AWK="$ac_prog"
  11250. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11251. break 2
  11252. fi
  11253. done
  11254. done
  11255. IFS=$as_save_IFS
  11256. fi
  11257. fi
  11258. AWK=$ac_cv_prog_AWK
  11259. if test -n "$AWK"; then
  11260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11261. printf "%s\n" "$AWK" >&6; }
  11262. else
  11263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11264. printf "%s\n" "no" >&6; }
  11265. fi
  11266. test -n "$AWK" && break
  11267. done
  11268. ac_ext=c
  11269. ac_cpp='$CPP $CPPFLAGS'
  11270. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11271. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11272. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11273. if test -n "$ac_tool_prefix"; then
  11274. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11275. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11277. printf %s "checking for $ac_word... " >&6; }
  11278. if test ${ac_cv_prog_CC+y}
  11279. then :
  11280. printf %s "(cached) " >&6
  11281. else $as_nop
  11282. if test -n "$CC"; then
  11283. ac_cv_prog_CC="$CC" # Let the user override the test.
  11284. else
  11285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11286. for as_dir in $PATH
  11287. do
  11288. IFS=$as_save_IFS
  11289. case $as_dir in #(((
  11290. '') as_dir=./ ;;
  11291. */) ;;
  11292. *) as_dir=$as_dir/ ;;
  11293. esac
  11294. for ac_exec_ext in '' $ac_executable_extensions; do
  11295. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11296. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11297. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11298. break 2
  11299. fi
  11300. done
  11301. done
  11302. IFS=$as_save_IFS
  11303. fi
  11304. fi
  11305. CC=$ac_cv_prog_CC
  11306. if test -n "$CC"; then
  11307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11308. printf "%s\n" "$CC" >&6; }
  11309. else
  11310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11311. printf "%s\n" "no" >&6; }
  11312. fi
  11313. fi
  11314. if test -z "$ac_cv_prog_CC"; then
  11315. ac_ct_CC=$CC
  11316. # Extract the first word of "gcc", so it can be a program name with args.
  11317. set dummy gcc; ac_word=$2
  11318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11319. printf %s "checking for $ac_word... " >&6; }
  11320. if test ${ac_cv_prog_ac_ct_CC+y}
  11321. then :
  11322. printf %s "(cached) " >&6
  11323. else $as_nop
  11324. if test -n "$ac_ct_CC"; then
  11325. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11326. else
  11327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11328. for as_dir in $PATH
  11329. do
  11330. IFS=$as_save_IFS
  11331. case $as_dir in #(((
  11332. '') as_dir=./ ;;
  11333. */) ;;
  11334. *) as_dir=$as_dir/ ;;
  11335. esac
  11336. for ac_exec_ext in '' $ac_executable_extensions; do
  11337. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11338. ac_cv_prog_ac_ct_CC="gcc"
  11339. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11340. break 2
  11341. fi
  11342. done
  11343. done
  11344. IFS=$as_save_IFS
  11345. fi
  11346. fi
  11347. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11348. if test -n "$ac_ct_CC"; then
  11349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11350. printf "%s\n" "$ac_ct_CC" >&6; }
  11351. else
  11352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11353. printf "%s\n" "no" >&6; }
  11354. fi
  11355. if test "x$ac_ct_CC" = x; then
  11356. CC=""
  11357. else
  11358. case $cross_compiling:$ac_tool_warned in
  11359. yes:)
  11360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11361. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11362. ac_tool_warned=yes ;;
  11363. esac
  11364. CC=$ac_ct_CC
  11365. fi
  11366. else
  11367. CC="$ac_cv_prog_CC"
  11368. fi
  11369. if test -z "$CC"; then
  11370. if test -n "$ac_tool_prefix"; then
  11371. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11372. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11374. printf %s "checking for $ac_word... " >&6; }
  11375. if test ${ac_cv_prog_CC+y}
  11376. then :
  11377. printf %s "(cached) " >&6
  11378. else $as_nop
  11379. if test -n "$CC"; then
  11380. ac_cv_prog_CC="$CC" # Let the user override the test.
  11381. else
  11382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11383. for as_dir in $PATH
  11384. do
  11385. IFS=$as_save_IFS
  11386. case $as_dir in #(((
  11387. '') as_dir=./ ;;
  11388. */) ;;
  11389. *) as_dir=$as_dir/ ;;
  11390. esac
  11391. for ac_exec_ext in '' $ac_executable_extensions; do
  11392. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11393. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11394. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11395. break 2
  11396. fi
  11397. done
  11398. done
  11399. IFS=$as_save_IFS
  11400. fi
  11401. fi
  11402. CC=$ac_cv_prog_CC
  11403. if test -n "$CC"; then
  11404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11405. printf "%s\n" "$CC" >&6; }
  11406. else
  11407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11408. printf "%s\n" "no" >&6; }
  11409. fi
  11410. fi
  11411. fi
  11412. if test -z "$CC"; then
  11413. # Extract the first word of "cc", so it can be a program name with args.
  11414. set dummy cc; ac_word=$2
  11415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11416. printf %s "checking for $ac_word... " >&6; }
  11417. if test ${ac_cv_prog_CC+y}
  11418. then :
  11419. printf %s "(cached) " >&6
  11420. else $as_nop
  11421. if test -n "$CC"; then
  11422. ac_cv_prog_CC="$CC" # Let the user override the test.
  11423. else
  11424. ac_prog_rejected=no
  11425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11426. for as_dir in $PATH
  11427. do
  11428. IFS=$as_save_IFS
  11429. case $as_dir in #(((
  11430. '') as_dir=./ ;;
  11431. */) ;;
  11432. *) as_dir=$as_dir/ ;;
  11433. esac
  11434. for ac_exec_ext in '' $ac_executable_extensions; do
  11435. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11436. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11437. ac_prog_rejected=yes
  11438. continue
  11439. fi
  11440. ac_cv_prog_CC="cc"
  11441. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11442. break 2
  11443. fi
  11444. done
  11445. done
  11446. IFS=$as_save_IFS
  11447. if test $ac_prog_rejected = yes; then
  11448. # We found a bogon in the path, so make sure we never use it.
  11449. set dummy $ac_cv_prog_CC
  11450. shift
  11451. if test $# != 0; then
  11452. # We chose a different compiler from the bogus one.
  11453. # However, it has the same basename, so the bogon will be chosen
  11454. # first if we set CC to just the basename; use the full file name.
  11455. shift
  11456. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11457. fi
  11458. fi
  11459. fi
  11460. fi
  11461. CC=$ac_cv_prog_CC
  11462. if test -n "$CC"; then
  11463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11464. printf "%s\n" "$CC" >&6; }
  11465. else
  11466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11467. printf "%s\n" "no" >&6; }
  11468. fi
  11469. fi
  11470. if test -z "$CC"; then
  11471. if test -n "$ac_tool_prefix"; then
  11472. for ac_prog in cl.exe
  11473. do
  11474. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11475. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11477. printf %s "checking for $ac_word... " >&6; }
  11478. if test ${ac_cv_prog_CC+y}
  11479. then :
  11480. printf %s "(cached) " >&6
  11481. else $as_nop
  11482. if test -n "$CC"; then
  11483. ac_cv_prog_CC="$CC" # Let the user override the test.
  11484. else
  11485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11486. for as_dir in $PATH
  11487. do
  11488. IFS=$as_save_IFS
  11489. case $as_dir in #(((
  11490. '') as_dir=./ ;;
  11491. */) ;;
  11492. *) as_dir=$as_dir/ ;;
  11493. esac
  11494. for ac_exec_ext in '' $ac_executable_extensions; do
  11495. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11496. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11497. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11498. break 2
  11499. fi
  11500. done
  11501. done
  11502. IFS=$as_save_IFS
  11503. fi
  11504. fi
  11505. CC=$ac_cv_prog_CC
  11506. if test -n "$CC"; then
  11507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11508. printf "%s\n" "$CC" >&6; }
  11509. else
  11510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11511. printf "%s\n" "no" >&6; }
  11512. fi
  11513. test -n "$CC" && break
  11514. done
  11515. fi
  11516. if test -z "$CC"; then
  11517. ac_ct_CC=$CC
  11518. for ac_prog in cl.exe
  11519. do
  11520. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11521. set dummy $ac_prog; ac_word=$2
  11522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11523. printf %s "checking for $ac_word... " >&6; }
  11524. if test ${ac_cv_prog_ac_ct_CC+y}
  11525. then :
  11526. printf %s "(cached) " >&6
  11527. else $as_nop
  11528. if test -n "$ac_ct_CC"; then
  11529. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11530. else
  11531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11532. for as_dir in $PATH
  11533. do
  11534. IFS=$as_save_IFS
  11535. case $as_dir in #(((
  11536. '') as_dir=./ ;;
  11537. */) ;;
  11538. *) as_dir=$as_dir/ ;;
  11539. esac
  11540. for ac_exec_ext in '' $ac_executable_extensions; do
  11541. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11542. ac_cv_prog_ac_ct_CC="$ac_prog"
  11543. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11544. break 2
  11545. fi
  11546. done
  11547. done
  11548. IFS=$as_save_IFS
  11549. fi
  11550. fi
  11551. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11552. if test -n "$ac_ct_CC"; then
  11553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11554. printf "%s\n" "$ac_ct_CC" >&6; }
  11555. else
  11556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11557. printf "%s\n" "no" >&6; }
  11558. fi
  11559. test -n "$ac_ct_CC" && break
  11560. done
  11561. if test "x$ac_ct_CC" = x; then
  11562. CC=""
  11563. else
  11564. case $cross_compiling:$ac_tool_warned in
  11565. yes:)
  11566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11567. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11568. ac_tool_warned=yes ;;
  11569. esac
  11570. CC=$ac_ct_CC
  11571. fi
  11572. fi
  11573. fi
  11574. if test -z "$CC"; then
  11575. if test -n "$ac_tool_prefix"; then
  11576. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11577. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11579. printf %s "checking for $ac_word... " >&6; }
  11580. if test ${ac_cv_prog_CC+y}
  11581. then :
  11582. printf %s "(cached) " >&6
  11583. else $as_nop
  11584. if test -n "$CC"; then
  11585. ac_cv_prog_CC="$CC" # Let the user override the test.
  11586. else
  11587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11588. for as_dir in $PATH
  11589. do
  11590. IFS=$as_save_IFS
  11591. case $as_dir in #(((
  11592. '') as_dir=./ ;;
  11593. */) ;;
  11594. *) as_dir=$as_dir/ ;;
  11595. esac
  11596. for ac_exec_ext in '' $ac_executable_extensions; do
  11597. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11598. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11599. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11600. break 2
  11601. fi
  11602. done
  11603. done
  11604. IFS=$as_save_IFS
  11605. fi
  11606. fi
  11607. CC=$ac_cv_prog_CC
  11608. if test -n "$CC"; then
  11609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11610. printf "%s\n" "$CC" >&6; }
  11611. else
  11612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11613. printf "%s\n" "no" >&6; }
  11614. fi
  11615. fi
  11616. if test -z "$ac_cv_prog_CC"; then
  11617. ac_ct_CC=$CC
  11618. # Extract the first word of "clang", so it can be a program name with args.
  11619. set dummy clang; ac_word=$2
  11620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11621. printf %s "checking for $ac_word... " >&6; }
  11622. if test ${ac_cv_prog_ac_ct_CC+y}
  11623. then :
  11624. printf %s "(cached) " >&6
  11625. else $as_nop
  11626. if test -n "$ac_ct_CC"; then
  11627. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11628. else
  11629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11630. for as_dir in $PATH
  11631. do
  11632. IFS=$as_save_IFS
  11633. case $as_dir in #(((
  11634. '') as_dir=./ ;;
  11635. */) ;;
  11636. *) as_dir=$as_dir/ ;;
  11637. esac
  11638. for ac_exec_ext in '' $ac_executable_extensions; do
  11639. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11640. ac_cv_prog_ac_ct_CC="clang"
  11641. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11642. break 2
  11643. fi
  11644. done
  11645. done
  11646. IFS=$as_save_IFS
  11647. fi
  11648. fi
  11649. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11650. if test -n "$ac_ct_CC"; then
  11651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11652. printf "%s\n" "$ac_ct_CC" >&6; }
  11653. else
  11654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11655. printf "%s\n" "no" >&6; }
  11656. fi
  11657. if test "x$ac_ct_CC" = x; then
  11658. CC=""
  11659. else
  11660. case $cross_compiling:$ac_tool_warned in
  11661. yes:)
  11662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11663. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11664. ac_tool_warned=yes ;;
  11665. esac
  11666. CC=$ac_ct_CC
  11667. fi
  11668. else
  11669. CC="$ac_cv_prog_CC"
  11670. fi
  11671. fi
  11672. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11673. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11674. as_fn_error $? "no acceptable C compiler found in \$PATH
  11675. See \`config.log' for more details" "$LINENO" 5; }
  11676. # Provide some information about the compiler.
  11677. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11678. set X $ac_compile
  11679. ac_compiler=$2
  11680. for ac_option in --version -v -V -qversion -version; do
  11681. { { ac_try="$ac_compiler $ac_option >&5"
  11682. case "(($ac_try" in
  11683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11684. *) ac_try_echo=$ac_try;;
  11685. esac
  11686. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11687. printf "%s\n" "$ac_try_echo"; } >&5
  11688. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11689. ac_status=$?
  11690. if test -s conftest.err; then
  11691. sed '10a\
  11692. ... rest of stderr output deleted ...
  11693. 10q' conftest.err >conftest.er1
  11694. cat conftest.er1 >&5
  11695. fi
  11696. rm -f conftest.er1 conftest.err
  11697. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11698. test $ac_status = 0; }
  11699. done
  11700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11701. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11702. if test ${ac_cv_c_compiler_gnu+y}
  11703. then :
  11704. printf %s "(cached) " >&6
  11705. else $as_nop
  11706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11707. /* end confdefs.h. */
  11708. int
  11709. main (void)
  11710. {
  11711. #ifndef __GNUC__
  11712. choke me
  11713. #endif
  11714. ;
  11715. return 0;
  11716. }
  11717. _ACEOF
  11718. if ac_fn_c_try_compile "$LINENO"
  11719. then :
  11720. ac_compiler_gnu=yes
  11721. else $as_nop
  11722. ac_compiler_gnu=no
  11723. fi
  11724. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11725. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11726. fi
  11727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11728. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11729. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11730. if test $ac_compiler_gnu = yes; then
  11731. GCC=yes
  11732. else
  11733. GCC=
  11734. fi
  11735. ac_test_CFLAGS=${CFLAGS+y}
  11736. ac_save_CFLAGS=$CFLAGS
  11737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11738. printf %s "checking whether $CC accepts -g... " >&6; }
  11739. if test ${ac_cv_prog_cc_g+y}
  11740. then :
  11741. printf %s "(cached) " >&6
  11742. else $as_nop
  11743. ac_save_c_werror_flag=$ac_c_werror_flag
  11744. ac_c_werror_flag=yes
  11745. ac_cv_prog_cc_g=no
  11746. CFLAGS="-g"
  11747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11748. /* end confdefs.h. */
  11749. int
  11750. main (void)
  11751. {
  11752. ;
  11753. return 0;
  11754. }
  11755. _ACEOF
  11756. if ac_fn_c_try_compile "$LINENO"
  11757. then :
  11758. ac_cv_prog_cc_g=yes
  11759. else $as_nop
  11760. CFLAGS=""
  11761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11762. /* end confdefs.h. */
  11763. int
  11764. main (void)
  11765. {
  11766. ;
  11767. return 0;
  11768. }
  11769. _ACEOF
  11770. if ac_fn_c_try_compile "$LINENO"
  11771. then :
  11772. else $as_nop
  11773. ac_c_werror_flag=$ac_save_c_werror_flag
  11774. CFLAGS="-g"
  11775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11776. /* end confdefs.h. */
  11777. int
  11778. main (void)
  11779. {
  11780. ;
  11781. return 0;
  11782. }
  11783. _ACEOF
  11784. if ac_fn_c_try_compile "$LINENO"
  11785. then :
  11786. ac_cv_prog_cc_g=yes
  11787. fi
  11788. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11789. fi
  11790. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11791. fi
  11792. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11793. ac_c_werror_flag=$ac_save_c_werror_flag
  11794. fi
  11795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11796. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11797. if test $ac_test_CFLAGS; then
  11798. CFLAGS=$ac_save_CFLAGS
  11799. elif test $ac_cv_prog_cc_g = yes; then
  11800. if test "$GCC" = yes; then
  11801. CFLAGS="-g -O2"
  11802. else
  11803. CFLAGS="-g"
  11804. fi
  11805. else
  11806. if test "$GCC" = yes; then
  11807. CFLAGS="-O2"
  11808. else
  11809. CFLAGS=
  11810. fi
  11811. fi
  11812. ac_prog_cc_stdc=no
  11813. if test x$ac_prog_cc_stdc = xno
  11814. then :
  11815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11816. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11817. if test ${ac_cv_prog_cc_c11+y}
  11818. then :
  11819. printf %s "(cached) " >&6
  11820. else $as_nop
  11821. ac_cv_prog_cc_c11=no
  11822. ac_save_CC=$CC
  11823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11824. /* end confdefs.h. */
  11825. $ac_c_conftest_c11_program
  11826. _ACEOF
  11827. for ac_arg in '' -std=gnu11
  11828. do
  11829. CC="$ac_save_CC $ac_arg"
  11830. if ac_fn_c_try_compile "$LINENO"
  11831. then :
  11832. ac_cv_prog_cc_c11=$ac_arg
  11833. fi
  11834. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11835. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11836. done
  11837. rm -f conftest.$ac_ext
  11838. CC=$ac_save_CC
  11839. fi
  11840. if test "x$ac_cv_prog_cc_c11" = xno
  11841. then :
  11842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11843. printf "%s\n" "unsupported" >&6; }
  11844. else $as_nop
  11845. if test "x$ac_cv_prog_cc_c11" = x
  11846. then :
  11847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11848. printf "%s\n" "none needed" >&6; }
  11849. else $as_nop
  11850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11851. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11852. CC="$CC $ac_cv_prog_cc_c11"
  11853. fi
  11854. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11855. ac_prog_cc_stdc=c11
  11856. fi
  11857. fi
  11858. if test x$ac_prog_cc_stdc = xno
  11859. then :
  11860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11861. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11862. if test ${ac_cv_prog_cc_c99+y}
  11863. then :
  11864. printf %s "(cached) " >&6
  11865. else $as_nop
  11866. ac_cv_prog_cc_c99=no
  11867. ac_save_CC=$CC
  11868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11869. /* end confdefs.h. */
  11870. $ac_c_conftest_c99_program
  11871. _ACEOF
  11872. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11873. do
  11874. CC="$ac_save_CC $ac_arg"
  11875. if ac_fn_c_try_compile "$LINENO"
  11876. then :
  11877. ac_cv_prog_cc_c99=$ac_arg
  11878. fi
  11879. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11880. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11881. done
  11882. rm -f conftest.$ac_ext
  11883. CC=$ac_save_CC
  11884. fi
  11885. if test "x$ac_cv_prog_cc_c99" = xno
  11886. then :
  11887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11888. printf "%s\n" "unsupported" >&6; }
  11889. else $as_nop
  11890. if test "x$ac_cv_prog_cc_c99" = x
  11891. then :
  11892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11893. printf "%s\n" "none needed" >&6; }
  11894. else $as_nop
  11895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11896. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11897. CC="$CC $ac_cv_prog_cc_c99"
  11898. fi
  11899. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11900. ac_prog_cc_stdc=c99
  11901. fi
  11902. fi
  11903. if test x$ac_prog_cc_stdc = xno
  11904. then :
  11905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11906. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11907. if test ${ac_cv_prog_cc_c89+y}
  11908. then :
  11909. printf %s "(cached) " >&6
  11910. else $as_nop
  11911. ac_cv_prog_cc_c89=no
  11912. ac_save_CC=$CC
  11913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11914. /* end confdefs.h. */
  11915. $ac_c_conftest_c89_program
  11916. _ACEOF
  11917. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11918. do
  11919. CC="$ac_save_CC $ac_arg"
  11920. if ac_fn_c_try_compile "$LINENO"
  11921. then :
  11922. ac_cv_prog_cc_c89=$ac_arg
  11923. fi
  11924. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11925. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11926. done
  11927. rm -f conftest.$ac_ext
  11928. CC=$ac_save_CC
  11929. fi
  11930. if test "x$ac_cv_prog_cc_c89" = xno
  11931. then :
  11932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11933. printf "%s\n" "unsupported" >&6; }
  11934. else $as_nop
  11935. if test "x$ac_cv_prog_cc_c89" = x
  11936. then :
  11937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11938. printf "%s\n" "none needed" >&6; }
  11939. else $as_nop
  11940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11941. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  11942. CC="$CC $ac_cv_prog_cc_c89"
  11943. fi
  11944. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  11945. ac_prog_cc_stdc=c89
  11946. fi
  11947. fi
  11948. ac_ext=c
  11949. ac_cpp='$CPP $CPPFLAGS'
  11950. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11951. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11952. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11953. ac_ext=cpp
  11954. ac_cpp='$CXXCPP $CPPFLAGS'
  11955. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11956. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11957. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11958. if test -z "$CXX"; then
  11959. if test -n "$CCC"; then
  11960. CXX=$CCC
  11961. else
  11962. if test -n "$ac_tool_prefix"; then
  11963. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  11964. do
  11965. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11966. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11968. printf %s "checking for $ac_word... " >&6; }
  11969. if test ${ac_cv_prog_CXX+y}
  11970. then :
  11971. printf %s "(cached) " >&6
  11972. else $as_nop
  11973. if test -n "$CXX"; then
  11974. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11975. else
  11976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11977. for as_dir in $PATH
  11978. do
  11979. IFS=$as_save_IFS
  11980. case $as_dir in #(((
  11981. '') as_dir=./ ;;
  11982. */) ;;
  11983. *) as_dir=$as_dir/ ;;
  11984. esac
  11985. for ac_exec_ext in '' $ac_executable_extensions; do
  11986. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11987. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11988. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11989. break 2
  11990. fi
  11991. done
  11992. done
  11993. IFS=$as_save_IFS
  11994. fi
  11995. fi
  11996. CXX=$ac_cv_prog_CXX
  11997. if test -n "$CXX"; then
  11998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11999. printf "%s\n" "$CXX" >&6; }
  12000. else
  12001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12002. printf "%s\n" "no" >&6; }
  12003. fi
  12004. test -n "$CXX" && break
  12005. done
  12006. fi
  12007. if test -z "$CXX"; then
  12008. ac_ct_CXX=$CXX
  12009. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12010. do
  12011. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12012. set dummy $ac_prog; ac_word=$2
  12013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12014. printf %s "checking for $ac_word... " >&6; }
  12015. if test ${ac_cv_prog_ac_ct_CXX+y}
  12016. then :
  12017. printf %s "(cached) " >&6
  12018. else $as_nop
  12019. if test -n "$ac_ct_CXX"; then
  12020. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12021. else
  12022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12023. for as_dir in $PATH
  12024. do
  12025. IFS=$as_save_IFS
  12026. case $as_dir in #(((
  12027. '') as_dir=./ ;;
  12028. */) ;;
  12029. *) as_dir=$as_dir/ ;;
  12030. esac
  12031. for ac_exec_ext in '' $ac_executable_extensions; do
  12032. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12033. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12034. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12035. break 2
  12036. fi
  12037. done
  12038. done
  12039. IFS=$as_save_IFS
  12040. fi
  12041. fi
  12042. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12043. if test -n "$ac_ct_CXX"; then
  12044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12045. printf "%s\n" "$ac_ct_CXX" >&6; }
  12046. else
  12047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12048. printf "%s\n" "no" >&6; }
  12049. fi
  12050. test -n "$ac_ct_CXX" && break
  12051. done
  12052. if test "x$ac_ct_CXX" = x; then
  12053. CXX="g++"
  12054. else
  12055. case $cross_compiling:$ac_tool_warned in
  12056. yes:)
  12057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12058. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12059. ac_tool_warned=yes ;;
  12060. esac
  12061. CXX=$ac_ct_CXX
  12062. fi
  12063. fi
  12064. fi
  12065. fi
  12066. # Provide some information about the compiler.
  12067. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12068. set X $ac_compile
  12069. ac_compiler=$2
  12070. for ac_option in --version -v -V -qversion; do
  12071. { { ac_try="$ac_compiler $ac_option >&5"
  12072. case "(($ac_try" in
  12073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12074. *) ac_try_echo=$ac_try;;
  12075. esac
  12076. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12077. printf "%s\n" "$ac_try_echo"; } >&5
  12078. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12079. ac_status=$?
  12080. if test -s conftest.err; then
  12081. sed '10a\
  12082. ... rest of stderr output deleted ...
  12083. 10q' conftest.err >conftest.er1
  12084. cat conftest.er1 >&5
  12085. fi
  12086. rm -f conftest.er1 conftest.err
  12087. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12088. test $ac_status = 0; }
  12089. done
  12090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12091. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12092. if test ${ac_cv_cxx_compiler_gnu+y}
  12093. then :
  12094. printf %s "(cached) " >&6
  12095. else $as_nop
  12096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12097. /* end confdefs.h. */
  12098. int
  12099. main (void)
  12100. {
  12101. #ifndef __GNUC__
  12102. choke me
  12103. #endif
  12104. ;
  12105. return 0;
  12106. }
  12107. _ACEOF
  12108. if ac_fn_cxx_try_compile "$LINENO"
  12109. then :
  12110. ac_compiler_gnu=yes
  12111. else $as_nop
  12112. ac_compiler_gnu=no
  12113. fi
  12114. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12115. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12116. fi
  12117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12118. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12119. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12120. if test $ac_compiler_gnu = yes; then
  12121. GXX=yes
  12122. else
  12123. GXX=
  12124. fi
  12125. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12126. ac_save_CXXFLAGS=$CXXFLAGS
  12127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12128. printf %s "checking whether $CXX accepts -g... " >&6; }
  12129. if test ${ac_cv_prog_cxx_g+y}
  12130. then :
  12131. printf %s "(cached) " >&6
  12132. else $as_nop
  12133. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12134. ac_cxx_werror_flag=yes
  12135. ac_cv_prog_cxx_g=no
  12136. CXXFLAGS="-g"
  12137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12138. /* end confdefs.h. */
  12139. int
  12140. main (void)
  12141. {
  12142. ;
  12143. return 0;
  12144. }
  12145. _ACEOF
  12146. if ac_fn_cxx_try_compile "$LINENO"
  12147. then :
  12148. ac_cv_prog_cxx_g=yes
  12149. else $as_nop
  12150. CXXFLAGS=""
  12151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12152. /* end confdefs.h. */
  12153. int
  12154. main (void)
  12155. {
  12156. ;
  12157. return 0;
  12158. }
  12159. _ACEOF
  12160. if ac_fn_cxx_try_compile "$LINENO"
  12161. then :
  12162. else $as_nop
  12163. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12164. CXXFLAGS="-g"
  12165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12166. /* end confdefs.h. */
  12167. int
  12168. main (void)
  12169. {
  12170. ;
  12171. return 0;
  12172. }
  12173. _ACEOF
  12174. if ac_fn_cxx_try_compile "$LINENO"
  12175. then :
  12176. ac_cv_prog_cxx_g=yes
  12177. fi
  12178. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12179. fi
  12180. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12181. fi
  12182. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12183. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12184. fi
  12185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12186. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12187. if test $ac_test_CXXFLAGS; then
  12188. CXXFLAGS=$ac_save_CXXFLAGS
  12189. elif test $ac_cv_prog_cxx_g = yes; then
  12190. if test "$GXX" = yes; then
  12191. CXXFLAGS="-g -O2"
  12192. else
  12193. CXXFLAGS="-g"
  12194. fi
  12195. else
  12196. if test "$GXX" = yes; then
  12197. CXXFLAGS="-O2"
  12198. else
  12199. CXXFLAGS=
  12200. fi
  12201. fi
  12202. ac_prog_cxx_stdcxx=no
  12203. if test x$ac_prog_cxx_stdcxx = xno
  12204. then :
  12205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12206. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12207. if test ${ac_cv_prog_cxx_11+y}
  12208. then :
  12209. printf %s "(cached) " >&6
  12210. else $as_nop
  12211. ac_cv_prog_cxx_11=no
  12212. ac_save_CXX=$CXX
  12213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12214. /* end confdefs.h. */
  12215. $ac_cxx_conftest_cxx11_program
  12216. _ACEOF
  12217. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12218. do
  12219. CXX="$ac_save_CXX $ac_arg"
  12220. if ac_fn_cxx_try_compile "$LINENO"
  12221. then :
  12222. ac_cv_prog_cxx_cxx11=$ac_arg
  12223. fi
  12224. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12225. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12226. done
  12227. rm -f conftest.$ac_ext
  12228. CXX=$ac_save_CXX
  12229. fi
  12230. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12231. then :
  12232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12233. printf "%s\n" "unsupported" >&6; }
  12234. else $as_nop
  12235. if test "x$ac_cv_prog_cxx_cxx11" = x
  12236. then :
  12237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12238. printf "%s\n" "none needed" >&6; }
  12239. else $as_nop
  12240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12241. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12242. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12243. fi
  12244. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12245. ac_prog_cxx_stdcxx=cxx11
  12246. fi
  12247. fi
  12248. if test x$ac_prog_cxx_stdcxx = xno
  12249. then :
  12250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12251. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12252. if test ${ac_cv_prog_cxx_98+y}
  12253. then :
  12254. printf %s "(cached) " >&6
  12255. else $as_nop
  12256. ac_cv_prog_cxx_98=no
  12257. ac_save_CXX=$CXX
  12258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12259. /* end confdefs.h. */
  12260. $ac_cxx_conftest_cxx98_program
  12261. _ACEOF
  12262. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12263. do
  12264. CXX="$ac_save_CXX $ac_arg"
  12265. if ac_fn_cxx_try_compile "$LINENO"
  12266. then :
  12267. ac_cv_prog_cxx_cxx98=$ac_arg
  12268. fi
  12269. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12270. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12271. done
  12272. rm -f conftest.$ac_ext
  12273. CXX=$ac_save_CXX
  12274. fi
  12275. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12276. then :
  12277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12278. printf "%s\n" "unsupported" >&6; }
  12279. else $as_nop
  12280. if test "x$ac_cv_prog_cxx_cxx98" = x
  12281. then :
  12282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12283. printf "%s\n" "none needed" >&6; }
  12284. else $as_nop
  12285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12286. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12287. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12288. fi
  12289. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12290. ac_prog_cxx_stdcxx=cxx98
  12291. fi
  12292. fi
  12293. ac_ext=c
  12294. ac_cpp='$CPP $CPPFLAGS'
  12295. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12296. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12297. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12298. func_stripname_cnf ()
  12299. {
  12300. case $2 in
  12301. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12302. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12303. esac
  12304. } # func_stripname_cnf
  12305. if test -n "$CXX" && ( test no != "$CXX" &&
  12306. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12307. (test g++ != "$CXX"))); then
  12308. ac_ext=cpp
  12309. ac_cpp='$CXXCPP $CPPFLAGS'
  12310. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12311. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12312. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12314. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12315. if test -z "$CXXCPP"; then
  12316. if test ${ac_cv_prog_CXXCPP+y}
  12317. then :
  12318. printf %s "(cached) " >&6
  12319. else $as_nop
  12320. # Double quotes because $CXX needs to be expanded
  12321. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12322. do
  12323. ac_preproc_ok=false
  12324. for ac_cxx_preproc_warn_flag in '' yes
  12325. do
  12326. # Use a header file that comes with gcc, so configuring glibc
  12327. # with a fresh cross-compiler works.
  12328. # On the NeXT, cc -E runs the code through the compiler's parser,
  12329. # not just through cpp. "Syntax error" is here to catch this case.
  12330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12331. /* end confdefs.h. */
  12332. #include <limits.h>
  12333. Syntax error
  12334. _ACEOF
  12335. if ac_fn_cxx_try_cpp "$LINENO"
  12336. then :
  12337. else $as_nop
  12338. # Broken: fails on valid input.
  12339. continue
  12340. fi
  12341. rm -f conftest.err conftest.i conftest.$ac_ext
  12342. # OK, works on sane cases. Now check whether nonexistent headers
  12343. # can be detected and how.
  12344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12345. /* end confdefs.h. */
  12346. #include <ac_nonexistent.h>
  12347. _ACEOF
  12348. if ac_fn_cxx_try_cpp "$LINENO"
  12349. then :
  12350. # Broken: success on invalid input.
  12351. continue
  12352. else $as_nop
  12353. # Passes both tests.
  12354. ac_preproc_ok=:
  12355. break
  12356. fi
  12357. rm -f conftest.err conftest.i conftest.$ac_ext
  12358. done
  12359. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12360. rm -f conftest.i conftest.err conftest.$ac_ext
  12361. if $ac_preproc_ok
  12362. then :
  12363. break
  12364. fi
  12365. done
  12366. ac_cv_prog_CXXCPP=$CXXCPP
  12367. fi
  12368. CXXCPP=$ac_cv_prog_CXXCPP
  12369. else
  12370. ac_cv_prog_CXXCPP=$CXXCPP
  12371. fi
  12372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12373. printf "%s\n" "$CXXCPP" >&6; }
  12374. ac_preproc_ok=false
  12375. for ac_cxx_preproc_warn_flag in '' yes
  12376. do
  12377. # Use a header file that comes with gcc, so configuring glibc
  12378. # with a fresh cross-compiler works.
  12379. # On the NeXT, cc -E runs the code through the compiler's parser,
  12380. # not just through cpp. "Syntax error" is here to catch this case.
  12381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12382. /* end confdefs.h. */
  12383. #include <limits.h>
  12384. Syntax error
  12385. _ACEOF
  12386. if ac_fn_cxx_try_cpp "$LINENO"
  12387. then :
  12388. else $as_nop
  12389. # Broken: fails on valid input.
  12390. continue
  12391. fi
  12392. rm -f conftest.err conftest.i conftest.$ac_ext
  12393. # OK, works on sane cases. Now check whether nonexistent headers
  12394. # can be detected and how.
  12395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12396. /* end confdefs.h. */
  12397. #include <ac_nonexistent.h>
  12398. _ACEOF
  12399. if ac_fn_cxx_try_cpp "$LINENO"
  12400. then :
  12401. # Broken: success on invalid input.
  12402. continue
  12403. else $as_nop
  12404. # Passes both tests.
  12405. ac_preproc_ok=:
  12406. break
  12407. fi
  12408. rm -f conftest.err conftest.i conftest.$ac_ext
  12409. done
  12410. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12411. rm -f conftest.i conftest.err conftest.$ac_ext
  12412. if $ac_preproc_ok
  12413. then :
  12414. else $as_nop
  12415. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12416. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12417. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12418. See \`config.log' for more details" "$LINENO" 5; }
  12419. fi
  12420. ac_ext=c
  12421. ac_cpp='$CPP $CPPFLAGS'
  12422. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12423. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12424. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12425. else
  12426. _lt_caught_CXX_error=yes
  12427. fi
  12428. ac_ext=cpp
  12429. ac_cpp='$CXXCPP $CPPFLAGS'
  12430. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12431. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12432. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12433. archive_cmds_need_lc_CXX=no
  12434. allow_undefined_flag_CXX=
  12435. always_export_symbols_CXX=no
  12436. archive_expsym_cmds_CXX=
  12437. compiler_needs_object_CXX=no
  12438. export_dynamic_flag_spec_CXX=
  12439. hardcode_direct_CXX=no
  12440. hardcode_direct_absolute_CXX=no
  12441. hardcode_libdir_flag_spec_CXX=
  12442. hardcode_libdir_separator_CXX=
  12443. hardcode_minus_L_CXX=no
  12444. hardcode_shlibpath_var_CXX=unsupported
  12445. hardcode_automatic_CXX=no
  12446. inherit_rpath_CXX=no
  12447. module_cmds_CXX=
  12448. module_expsym_cmds_CXX=
  12449. link_all_deplibs_CXX=unknown
  12450. old_archive_cmds_CXX=$old_archive_cmds
  12451. reload_flag_CXX=$reload_flag
  12452. reload_cmds_CXX=$reload_cmds
  12453. no_undefined_flag_CXX=
  12454. whole_archive_flag_spec_CXX=
  12455. enable_shared_with_static_runtimes_CXX=no
  12456. # Source file extension for C++ test sources.
  12457. ac_ext=cpp
  12458. # Object file extension for compiled C++ test sources.
  12459. objext=o
  12460. objext_CXX=$objext
  12461. # No sense in running all these tests if we already determined that
  12462. # the CXX compiler isn't working. Some variables (like enable_shared)
  12463. # are currently assumed to apply to all compilers on this platform,
  12464. # and will be corrupted by setting them based on a non-working compiler.
  12465. if test yes != "$_lt_caught_CXX_error"; then
  12466. # Code to be used in simple compile tests
  12467. lt_simple_compile_test_code="int some_variable = 0;"
  12468. # Code to be used in simple link tests
  12469. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12470. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12471. # If no C compiler was specified, use CC.
  12472. LTCC=${LTCC-"$CC"}
  12473. # If no C compiler flags were specified, use CFLAGS.
  12474. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12475. # Allow CC to be a program name with arguments.
  12476. compiler=$CC
  12477. # save warnings/boilerplate of simple test code
  12478. ac_outfile=conftest.$ac_objext
  12479. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12480. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12481. _lt_compiler_boilerplate=`cat conftest.err`
  12482. $RM conftest*
  12483. ac_outfile=conftest.$ac_objext
  12484. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12485. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12486. _lt_linker_boilerplate=`cat conftest.err`
  12487. $RM -r conftest*
  12488. # Allow CC to be a program name with arguments.
  12489. lt_save_CC=$CC
  12490. lt_save_CFLAGS=$CFLAGS
  12491. lt_save_LD=$LD
  12492. lt_save_GCC=$GCC
  12493. GCC=$GXX
  12494. lt_save_with_gnu_ld=$with_gnu_ld
  12495. lt_save_path_LD=$lt_cv_path_LD
  12496. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12497. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12498. else
  12499. $as_unset lt_cv_prog_gnu_ld
  12500. fi
  12501. if test -n "${lt_cv_path_LDCXX+set}"; then
  12502. lt_cv_path_LD=$lt_cv_path_LDCXX
  12503. else
  12504. $as_unset lt_cv_path_LD
  12505. fi
  12506. test -z "${LDCXX+set}" || LD=$LDCXX
  12507. CC=${CXX-"c++"}
  12508. CFLAGS=$CXXFLAGS
  12509. compiler=$CC
  12510. compiler_CXX=$CC
  12511. func_cc_basename $compiler
  12512. cc_basename=$func_cc_basename_result
  12513. if test -n "$compiler"; then
  12514. # We don't want -fno-exception when compiling C++ code, so set the
  12515. # no_builtin_flag separately
  12516. if test yes = "$GXX"; then
  12517. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12518. else
  12519. lt_prog_compiler_no_builtin_flag_CXX=
  12520. fi
  12521. if test yes = "$GXX"; then
  12522. # Set up default GNU C++ configuration
  12523. # Check whether --with-gnu-ld was given.
  12524. if test ${with_gnu_ld+y}
  12525. then :
  12526. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12527. else $as_nop
  12528. with_gnu_ld=no
  12529. fi
  12530. ac_prog=ld
  12531. if test yes = "$GCC"; then
  12532. # Check if gcc -print-prog-name=ld gives a path.
  12533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12534. printf %s "checking for ld used by $CC... " >&6; }
  12535. case $host in
  12536. *-*-mingw*)
  12537. # gcc leaves a trailing carriage return, which upsets mingw
  12538. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12539. *)
  12540. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12541. esac
  12542. case $ac_prog in
  12543. # Accept absolute paths.
  12544. [\\/]* | ?:[\\/]*)
  12545. re_direlt='/[^/][^/]*/\.\./'
  12546. # Canonicalize the pathname of ld
  12547. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12548. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12549. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12550. done
  12551. test -z "$LD" && LD=$ac_prog
  12552. ;;
  12553. "")
  12554. # If it fails, then pretend we aren't using GCC.
  12555. ac_prog=ld
  12556. ;;
  12557. *)
  12558. # If it is relative, then search for the first ld in PATH.
  12559. with_gnu_ld=unknown
  12560. ;;
  12561. esac
  12562. elif test yes = "$with_gnu_ld"; then
  12563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12564. printf %s "checking for GNU ld... " >&6; }
  12565. else
  12566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12567. printf %s "checking for non-GNU ld... " >&6; }
  12568. fi
  12569. if test ${lt_cv_path_LD+y}
  12570. then :
  12571. printf %s "(cached) " >&6
  12572. else $as_nop
  12573. if test -z "$LD"; then
  12574. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12575. for ac_dir in $PATH; do
  12576. IFS=$lt_save_ifs
  12577. test -z "$ac_dir" && ac_dir=.
  12578. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12579. lt_cv_path_LD=$ac_dir/$ac_prog
  12580. # Check to see if the program is GNU ld. I'd rather use --version,
  12581. # but apparently some variants of GNU ld only accept -v.
  12582. # Break only if it was the GNU/non-GNU ld that we prefer.
  12583. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12584. *GNU* | *'with BFD'*)
  12585. test no != "$with_gnu_ld" && break
  12586. ;;
  12587. *)
  12588. test yes != "$with_gnu_ld" && break
  12589. ;;
  12590. esac
  12591. fi
  12592. done
  12593. IFS=$lt_save_ifs
  12594. else
  12595. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12596. fi
  12597. fi
  12598. LD=$lt_cv_path_LD
  12599. if test -n "$LD"; then
  12600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12601. printf "%s\n" "$LD" >&6; }
  12602. else
  12603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12604. printf "%s\n" "no" >&6; }
  12605. fi
  12606. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12608. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12609. if test ${lt_cv_prog_gnu_ld+y}
  12610. then :
  12611. printf %s "(cached) " >&6
  12612. else $as_nop
  12613. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12614. case `$LD -v 2>&1 </dev/null` in
  12615. *GNU* | *'with BFD'*)
  12616. lt_cv_prog_gnu_ld=yes
  12617. ;;
  12618. *)
  12619. lt_cv_prog_gnu_ld=no
  12620. ;;
  12621. esac
  12622. fi
  12623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12624. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12625. with_gnu_ld=$lt_cv_prog_gnu_ld
  12626. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12627. # archiving commands below assume that GNU ld is being used.
  12628. if test yes = "$with_gnu_ld"; then
  12629. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12630. 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'
  12631. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12632. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12633. # If archive_cmds runs LD, not CC, wlarc should be empty
  12634. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12635. # investigate it a little bit more. (MM)
  12636. wlarc='$wl'
  12637. # ancient GNU ld didn't support --whole-archive et. al.
  12638. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12639. $GREP 'no-whole-archive' > /dev/null; then
  12640. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12641. else
  12642. whole_archive_flag_spec_CXX=
  12643. fi
  12644. else
  12645. with_gnu_ld=no
  12646. wlarc=
  12647. # A generic and very simple default shared library creation
  12648. # command for GNU C++ for the case where it uses the native
  12649. # linker, instead of GNU ld. If possible, this setting should
  12650. # overridden to take advantage of the native linker features on
  12651. # the platform it is being used on.
  12652. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12653. fi
  12654. # Commands to make compiler produce verbose output that lists
  12655. # what "hidden" libraries, object files and flags are used when
  12656. # linking a shared library.
  12657. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12658. else
  12659. GXX=no
  12660. with_gnu_ld=no
  12661. wlarc=
  12662. fi
  12663. # PORTME: fill in a description of your system's C++ link characteristics
  12664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12665. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12666. ld_shlibs_CXX=yes
  12667. case $host_os in
  12668. aix3*)
  12669. # FIXME: insert proper C++ library support
  12670. ld_shlibs_CXX=no
  12671. ;;
  12672. aix[4-9]*)
  12673. if test ia64 = "$host_cpu"; then
  12674. # On IA64, the linker does run time linking by default, so we don't
  12675. # have to do anything special.
  12676. aix_use_runtimelinking=no
  12677. exp_sym_flag='-Bexport'
  12678. no_entry_flag=
  12679. else
  12680. aix_use_runtimelinking=no
  12681. # Test if we are trying to use run time linking or normal
  12682. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12683. # have runtime linking enabled, and use it for executables.
  12684. # For shared libraries, we enable/disable runtime linking
  12685. # depending on the kind of the shared library created -
  12686. # when "with_aix_soname,aix_use_runtimelinking" is:
  12687. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12688. # "aix,yes" lib.so shared, rtl:yes, for executables
  12689. # lib.a static archive
  12690. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12691. # lib.a(lib.so.V) shared, rtl:no, for executables
  12692. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12693. # lib.a(lib.so.V) shared, rtl:no
  12694. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12695. # lib.a static archive
  12696. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12697. for ld_flag in $LDFLAGS; do
  12698. case $ld_flag in
  12699. *-brtl*)
  12700. aix_use_runtimelinking=yes
  12701. break
  12702. ;;
  12703. esac
  12704. done
  12705. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12706. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12707. # so we don't have lib.a shared libs to link our executables.
  12708. # We have to force runtime linking in this case.
  12709. aix_use_runtimelinking=yes
  12710. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12711. fi
  12712. ;;
  12713. esac
  12714. exp_sym_flag='-bexport'
  12715. no_entry_flag='-bnoentry'
  12716. fi
  12717. # When large executables or shared objects are built, AIX ld can
  12718. # have problems creating the table of contents. If linking a library
  12719. # or program results in "error TOC overflow" add -mminimal-toc to
  12720. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12721. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12722. archive_cmds_CXX=''
  12723. hardcode_direct_CXX=yes
  12724. hardcode_direct_absolute_CXX=yes
  12725. hardcode_libdir_separator_CXX=':'
  12726. link_all_deplibs_CXX=yes
  12727. file_list_spec_CXX='$wl-f,'
  12728. case $with_aix_soname,$aix_use_runtimelinking in
  12729. aix,*) ;; # no import file
  12730. svr4,* | *,yes) # use import file
  12731. # The Import File defines what to hardcode.
  12732. hardcode_direct_CXX=no
  12733. hardcode_direct_absolute_CXX=no
  12734. ;;
  12735. esac
  12736. if test yes = "$GXX"; then
  12737. case $host_os in aix4.[012]|aix4.[012].*)
  12738. # We only want to do this on AIX 4.2 and lower, the check
  12739. # below for broken collect2 doesn't work under 4.3+
  12740. collect2name=`$CC -print-prog-name=collect2`
  12741. if test -f "$collect2name" &&
  12742. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12743. then
  12744. # We have reworked collect2
  12745. :
  12746. else
  12747. # We have old collect2
  12748. hardcode_direct_CXX=unsupported
  12749. # It fails to find uninstalled libraries when the uninstalled
  12750. # path is not listed in the libpath. Setting hardcode_minus_L
  12751. # to unsupported forces relinking
  12752. hardcode_minus_L_CXX=yes
  12753. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12754. hardcode_libdir_separator_CXX=
  12755. fi
  12756. esac
  12757. shared_flag='-shared'
  12758. if test yes = "$aix_use_runtimelinking"; then
  12759. shared_flag=$shared_flag' $wl-G'
  12760. fi
  12761. # Need to ensure runtime linking is disabled for the traditional
  12762. # shared library, or the linker may eventually find shared libraries
  12763. # /with/ Import File - we do not want to mix them.
  12764. shared_flag_aix='-shared'
  12765. shared_flag_svr4='-shared $wl-G'
  12766. else
  12767. # not using gcc
  12768. if test ia64 = "$host_cpu"; then
  12769. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12770. # chokes on -Wl,-G. The following line is correct:
  12771. shared_flag='-G'
  12772. else
  12773. if test yes = "$aix_use_runtimelinking"; then
  12774. shared_flag='$wl-G'
  12775. else
  12776. shared_flag='$wl-bM:SRE'
  12777. fi
  12778. shared_flag_aix='$wl-bM:SRE'
  12779. shared_flag_svr4='$wl-G'
  12780. fi
  12781. fi
  12782. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12783. # It seems that -bexpall does not export symbols beginning with
  12784. # underscore (_), so it is better to generate a list of symbols to
  12785. # export.
  12786. always_export_symbols_CXX=yes
  12787. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12788. # Warning - without using the other runtime loading flags (-brtl),
  12789. # -berok will link without error, but may produce a broken library.
  12790. # The "-G" linker flag allows undefined symbols.
  12791. no_undefined_flag_CXX='-bernotok'
  12792. # Determine the default libpath from the value encoded in an empty
  12793. # executable.
  12794. if test set = "${lt_cv_aix_libpath+set}"; then
  12795. aix_libpath=$lt_cv_aix_libpath
  12796. else
  12797. if test ${lt_cv_aix_libpath__CXX+y}
  12798. then :
  12799. printf %s "(cached) " >&6
  12800. else $as_nop
  12801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12802. /* end confdefs.h. */
  12803. int
  12804. main (void)
  12805. {
  12806. ;
  12807. return 0;
  12808. }
  12809. _ACEOF
  12810. if ac_fn_cxx_try_link "$LINENO"
  12811. then :
  12812. lt_aix_libpath_sed='
  12813. /Import File Strings/,/^$/ {
  12814. /^0/ {
  12815. s/^0 *\([^ ]*\) *$/\1/
  12816. p
  12817. }
  12818. }'
  12819. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12820. # Check for a 64-bit object if we didn't find anything.
  12821. if test -z "$lt_cv_aix_libpath__CXX"; then
  12822. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12823. fi
  12824. fi
  12825. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12826. conftest$ac_exeext conftest.$ac_ext
  12827. if test -z "$lt_cv_aix_libpath__CXX"; then
  12828. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12829. fi
  12830. fi
  12831. aix_libpath=$lt_cv_aix_libpath__CXX
  12832. fi
  12833. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12834. 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
  12835. else
  12836. if test ia64 = "$host_cpu"; then
  12837. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12838. allow_undefined_flag_CXX="-z nodefs"
  12839. 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"
  12840. else
  12841. # Determine the default libpath from the value encoded in an
  12842. # empty executable.
  12843. if test set = "${lt_cv_aix_libpath+set}"; then
  12844. aix_libpath=$lt_cv_aix_libpath
  12845. else
  12846. if test ${lt_cv_aix_libpath__CXX+y}
  12847. then :
  12848. printf %s "(cached) " >&6
  12849. else $as_nop
  12850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12851. /* end confdefs.h. */
  12852. int
  12853. main (void)
  12854. {
  12855. ;
  12856. return 0;
  12857. }
  12858. _ACEOF
  12859. if ac_fn_cxx_try_link "$LINENO"
  12860. then :
  12861. lt_aix_libpath_sed='
  12862. /Import File Strings/,/^$/ {
  12863. /^0/ {
  12864. s/^0 *\([^ ]*\) *$/\1/
  12865. p
  12866. }
  12867. }'
  12868. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12869. # Check for a 64-bit object if we didn't find anything.
  12870. if test -z "$lt_cv_aix_libpath__CXX"; then
  12871. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12872. fi
  12873. fi
  12874. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12875. conftest$ac_exeext conftest.$ac_ext
  12876. if test -z "$lt_cv_aix_libpath__CXX"; then
  12877. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12878. fi
  12879. fi
  12880. aix_libpath=$lt_cv_aix_libpath__CXX
  12881. fi
  12882. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12883. # Warning - without using the other run time loading flags,
  12884. # -berok will link without error, but may produce a broken library.
  12885. no_undefined_flag_CXX=' $wl-bernotok'
  12886. allow_undefined_flag_CXX=' $wl-berok'
  12887. if test yes = "$with_gnu_ld"; then
  12888. # We only use this code for GNU lds that support --whole-archive.
  12889. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12890. else
  12891. # Exported symbols can be pulled into shared objects from archives
  12892. whole_archive_flag_spec_CXX='$convenience'
  12893. fi
  12894. archive_cmds_need_lc_CXX=yes
  12895. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12896. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12897. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12898. if test svr4 != "$with_aix_soname"; then
  12899. # This is similar to how AIX traditionally builds its shared
  12900. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12901. 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'
  12902. fi
  12903. if test aix != "$with_aix_soname"; then
  12904. 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'
  12905. else
  12906. # used by -dlpreopen to get the symbols
  12907. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12908. fi
  12909. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12910. fi
  12911. fi
  12912. ;;
  12913. beos*)
  12914. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12915. allow_undefined_flag_CXX=unsupported
  12916. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12917. # support --undefined. This deserves some investigation. FIXME
  12918. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12919. else
  12920. ld_shlibs_CXX=no
  12921. fi
  12922. ;;
  12923. chorus*)
  12924. case $cc_basename in
  12925. *)
  12926. # FIXME: insert proper C++ library support
  12927. ld_shlibs_CXX=no
  12928. ;;
  12929. esac
  12930. ;;
  12931. cygwin* | mingw* | pw32* | cegcc*)
  12932. case $GXX,$cc_basename in
  12933. ,cl* | no,cl*)
  12934. # Native MSVC
  12935. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12936. # no search path for DLLs.
  12937. hardcode_libdir_flag_spec_CXX=' '
  12938. allow_undefined_flag_CXX=unsupported
  12939. always_export_symbols_CXX=yes
  12940. file_list_spec_CXX='@'
  12941. # Tell ltmain to make .lib files, not .a files.
  12942. libext=lib
  12943. # Tell ltmain to make .dll files, not .so files.
  12944. shrext_cmds=.dll
  12945. # FIXME: Setting linknames here is a bad hack.
  12946. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12947. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12948. cp "$export_symbols" "$output_objdir/$soname.def";
  12949. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12950. else
  12951. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12952. fi~
  12953. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12954. linknames='
  12955. # The linker will not automatically build a static lib if we build a DLL.
  12956. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12957. enable_shared_with_static_runtimes_CXX=yes
  12958. # Don't use ranlib
  12959. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12960. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12961. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12962. case $lt_outputfile in
  12963. *.exe|*.EXE) ;;
  12964. *)
  12965. lt_outputfile=$lt_outputfile.exe
  12966. lt_tool_outputfile=$lt_tool_outputfile.exe
  12967. ;;
  12968. esac~
  12969. func_to_tool_file "$lt_outputfile"~
  12970. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12971. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12972. $RM "$lt_outputfile.manifest";
  12973. fi'
  12974. ;;
  12975. *)
  12976. # g++
  12977. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12978. # as there is no search path for DLLs.
  12979. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12980. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12981. allow_undefined_flag_CXX=unsupported
  12982. always_export_symbols_CXX=no
  12983. enable_shared_with_static_runtimes_CXX=yes
  12984. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12985. 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'
  12986. # If the export-symbols file already is a .def file, use it as
  12987. # is; otherwise, prepend EXPORTS...
  12988. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12989. cp $export_symbols $output_objdir/$soname.def;
  12990. else
  12991. echo EXPORTS > $output_objdir/$soname.def;
  12992. cat $export_symbols >> $output_objdir/$soname.def;
  12993. fi~
  12994. $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'
  12995. else
  12996. ld_shlibs_CXX=no
  12997. fi
  12998. ;;
  12999. esac
  13000. ;;
  13001. darwin* | rhapsody*)
  13002. archive_cmds_need_lc_CXX=no
  13003. hardcode_direct_CXX=no
  13004. hardcode_automatic_CXX=yes
  13005. hardcode_shlibpath_var_CXX=unsupported
  13006. if test yes = "$lt_cv_ld_force_load"; then
  13007. 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\"`'
  13008. else
  13009. whole_archive_flag_spec_CXX=''
  13010. fi
  13011. link_all_deplibs_CXX=yes
  13012. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13013. case $cc_basename in
  13014. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13015. *) _lt_dar_can_shared=$GCC ;;
  13016. esac
  13017. if test yes = "$_lt_dar_can_shared"; then
  13018. output_verbose_link_cmd=func_echo_all
  13019. 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"
  13020. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13021. 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"
  13022. 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"
  13023. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13024. 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"
  13025. 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"
  13026. fi
  13027. else
  13028. ld_shlibs_CXX=no
  13029. fi
  13030. ;;
  13031. os2*)
  13032. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13033. hardcode_minus_L_CXX=yes
  13034. allow_undefined_flag_CXX=unsupported
  13035. shrext_cmds=.dll
  13036. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13037. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13038. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13039. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13040. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13041. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13042. emximp -o $lib $output_objdir/$libname.def'
  13043. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13044. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13045. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13046. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13047. prefix_cmds="$SED"~
  13048. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13049. prefix_cmds="$prefix_cmds -e 1d";
  13050. fi~
  13051. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13052. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13053. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13054. emximp -o $lib $output_objdir/$libname.def'
  13055. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13056. enable_shared_with_static_runtimes_CXX=yes
  13057. file_list_spec_CXX='@'
  13058. ;;
  13059. dgux*)
  13060. case $cc_basename in
  13061. ec++*)
  13062. # FIXME: insert proper C++ library support
  13063. ld_shlibs_CXX=no
  13064. ;;
  13065. ghcx*)
  13066. # Green Hills C++ Compiler
  13067. # FIXME: insert proper C++ library support
  13068. ld_shlibs_CXX=no
  13069. ;;
  13070. *)
  13071. # FIXME: insert proper C++ library support
  13072. ld_shlibs_CXX=no
  13073. ;;
  13074. esac
  13075. ;;
  13076. freebsd2.*)
  13077. # C++ shared libraries reported to be fairly broken before
  13078. # switch to ELF
  13079. ld_shlibs_CXX=no
  13080. ;;
  13081. freebsd-elf*)
  13082. archive_cmds_need_lc_CXX=no
  13083. ;;
  13084. freebsd* | dragonfly* | midnightbsd*)
  13085. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13086. # conventions
  13087. ld_shlibs_CXX=yes
  13088. ;;
  13089. haiku*)
  13090. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13091. link_all_deplibs_CXX=yes
  13092. ;;
  13093. hpux9*)
  13094. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13095. hardcode_libdir_separator_CXX=:
  13096. export_dynamic_flag_spec_CXX='$wl-E'
  13097. hardcode_direct_CXX=yes
  13098. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13099. # but as the default
  13100. # location of the library.
  13101. case $cc_basename in
  13102. CC*)
  13103. # FIXME: insert proper C++ library support
  13104. ld_shlibs_CXX=no
  13105. ;;
  13106. aCC*)
  13107. 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'
  13108. # Commands to make compiler produce verbose output that lists
  13109. # what "hidden" libraries, object files and flags are used when
  13110. # linking a shared library.
  13111. #
  13112. # There doesn't appear to be a way to prevent this compiler from
  13113. # explicitly linking system object files so we need to strip them
  13114. # from the output so that they don't get included in the library
  13115. # dependencies.
  13116. 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"'
  13117. ;;
  13118. *)
  13119. if test yes = "$GXX"; then
  13120. 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'
  13121. else
  13122. # FIXME: insert proper C++ library support
  13123. ld_shlibs_CXX=no
  13124. fi
  13125. ;;
  13126. esac
  13127. ;;
  13128. hpux10*|hpux11*)
  13129. if test no = "$with_gnu_ld"; then
  13130. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13131. hardcode_libdir_separator_CXX=:
  13132. case $host_cpu in
  13133. hppa*64*|ia64*)
  13134. ;;
  13135. *)
  13136. export_dynamic_flag_spec_CXX='$wl-E'
  13137. ;;
  13138. esac
  13139. fi
  13140. case $host_cpu in
  13141. hppa*64*|ia64*)
  13142. hardcode_direct_CXX=no
  13143. hardcode_shlibpath_var_CXX=no
  13144. ;;
  13145. *)
  13146. hardcode_direct_CXX=yes
  13147. hardcode_direct_absolute_CXX=yes
  13148. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13149. # but as the default
  13150. # location of the library.
  13151. ;;
  13152. esac
  13153. case $cc_basename in
  13154. CC*)
  13155. # FIXME: insert proper C++ library support
  13156. ld_shlibs_CXX=no
  13157. ;;
  13158. aCC*)
  13159. case $host_cpu in
  13160. hppa*64*)
  13161. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13162. ;;
  13163. ia64*)
  13164. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13165. ;;
  13166. *)
  13167. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13168. ;;
  13169. esac
  13170. # Commands to make compiler produce verbose output that lists
  13171. # what "hidden" libraries, object files and flags are used when
  13172. # linking a shared library.
  13173. #
  13174. # There doesn't appear to be a way to prevent this compiler from
  13175. # explicitly linking system object files so we need to strip them
  13176. # from the output so that they don't get included in the library
  13177. # dependencies.
  13178. 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"'
  13179. ;;
  13180. *)
  13181. if test yes = "$GXX"; then
  13182. if test no = "$with_gnu_ld"; then
  13183. case $host_cpu in
  13184. hppa*64*)
  13185. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13186. ;;
  13187. ia64*)
  13188. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13189. ;;
  13190. *)
  13191. 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'
  13192. ;;
  13193. esac
  13194. fi
  13195. else
  13196. # FIXME: insert proper C++ library support
  13197. ld_shlibs_CXX=no
  13198. fi
  13199. ;;
  13200. esac
  13201. ;;
  13202. interix[3-9]*)
  13203. hardcode_direct_CXX=no
  13204. hardcode_shlibpath_var_CXX=no
  13205. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13206. export_dynamic_flag_spec_CXX='$wl-E'
  13207. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13208. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13209. # default) and relocated if they conflict, which is a slow very memory
  13210. # consuming and fragmenting process. To avoid this, we pick a random,
  13211. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13212. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13213. 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'
  13214. 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'
  13215. ;;
  13216. irix5* | irix6*)
  13217. case $cc_basename in
  13218. CC*)
  13219. # SGI C++
  13220. 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'
  13221. # Archives containing C++ object files must be created using
  13222. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13223. # necessary to make sure instantiated templates are included
  13224. # in the archive.
  13225. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13226. ;;
  13227. *)
  13228. if test yes = "$GXX"; then
  13229. if test no = "$with_gnu_ld"; then
  13230. 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'
  13231. else
  13232. 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'
  13233. fi
  13234. fi
  13235. link_all_deplibs_CXX=yes
  13236. ;;
  13237. esac
  13238. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13239. hardcode_libdir_separator_CXX=:
  13240. inherit_rpath_CXX=yes
  13241. ;;
  13242. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13243. case $cc_basename in
  13244. KCC*)
  13245. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13246. # KCC will only create a shared library if the output file
  13247. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13248. # to its proper name (with version) after linking.
  13249. 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'
  13250. 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'
  13251. # Commands to make compiler produce verbose output that lists
  13252. # what "hidden" libraries, object files and flags are used when
  13253. # linking a shared library.
  13254. #
  13255. # There doesn't appear to be a way to prevent this compiler from
  13256. # explicitly linking system object files so we need to strip them
  13257. # from the output so that they don't get included in the library
  13258. # dependencies.
  13259. 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"'
  13260. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13261. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13262. # Archives containing C++ object files must be created using
  13263. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13264. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13265. ;;
  13266. icpc* | ecpc* )
  13267. # Intel C++
  13268. with_gnu_ld=yes
  13269. # version 8.0 and above of icpc choke on multiply defined symbols
  13270. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13271. # earlier do not add the objects themselves.
  13272. case `$CC -V 2>&1` in
  13273. *"Version 7."*)
  13274. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13275. 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'
  13276. ;;
  13277. *) # Version 8.0 or newer
  13278. tmp_idyn=
  13279. case $host_cpu in
  13280. ia64*) tmp_idyn=' -i_dynamic';;
  13281. esac
  13282. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13283. 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'
  13284. ;;
  13285. esac
  13286. archive_cmds_need_lc_CXX=no
  13287. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13288. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13289. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13290. ;;
  13291. pgCC* | pgcpp*)
  13292. # Portland Group C++ compiler
  13293. case `$CC -V` in
  13294. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13295. prelink_cmds_CXX='tpldir=Template.dir~
  13296. rm -rf $tpldir~
  13297. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13298. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13299. old_archive_cmds_CXX='tpldir=Template.dir~
  13300. rm -rf $tpldir~
  13301. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13302. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13303. $RANLIB $oldlib'
  13304. archive_cmds_CXX='tpldir=Template.dir~
  13305. rm -rf $tpldir~
  13306. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13307. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13308. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13309. rm -rf $tpldir~
  13310. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13311. $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'
  13312. ;;
  13313. *) # Version 6 and above use weak symbols
  13314. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13315. 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'
  13316. ;;
  13317. esac
  13318. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13319. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13320. 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'
  13321. ;;
  13322. cxx*)
  13323. # Compaq C++
  13324. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13325. 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'
  13326. runpath_var=LD_RUN_PATH
  13327. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13328. hardcode_libdir_separator_CXX=:
  13329. # Commands to make compiler produce verbose output that lists
  13330. # what "hidden" libraries, object files and flags are used when
  13331. # linking a shared library.
  13332. #
  13333. # There doesn't appear to be a way to prevent this compiler from
  13334. # explicitly linking system object files so we need to strip them
  13335. # from the output so that they don't get included in the library
  13336. # dependencies.
  13337. 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'
  13338. ;;
  13339. xl* | mpixl* | bgxl*)
  13340. # IBM XL 8.0 on PPC, with GNU ld
  13341. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13342. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13343. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13344. if test yes = "$supports_anon_versioning"; then
  13345. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13346. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13347. echo "local: *; };" >> $output_objdir/$libname.ver~
  13348. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13349. fi
  13350. ;;
  13351. *)
  13352. case `$CC -V 2>&1 | sed 5q` in
  13353. *Sun\ C*)
  13354. # Sun C++ 5.9
  13355. no_undefined_flag_CXX=' -zdefs'
  13356. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13357. 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'
  13358. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13359. 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'
  13360. compiler_needs_object_CXX=yes
  13361. # Not sure whether something based on
  13362. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13363. # would be better.
  13364. output_verbose_link_cmd='func_echo_all'
  13365. # Archives containing C++ object files must be created using
  13366. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13367. # necessary to make sure instantiated templates are included
  13368. # in the archive.
  13369. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13370. ;;
  13371. esac
  13372. ;;
  13373. esac
  13374. ;;
  13375. lynxos*)
  13376. # FIXME: insert proper C++ library support
  13377. ld_shlibs_CXX=no
  13378. ;;
  13379. m88k*)
  13380. # FIXME: insert proper C++ library support
  13381. ld_shlibs_CXX=no
  13382. ;;
  13383. mvs*)
  13384. case $cc_basename in
  13385. cxx*)
  13386. # FIXME: insert proper C++ library support
  13387. ld_shlibs_CXX=no
  13388. ;;
  13389. *)
  13390. # FIXME: insert proper C++ library support
  13391. ld_shlibs_CXX=no
  13392. ;;
  13393. esac
  13394. ;;
  13395. netbsd*)
  13396. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13397. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13398. wlarc=
  13399. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13400. hardcode_direct_CXX=yes
  13401. hardcode_shlibpath_var_CXX=no
  13402. fi
  13403. # Workaround some broken pre-1.5 toolchains
  13404. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13405. ;;
  13406. *nto* | *qnx*)
  13407. ld_shlibs_CXX=yes
  13408. ;;
  13409. openbsd* | bitrig*)
  13410. if test -f /usr/libexec/ld.so; then
  13411. hardcode_direct_CXX=yes
  13412. hardcode_shlibpath_var_CXX=no
  13413. hardcode_direct_absolute_CXX=yes
  13414. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13415. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13416. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13417. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13418. export_dynamic_flag_spec_CXX='$wl-E'
  13419. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13420. fi
  13421. output_verbose_link_cmd=func_echo_all
  13422. else
  13423. ld_shlibs_CXX=no
  13424. fi
  13425. ;;
  13426. osf3* | osf4* | osf5*)
  13427. case $cc_basename in
  13428. KCC*)
  13429. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13430. # KCC will only create a shared library if the output file
  13431. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13432. # to its proper name (with version) after linking.
  13433. 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'
  13434. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13435. hardcode_libdir_separator_CXX=:
  13436. # Archives containing C++ object files must be created using
  13437. # the KAI C++ compiler.
  13438. case $host in
  13439. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13440. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13441. esac
  13442. ;;
  13443. RCC*)
  13444. # Rational C++ 2.4.1
  13445. # FIXME: insert proper C++ library support
  13446. ld_shlibs_CXX=no
  13447. ;;
  13448. cxx*)
  13449. case $host in
  13450. osf3*)
  13451. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13452. 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'
  13453. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13454. ;;
  13455. *)
  13456. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13457. 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'
  13458. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13459. echo "-hidden">> $lib.exp~
  13460. $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~
  13461. $RM $lib.exp'
  13462. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13463. ;;
  13464. esac
  13465. hardcode_libdir_separator_CXX=:
  13466. # Commands to make compiler produce verbose output that lists
  13467. # what "hidden" libraries, object files and flags are used when
  13468. # linking a shared library.
  13469. #
  13470. # There doesn't appear to be a way to prevent this compiler from
  13471. # explicitly linking system object files so we need to strip them
  13472. # from the output so that they don't get included in the library
  13473. # dependencies.
  13474. 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"'
  13475. ;;
  13476. *)
  13477. if test yes,no = "$GXX,$with_gnu_ld"; then
  13478. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13479. case $host in
  13480. osf3*)
  13481. 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'
  13482. ;;
  13483. *)
  13484. 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'
  13485. ;;
  13486. esac
  13487. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13488. hardcode_libdir_separator_CXX=:
  13489. # Commands to make compiler produce verbose output that lists
  13490. # what "hidden" libraries, object files and flags are used when
  13491. # linking a shared library.
  13492. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13493. else
  13494. # FIXME: insert proper C++ library support
  13495. ld_shlibs_CXX=no
  13496. fi
  13497. ;;
  13498. esac
  13499. ;;
  13500. psos*)
  13501. # FIXME: insert proper C++ library support
  13502. ld_shlibs_CXX=no
  13503. ;;
  13504. sunos4*)
  13505. case $cc_basename in
  13506. CC*)
  13507. # Sun C++ 4.x
  13508. # FIXME: insert proper C++ library support
  13509. ld_shlibs_CXX=no
  13510. ;;
  13511. lcc*)
  13512. # Lucid
  13513. # FIXME: insert proper C++ library support
  13514. ld_shlibs_CXX=no
  13515. ;;
  13516. *)
  13517. # FIXME: insert proper C++ library support
  13518. ld_shlibs_CXX=no
  13519. ;;
  13520. esac
  13521. ;;
  13522. solaris*)
  13523. case $cc_basename in
  13524. CC* | sunCC*)
  13525. # Sun C++ 4.2, 5.x and Centerline C++
  13526. archive_cmds_need_lc_CXX=yes
  13527. no_undefined_flag_CXX=' -zdefs'
  13528. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13529. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13530. $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'
  13531. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13532. hardcode_shlibpath_var_CXX=no
  13533. case $host_os in
  13534. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13535. *)
  13536. # The compiler driver will combine and reorder linker options,
  13537. # but understands '-z linker_flag'.
  13538. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13539. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13540. ;;
  13541. esac
  13542. link_all_deplibs_CXX=yes
  13543. output_verbose_link_cmd='func_echo_all'
  13544. # Archives containing C++ object files must be created using
  13545. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13546. # necessary to make sure instantiated templates are included
  13547. # in the archive.
  13548. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13549. ;;
  13550. gcx*)
  13551. # Green Hills C++ Compiler
  13552. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13553. # The C++ compiler must be used to create the archive.
  13554. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13555. ;;
  13556. *)
  13557. # GNU C++ compiler with Solaris linker
  13558. if test yes,no = "$GXX,$with_gnu_ld"; then
  13559. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13560. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13561. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13562. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13563. $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'
  13564. # Commands to make compiler produce verbose output that lists
  13565. # what "hidden" libraries, object files and flags are used when
  13566. # linking a shared library.
  13567. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13568. else
  13569. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13570. # platform.
  13571. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13572. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13573. $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'
  13574. # Commands to make compiler produce verbose output that lists
  13575. # what "hidden" libraries, object files and flags are used when
  13576. # linking a shared library.
  13577. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13578. fi
  13579. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13580. case $host_os in
  13581. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13582. *)
  13583. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13584. ;;
  13585. esac
  13586. fi
  13587. ;;
  13588. esac
  13589. ;;
  13590. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13591. no_undefined_flag_CXX='$wl-z,text'
  13592. archive_cmds_need_lc_CXX=no
  13593. hardcode_shlibpath_var_CXX=no
  13594. runpath_var='LD_RUN_PATH'
  13595. case $cc_basename in
  13596. CC*)
  13597. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13598. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13599. ;;
  13600. *)
  13601. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13602. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13603. ;;
  13604. esac
  13605. ;;
  13606. sysv5* | sco3.2v5* | sco5v6*)
  13607. # Note: We CANNOT use -z defs as we might desire, because we do not
  13608. # link with -lc, and that would cause any symbols used from libc to
  13609. # always be unresolved, which means just about no library would
  13610. # ever link correctly. If we're not using GNU ld we use -z text
  13611. # though, which does catch some bad symbols but isn't as heavy-handed
  13612. # as -z defs.
  13613. no_undefined_flag_CXX='$wl-z,text'
  13614. allow_undefined_flag_CXX='$wl-z,nodefs'
  13615. archive_cmds_need_lc_CXX=no
  13616. hardcode_shlibpath_var_CXX=no
  13617. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13618. hardcode_libdir_separator_CXX=':'
  13619. link_all_deplibs_CXX=yes
  13620. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13621. runpath_var='LD_RUN_PATH'
  13622. case $cc_basename in
  13623. CC*)
  13624. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13625. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13626. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13627. '"$old_archive_cmds_CXX"
  13628. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13629. '"$reload_cmds_CXX"
  13630. ;;
  13631. *)
  13632. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13633. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13634. ;;
  13635. esac
  13636. ;;
  13637. tandem*)
  13638. case $cc_basename in
  13639. NCC*)
  13640. # NonStop-UX NCC 3.20
  13641. # FIXME: insert proper C++ library support
  13642. ld_shlibs_CXX=no
  13643. ;;
  13644. *)
  13645. # FIXME: insert proper C++ library support
  13646. ld_shlibs_CXX=no
  13647. ;;
  13648. esac
  13649. ;;
  13650. vxworks*)
  13651. # FIXME: insert proper C++ library support
  13652. ld_shlibs_CXX=no
  13653. ;;
  13654. *)
  13655. # FIXME: insert proper C++ library support
  13656. ld_shlibs_CXX=no
  13657. ;;
  13658. esac
  13659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13660. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13661. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13662. GCC_CXX=$GXX
  13663. LD_CXX=$LD
  13664. ## CAVEAT EMPTOR:
  13665. ## There is no encapsulation within the following macros, do not change
  13666. ## the running order or otherwise move them around unless you know exactly
  13667. ## what you are doing...
  13668. # Dependencies to place before and after the object being linked:
  13669. predep_objects_CXX=
  13670. postdep_objects_CXX=
  13671. predeps_CXX=
  13672. postdeps_CXX=
  13673. compiler_lib_search_path_CXX=
  13674. cat > conftest.$ac_ext <<_LT_EOF
  13675. class Foo
  13676. {
  13677. public:
  13678. Foo (void) { a = 0; }
  13679. private:
  13680. int a;
  13681. };
  13682. _LT_EOF
  13683. _lt_libdeps_save_CFLAGS=$CFLAGS
  13684. case "$CC $CFLAGS " in #(
  13685. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13686. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13687. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13688. esac
  13689. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13690. (eval $ac_compile) 2>&5
  13691. ac_status=$?
  13692. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13693. test $ac_status = 0; }; then
  13694. # Parse the compiler output and extract the necessary
  13695. # objects, libraries and library flags.
  13696. # Sentinel used to keep track of whether or not we are before
  13697. # the conftest object file.
  13698. pre_test_object_deps_done=no
  13699. for p in `eval "$output_verbose_link_cmd"`; do
  13700. case $prev$p in
  13701. -L* | -R* | -l*)
  13702. # Some compilers place space between "-{L,R}" and the path.
  13703. # Remove the space.
  13704. if test x-L = "x$p" ||
  13705. test x-R = "x$p" ||
  13706. test x-l = "x$p"; then
  13707. prev=$p
  13708. continue
  13709. fi
  13710. # Expand the sysroot to ease extracting the directories later.
  13711. if test -z "$prev"; then
  13712. case $p in
  13713. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13714. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13715. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13716. esac
  13717. fi
  13718. case $p in
  13719. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13720. esac
  13721. if test no = "$pre_test_object_deps_done"; then
  13722. case $prev in
  13723. -L | -R)
  13724. # Internal compiler library paths should come after those
  13725. # provided the user. The postdeps already come after the
  13726. # user supplied libs so there is no need to process them.
  13727. if test -z "$compiler_lib_search_path_CXX"; then
  13728. compiler_lib_search_path_CXX=$prev$p
  13729. else
  13730. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13731. fi
  13732. ;;
  13733. # The "-l" case would never come before the object being
  13734. # linked, so don't bother handling this case.
  13735. esac
  13736. else
  13737. if test -z "$postdeps_CXX"; then
  13738. postdeps_CXX=$prev$p
  13739. else
  13740. postdeps_CXX="${postdeps_CXX} $prev$p"
  13741. fi
  13742. fi
  13743. prev=
  13744. ;;
  13745. *.lto.$objext) ;; # Ignore GCC LTO objects
  13746. *.$objext)
  13747. # This assumes that the test object file only shows up
  13748. # once in the compiler output.
  13749. if test "$p" = "conftest.$objext"; then
  13750. pre_test_object_deps_done=yes
  13751. continue
  13752. fi
  13753. if test no = "$pre_test_object_deps_done"; then
  13754. if test -z "$predep_objects_CXX"; then
  13755. predep_objects_CXX=$p
  13756. else
  13757. predep_objects_CXX="$predep_objects_CXX $p"
  13758. fi
  13759. else
  13760. if test -z "$postdep_objects_CXX"; then
  13761. postdep_objects_CXX=$p
  13762. else
  13763. postdep_objects_CXX="$postdep_objects_CXX $p"
  13764. fi
  13765. fi
  13766. ;;
  13767. *) ;; # Ignore the rest.
  13768. esac
  13769. done
  13770. # Clean up.
  13771. rm -f a.out a.exe
  13772. else
  13773. echo "libtool.m4: error: problem compiling CXX test program"
  13774. fi
  13775. $RM -f confest.$objext
  13776. CFLAGS=$_lt_libdeps_save_CFLAGS
  13777. # PORTME: override above test on systems where it is broken
  13778. case $host_os in
  13779. interix[3-9]*)
  13780. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13781. # hack all around it, let's just trust "g++" to DTRT.
  13782. predep_objects_CXX=
  13783. postdep_objects_CXX=
  13784. postdeps_CXX=
  13785. ;;
  13786. esac
  13787. case " $postdeps_CXX " in
  13788. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13789. esac
  13790. compiler_lib_search_dirs_CXX=
  13791. if test -n "${compiler_lib_search_path_CXX}"; then
  13792. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13793. fi
  13794. lt_prog_compiler_wl_CXX=
  13795. lt_prog_compiler_pic_CXX=
  13796. lt_prog_compiler_static_CXX=
  13797. # C++ specific cases for pic, static, wl, etc.
  13798. if test yes = "$GXX"; then
  13799. lt_prog_compiler_wl_CXX='-Wl,'
  13800. lt_prog_compiler_static_CXX='-static'
  13801. case $host_os in
  13802. aix*)
  13803. # All AIX code is PIC.
  13804. if test ia64 = "$host_cpu"; then
  13805. # AIX 5 now supports IA64 processor
  13806. lt_prog_compiler_static_CXX='-Bstatic'
  13807. fi
  13808. lt_prog_compiler_pic_CXX='-fPIC'
  13809. ;;
  13810. amigaos*)
  13811. case $host_cpu in
  13812. powerpc)
  13813. # see comment about AmigaOS4 .so support
  13814. lt_prog_compiler_pic_CXX='-fPIC'
  13815. ;;
  13816. m68k)
  13817. # FIXME: we need at least 68020 code to build shared libraries, but
  13818. # adding the '-m68020' flag to GCC prevents building anything better,
  13819. # like '-m68040'.
  13820. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13821. ;;
  13822. esac
  13823. ;;
  13824. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13825. # PIC is the default for these OSes.
  13826. ;;
  13827. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13828. # This hack is so that the source file can tell whether it is being
  13829. # built for inclusion in a dll (and should export symbols for example).
  13830. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13831. # (--disable-auto-import) libraries
  13832. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13833. case $host_os in
  13834. os2*)
  13835. lt_prog_compiler_static_CXX='$wl-static'
  13836. ;;
  13837. esac
  13838. ;;
  13839. darwin* | rhapsody*)
  13840. # PIC is the default on this platform
  13841. # Common symbols not allowed in MH_DYLIB files
  13842. lt_prog_compiler_pic_CXX='-fno-common'
  13843. ;;
  13844. *djgpp*)
  13845. # DJGPP does not support shared libraries at all
  13846. lt_prog_compiler_pic_CXX=
  13847. ;;
  13848. haiku*)
  13849. # PIC is the default for Haiku.
  13850. # The "-static" flag exists, but is broken.
  13851. lt_prog_compiler_static_CXX=
  13852. ;;
  13853. interix[3-9]*)
  13854. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13855. # Instead, we relocate shared libraries at runtime.
  13856. ;;
  13857. sysv4*MP*)
  13858. if test -d /usr/nec; then
  13859. lt_prog_compiler_pic_CXX=-Kconform_pic
  13860. fi
  13861. ;;
  13862. hpux*)
  13863. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13864. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13865. # sets the default TLS model and affects inlining.
  13866. case $host_cpu in
  13867. hppa*64*)
  13868. ;;
  13869. *)
  13870. lt_prog_compiler_pic_CXX='-fPIC'
  13871. ;;
  13872. esac
  13873. ;;
  13874. *qnx* | *nto*)
  13875. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13876. # it will coredump.
  13877. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13878. ;;
  13879. *)
  13880. lt_prog_compiler_pic_CXX='-fPIC'
  13881. ;;
  13882. esac
  13883. else
  13884. case $host_os in
  13885. aix[4-9]*)
  13886. # All AIX code is PIC.
  13887. if test ia64 = "$host_cpu"; then
  13888. # AIX 5 now supports IA64 processor
  13889. lt_prog_compiler_static_CXX='-Bstatic'
  13890. else
  13891. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13892. fi
  13893. ;;
  13894. chorus*)
  13895. case $cc_basename in
  13896. cxch68*)
  13897. # Green Hills C++ Compiler
  13898. # _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"
  13899. ;;
  13900. esac
  13901. ;;
  13902. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13903. # This hack is so that the source file can tell whether it is being
  13904. # built for inclusion in a dll (and should export symbols for example).
  13905. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13906. ;;
  13907. dgux*)
  13908. case $cc_basename in
  13909. ec++*)
  13910. lt_prog_compiler_pic_CXX='-KPIC'
  13911. ;;
  13912. ghcx*)
  13913. # Green Hills C++ Compiler
  13914. lt_prog_compiler_pic_CXX='-pic'
  13915. ;;
  13916. *)
  13917. ;;
  13918. esac
  13919. ;;
  13920. freebsd* | dragonfly* | midnightbsd*)
  13921. # FreeBSD uses GNU C++
  13922. ;;
  13923. hpux9* | hpux10* | hpux11*)
  13924. case $cc_basename in
  13925. CC*)
  13926. lt_prog_compiler_wl_CXX='-Wl,'
  13927. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13928. if test ia64 != "$host_cpu"; then
  13929. lt_prog_compiler_pic_CXX='+Z'
  13930. fi
  13931. ;;
  13932. aCC*)
  13933. lt_prog_compiler_wl_CXX='-Wl,'
  13934. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13935. case $host_cpu in
  13936. hppa*64*|ia64*)
  13937. # +Z the default
  13938. ;;
  13939. *)
  13940. lt_prog_compiler_pic_CXX='+Z'
  13941. ;;
  13942. esac
  13943. ;;
  13944. *)
  13945. ;;
  13946. esac
  13947. ;;
  13948. interix*)
  13949. # This is c89, which is MS Visual C++ (no shared libs)
  13950. # Anyone wants to do a port?
  13951. ;;
  13952. irix5* | irix6* | nonstopux*)
  13953. case $cc_basename in
  13954. CC*)
  13955. lt_prog_compiler_wl_CXX='-Wl,'
  13956. lt_prog_compiler_static_CXX='-non_shared'
  13957. # CC pic flag -KPIC is the default.
  13958. ;;
  13959. *)
  13960. ;;
  13961. esac
  13962. ;;
  13963. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13964. case $cc_basename in
  13965. KCC*)
  13966. # KAI C++ Compiler
  13967. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13968. lt_prog_compiler_pic_CXX='-fPIC'
  13969. ;;
  13970. ecpc* )
  13971. # old Intel C++ for x86_64, which still supported -KPIC.
  13972. lt_prog_compiler_wl_CXX='-Wl,'
  13973. lt_prog_compiler_pic_CXX='-KPIC'
  13974. lt_prog_compiler_static_CXX='-static'
  13975. ;;
  13976. icpc* )
  13977. # Intel C++, used to be incompatible with GCC.
  13978. # ICC 10 doesn't accept -KPIC any more.
  13979. lt_prog_compiler_wl_CXX='-Wl,'
  13980. lt_prog_compiler_pic_CXX='-fPIC'
  13981. lt_prog_compiler_static_CXX='-static'
  13982. ;;
  13983. pgCC* | pgcpp*)
  13984. # Portland Group C++ compiler
  13985. lt_prog_compiler_wl_CXX='-Wl,'
  13986. lt_prog_compiler_pic_CXX='-fpic'
  13987. lt_prog_compiler_static_CXX='-Bstatic'
  13988. ;;
  13989. cxx*)
  13990. # Compaq C++
  13991. # Make sure the PIC flag is empty. It appears that all Alpha
  13992. # Linux and Compaq Tru64 Unix objects are PIC.
  13993. lt_prog_compiler_pic_CXX=
  13994. lt_prog_compiler_static_CXX='-non_shared'
  13995. ;;
  13996. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  13997. # IBM XL 8.0, 9.0 on PPC and BlueGene
  13998. lt_prog_compiler_wl_CXX='-Wl,'
  13999. lt_prog_compiler_pic_CXX='-qpic'
  14000. lt_prog_compiler_static_CXX='-qstaticlink'
  14001. ;;
  14002. *)
  14003. case `$CC -V 2>&1 | sed 5q` in
  14004. *Sun\ C*)
  14005. # Sun C++ 5.9
  14006. lt_prog_compiler_pic_CXX='-KPIC'
  14007. lt_prog_compiler_static_CXX='-Bstatic'
  14008. lt_prog_compiler_wl_CXX='-Qoption ld '
  14009. ;;
  14010. esac
  14011. ;;
  14012. esac
  14013. ;;
  14014. lynxos*)
  14015. ;;
  14016. m88k*)
  14017. ;;
  14018. mvs*)
  14019. case $cc_basename in
  14020. cxx*)
  14021. lt_prog_compiler_pic_CXX='-W c,exportall'
  14022. ;;
  14023. *)
  14024. ;;
  14025. esac
  14026. ;;
  14027. netbsd*)
  14028. ;;
  14029. *qnx* | *nto*)
  14030. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14031. # it will coredump.
  14032. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14033. ;;
  14034. osf3* | osf4* | osf5*)
  14035. case $cc_basename in
  14036. KCC*)
  14037. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14038. ;;
  14039. RCC*)
  14040. # Rational C++ 2.4.1
  14041. lt_prog_compiler_pic_CXX='-pic'
  14042. ;;
  14043. cxx*)
  14044. # Digital/Compaq C++
  14045. lt_prog_compiler_wl_CXX='-Wl,'
  14046. # Make sure the PIC flag is empty. It appears that all Alpha
  14047. # Linux and Compaq Tru64 Unix objects are PIC.
  14048. lt_prog_compiler_pic_CXX=
  14049. lt_prog_compiler_static_CXX='-non_shared'
  14050. ;;
  14051. *)
  14052. ;;
  14053. esac
  14054. ;;
  14055. psos*)
  14056. ;;
  14057. solaris*)
  14058. case $cc_basename in
  14059. CC* | sunCC*)
  14060. # Sun C++ 4.2, 5.x and Centerline C++
  14061. lt_prog_compiler_pic_CXX='-KPIC'
  14062. lt_prog_compiler_static_CXX='-Bstatic'
  14063. lt_prog_compiler_wl_CXX='-Qoption ld '
  14064. ;;
  14065. gcx*)
  14066. # Green Hills C++ Compiler
  14067. lt_prog_compiler_pic_CXX='-PIC'
  14068. ;;
  14069. *)
  14070. ;;
  14071. esac
  14072. ;;
  14073. sunos4*)
  14074. case $cc_basename in
  14075. CC*)
  14076. # Sun C++ 4.x
  14077. lt_prog_compiler_pic_CXX='-pic'
  14078. lt_prog_compiler_static_CXX='-Bstatic'
  14079. ;;
  14080. lcc*)
  14081. # Lucid
  14082. lt_prog_compiler_pic_CXX='-pic'
  14083. ;;
  14084. *)
  14085. ;;
  14086. esac
  14087. ;;
  14088. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14089. case $cc_basename in
  14090. CC*)
  14091. lt_prog_compiler_wl_CXX='-Wl,'
  14092. lt_prog_compiler_pic_CXX='-KPIC'
  14093. lt_prog_compiler_static_CXX='-Bstatic'
  14094. ;;
  14095. esac
  14096. ;;
  14097. tandem*)
  14098. case $cc_basename in
  14099. NCC*)
  14100. # NonStop-UX NCC 3.20
  14101. lt_prog_compiler_pic_CXX='-KPIC'
  14102. ;;
  14103. *)
  14104. ;;
  14105. esac
  14106. ;;
  14107. vxworks*)
  14108. ;;
  14109. *)
  14110. lt_prog_compiler_can_build_shared_CXX=no
  14111. ;;
  14112. esac
  14113. fi
  14114. case $host_os in
  14115. # For platforms that do not support PIC, -DPIC is meaningless:
  14116. *djgpp*)
  14117. lt_prog_compiler_pic_CXX=
  14118. ;;
  14119. *)
  14120. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14121. ;;
  14122. esac
  14123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14124. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14125. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14126. then :
  14127. printf %s "(cached) " >&6
  14128. else $as_nop
  14129. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14130. fi
  14131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14132. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14133. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14134. #
  14135. # Check to make sure the PIC flag actually works.
  14136. #
  14137. if test -n "$lt_prog_compiler_pic_CXX"; then
  14138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14139. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14140. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14141. then :
  14142. printf %s "(cached) " >&6
  14143. else $as_nop
  14144. lt_cv_prog_compiler_pic_works_CXX=no
  14145. ac_outfile=conftest.$ac_objext
  14146. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14147. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14148. # Insert the option either (1) after the last *FLAGS variable, or
  14149. # (2) before a word containing "conftest.", or (3) at the end.
  14150. # Note that $ac_compile itself does not contain backslashes and begins
  14151. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14152. # The option is referenced via a variable to avoid confusing sed.
  14153. lt_compile=`echo "$ac_compile" | $SED \
  14154. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14155. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14156. -e 's:$: $lt_compiler_flag:'`
  14157. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14158. (eval "$lt_compile" 2>conftest.err)
  14159. ac_status=$?
  14160. cat conftest.err >&5
  14161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14162. if (exit $ac_status) && test -s "$ac_outfile"; then
  14163. # The compiler can only warn and ignore the option if not recognized
  14164. # So say no if there are warnings other than the usual output.
  14165. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14166. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14167. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14168. lt_cv_prog_compiler_pic_works_CXX=yes
  14169. fi
  14170. fi
  14171. $RM conftest*
  14172. fi
  14173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14174. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14175. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14176. case $lt_prog_compiler_pic_CXX in
  14177. "" | " "*) ;;
  14178. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14179. esac
  14180. else
  14181. lt_prog_compiler_pic_CXX=
  14182. lt_prog_compiler_can_build_shared_CXX=no
  14183. fi
  14184. fi
  14185. #
  14186. # Check to make sure the static flag actually works.
  14187. #
  14188. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14190. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14191. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14192. then :
  14193. printf %s "(cached) " >&6
  14194. else $as_nop
  14195. lt_cv_prog_compiler_static_works_CXX=no
  14196. save_LDFLAGS=$LDFLAGS
  14197. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14198. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14199. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14200. # The linker can only warn and ignore the option if not recognized
  14201. # So say no if there are warnings
  14202. if test -s conftest.err; then
  14203. # Append any errors to the config.log.
  14204. cat conftest.err 1>&5
  14205. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14206. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14207. if diff conftest.exp conftest.er2 >/dev/null; then
  14208. lt_cv_prog_compiler_static_works_CXX=yes
  14209. fi
  14210. else
  14211. lt_cv_prog_compiler_static_works_CXX=yes
  14212. fi
  14213. fi
  14214. $RM -r conftest*
  14215. LDFLAGS=$save_LDFLAGS
  14216. fi
  14217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14218. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14219. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14220. :
  14221. else
  14222. lt_prog_compiler_static_CXX=
  14223. fi
  14224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14225. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14226. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14227. then :
  14228. printf %s "(cached) " >&6
  14229. else $as_nop
  14230. lt_cv_prog_compiler_c_o_CXX=no
  14231. $RM -r conftest 2>/dev/null
  14232. mkdir conftest
  14233. cd conftest
  14234. mkdir out
  14235. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14236. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14237. # Insert the option either (1) after the last *FLAGS variable, or
  14238. # (2) before a word containing "conftest.", or (3) at the end.
  14239. # Note that $ac_compile itself does not contain backslashes and begins
  14240. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14241. lt_compile=`echo "$ac_compile" | $SED \
  14242. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14243. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14244. -e 's:$: $lt_compiler_flag:'`
  14245. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14246. (eval "$lt_compile" 2>out/conftest.err)
  14247. ac_status=$?
  14248. cat out/conftest.err >&5
  14249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14250. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14251. then
  14252. # The compiler can only warn and ignore the option if not recognized
  14253. # So say no if there are warnings
  14254. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14255. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14256. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14257. lt_cv_prog_compiler_c_o_CXX=yes
  14258. fi
  14259. fi
  14260. chmod u+w . 2>&5
  14261. $RM conftest*
  14262. # SGI C++ compiler will create directory out/ii_files/ for
  14263. # template instantiation
  14264. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14265. $RM out/* && rmdir out
  14266. cd ..
  14267. $RM -r conftest
  14268. $RM conftest*
  14269. fi
  14270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14271. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14273. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14274. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14275. then :
  14276. printf %s "(cached) " >&6
  14277. else $as_nop
  14278. lt_cv_prog_compiler_c_o_CXX=no
  14279. $RM -r conftest 2>/dev/null
  14280. mkdir conftest
  14281. cd conftest
  14282. mkdir out
  14283. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14284. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14285. # Insert the option either (1) after the last *FLAGS variable, or
  14286. # (2) before a word containing "conftest.", or (3) at the end.
  14287. # Note that $ac_compile itself does not contain backslashes and begins
  14288. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14289. lt_compile=`echo "$ac_compile" | $SED \
  14290. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14291. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14292. -e 's:$: $lt_compiler_flag:'`
  14293. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14294. (eval "$lt_compile" 2>out/conftest.err)
  14295. ac_status=$?
  14296. cat out/conftest.err >&5
  14297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14298. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14299. then
  14300. # The compiler can only warn and ignore the option if not recognized
  14301. # So say no if there are warnings
  14302. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14303. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14304. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14305. lt_cv_prog_compiler_c_o_CXX=yes
  14306. fi
  14307. fi
  14308. chmod u+w . 2>&5
  14309. $RM conftest*
  14310. # SGI C++ compiler will create directory out/ii_files/ for
  14311. # template instantiation
  14312. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14313. $RM out/* && rmdir out
  14314. cd ..
  14315. $RM -r conftest
  14316. $RM conftest*
  14317. fi
  14318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14319. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14320. hard_links=nottested
  14321. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14322. # do not overwrite the value of need_locks provided by the user
  14323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14324. printf %s "checking if we can lock with hard links... " >&6; }
  14325. hard_links=yes
  14326. $RM conftest*
  14327. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14328. touch conftest.a
  14329. ln conftest.a conftest.b 2>&5 || hard_links=no
  14330. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14332. printf "%s\n" "$hard_links" >&6; }
  14333. if test no = "$hard_links"; then
  14334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14335. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14336. need_locks=warn
  14337. fi
  14338. else
  14339. need_locks=no
  14340. fi
  14341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14342. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14343. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14344. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14345. case $host_os in
  14346. aix[4-9]*)
  14347. # If we're using GNU nm, then we don't want the "-C" option.
  14348. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14349. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14350. # weak defined symbols like other global defined symbols, whereas
  14351. # GNU nm marks them as "W".
  14352. # While the 'weak' keyword is ignored in the Export File, we need
  14353. # it in the Import File for the 'aix-soname' feature, so we have
  14354. # to replace the "-B" option with "-P" for AIX nm.
  14355. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14356. 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'
  14357. else
  14358. 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'
  14359. fi
  14360. ;;
  14361. pw32*)
  14362. export_symbols_cmds_CXX=$ltdll_cmds
  14363. ;;
  14364. cygwin* | mingw* | cegcc*)
  14365. case $cc_basename in
  14366. cl*)
  14367. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14368. ;;
  14369. *)
  14370. 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'
  14371. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14372. ;;
  14373. esac
  14374. ;;
  14375. *)
  14376. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14377. ;;
  14378. esac
  14379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14380. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14381. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14382. with_gnu_ld_CXX=$with_gnu_ld
  14383. #
  14384. # Do we need to explicitly link libc?
  14385. #
  14386. case "x$archive_cmds_need_lc_CXX" in
  14387. x|xyes)
  14388. # Assume -lc should be added
  14389. archive_cmds_need_lc_CXX=yes
  14390. if test yes,yes = "$GCC,$enable_shared"; then
  14391. case $archive_cmds_CXX in
  14392. *'~'*)
  14393. # FIXME: we may have to deal with multi-command sequences.
  14394. ;;
  14395. '$CC '*)
  14396. # Test whether the compiler implicitly links with -lc since on some
  14397. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14398. # to ld, don't add -lc before -lgcc.
  14399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14400. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14401. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14402. then :
  14403. printf %s "(cached) " >&6
  14404. else $as_nop
  14405. $RM conftest*
  14406. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14407. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14408. (eval $ac_compile) 2>&5
  14409. ac_status=$?
  14410. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14411. test $ac_status = 0; } 2>conftest.err; then
  14412. soname=conftest
  14413. lib=conftest
  14414. libobjs=conftest.$ac_objext
  14415. deplibs=
  14416. wl=$lt_prog_compiler_wl_CXX
  14417. pic_flag=$lt_prog_compiler_pic_CXX
  14418. compiler_flags=-v
  14419. linker_flags=-v
  14420. verstring=
  14421. output_objdir=.
  14422. libname=conftest
  14423. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14424. allow_undefined_flag_CXX=
  14425. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14426. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14427. ac_status=$?
  14428. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14429. test $ac_status = 0; }
  14430. then
  14431. lt_cv_archive_cmds_need_lc_CXX=no
  14432. else
  14433. lt_cv_archive_cmds_need_lc_CXX=yes
  14434. fi
  14435. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14436. else
  14437. cat conftest.err 1>&5
  14438. fi
  14439. $RM conftest*
  14440. fi
  14441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14442. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14443. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14444. ;;
  14445. esac
  14446. fi
  14447. ;;
  14448. esac
  14449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14450. printf %s "checking dynamic linker characteristics... " >&6; }
  14451. library_names_spec=
  14452. libname_spec='lib$name'
  14453. soname_spec=
  14454. shrext_cmds=.so
  14455. postinstall_cmds=
  14456. postuninstall_cmds=
  14457. finish_cmds=
  14458. finish_eval=
  14459. shlibpath_var=
  14460. shlibpath_overrides_runpath=unknown
  14461. version_type=none
  14462. dynamic_linker="$host_os ld.so"
  14463. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14464. need_lib_prefix=unknown
  14465. hardcode_into_libs=no
  14466. # when you set need_version to no, make sure it does not cause -set_version
  14467. # flags to be left without arguments
  14468. need_version=unknown
  14469. case $host_os in
  14470. aix3*)
  14471. version_type=linux # correct to gnu/linux during the next big refactor
  14472. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14473. shlibpath_var=LIBPATH
  14474. # AIX 3 has no versioning support, so we append a major version to the name.
  14475. soname_spec='$libname$release$shared_ext$major'
  14476. ;;
  14477. aix[4-9]*)
  14478. version_type=linux # correct to gnu/linux during the next big refactor
  14479. need_lib_prefix=no
  14480. need_version=no
  14481. hardcode_into_libs=yes
  14482. if test ia64 = "$host_cpu"; then
  14483. # AIX 5 supports IA64
  14484. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14485. shlibpath_var=LD_LIBRARY_PATH
  14486. else
  14487. # With GCC up to 2.95.x, collect2 would create an import file
  14488. # for dependence libraries. The import file would start with
  14489. # the line '#! .'. This would cause the generated library to
  14490. # depend on '.', always an invalid library. This was fixed in
  14491. # development snapshots of GCC prior to 3.0.
  14492. case $host_os in
  14493. aix4 | aix4.[01] | aix4.[01].*)
  14494. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14495. echo ' yes '
  14496. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14497. :
  14498. else
  14499. can_build_shared=no
  14500. fi
  14501. ;;
  14502. esac
  14503. # Using Import Files as archive members, it is possible to support
  14504. # filename-based versioning of shared library archives on AIX. While
  14505. # this would work for both with and without runtime linking, it will
  14506. # prevent static linking of such archives. So we do filename-based
  14507. # shared library versioning with .so extension only, which is used
  14508. # when both runtime linking and shared linking is enabled.
  14509. # Unfortunately, runtime linking may impact performance, so we do
  14510. # not want this to be the default eventually. Also, we use the
  14511. # versioned .so libs for executables only if there is the -brtl
  14512. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14513. # To allow for filename-based versioning support, we need to create
  14514. # libNAME.so.V as an archive file, containing:
  14515. # *) an Import File, referring to the versioned filename of the
  14516. # archive as well as the shared archive member, telling the
  14517. # bitwidth (32 or 64) of that shared object, and providing the
  14518. # list of exported symbols of that shared object, eventually
  14519. # decorated with the 'weak' keyword
  14520. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14521. # it being seen by the linker.
  14522. # At run time we better use the real file rather than another symlink,
  14523. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14524. case $with_aix_soname,$aix_use_runtimelinking in
  14525. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14526. # soname into executable. Probably we can add versioning support to
  14527. # collect2, so additional links can be useful in future.
  14528. aix,yes) # traditional libtool
  14529. dynamic_linker='AIX unversionable lib.so'
  14530. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14531. # instead of lib<name>.a to let people know that these are not
  14532. # typical AIX shared libraries.
  14533. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14534. ;;
  14535. aix,no) # traditional AIX only
  14536. dynamic_linker='AIX lib.a(lib.so.V)'
  14537. # We preserve .a as extension for shared libraries through AIX4.2
  14538. # and later when we are not doing run time linking.
  14539. library_names_spec='$libname$release.a $libname.a'
  14540. soname_spec='$libname$release$shared_ext$major'
  14541. ;;
  14542. svr4,*) # full svr4 only
  14543. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14544. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14545. # We do not specify a path in Import Files, so LIBPATH fires.
  14546. shlibpath_overrides_runpath=yes
  14547. ;;
  14548. *,yes) # both, prefer svr4
  14549. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14550. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14551. # unpreferred sharedlib libNAME.a needs extra handling
  14552. 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"'
  14553. 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"'
  14554. # We do not specify a path in Import Files, so LIBPATH fires.
  14555. shlibpath_overrides_runpath=yes
  14556. ;;
  14557. *,no) # both, prefer aix
  14558. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14559. library_names_spec='$libname$release.a $libname.a'
  14560. soname_spec='$libname$release$shared_ext$major'
  14561. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14562. 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)'
  14563. 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"'
  14564. ;;
  14565. esac
  14566. shlibpath_var=LIBPATH
  14567. fi
  14568. ;;
  14569. amigaos*)
  14570. case $host_cpu in
  14571. powerpc)
  14572. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14573. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14574. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14575. ;;
  14576. m68k)
  14577. library_names_spec='$libname.ixlibrary $libname.a'
  14578. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14579. 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'
  14580. ;;
  14581. esac
  14582. ;;
  14583. beos*)
  14584. library_names_spec='$libname$shared_ext'
  14585. dynamic_linker="$host_os ld.so"
  14586. shlibpath_var=LIBRARY_PATH
  14587. ;;
  14588. bsdi[45]*)
  14589. version_type=linux # correct to gnu/linux during the next big refactor
  14590. need_version=no
  14591. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14592. soname_spec='$libname$release$shared_ext$major'
  14593. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14594. shlibpath_var=LD_LIBRARY_PATH
  14595. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14596. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14597. # the default ld.so.conf also contains /usr/contrib/lib and
  14598. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14599. # libtool to hard-code these into programs
  14600. ;;
  14601. cygwin* | mingw* | pw32* | cegcc*)
  14602. version_type=windows
  14603. shrext_cmds=.dll
  14604. need_version=no
  14605. need_lib_prefix=no
  14606. case $GCC,$cc_basename in
  14607. yes,*)
  14608. # gcc
  14609. library_names_spec='$libname.dll.a'
  14610. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14611. postinstall_cmds='base_file=`basename \$file`~
  14612. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14613. dldir=$destdir/`dirname \$dlpath`~
  14614. test -d \$dldir || mkdir -p \$dldir~
  14615. $install_prog $dir/$dlname \$dldir/$dlname~
  14616. chmod a+x \$dldir/$dlname~
  14617. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14618. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14619. fi'
  14620. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14621. dlpath=$dir/\$dldll~
  14622. $RM \$dlpath'
  14623. shlibpath_overrides_runpath=yes
  14624. case $host_os in
  14625. cygwin*)
  14626. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14627. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14628. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14629. ;;
  14630. mingw* | cegcc*)
  14631. # MinGW DLLs use traditional 'lib' prefix
  14632. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14633. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14634. ;;
  14635. pw32*)
  14636. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14637. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14638. ;;
  14639. esac
  14640. dynamic_linker='Win32 ld.exe'
  14641. ;;
  14642. *,cl*)
  14643. # Native MSVC
  14644. libname_spec='$name'
  14645. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14646. library_names_spec='$libname.dll.lib'
  14647. case $build_os in
  14648. mingw*)
  14649. sys_lib_search_path_spec=
  14650. lt_save_ifs=$IFS
  14651. IFS=';'
  14652. for lt_path in $LIB
  14653. do
  14654. IFS=$lt_save_ifs
  14655. # Let DOS variable expansion print the short 8.3 style file name.
  14656. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14657. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14658. done
  14659. IFS=$lt_save_ifs
  14660. # Convert to MSYS style.
  14661. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14662. ;;
  14663. cygwin*)
  14664. # Convert to unix form, then to dos form, then back to unix form
  14665. # but this time dos style (no spaces!) so that the unix form looks
  14666. # like /cygdrive/c/PROGRA~1:/cygdr...
  14667. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14668. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14669. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14670. ;;
  14671. *)
  14672. sys_lib_search_path_spec=$LIB
  14673. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14674. # It is most probably a Windows format PATH.
  14675. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14676. else
  14677. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14678. fi
  14679. # FIXME: find the short name or the path components, as spaces are
  14680. # common. (e.g. "Program Files" -> "PROGRA~1")
  14681. ;;
  14682. esac
  14683. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14684. postinstall_cmds='base_file=`basename \$file`~
  14685. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14686. dldir=$destdir/`dirname \$dlpath`~
  14687. test -d \$dldir || mkdir -p \$dldir~
  14688. $install_prog $dir/$dlname \$dldir/$dlname'
  14689. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14690. dlpath=$dir/\$dldll~
  14691. $RM \$dlpath'
  14692. shlibpath_overrides_runpath=yes
  14693. dynamic_linker='Win32 link.exe'
  14694. ;;
  14695. *)
  14696. # Assume MSVC wrapper
  14697. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14698. dynamic_linker='Win32 ld.exe'
  14699. ;;
  14700. esac
  14701. # FIXME: first we should search . and the directory the executable is in
  14702. shlibpath_var=PATH
  14703. ;;
  14704. darwin* | rhapsody*)
  14705. dynamic_linker="$host_os dyld"
  14706. version_type=darwin
  14707. need_lib_prefix=no
  14708. need_version=no
  14709. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14710. soname_spec='$libname$release$major$shared_ext'
  14711. shlibpath_overrides_runpath=yes
  14712. shlibpath_var=DYLD_LIBRARY_PATH
  14713. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14714. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14715. ;;
  14716. dgux*)
  14717. version_type=linux # correct to gnu/linux during the next big refactor
  14718. need_lib_prefix=no
  14719. need_version=no
  14720. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14721. soname_spec='$libname$release$shared_ext$major'
  14722. shlibpath_var=LD_LIBRARY_PATH
  14723. ;;
  14724. freebsd* | dragonfly* | midnightbsd*)
  14725. # DragonFly does not have aout. When/if they implement a new
  14726. # versioning mechanism, adjust this.
  14727. if test -x /usr/bin/objformat; then
  14728. objformat=`/usr/bin/objformat`
  14729. else
  14730. case $host_os in
  14731. freebsd[23].*) objformat=aout ;;
  14732. *) objformat=elf ;;
  14733. esac
  14734. fi
  14735. version_type=freebsd-$objformat
  14736. case $version_type in
  14737. freebsd-elf*)
  14738. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14739. soname_spec='$libname$release$shared_ext$major'
  14740. need_version=no
  14741. need_lib_prefix=no
  14742. ;;
  14743. freebsd-*)
  14744. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14745. need_version=yes
  14746. ;;
  14747. esac
  14748. shlibpath_var=LD_LIBRARY_PATH
  14749. case $host_os in
  14750. freebsd2.*)
  14751. shlibpath_overrides_runpath=yes
  14752. ;;
  14753. freebsd3.[01]* | freebsdelf3.[01]*)
  14754. shlibpath_overrides_runpath=yes
  14755. hardcode_into_libs=yes
  14756. ;;
  14757. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14758. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14759. shlibpath_overrides_runpath=no
  14760. hardcode_into_libs=yes
  14761. ;;
  14762. *) # from 4.6 on, and DragonFly
  14763. shlibpath_overrides_runpath=yes
  14764. hardcode_into_libs=yes
  14765. ;;
  14766. esac
  14767. ;;
  14768. haiku*)
  14769. version_type=linux # correct to gnu/linux during the next big refactor
  14770. need_lib_prefix=no
  14771. need_version=no
  14772. dynamic_linker="$host_os runtime_loader"
  14773. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14774. soname_spec='$libname$release$shared_ext$major'
  14775. shlibpath_var=LIBRARY_PATH
  14776. shlibpath_overrides_runpath=no
  14777. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14778. hardcode_into_libs=yes
  14779. ;;
  14780. hpux9* | hpux10* | hpux11*)
  14781. # Give a soname corresponding to the major version so that dld.sl refuses to
  14782. # link against other versions.
  14783. version_type=sunos
  14784. need_lib_prefix=no
  14785. need_version=no
  14786. case $host_cpu in
  14787. ia64*)
  14788. shrext_cmds='.so'
  14789. hardcode_into_libs=yes
  14790. dynamic_linker="$host_os dld.so"
  14791. shlibpath_var=LD_LIBRARY_PATH
  14792. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14793. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14794. soname_spec='$libname$release$shared_ext$major'
  14795. if test 32 = "$HPUX_IA64_MODE"; then
  14796. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14797. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14798. else
  14799. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14800. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14801. fi
  14802. ;;
  14803. hppa*64*)
  14804. shrext_cmds='.sl'
  14805. hardcode_into_libs=yes
  14806. dynamic_linker="$host_os dld.sl"
  14807. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14808. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14809. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14810. soname_spec='$libname$release$shared_ext$major'
  14811. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14812. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14813. ;;
  14814. *)
  14815. shrext_cmds='.sl'
  14816. dynamic_linker="$host_os dld.sl"
  14817. shlibpath_var=SHLIB_PATH
  14818. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14819. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14820. soname_spec='$libname$release$shared_ext$major'
  14821. ;;
  14822. esac
  14823. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14824. postinstall_cmds='chmod 555 $lib'
  14825. # or fails outright, so override atomically:
  14826. install_override_mode=555
  14827. ;;
  14828. interix[3-9]*)
  14829. version_type=linux # correct to gnu/linux during the next big refactor
  14830. need_lib_prefix=no
  14831. need_version=no
  14832. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14833. soname_spec='$libname$release$shared_ext$major'
  14834. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14835. shlibpath_var=LD_LIBRARY_PATH
  14836. shlibpath_overrides_runpath=no
  14837. hardcode_into_libs=yes
  14838. ;;
  14839. irix5* | irix6* | nonstopux*)
  14840. case $host_os in
  14841. nonstopux*) version_type=nonstopux ;;
  14842. *)
  14843. if test yes = "$lt_cv_prog_gnu_ld"; then
  14844. version_type=linux # correct to gnu/linux during the next big refactor
  14845. else
  14846. version_type=irix
  14847. fi ;;
  14848. esac
  14849. need_lib_prefix=no
  14850. need_version=no
  14851. soname_spec='$libname$release$shared_ext$major'
  14852. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14853. case $host_os in
  14854. irix5* | nonstopux*)
  14855. libsuff= shlibsuff=
  14856. ;;
  14857. *)
  14858. case $LD in # libtool.m4 will add one of these switches to LD
  14859. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14860. libsuff= shlibsuff= libmagic=32-bit;;
  14861. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14862. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14863. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14864. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14865. *) libsuff= shlibsuff= libmagic=never-match;;
  14866. esac
  14867. ;;
  14868. esac
  14869. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14870. shlibpath_overrides_runpath=no
  14871. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14872. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14873. hardcode_into_libs=yes
  14874. ;;
  14875. # No shared lib support for Linux oldld, aout, or coff.
  14876. linux*oldld* | linux*aout* | linux*coff*)
  14877. dynamic_linker=no
  14878. ;;
  14879. linux*android*)
  14880. version_type=none # Android doesn't support versioned libraries.
  14881. need_lib_prefix=no
  14882. need_version=no
  14883. library_names_spec='$libname$release$shared_ext'
  14884. soname_spec='$libname$release$shared_ext'
  14885. finish_cmds=
  14886. shlibpath_var=LD_LIBRARY_PATH
  14887. shlibpath_overrides_runpath=yes
  14888. # This implies no fast_install, which is unacceptable.
  14889. # Some rework will be needed to allow for fast_install
  14890. # before this can be enabled.
  14891. hardcode_into_libs=yes
  14892. dynamic_linker='Android linker'
  14893. # Don't embed -rpath directories since the linker doesn't support them.
  14894. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14895. ;;
  14896. # This must be glibc/ELF.
  14897. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14898. version_type=linux # correct to gnu/linux during the next big refactor
  14899. need_lib_prefix=no
  14900. need_version=no
  14901. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14902. soname_spec='$libname$release$shared_ext$major'
  14903. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14904. shlibpath_var=LD_LIBRARY_PATH
  14905. shlibpath_overrides_runpath=no
  14906. # Some binutils ld are patched to set DT_RUNPATH
  14907. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14908. then :
  14909. printf %s "(cached) " >&6
  14910. else $as_nop
  14911. lt_cv_shlibpath_overrides_runpath=no
  14912. save_LDFLAGS=$LDFLAGS
  14913. save_libdir=$libdir
  14914. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14915. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14917. /* end confdefs.h. */
  14918. int
  14919. main (void)
  14920. {
  14921. ;
  14922. return 0;
  14923. }
  14924. _ACEOF
  14925. if ac_fn_cxx_try_link "$LINENO"
  14926. then :
  14927. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14928. then :
  14929. lt_cv_shlibpath_overrides_runpath=yes
  14930. fi
  14931. fi
  14932. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14933. conftest$ac_exeext conftest.$ac_ext
  14934. LDFLAGS=$save_LDFLAGS
  14935. libdir=$save_libdir
  14936. fi
  14937. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14938. # This implies no fast_install, which is unacceptable.
  14939. # Some rework will be needed to allow for fast_install
  14940. # before this can be enabled.
  14941. hardcode_into_libs=yes
  14942. # Add ABI-specific directories to the system library path.
  14943. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  14944. # Ideally, we could use ldconfig to report *all* directores which are
  14945. # searched for libraries, however this is still not possible. Aside from not
  14946. # being certain /sbin/ldconfig is available, command
  14947. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14948. # even though it is searched at run-time. Try to do the best guess by
  14949. # appending ld.so.conf contents (and includes) to the search path.
  14950. if test -f /etc/ld.so.conf; then
  14951. 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' ' '`
  14952. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  14953. fi
  14954. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14955. # powerpc, because MkLinux only supported shared libraries with the
  14956. # GNU dynamic linker. Since this was broken with cross compilers,
  14957. # most powerpc-linux boxes support dynamic linking these days and
  14958. # people can always --disable-shared, the test was removed, and we
  14959. # assume the GNU/Linux dynamic linker is in use.
  14960. dynamic_linker='GNU/Linux ld.so'
  14961. ;;
  14962. netbsd*)
  14963. version_type=sunos
  14964. need_lib_prefix=no
  14965. need_version=no
  14966. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14967. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14968. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14969. dynamic_linker='NetBSD (a.out) ld.so'
  14970. else
  14971. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14972. soname_spec='$libname$release$shared_ext$major'
  14973. dynamic_linker='NetBSD ld.elf_so'
  14974. fi
  14975. shlibpath_var=LD_LIBRARY_PATH
  14976. shlibpath_overrides_runpath=yes
  14977. hardcode_into_libs=yes
  14978. ;;
  14979. newsos6)
  14980. version_type=linux # correct to gnu/linux during the next big refactor
  14981. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14982. shlibpath_var=LD_LIBRARY_PATH
  14983. shlibpath_overrides_runpath=yes
  14984. ;;
  14985. *nto* | *qnx*)
  14986. version_type=qnx
  14987. need_lib_prefix=no
  14988. need_version=no
  14989. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14990. soname_spec='$libname$release$shared_ext$major'
  14991. shlibpath_var=LD_LIBRARY_PATH
  14992. shlibpath_overrides_runpath=no
  14993. hardcode_into_libs=yes
  14994. dynamic_linker='ldqnx.so'
  14995. ;;
  14996. openbsd* | bitrig*)
  14997. version_type=sunos
  14998. sys_lib_dlsearch_path_spec=/usr/lib
  14999. need_lib_prefix=no
  15000. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15001. need_version=no
  15002. else
  15003. need_version=yes
  15004. fi
  15005. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15006. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15007. shlibpath_var=LD_LIBRARY_PATH
  15008. shlibpath_overrides_runpath=yes
  15009. ;;
  15010. os2*)
  15011. libname_spec='$name'
  15012. shrext_cmds=.dll
  15013. need_lib_prefix=no
  15014. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15015. # SDL customization: removed versioning support.
  15016. # version_type=windows
  15017. # need_version=no
  15018. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15019. # v=$($ECHO $release$versuffix | tr -d .-);
  15020. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15021. # $ECHO $n$v`$shared_ext'
  15022. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15023. library_names_spec='${libname}_dll.$libext'
  15024. dynamic_linker='OS/2 ld.exe'
  15025. shlibpath_var=BEGINLIBPATH
  15026. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15027. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15028. postinstall_cmds='base_file=`basename \$file`~
  15029. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15030. dldir=$destdir/`dirname \$dlpath`~
  15031. test -d \$dldir || mkdir -p \$dldir~
  15032. $install_prog $dir/$dlname \$dldir/$dlname~
  15033. chmod a+x \$dldir/$dlname~
  15034. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15035. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15036. fi'
  15037. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15038. dlpath=$dir/\$dldll~
  15039. $RM \$dlpath'
  15040. ;;
  15041. osf3* | osf4* | osf5*)
  15042. version_type=osf
  15043. need_lib_prefix=no
  15044. need_version=no
  15045. soname_spec='$libname$release$shared_ext$major'
  15046. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15047. shlibpath_var=LD_LIBRARY_PATH
  15048. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15049. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15050. ;;
  15051. rdos*)
  15052. dynamic_linker=no
  15053. ;;
  15054. solaris*)
  15055. version_type=linux # correct to gnu/linux during the next big refactor
  15056. need_lib_prefix=no
  15057. need_version=no
  15058. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15059. soname_spec='$libname$release$shared_ext$major'
  15060. shlibpath_var=LD_LIBRARY_PATH
  15061. shlibpath_overrides_runpath=yes
  15062. hardcode_into_libs=yes
  15063. # ldd complains unless libraries are executable
  15064. postinstall_cmds='chmod +x $lib'
  15065. ;;
  15066. sunos4*)
  15067. version_type=sunos
  15068. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15069. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15070. shlibpath_var=LD_LIBRARY_PATH
  15071. shlibpath_overrides_runpath=yes
  15072. if test yes = "$with_gnu_ld"; then
  15073. need_lib_prefix=no
  15074. fi
  15075. need_version=yes
  15076. ;;
  15077. sysv4 | sysv4.3*)
  15078. version_type=linux # correct to gnu/linux during the next big refactor
  15079. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15080. soname_spec='$libname$release$shared_ext$major'
  15081. shlibpath_var=LD_LIBRARY_PATH
  15082. case $host_vendor in
  15083. sni)
  15084. shlibpath_overrides_runpath=no
  15085. need_lib_prefix=no
  15086. runpath_var=LD_RUN_PATH
  15087. ;;
  15088. siemens)
  15089. need_lib_prefix=no
  15090. ;;
  15091. motorola)
  15092. need_lib_prefix=no
  15093. need_version=no
  15094. shlibpath_overrides_runpath=no
  15095. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15096. ;;
  15097. esac
  15098. ;;
  15099. sysv4*MP*)
  15100. if test -d /usr/nec; then
  15101. version_type=linux # correct to gnu/linux during the next big refactor
  15102. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15103. soname_spec='$libname$shared_ext.$major'
  15104. shlibpath_var=LD_LIBRARY_PATH
  15105. fi
  15106. ;;
  15107. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15108. version_type=sco
  15109. need_lib_prefix=no
  15110. need_version=no
  15111. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15112. soname_spec='$libname$release$shared_ext$major'
  15113. shlibpath_var=LD_LIBRARY_PATH
  15114. shlibpath_overrides_runpath=yes
  15115. hardcode_into_libs=yes
  15116. if test yes = "$with_gnu_ld"; then
  15117. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15118. else
  15119. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15120. case $host_os in
  15121. sco3.2v5*)
  15122. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15123. ;;
  15124. esac
  15125. fi
  15126. sys_lib_dlsearch_path_spec='/usr/lib'
  15127. ;;
  15128. tpf*)
  15129. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15130. version_type=linux # correct to gnu/linux during the next big refactor
  15131. need_lib_prefix=no
  15132. need_version=no
  15133. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15134. shlibpath_var=LD_LIBRARY_PATH
  15135. shlibpath_overrides_runpath=no
  15136. hardcode_into_libs=yes
  15137. ;;
  15138. uts4*)
  15139. version_type=linux # correct to gnu/linux during the next big refactor
  15140. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15141. soname_spec='$libname$release$shared_ext$major'
  15142. shlibpath_var=LD_LIBRARY_PATH
  15143. ;;
  15144. *)
  15145. dynamic_linker=no
  15146. ;;
  15147. esac
  15148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15149. printf "%s\n" "$dynamic_linker" >&6; }
  15150. test no = "$dynamic_linker" && can_build_shared=no
  15151. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15152. if test yes = "$GCC"; then
  15153. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15154. fi
  15155. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15156. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15157. fi
  15158. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15159. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15160. fi
  15161. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15162. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15163. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15164. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15165. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15166. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15168. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15169. hardcode_action_CXX=
  15170. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15171. test -n "$runpath_var_CXX" ||
  15172. test yes = "$hardcode_automatic_CXX"; then
  15173. # We can hardcode non-existent directories.
  15174. if test no != "$hardcode_direct_CXX" &&
  15175. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15176. # have to relink, otherwise we might link with an installed library
  15177. # when we should be linking with a yet-to-be-installed one
  15178. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15179. test no != "$hardcode_minus_L_CXX"; then
  15180. # Linking always hardcodes the temporary library directory.
  15181. hardcode_action_CXX=relink
  15182. else
  15183. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15184. hardcode_action_CXX=immediate
  15185. fi
  15186. else
  15187. # We cannot hardcode anything, or else we can only hardcode existing
  15188. # directories.
  15189. hardcode_action_CXX=unsupported
  15190. fi
  15191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15192. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15193. if test relink = "$hardcode_action_CXX" ||
  15194. test yes = "$inherit_rpath_CXX"; then
  15195. # Fast installation is not supported
  15196. enable_fast_install=no
  15197. elif test yes = "$shlibpath_overrides_runpath" ||
  15198. test no = "$enable_shared"; then
  15199. # Fast installation is not necessary
  15200. enable_fast_install=needless
  15201. fi
  15202. fi # test -n "$compiler"
  15203. CC=$lt_save_CC
  15204. CFLAGS=$lt_save_CFLAGS
  15205. LDCXX=$LD
  15206. LD=$lt_save_LD
  15207. GCC=$lt_save_GCC
  15208. with_gnu_ld=$lt_save_with_gnu_ld
  15209. lt_cv_path_LDCXX=$lt_cv_path_LD
  15210. lt_cv_path_LD=$lt_save_path_LD
  15211. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15212. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15213. fi # test yes != "$_lt_caught_CXX_error"
  15214. ac_ext=c
  15215. ac_cpp='$CPP $CPPFLAGS'
  15216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15220. printf %s "checking for egrep... " >&6; }
  15221. if test ${ac_cv_path_EGREP+y}
  15222. then :
  15223. printf %s "(cached) " >&6
  15224. else $as_nop
  15225. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15226. then ac_cv_path_EGREP="$GREP -E"
  15227. else
  15228. if test -z "$EGREP"; then
  15229. ac_path_EGREP_found=false
  15230. # Loop through the user's path and test for each of PROGNAME-LIST
  15231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15232. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15233. do
  15234. IFS=$as_save_IFS
  15235. case $as_dir in #(((
  15236. '') as_dir=./ ;;
  15237. */) ;;
  15238. *) as_dir=$as_dir/ ;;
  15239. esac
  15240. for ac_prog in egrep
  15241. do
  15242. for ac_exec_ext in '' $ac_executable_extensions; do
  15243. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15244. as_fn_executable_p "$ac_path_EGREP" || continue
  15245. # Check for GNU ac_path_EGREP and select it if it is found.
  15246. # Check for GNU $ac_path_EGREP
  15247. case `"$ac_path_EGREP" --version 2>&1` in
  15248. *GNU*)
  15249. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15250. *)
  15251. ac_count=0
  15252. printf %s 0123456789 >"conftest.in"
  15253. while :
  15254. do
  15255. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15256. mv "conftest.tmp" "conftest.in"
  15257. cp "conftest.in" "conftest.nl"
  15258. printf "%s\n" 'EGREP' >> "conftest.nl"
  15259. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15260. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15261. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15262. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15263. # Best one so far, save it but keep looking for a better one
  15264. ac_cv_path_EGREP="$ac_path_EGREP"
  15265. ac_path_EGREP_max=$ac_count
  15266. fi
  15267. # 10*(2^10) chars as input seems more than enough
  15268. test $ac_count -gt 10 && break
  15269. done
  15270. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15271. esac
  15272. $ac_path_EGREP_found && break 3
  15273. done
  15274. done
  15275. done
  15276. IFS=$as_save_IFS
  15277. if test -z "$ac_cv_path_EGREP"; then
  15278. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15279. fi
  15280. else
  15281. ac_cv_path_EGREP=$EGREP
  15282. fi
  15283. fi
  15284. fi
  15285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15286. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15287. EGREP="$ac_cv_path_EGREP"
  15288. # Find a good install program. We prefer a C program (faster),
  15289. # so one script is as good as another. But avoid the broken or
  15290. # incompatible versions:
  15291. # SysV /etc/install, /usr/sbin/install
  15292. # SunOS /usr/etc/install
  15293. # IRIX /sbin/install
  15294. # AIX /bin/install
  15295. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15296. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15297. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15298. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15299. # OS/2's system install, which has a completely different semantic
  15300. # ./install, which can be erroneously created by make from ./install.sh.
  15301. # Reject install programs that cannot install multiple files.
  15302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15303. printf %s "checking for a BSD-compatible install... " >&6; }
  15304. if test -z "$INSTALL"; then
  15305. if test ${ac_cv_path_install+y}
  15306. then :
  15307. printf %s "(cached) " >&6
  15308. else $as_nop
  15309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15310. for as_dir in $PATH
  15311. do
  15312. IFS=$as_save_IFS
  15313. case $as_dir in #(((
  15314. '') as_dir=./ ;;
  15315. */) ;;
  15316. *) as_dir=$as_dir/ ;;
  15317. esac
  15318. # Account for fact that we put trailing slashes in our PATH walk.
  15319. case $as_dir in #((
  15320. ./ | /[cC]/* | \
  15321. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15322. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15323. /usr/ucb/* ) ;;
  15324. *)
  15325. # OSF1 and SCO ODT 3.0 have their own names for install.
  15326. # Don't use installbsd from OSF since it installs stuff as root
  15327. # by default.
  15328. for ac_prog in ginstall scoinst install; do
  15329. for ac_exec_ext in '' $ac_executable_extensions; do
  15330. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15331. if test $ac_prog = install &&
  15332. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15333. # AIX install. It has an incompatible calling convention.
  15334. :
  15335. elif test $ac_prog = install &&
  15336. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15337. # program-specific install script used by HP pwplus--don't use.
  15338. :
  15339. else
  15340. rm -rf conftest.one conftest.two conftest.dir
  15341. echo one > conftest.one
  15342. echo two > conftest.two
  15343. mkdir conftest.dir
  15344. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15345. test -s conftest.one && test -s conftest.two &&
  15346. test -s conftest.dir/conftest.one &&
  15347. test -s conftest.dir/conftest.two
  15348. then
  15349. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15350. break 3
  15351. fi
  15352. fi
  15353. fi
  15354. done
  15355. done
  15356. ;;
  15357. esac
  15358. done
  15359. IFS=$as_save_IFS
  15360. rm -rf conftest.one conftest.two conftest.dir
  15361. fi
  15362. if test ${ac_cv_path_install+y}; then
  15363. INSTALL=$ac_cv_path_install
  15364. else
  15365. # As a last resort, use the slow shell script. Don't cache a
  15366. # value for INSTALL within a source directory, because that will
  15367. # break other packages using the cache if that directory is
  15368. # removed, or if the value is a relative name.
  15369. INSTALL=$ac_install_sh
  15370. fi
  15371. fi
  15372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15373. printf "%s\n" "$INSTALL" >&6; }
  15374. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15375. # It thinks the first close brace ends the variable substitution.
  15376. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15377. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15378. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15380. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15381. set x ${MAKE-make}
  15382. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15383. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15384. then :
  15385. printf %s "(cached) " >&6
  15386. else $as_nop
  15387. cat >conftest.make <<\_ACEOF
  15388. SHELL = /bin/sh
  15389. all:
  15390. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15391. _ACEOF
  15392. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15393. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15394. *@@@%%%=?*=@@@%%%*)
  15395. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15396. *)
  15397. eval ac_cv_prog_make_${ac_make}_set=no;;
  15398. esac
  15399. rm -f conftest.make
  15400. fi
  15401. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15403. printf "%s\n" "yes" >&6; }
  15404. SET_MAKE=
  15405. else
  15406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15407. printf "%s\n" "no" >&6; }
  15408. SET_MAKE="MAKE=${MAKE-make}"
  15409. fi
  15410. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15411. if test -n "$ac_tool_prefix"; then
  15412. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15413. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15415. printf %s "checking for $ac_word... " >&6; }
  15416. if test ${ac_cv_path_PKG_CONFIG+y}
  15417. then :
  15418. printf %s "(cached) " >&6
  15419. else $as_nop
  15420. case $PKG_CONFIG in
  15421. [\\/]* | ?:[\\/]*)
  15422. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15423. ;;
  15424. *)
  15425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15426. for as_dir in $PATH
  15427. do
  15428. IFS=$as_save_IFS
  15429. case $as_dir in #(((
  15430. '') as_dir=./ ;;
  15431. */) ;;
  15432. *) as_dir=$as_dir/ ;;
  15433. esac
  15434. for ac_exec_ext in '' $ac_executable_extensions; do
  15435. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15436. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15437. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15438. break 2
  15439. fi
  15440. done
  15441. done
  15442. IFS=$as_save_IFS
  15443. ;;
  15444. esac
  15445. fi
  15446. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15447. if test -n "$PKG_CONFIG"; then
  15448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15449. printf "%s\n" "$PKG_CONFIG" >&6; }
  15450. else
  15451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15452. printf "%s\n" "no" >&6; }
  15453. fi
  15454. fi
  15455. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15456. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15457. # Extract the first word of "pkg-config", so it can be a program name with args.
  15458. set dummy pkg-config; ac_word=$2
  15459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15460. printf %s "checking for $ac_word... " >&6; }
  15461. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15462. then :
  15463. printf %s "(cached) " >&6
  15464. else $as_nop
  15465. case $ac_pt_PKG_CONFIG in
  15466. [\\/]* | ?:[\\/]*)
  15467. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15468. ;;
  15469. *)
  15470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15471. for as_dir in $PATH
  15472. do
  15473. IFS=$as_save_IFS
  15474. case $as_dir in #(((
  15475. '') as_dir=./ ;;
  15476. */) ;;
  15477. *) as_dir=$as_dir/ ;;
  15478. esac
  15479. for ac_exec_ext in '' $ac_executable_extensions; do
  15480. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15481. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15482. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15483. break 2
  15484. fi
  15485. done
  15486. done
  15487. IFS=$as_save_IFS
  15488. ;;
  15489. esac
  15490. fi
  15491. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15492. if test -n "$ac_pt_PKG_CONFIG"; then
  15493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15494. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15495. else
  15496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15497. printf "%s\n" "no" >&6; }
  15498. fi
  15499. if test "x$ac_pt_PKG_CONFIG" = x; then
  15500. PKG_CONFIG=""
  15501. else
  15502. case $cross_compiling:$ac_tool_warned in
  15503. yes:)
  15504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15505. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15506. ac_tool_warned=yes ;;
  15507. esac
  15508. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15509. fi
  15510. else
  15511. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15512. fi
  15513. fi
  15514. if test -n "$PKG_CONFIG"; then
  15515. _pkg_min_version=0.9.0
  15516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15517. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15518. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15520. printf "%s\n" "yes" >&6; }
  15521. else
  15522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15523. printf "%s\n" "no" >&6; }
  15524. PKG_CONFIG=""
  15525. fi
  15526. fi
  15527. if test -z "$AWK" ; then
  15528. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15529. fi
  15530. for ac_prog in gsort sort
  15531. do
  15532. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15533. set dummy $ac_prog; ac_word=$2
  15534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15535. printf %s "checking for $ac_word... " >&6; }
  15536. if test ${ac_cv_prog_SORT+y}
  15537. then :
  15538. printf %s "(cached) " >&6
  15539. else $as_nop
  15540. if test -n "$SORT"; then
  15541. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15542. else
  15543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15544. for as_dir in $PATH
  15545. do
  15546. IFS=$as_save_IFS
  15547. case $as_dir in #(((
  15548. '') as_dir=./ ;;
  15549. */) ;;
  15550. *) as_dir=$as_dir/ ;;
  15551. esac
  15552. for ac_exec_ext in '' $ac_executable_extensions; do
  15553. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15554. ac_cv_prog_SORT="$ac_prog"
  15555. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15556. break 2
  15557. fi
  15558. done
  15559. done
  15560. IFS=$as_save_IFS
  15561. fi
  15562. fi
  15563. SORT=$ac_cv_prog_SORT
  15564. if test -n "$SORT"; then
  15565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15566. printf "%s\n" "$SORT" >&6; }
  15567. else
  15568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15569. printf "%s\n" "no" >&6; }
  15570. fi
  15571. test -n "$SORT" && break
  15572. done
  15573. test -n "$SORT" || SORT="false"
  15574. if ! "$SORT" -V </dev/null >/dev/null
  15575. then :
  15576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15577. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15578. fi
  15579. # Check whether --enable-largefile was given.
  15580. if test ${enable_largefile+y}
  15581. then :
  15582. enableval=$enable_largefile;
  15583. fi
  15584. if test "$enable_largefile" != no; then
  15585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15586. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15587. if test ${ac_cv_sys_largefile_CC+y}
  15588. then :
  15589. printf %s "(cached) " >&6
  15590. else $as_nop
  15591. ac_cv_sys_largefile_CC=no
  15592. if test "$GCC" != yes; then
  15593. ac_save_CC=$CC
  15594. while :; do
  15595. # IRIX 6.2 and later do not support large files by default,
  15596. # so use the C compiler's -n32 option if that helps.
  15597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15598. /* end confdefs.h. */
  15599. #include <sys/types.h>
  15600. /* Check that off_t can represent 2**63 - 1 correctly.
  15601. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15602. since some C++ compilers masquerading as C compilers
  15603. incorrectly reject 9223372036854775807. */
  15604. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15605. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15606. && LARGE_OFF_T % 2147483647 == 1)
  15607. ? 1 : -1];
  15608. int
  15609. main (void)
  15610. {
  15611. ;
  15612. return 0;
  15613. }
  15614. _ACEOF
  15615. if ac_fn_c_try_compile "$LINENO"
  15616. then :
  15617. break
  15618. fi
  15619. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15620. CC="$CC -n32"
  15621. if ac_fn_c_try_compile "$LINENO"
  15622. then :
  15623. ac_cv_sys_largefile_CC=' -n32'; break
  15624. fi
  15625. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15626. break
  15627. done
  15628. CC=$ac_save_CC
  15629. rm -f conftest.$ac_ext
  15630. fi
  15631. fi
  15632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15633. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15634. if test "$ac_cv_sys_largefile_CC" != no; then
  15635. CC=$CC$ac_cv_sys_largefile_CC
  15636. fi
  15637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15638. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15639. if test ${ac_cv_sys_file_offset_bits+y}
  15640. then :
  15641. printf %s "(cached) " >&6
  15642. else $as_nop
  15643. while :; do
  15644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15645. /* end confdefs.h. */
  15646. #include <sys/types.h>
  15647. /* Check that off_t can represent 2**63 - 1 correctly.
  15648. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15649. since some C++ compilers masquerading as C compilers
  15650. incorrectly reject 9223372036854775807. */
  15651. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15652. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15653. && LARGE_OFF_T % 2147483647 == 1)
  15654. ? 1 : -1];
  15655. int
  15656. main (void)
  15657. {
  15658. ;
  15659. return 0;
  15660. }
  15661. _ACEOF
  15662. if ac_fn_c_try_compile "$LINENO"
  15663. then :
  15664. ac_cv_sys_file_offset_bits=no; break
  15665. fi
  15666. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15668. /* end confdefs.h. */
  15669. #define _FILE_OFFSET_BITS 64
  15670. #include <sys/types.h>
  15671. /* Check that off_t can represent 2**63 - 1 correctly.
  15672. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15673. since some C++ compilers masquerading as C compilers
  15674. incorrectly reject 9223372036854775807. */
  15675. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15676. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15677. && LARGE_OFF_T % 2147483647 == 1)
  15678. ? 1 : -1];
  15679. int
  15680. main (void)
  15681. {
  15682. ;
  15683. return 0;
  15684. }
  15685. _ACEOF
  15686. if ac_fn_c_try_compile "$LINENO"
  15687. then :
  15688. ac_cv_sys_file_offset_bits=64; break
  15689. fi
  15690. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15691. ac_cv_sys_file_offset_bits=unknown
  15692. break
  15693. done
  15694. fi
  15695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15696. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15697. case $ac_cv_sys_file_offset_bits in #(
  15698. no | unknown) ;;
  15699. *)
  15700. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15701. ;;
  15702. esac
  15703. rm -rf conftest*
  15704. if test $ac_cv_sys_file_offset_bits = unknown; then
  15705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15706. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15707. if test ${ac_cv_sys_large_files+y}
  15708. then :
  15709. printf %s "(cached) " >&6
  15710. else $as_nop
  15711. while :; do
  15712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15713. /* end confdefs.h. */
  15714. #include <sys/types.h>
  15715. /* Check that off_t can represent 2**63 - 1 correctly.
  15716. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15717. since some C++ compilers masquerading as C compilers
  15718. incorrectly reject 9223372036854775807. */
  15719. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15720. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15721. && LARGE_OFF_T % 2147483647 == 1)
  15722. ? 1 : -1];
  15723. int
  15724. main (void)
  15725. {
  15726. ;
  15727. return 0;
  15728. }
  15729. _ACEOF
  15730. if ac_fn_c_try_compile "$LINENO"
  15731. then :
  15732. ac_cv_sys_large_files=no; break
  15733. fi
  15734. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15736. /* end confdefs.h. */
  15737. #define _LARGE_FILES 1
  15738. #include <sys/types.h>
  15739. /* Check that off_t can represent 2**63 - 1 correctly.
  15740. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15741. since some C++ compilers masquerading as C compilers
  15742. incorrectly reject 9223372036854775807. */
  15743. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15744. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15745. && LARGE_OFF_T % 2147483647 == 1)
  15746. ? 1 : -1];
  15747. int
  15748. main (void)
  15749. {
  15750. ;
  15751. return 0;
  15752. }
  15753. _ACEOF
  15754. if ac_fn_c_try_compile "$LINENO"
  15755. then :
  15756. ac_cv_sys_large_files=1; break
  15757. fi
  15758. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15759. ac_cv_sys_large_files=unknown
  15760. break
  15761. done
  15762. fi
  15763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15764. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15765. case $ac_cv_sys_large_files in #(
  15766. no | unknown) ;;
  15767. *)
  15768. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15769. ;;
  15770. esac
  15771. rm -rf conftest*
  15772. fi
  15773. fi
  15774. case "$host" in
  15775. *-*-mingw*)
  15776. # Except on msys, where make can't handle full pathnames (bug 1972)
  15777. ;;
  15778. *)
  15779. srcdir=`cd $srcdir && pwd`
  15780. ;;
  15781. esac
  15782. INCLUDE="-I$srcdir/include"
  15783. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15784. case "$host" in
  15785. *-*-haiku*)
  15786. LINKER='$(CXX)'
  15787. LIBTOOLLINKERTAG='CXX'
  15788. ;;
  15789. *)
  15790. LINKER='$(CC)'
  15791. LIBTOOLLINKERTAG='CC'
  15792. ;;
  15793. esac
  15794. if test x$srcdir != x.; then
  15795. INCLUDE="-Iinclude $INCLUDE"
  15796. elif test -d .git; then
  15797. as_fn_error $? "
  15798. *** When building from a git clone you should configure and build in a
  15799. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15800. " "$LINENO" 5
  15801. fi
  15802. BASE_CFLAGS=""
  15803. BASE_LDFLAGS=""
  15804. case "$host" in
  15805. *-*-cygwin*)
  15806. # We build SDL on cygwin without the UNIX emulation layer
  15807. save_CFLAGS="$CFLAGS"
  15808. have_no_cygwin=no
  15809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15810. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15811. CFLAGS="$save_CFLAGS -mno-cygwin"
  15812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15813. /* end confdefs.h. */
  15814. int
  15815. main (void)
  15816. {
  15817. ;
  15818. return 0;
  15819. }
  15820. _ACEOF
  15821. if ac_fn_c_try_compile "$LINENO"
  15822. then :
  15823. have_no_cygwin=yes
  15824. fi
  15825. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15827. printf "%s\n" "$have_no_cygwin" >&6; }
  15828. CFLAGS="$save_CFLAGS"
  15829. if test x$have_no_cygwin = xyes; then
  15830. BASE_CFLAGS="-mno-cygwin"
  15831. BASE_LDFLAGS="-mno-cygwin"
  15832. fi
  15833. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15834. ;;
  15835. esac
  15836. # Uncomment the following line if you want to force SDL and applications
  15837. # built with it to be compiled for a particular architecture.
  15838. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15839. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15840. # The default optimization for SDL is -O3 (Bug #31)
  15841. if test "x$orig_CFLAGS" = x; then
  15842. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15843. fi
  15844. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15845. BUILD_LDFLAGS="$LDFLAGS"
  15846. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15847. ## These are common directories to find software packages
  15848. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15849. # if test -d $path/include; then
  15850. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15851. # fi
  15852. # if test -d $path/lib; then
  15853. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15854. # fi
  15855. #done
  15856. SDL_CFLAGS="$BASE_CFLAGS"
  15857. SDL_LIBS="-lSDL3"
  15858. if test "x$BASE_LDFLAGS" != x; then
  15859. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15860. fi
  15861. if test "x$EXTRA_CFLAGS" != x; then
  15862. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15863. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15864. fi
  15865. if test "x$EXTRA_LDFLAGS" != x; then
  15866. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15867. fi
  15868. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15869. find_lib()
  15870. {
  15871. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15872. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15873. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15874. if test "$cross_compiling" = yes; then
  15875. host_lib_path=""
  15876. else
  15877. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15878. fi
  15879. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15880. 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`
  15881. if test x$lib != x; then
  15882. echo $lib
  15883. return
  15884. fi
  15885. done
  15886. }
  15887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15888. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15889. if test ${ac_cv_c_const+y}
  15890. then :
  15891. printf %s "(cached) " >&6
  15892. else $as_nop
  15893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15894. /* end confdefs.h. */
  15895. int
  15896. main (void)
  15897. {
  15898. #ifndef __cplusplus
  15899. /* Ultrix mips cc rejects this sort of thing. */
  15900. typedef int charset[2];
  15901. const charset cs = { 0, 0 };
  15902. /* SunOS 4.1.1 cc rejects this. */
  15903. char const *const *pcpcc;
  15904. char **ppc;
  15905. /* NEC SVR4.0.2 mips cc rejects this. */
  15906. struct point {int x, y;};
  15907. static struct point const zero = {0,0};
  15908. /* IBM XL C 1.02.0.0 rejects this.
  15909. It does not let you subtract one const X* pointer from another in
  15910. an arm of an if-expression whose if-part is not a constant
  15911. expression */
  15912. const char *g = "string";
  15913. pcpcc = &g + (g ? g-g : 0);
  15914. /* HPUX 7.0 cc rejects these. */
  15915. ++pcpcc;
  15916. ppc = (char**) pcpcc;
  15917. pcpcc = (char const *const *) ppc;
  15918. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15919. char tx;
  15920. char *t = &tx;
  15921. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15922. *t++ = 0;
  15923. if (s) return 0;
  15924. }
  15925. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15926. int x[] = {25, 17};
  15927. const int *foo = &x[0];
  15928. ++foo;
  15929. }
  15930. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15931. typedef const int *iptr;
  15932. iptr p = 0;
  15933. ++p;
  15934. }
  15935. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  15936. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15937. struct s { int j; const int *ap[3]; } bx;
  15938. struct s *b = &bx; b->j = 5;
  15939. }
  15940. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15941. const int foo = 10;
  15942. if (!foo) return 0;
  15943. }
  15944. return !cs[0] && !zero.x;
  15945. #endif
  15946. ;
  15947. return 0;
  15948. }
  15949. _ACEOF
  15950. if ac_fn_c_try_compile "$LINENO"
  15951. then :
  15952. ac_cv_c_const=yes
  15953. else $as_nop
  15954. ac_cv_c_const=no
  15955. fi
  15956. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15957. fi
  15958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  15959. printf "%s\n" "$ac_cv_c_const" >&6; }
  15960. if test $ac_cv_c_const = no; then
  15961. printf "%s\n" "#define const /**/" >>confdefs.h
  15962. fi
  15963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  15964. printf %s "checking for inline... " >&6; }
  15965. if test ${ac_cv_c_inline+y}
  15966. then :
  15967. printf %s "(cached) " >&6
  15968. else $as_nop
  15969. ac_cv_c_inline=no
  15970. for ac_kw in inline __inline__ __inline; do
  15971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15972. /* end confdefs.h. */
  15973. #ifndef __cplusplus
  15974. typedef int foo_t;
  15975. static $ac_kw foo_t static_foo (void) {return 0; }
  15976. $ac_kw foo_t foo (void) {return 0; }
  15977. #endif
  15978. _ACEOF
  15979. if ac_fn_c_try_compile "$LINENO"
  15980. then :
  15981. ac_cv_c_inline=$ac_kw
  15982. fi
  15983. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15984. test "$ac_cv_c_inline" != no && break
  15985. done
  15986. fi
  15987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  15988. printf "%s\n" "$ac_cv_c_inline" >&6; }
  15989. case $ac_cv_c_inline in
  15990. inline | yes) ;;
  15991. *)
  15992. case $ac_cv_c_inline in
  15993. no) ac_val=;;
  15994. *) ac_val=$ac_cv_c_inline;;
  15995. esac
  15996. cat >>confdefs.h <<_ACEOF
  15997. #ifndef __cplusplus
  15998. #define inline $ac_val
  15999. #endif
  16000. _ACEOF
  16001. ;;
  16002. esac
  16003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16004. printf %s "checking for working volatile... " >&6; }
  16005. if test ${ac_cv_c_volatile+y}
  16006. then :
  16007. printf %s "(cached) " >&6
  16008. else $as_nop
  16009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16010. /* end confdefs.h. */
  16011. int
  16012. main (void)
  16013. {
  16014. volatile int x;
  16015. int * volatile y = (int *) 0;
  16016. return !x && !y;
  16017. ;
  16018. return 0;
  16019. }
  16020. _ACEOF
  16021. if ac_fn_c_try_compile "$LINENO"
  16022. then :
  16023. ac_cv_c_volatile=yes
  16024. else $as_nop
  16025. ac_cv_c_volatile=no
  16026. fi
  16027. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16028. fi
  16029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16030. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16031. if test $ac_cv_c_volatile = no; then
  16032. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16033. fi
  16034. # Check whether --enable-assertions was given.
  16035. if test ${enable_assertions+y}
  16036. then :
  16037. enableval=$enable_assertions;
  16038. else $as_nop
  16039. enable_assertions=auto
  16040. fi
  16041. case "$enable_assertions" in
  16042. auto) # Use optimization settings to determine assertion level
  16043. ;;
  16044. disabled)
  16045. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16046. ;;
  16047. release)
  16048. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16049. ;;
  16050. enabled)
  16051. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16052. ;;
  16053. paranoid)
  16054. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16055. ;;
  16056. *)
  16057. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16058. ;;
  16059. esac
  16060. 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"
  16061. # Check whether --enable-dependency-tracking was given.
  16062. if test ${enable_dependency_tracking+y}
  16063. then :
  16064. enableval=$enable_dependency_tracking;
  16065. else $as_nop
  16066. enable_dependency_tracking=yes
  16067. fi
  16068. if test x$enable_dependency_tracking = xyes; then
  16069. have_gcc_mmd_mt=no
  16070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16071. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16073. /* end confdefs.h. */
  16074. #if !defined(__GNUC__) || __GNUC__ < 3
  16075. #error Dependency tracking requires GCC 3.0 or newer
  16076. #endif
  16077. int
  16078. main (void)
  16079. {
  16080. ;
  16081. return 0;
  16082. }
  16083. _ACEOF
  16084. if ac_fn_c_try_compile "$LINENO"
  16085. then :
  16086. have_gcc_mmd_mt=yes
  16087. fi
  16088. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16090. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16091. if test x$have_gcc_mmd_mt = xyes; then
  16092. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16093. fi
  16094. fi
  16095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16096. printf %s "checking for linker option --no-undefined... " >&6; }
  16097. have_no_undefined=no
  16098. case "$host" in
  16099. *-*-openbsd*)
  16100. ;;
  16101. *)
  16102. save_LDFLAGS="$LDFLAGS"
  16103. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16105. /* end confdefs.h. */
  16106. int
  16107. main (void)
  16108. {
  16109. ;
  16110. return 0;
  16111. }
  16112. _ACEOF
  16113. if ac_fn_c_try_link "$LINENO"
  16114. then :
  16115. have_no_undefined=yes
  16116. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16117. fi
  16118. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16119. conftest$ac_exeext conftest.$ac_ext
  16120. LDFLAGS="$save_LDFLAGS"
  16121. ;;
  16122. esac
  16123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16124. printf "%s\n" "$have_no_undefined" >&6; }
  16125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16126. printf %s "checking for linker option --dynamicbase... " >&6; }
  16127. have_dynamicbase=no
  16128. case "$host" in
  16129. *)
  16130. save_LDFLAGS="$LDFLAGS"
  16131. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16133. /* end confdefs.h. */
  16134. int
  16135. main (void)
  16136. {
  16137. ;
  16138. return 0;
  16139. }
  16140. _ACEOF
  16141. if ac_fn_c_try_link "$LINENO"
  16142. then :
  16143. have_dynamicbase=yes
  16144. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16145. fi
  16146. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16147. conftest$ac_exeext conftest.$ac_ext
  16148. LDFLAGS="$save_LDFLAGS"
  16149. ;;
  16150. esac
  16151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16152. printf "%s\n" "$have_dynamicbase" >&6; }
  16153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16154. printf %s "checking for linker option --nxcompat... " >&6; }
  16155. have_nxcompat=no
  16156. case "$host" in
  16157. *)
  16158. save_LDFLAGS="$LDFLAGS"
  16159. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16161. /* end confdefs.h. */
  16162. int
  16163. main (void)
  16164. {
  16165. ;
  16166. return 0;
  16167. }
  16168. _ACEOF
  16169. if ac_fn_c_try_link "$LINENO"
  16170. then :
  16171. have_nxcompat=yes
  16172. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16173. fi
  16174. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16175. conftest$ac_exeext conftest.$ac_ext
  16176. LDFLAGS="$save_LDFLAGS"
  16177. ;;
  16178. esac
  16179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16180. printf "%s\n" "$have_nxcompat" >&6; }
  16181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16182. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16183. have_high_entropy_va=no
  16184. case "$host" in
  16185. *)
  16186. save_LDFLAGS="$LDFLAGS"
  16187. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16189. /* end confdefs.h. */
  16190. int
  16191. main (void)
  16192. {
  16193. ;
  16194. return 0;
  16195. }
  16196. _ACEOF
  16197. if ac_fn_c_try_link "$LINENO"
  16198. then :
  16199. have_high_entropy_va=yes
  16200. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16201. fi
  16202. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16203. conftest$ac_exeext conftest.$ac_ext
  16204. LDFLAGS="$save_LDFLAGS"
  16205. ;;
  16206. esac
  16207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16208. printf "%s\n" "$have_high_entropy_va" >&6; }
  16209. # Check whether --enable-libc was given.
  16210. if test ${enable_libc+y}
  16211. then :
  16212. enableval=$enable_libc;
  16213. else $as_nop
  16214. enable_libc=yes
  16215. fi
  16216. # Check whether --enable-system-iconv was given.
  16217. if test ${enable_system_iconv+y}
  16218. then :
  16219. enableval=$enable_system_iconv;
  16220. else $as_nop
  16221. enable_system_iconv=yes
  16222. fi
  16223. if test x$enable_libc = xyes; then
  16224. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16225. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16226. if test "x$ac_cv_header_sys_types_h" = xyes
  16227. then :
  16228. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16229. fi
  16230. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16231. if test "x$ac_cv_header_stdio_h" = xyes
  16232. then :
  16233. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16234. fi
  16235. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16236. if test "x$ac_cv_header_stdlib_h" = xyes
  16237. then :
  16238. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16239. fi
  16240. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16241. if test "x$ac_cv_header_stddef_h" = xyes
  16242. then :
  16243. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16244. fi
  16245. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16246. if test "x$ac_cv_header_stdarg_h" = xyes
  16247. then :
  16248. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16249. fi
  16250. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16251. if test "x$ac_cv_header_malloc_h" = xyes
  16252. then :
  16253. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16254. fi
  16255. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16256. if test "x$ac_cv_header_memory_h" = xyes
  16257. then :
  16258. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16259. fi
  16260. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16261. if test "x$ac_cv_header_string_h" = xyes
  16262. then :
  16263. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16264. fi
  16265. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16266. if test "x$ac_cv_header_strings_h" = xyes
  16267. then :
  16268. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16269. fi
  16270. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16271. if test "x$ac_cv_header_wchar_h" = xyes
  16272. then :
  16273. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16274. fi
  16275. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16276. if test "x$ac_cv_header_inttypes_h" = xyes
  16277. then :
  16278. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16279. fi
  16280. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16281. if test "x$ac_cv_header_stdint_h" = xyes
  16282. then :
  16283. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16284. fi
  16285. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16286. if test "x$ac_cv_header_limits_h" = xyes
  16287. then :
  16288. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16289. fi
  16290. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16291. if test "x$ac_cv_header_ctype_h" = xyes
  16292. then :
  16293. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16294. fi
  16295. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16296. if test "x$ac_cv_header_math_h" = xyes
  16297. then :
  16298. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16299. fi
  16300. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16301. if test "x$ac_cv_header_float_h" = xyes
  16302. then :
  16303. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16304. fi
  16305. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16306. if test "x$ac_cv_header_iconv_h" = xyes
  16307. then :
  16308. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16309. fi
  16310. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16311. if test "x$ac_cv_header_signal_h" = xyes
  16312. then :
  16313. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16314. fi
  16315. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  16316. if test "x$ac_cv_header_linux_input_h" = xyes
  16317. then :
  16318. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  16319. fi
  16320. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16321. if test "x$ac_cv_type_size_t" = xyes
  16322. then :
  16323. else $as_nop
  16324. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16325. fi
  16326. ac_ext=c
  16327. ac_cpp='$CPP $CPPFLAGS'
  16328. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16329. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16330. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16332. printf %s "checking how to run the C preprocessor... " >&6; }
  16333. # On Suns, sometimes $CPP names a directory.
  16334. if test -n "$CPP" && test -d "$CPP"; then
  16335. CPP=
  16336. fi
  16337. if test -z "$CPP"; then
  16338. if test ${ac_cv_prog_CPP+y}
  16339. then :
  16340. printf %s "(cached) " >&6
  16341. else $as_nop
  16342. # Double quotes because $CC needs to be expanded
  16343. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16344. do
  16345. ac_preproc_ok=false
  16346. for ac_c_preproc_warn_flag in '' yes
  16347. do
  16348. # Use a header file that comes with gcc, so configuring glibc
  16349. # with a fresh cross-compiler works.
  16350. # On the NeXT, cc -E runs the code through the compiler's parser,
  16351. # not just through cpp. "Syntax error" is here to catch this case.
  16352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16353. /* end confdefs.h. */
  16354. #include <limits.h>
  16355. Syntax error
  16356. _ACEOF
  16357. if ac_fn_c_try_cpp "$LINENO"
  16358. then :
  16359. else $as_nop
  16360. # Broken: fails on valid input.
  16361. continue
  16362. fi
  16363. rm -f conftest.err conftest.i conftest.$ac_ext
  16364. # OK, works on sane cases. Now check whether nonexistent headers
  16365. # can be detected and how.
  16366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16367. /* end confdefs.h. */
  16368. #include <ac_nonexistent.h>
  16369. _ACEOF
  16370. if ac_fn_c_try_cpp "$LINENO"
  16371. then :
  16372. # Broken: success on invalid input.
  16373. continue
  16374. else $as_nop
  16375. # Passes both tests.
  16376. ac_preproc_ok=:
  16377. break
  16378. fi
  16379. rm -f conftest.err conftest.i conftest.$ac_ext
  16380. done
  16381. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16382. rm -f conftest.i conftest.err conftest.$ac_ext
  16383. if $ac_preproc_ok
  16384. then :
  16385. break
  16386. fi
  16387. done
  16388. ac_cv_prog_CPP=$CPP
  16389. fi
  16390. CPP=$ac_cv_prog_CPP
  16391. else
  16392. ac_cv_prog_CPP=$CPP
  16393. fi
  16394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16395. printf "%s\n" "$CPP" >&6; }
  16396. ac_preproc_ok=false
  16397. for ac_c_preproc_warn_flag in '' yes
  16398. do
  16399. # Use a header file that comes with gcc, so configuring glibc
  16400. # with a fresh cross-compiler works.
  16401. # On the NeXT, cc -E runs the code through the compiler's parser,
  16402. # not just through cpp. "Syntax error" is here to catch this case.
  16403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16404. /* end confdefs.h. */
  16405. #include <limits.h>
  16406. Syntax error
  16407. _ACEOF
  16408. if ac_fn_c_try_cpp "$LINENO"
  16409. then :
  16410. else $as_nop
  16411. # Broken: fails on valid input.
  16412. continue
  16413. fi
  16414. rm -f conftest.err conftest.i conftest.$ac_ext
  16415. # OK, works on sane cases. Now check whether nonexistent headers
  16416. # can be detected and how.
  16417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16418. /* end confdefs.h. */
  16419. #include <ac_nonexistent.h>
  16420. _ACEOF
  16421. if ac_fn_c_try_cpp "$LINENO"
  16422. then :
  16423. # Broken: success on invalid input.
  16424. continue
  16425. else $as_nop
  16426. # Passes both tests.
  16427. ac_preproc_ok=:
  16428. break
  16429. fi
  16430. rm -f conftest.err conftest.i conftest.$ac_ext
  16431. done
  16432. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16433. rm -f conftest.i conftest.err conftest.$ac_ext
  16434. if $ac_preproc_ok
  16435. then :
  16436. else $as_nop
  16437. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16438. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16439. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16440. See \`config.log' for more details" "$LINENO" 5; }
  16441. fi
  16442. ac_ext=c
  16443. ac_cpp='$CPP $CPPFLAGS'
  16444. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16445. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16446. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16448. printf %s "checking for M_PI in math.h... " >&6; }
  16449. if test ${ac_cv_define_M_PI+y}
  16450. then :
  16451. printf %s "(cached) " >&6
  16452. else $as_nop
  16453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16454. /* end confdefs.h. */
  16455. #include <math.h>
  16456. #ifdef M_PI
  16457. YES_IS_DEFINED
  16458. #endif
  16459. _ACEOF
  16460. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16461. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16462. then :
  16463. ac_cv_define_M_PI=yes
  16464. else $as_nop
  16465. ac_cv_define_M_PI=no
  16466. fi
  16467. rm -rf conftest*
  16468. fi
  16469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16470. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16471. if test "$ac_cv_define_M_PI" = "yes" ; then
  16472. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16473. fi
  16474. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16475. # for constant arguments. Useless!
  16476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16477. printf %s "checking for working alloca.h... " >&6; }
  16478. if test ${ac_cv_working_alloca_h+y}
  16479. then :
  16480. printf %s "(cached) " >&6
  16481. else $as_nop
  16482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16483. /* end confdefs.h. */
  16484. #include <alloca.h>
  16485. int
  16486. main (void)
  16487. {
  16488. char *p = (char *) alloca (2 * sizeof (int));
  16489. if (p) return 0;
  16490. ;
  16491. return 0;
  16492. }
  16493. _ACEOF
  16494. if ac_fn_c_try_link "$LINENO"
  16495. then :
  16496. ac_cv_working_alloca_h=yes
  16497. else $as_nop
  16498. ac_cv_working_alloca_h=no
  16499. fi
  16500. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16501. conftest$ac_exeext conftest.$ac_ext
  16502. fi
  16503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16504. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16505. if test $ac_cv_working_alloca_h = yes; then
  16506. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16507. fi
  16508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16509. printf %s "checking for alloca... " >&6; }
  16510. if test ${ac_cv_func_alloca_works+y}
  16511. then :
  16512. printf %s "(cached) " >&6
  16513. else $as_nop
  16514. if test $ac_cv_working_alloca_h = yes; then
  16515. ac_cv_func_alloca_works=yes
  16516. else
  16517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16518. /* end confdefs.h. */
  16519. #include <stdlib.h>
  16520. #include <stddef.h>
  16521. #ifndef alloca
  16522. # ifdef __GNUC__
  16523. # define alloca __builtin_alloca
  16524. # elif defined _MSC_VER
  16525. # include <malloc.h>
  16526. # define alloca _alloca
  16527. # else
  16528. # ifdef __cplusplus
  16529. extern "C"
  16530. # endif
  16531. void *alloca (size_t);
  16532. # endif
  16533. #endif
  16534. int
  16535. main (void)
  16536. {
  16537. char *p = (char *) alloca (1);
  16538. if (p) return 0;
  16539. ;
  16540. return 0;
  16541. }
  16542. _ACEOF
  16543. if ac_fn_c_try_link "$LINENO"
  16544. then :
  16545. ac_cv_func_alloca_works=yes
  16546. else $as_nop
  16547. ac_cv_func_alloca_works=no
  16548. fi
  16549. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16550. conftest$ac_exeext conftest.$ac_ext
  16551. fi
  16552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16553. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16554. fi
  16555. if test $ac_cv_func_alloca_works = yes; then
  16556. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16557. else
  16558. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16559. # that cause trouble. Some versions do not even contain alloca or
  16560. # contain a buggy version. If you still want to use their alloca,
  16561. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16562. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16563. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16565. printf %s "checking stack direction for C alloca... " >&6; }
  16566. if test ${ac_cv_c_stack_direction+y}
  16567. then :
  16568. printf %s "(cached) " >&6
  16569. else $as_nop
  16570. if test "$cross_compiling" = yes
  16571. then :
  16572. ac_cv_c_stack_direction=0
  16573. else $as_nop
  16574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16575. /* end confdefs.h. */
  16576. $ac_includes_default
  16577. int
  16578. find_stack_direction (int *addr, int depth)
  16579. {
  16580. int dir, dummy = 0;
  16581. if (! addr)
  16582. addr = &dummy;
  16583. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16584. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16585. return dir + dummy;
  16586. }
  16587. int
  16588. main (int argc, char **argv)
  16589. {
  16590. return find_stack_direction (0, argc + !argv + 20) < 0;
  16591. }
  16592. _ACEOF
  16593. if ac_fn_c_try_run "$LINENO"
  16594. then :
  16595. ac_cv_c_stack_direction=1
  16596. else $as_nop
  16597. ac_cv_c_stack_direction=-1
  16598. fi
  16599. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16600. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16601. fi
  16602. fi
  16603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16604. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16605. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16606. fi
  16607. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16608. if test "x$ac_cv_func_mprotect" = xyes
  16609. then :
  16610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16611. /* end confdefs.h. */
  16612. #include <sys/types.h>
  16613. #include <sys/mman.h>
  16614. int
  16615. main (void)
  16616. {
  16617. ;
  16618. return 0;
  16619. }
  16620. _ACEOF
  16621. if ac_fn_c_try_compile "$LINENO"
  16622. then :
  16623. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16624. fi
  16625. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16626. fi
  16627. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16628. if test "x$ac_cv_func_malloc" = xyes
  16629. then :
  16630. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16631. fi
  16632. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16633. if test "x$ac_cv_func_calloc" = xyes
  16634. then :
  16635. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16636. fi
  16637. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16638. if test "x$ac_cv_func_realloc" = xyes
  16639. then :
  16640. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16641. fi
  16642. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16643. if test "x$ac_cv_func_free" = xyes
  16644. then :
  16645. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16646. fi
  16647. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16648. if test "x$ac_cv_func_getenv" = xyes
  16649. then :
  16650. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16651. fi
  16652. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16653. if test "x$ac_cv_func_setenv" = xyes
  16654. then :
  16655. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16656. fi
  16657. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16658. if test "x$ac_cv_func_putenv" = xyes
  16659. then :
  16660. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16661. fi
  16662. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16663. if test "x$ac_cv_func_unsetenv" = xyes
  16664. then :
  16665. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16666. fi
  16667. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16668. if test "x$ac_cv_func_bsearch" = xyes
  16669. then :
  16670. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16671. fi
  16672. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16673. if test "x$ac_cv_func_qsort" = xyes
  16674. then :
  16675. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16676. fi
  16677. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16678. if test "x$ac_cv_func_abs" = xyes
  16679. then :
  16680. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16681. fi
  16682. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16683. if test "x$ac_cv_func_bcopy" = xyes
  16684. then :
  16685. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16686. fi
  16687. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16688. if test "x$ac_cv_func_memset" = xyes
  16689. then :
  16690. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16691. fi
  16692. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16693. if test "x$ac_cv_func_memcmp" = xyes
  16694. then :
  16695. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16696. fi
  16697. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16698. if test "x$ac_cv_func_memcpy" = xyes
  16699. then :
  16700. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16701. fi
  16702. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16703. if test "x$ac_cv_func_memmove" = xyes
  16704. then :
  16705. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16706. fi
  16707. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16708. if test "x$ac_cv_func_wcslen" = xyes
  16709. then :
  16710. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16711. fi
  16712. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16713. if test "x$ac_cv_func_wcslcpy" = xyes
  16714. then :
  16715. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16716. fi
  16717. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16718. if test "x$ac_cv_func_wcslcat" = xyes
  16719. then :
  16720. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16721. fi
  16722. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16723. if test "x$ac_cv_func__wcsdup" = xyes
  16724. then :
  16725. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16726. fi
  16727. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16728. if test "x$ac_cv_func_wcsdup" = xyes
  16729. then :
  16730. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16731. fi
  16732. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16733. if test "x$ac_cv_func_wcsstr" = xyes
  16734. then :
  16735. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16736. fi
  16737. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16738. if test "x$ac_cv_func_wcscmp" = xyes
  16739. then :
  16740. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16741. fi
  16742. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16743. if test "x$ac_cv_func_wcsncmp" = xyes
  16744. then :
  16745. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16746. fi
  16747. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16748. if test "x$ac_cv_func_wcscasecmp" = xyes
  16749. then :
  16750. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16751. fi
  16752. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16753. if test "x$ac_cv_func__wcsicmp" = xyes
  16754. then :
  16755. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16756. fi
  16757. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16758. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16759. then :
  16760. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16761. fi
  16762. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16763. if test "x$ac_cv_func__wcsnicmp" = xyes
  16764. then :
  16765. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16766. fi
  16767. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16768. if test "x$ac_cv_func_strlen" = xyes
  16769. then :
  16770. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16771. fi
  16772. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16773. if test "x$ac_cv_func_strlcpy" = xyes
  16774. then :
  16775. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16776. fi
  16777. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16778. if test "x$ac_cv_func_strlcat" = xyes
  16779. then :
  16780. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16781. fi
  16782. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16783. if test "x$ac_cv_func__strrev" = xyes
  16784. then :
  16785. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16786. fi
  16787. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16788. if test "x$ac_cv_func__strupr" = xyes
  16789. then :
  16790. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16791. fi
  16792. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16793. if test "x$ac_cv_func__strlwr" = xyes
  16794. then :
  16795. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16796. fi
  16797. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16798. if test "x$ac_cv_func_index" = xyes
  16799. then :
  16800. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16801. fi
  16802. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16803. if test "x$ac_cv_func_rindex" = xyes
  16804. then :
  16805. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16806. fi
  16807. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16808. if test "x$ac_cv_func_strchr" = xyes
  16809. then :
  16810. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16811. fi
  16812. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16813. if test "x$ac_cv_func_strrchr" = xyes
  16814. then :
  16815. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16816. fi
  16817. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16818. if test "x$ac_cv_func_strstr" = xyes
  16819. then :
  16820. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16821. fi
  16822. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16823. if test "x$ac_cv_func_strtok_r" = xyes
  16824. then :
  16825. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16826. fi
  16827. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16828. if test "x$ac_cv_func_itoa" = xyes
  16829. then :
  16830. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16831. fi
  16832. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16833. if test "x$ac_cv_func__ltoa" = xyes
  16834. then :
  16835. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16836. fi
  16837. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16838. if test "x$ac_cv_func__uitoa" = xyes
  16839. then :
  16840. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16841. fi
  16842. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16843. if test "x$ac_cv_func__ultoa" = xyes
  16844. then :
  16845. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16846. fi
  16847. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16848. if test "x$ac_cv_func_strtod" = xyes
  16849. then :
  16850. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16851. fi
  16852. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16853. if test "x$ac_cv_func_strtol" = xyes
  16854. then :
  16855. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16856. fi
  16857. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16858. if test "x$ac_cv_func_strtoul" = xyes
  16859. then :
  16860. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16861. fi
  16862. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16863. if test "x$ac_cv_func__i64toa" = xyes
  16864. then :
  16865. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16866. fi
  16867. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16868. if test "x$ac_cv_func__ui64toa" = xyes
  16869. then :
  16870. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16871. fi
  16872. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16873. if test "x$ac_cv_func_strtoll" = xyes
  16874. then :
  16875. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16876. fi
  16877. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16878. if test "x$ac_cv_func_strtoull" = xyes
  16879. then :
  16880. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16881. fi
  16882. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16883. if test "x$ac_cv_func_atoi" = xyes
  16884. then :
  16885. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16886. fi
  16887. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16888. if test "x$ac_cv_func_atof" = xyes
  16889. then :
  16890. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16891. fi
  16892. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16893. if test "x$ac_cv_func_strcmp" = xyes
  16894. then :
  16895. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16896. fi
  16897. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16898. if test "x$ac_cv_func_strncmp" = xyes
  16899. then :
  16900. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16901. fi
  16902. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16903. if test "x$ac_cv_func__stricmp" = xyes
  16904. then :
  16905. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16906. fi
  16907. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16908. if test "x$ac_cv_func_strcasecmp" = xyes
  16909. then :
  16910. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16911. fi
  16912. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16913. if test "x$ac_cv_func__strnicmp" = xyes
  16914. then :
  16915. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16916. fi
  16917. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  16918. if test "x$ac_cv_func_strncasecmp" = xyes
  16919. then :
  16920. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  16921. fi
  16922. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  16923. if test "x$ac_cv_func_strcasestr" = xyes
  16924. then :
  16925. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  16926. fi
  16927. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  16928. if test "x$ac_cv_func_vsscanf" = xyes
  16929. then :
  16930. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  16931. fi
  16932. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  16933. if test "x$ac_cv_func_vsnprintf" = xyes
  16934. then :
  16935. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  16936. fi
  16937. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  16938. if test "x$ac_cv_func_fopen64" = xyes
  16939. then :
  16940. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  16941. fi
  16942. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  16943. if test "x$ac_cv_func_fseeko" = xyes
  16944. then :
  16945. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  16946. fi
  16947. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  16948. if test "x$ac_cv_func_fseeko64" = xyes
  16949. then :
  16950. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  16951. fi
  16952. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  16953. if test "x$ac_cv_func_sigaction" = xyes
  16954. then :
  16955. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  16956. fi
  16957. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  16958. if test "x$ac_cv_func_setjmp" = xyes
  16959. then :
  16960. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  16961. fi
  16962. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  16963. if test "x$ac_cv_func_nanosleep" = xyes
  16964. then :
  16965. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  16966. fi
  16967. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  16968. if test "x$ac_cv_func_sysconf" = xyes
  16969. then :
  16970. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  16971. fi
  16972. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  16973. if test "x$ac_cv_func_sysctlbyname" = xyes
  16974. then :
  16975. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  16976. fi
  16977. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  16978. if test "x$ac_cv_func_getauxval" = xyes
  16979. then :
  16980. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  16981. fi
  16982. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  16983. if test "x$ac_cv_func_elf_aux_info" = xyes
  16984. then :
  16985. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  16986. fi
  16987. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  16988. if test "x$ac_cv_func_poll" = xyes
  16989. then :
  16990. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  16991. fi
  16992. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  16993. if test "x$ac_cv_func__Exit" = xyes
  16994. then :
  16995. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  16996. fi
  16997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  16998. printf %s "checking for pow in -lm... " >&6; }
  16999. if test ${ac_cv_lib_m_pow+y}
  17000. then :
  17001. printf %s "(cached) " >&6
  17002. else $as_nop
  17003. ac_check_lib_save_LIBS=$LIBS
  17004. LIBS="-lm $LIBS"
  17005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17006. /* end confdefs.h. */
  17007. /* Override any GCC internal prototype to avoid an error.
  17008. Use char because int might match the return type of a GCC
  17009. builtin and then its argument prototype would still apply. */
  17010. char pow ();
  17011. int
  17012. main (void)
  17013. {
  17014. return pow ();
  17015. ;
  17016. return 0;
  17017. }
  17018. _ACEOF
  17019. if ac_fn_c_try_link "$LINENO"
  17020. then :
  17021. ac_cv_lib_m_pow=yes
  17022. else $as_nop
  17023. ac_cv_lib_m_pow=no
  17024. fi
  17025. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17026. conftest$ac_exeext conftest.$ac_ext
  17027. LIBS=$ac_check_lib_save_LIBS
  17028. fi
  17029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17030. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17031. if test "x$ac_cv_lib_m_pow" = xyes
  17032. then :
  17033. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17034. fi
  17035. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17036. if test "x$ac_cv_func_acos" = xyes
  17037. then :
  17038. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17039. fi
  17040. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17041. if test "x$ac_cv_func_acosf" = xyes
  17042. then :
  17043. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17044. fi
  17045. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17046. if test "x$ac_cv_func_asin" = xyes
  17047. then :
  17048. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17049. fi
  17050. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17051. if test "x$ac_cv_func_asinf" = xyes
  17052. then :
  17053. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17054. fi
  17055. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17056. if test "x$ac_cv_func_atan" = xyes
  17057. then :
  17058. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17059. fi
  17060. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17061. if test "x$ac_cv_func_atanf" = xyes
  17062. then :
  17063. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17064. fi
  17065. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17066. if test "x$ac_cv_func_atan2" = xyes
  17067. then :
  17068. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17069. fi
  17070. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17071. if test "x$ac_cv_func_atan2f" = xyes
  17072. then :
  17073. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17074. fi
  17075. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17076. if test "x$ac_cv_func_ceil" = xyes
  17077. then :
  17078. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17079. fi
  17080. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17081. if test "x$ac_cv_func_ceilf" = xyes
  17082. then :
  17083. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17084. fi
  17085. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17086. if test "x$ac_cv_func_copysign" = xyes
  17087. then :
  17088. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17089. fi
  17090. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17091. if test "x$ac_cv_func_copysignf" = xyes
  17092. then :
  17093. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17094. fi
  17095. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17096. if test "x$ac_cv_func_cos" = xyes
  17097. then :
  17098. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17099. fi
  17100. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17101. if test "x$ac_cv_func_cosf" = xyes
  17102. then :
  17103. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17104. fi
  17105. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17106. if test "x$ac_cv_func_exp" = xyes
  17107. then :
  17108. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17109. fi
  17110. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17111. if test "x$ac_cv_func_expf" = xyes
  17112. then :
  17113. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17114. fi
  17115. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17116. if test "x$ac_cv_func_fabs" = xyes
  17117. then :
  17118. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17119. fi
  17120. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17121. if test "x$ac_cv_func_fabsf" = xyes
  17122. then :
  17123. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17124. fi
  17125. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17126. if test "x$ac_cv_func_floor" = xyes
  17127. then :
  17128. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17129. fi
  17130. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17131. if test "x$ac_cv_func_floorf" = xyes
  17132. then :
  17133. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17134. fi
  17135. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17136. if test "x$ac_cv_func_trunc" = xyes
  17137. then :
  17138. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17139. fi
  17140. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17141. if test "x$ac_cv_func_truncf" = xyes
  17142. then :
  17143. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17144. fi
  17145. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17146. if test "x$ac_cv_func_fmod" = xyes
  17147. then :
  17148. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17149. fi
  17150. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17151. if test "x$ac_cv_func_fmodf" = xyes
  17152. then :
  17153. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17154. fi
  17155. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17156. if test "x$ac_cv_func_log" = xyes
  17157. then :
  17158. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17159. fi
  17160. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17161. if test "x$ac_cv_func_logf" = xyes
  17162. then :
  17163. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17164. fi
  17165. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17166. if test "x$ac_cv_func_log10" = xyes
  17167. then :
  17168. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17169. fi
  17170. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17171. if test "x$ac_cv_func_log10f" = xyes
  17172. then :
  17173. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17174. fi
  17175. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17176. if test "x$ac_cv_func_lround" = xyes
  17177. then :
  17178. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17179. fi
  17180. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17181. if test "x$ac_cv_func_lroundf" = xyes
  17182. then :
  17183. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17184. fi
  17185. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17186. if test "x$ac_cv_func_pow" = xyes
  17187. then :
  17188. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17189. fi
  17190. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17191. if test "x$ac_cv_func_powf" = xyes
  17192. then :
  17193. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17194. fi
  17195. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17196. if test "x$ac_cv_func_round" = xyes
  17197. then :
  17198. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17199. fi
  17200. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17201. if test "x$ac_cv_func_roundf" = xyes
  17202. then :
  17203. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17204. fi
  17205. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17206. if test "x$ac_cv_func_scalbn" = xyes
  17207. then :
  17208. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17209. fi
  17210. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17211. if test "x$ac_cv_func_scalbnf" = xyes
  17212. then :
  17213. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17214. fi
  17215. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17216. if test "x$ac_cv_func_sin" = xyes
  17217. then :
  17218. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17219. fi
  17220. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17221. if test "x$ac_cv_func_sinf" = xyes
  17222. then :
  17223. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17224. fi
  17225. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17226. if test "x$ac_cv_func_sqrt" = xyes
  17227. then :
  17228. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17229. fi
  17230. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17231. if test "x$ac_cv_func_sqrtf" = xyes
  17232. then :
  17233. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17234. fi
  17235. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17236. if test "x$ac_cv_func_tan" = xyes
  17237. then :
  17238. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17239. fi
  17240. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17241. if test "x$ac_cv_func_tanf" = xyes
  17242. then :
  17243. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17244. fi
  17245. if test x$enable_system_iconv = xyes; then
  17246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17247. printf %s "checking for iconv_open in -liconv... " >&6; }
  17248. if test ${ac_cv_lib_iconv_iconv_open+y}
  17249. then :
  17250. printf %s "(cached) " >&6
  17251. else $as_nop
  17252. ac_check_lib_save_LIBS=$LIBS
  17253. LIBS="-liconv $LIBS"
  17254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17255. /* end confdefs.h. */
  17256. /* Override any GCC internal prototype to avoid an error.
  17257. Use char because int might match the return type of a GCC
  17258. builtin and then its argument prototype would still apply. */
  17259. char iconv_open ();
  17260. int
  17261. main (void)
  17262. {
  17263. return iconv_open ();
  17264. ;
  17265. return 0;
  17266. }
  17267. _ACEOF
  17268. if ac_fn_c_try_link "$LINENO"
  17269. then :
  17270. ac_cv_lib_iconv_iconv_open=yes
  17271. else $as_nop
  17272. ac_cv_lib_iconv_iconv_open=no
  17273. fi
  17274. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17275. conftest$ac_exeext conftest.$ac_ext
  17276. LIBS=$ac_check_lib_save_LIBS
  17277. fi
  17278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17279. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17280. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17281. then :
  17282. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17283. fi
  17284. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17285. if test "x$ac_cv_func_iconv" = xyes
  17286. then :
  17287. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17288. fi
  17289. fi
  17290. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17291. "
  17292. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17293. then :
  17294. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17295. fi
  17296. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17297. if test "x$ac_cv_header_libunwind_h" = xyes
  17298. then :
  17299. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17300. fi
  17301. fi
  17302. # Check whether --enable-gcc-atomics was given.
  17303. if test ${enable_gcc_atomics+y}
  17304. then :
  17305. enableval=$enable_gcc_atomics;
  17306. else $as_nop
  17307. enable_gcc_atomics=yes
  17308. fi
  17309. if test x$enable_gcc_atomics = xyes; then
  17310. have_gcc_atomics=no
  17311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17312. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17314. /* end confdefs.h. */
  17315. int
  17316. main (void)
  17317. {
  17318. int a;
  17319. void *x, *y, *z;
  17320. __sync_lock_test_and_set(&a, 4);
  17321. __sync_lock_test_and_set(&x, y);
  17322. __sync_fetch_and_add(&a, 1);
  17323. __sync_bool_compare_and_swap(&a, 5, 10);
  17324. __sync_bool_compare_and_swap(&x, y, z);
  17325. ;
  17326. return 0;
  17327. }
  17328. _ACEOF
  17329. if ac_fn_c_try_link "$LINENO"
  17330. then :
  17331. have_gcc_atomics=yes
  17332. fi
  17333. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17334. conftest$ac_exeext conftest.$ac_ext
  17335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17336. printf "%s\n" "$have_gcc_atomics" >&6; }
  17337. if test x$have_gcc_atomics = xyes; then
  17338. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17339. else
  17340. # See if we have the minimum operation needed for GCC atomics
  17341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17342. /* end confdefs.h. */
  17343. int
  17344. main (void)
  17345. {
  17346. int a;
  17347. __sync_lock_test_and_set(&a, 1);
  17348. __sync_lock_release(&a);
  17349. ;
  17350. return 0;
  17351. }
  17352. _ACEOF
  17353. if ac_fn_c_try_link "$LINENO"
  17354. then :
  17355. have_gcc_sync_lock_test_and_set=yes
  17356. fi
  17357. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17358. conftest$ac_exeext conftest.$ac_ext
  17359. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17360. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17361. fi
  17362. fi
  17363. fi
  17364. # Standard C sources
  17365. SOURCES="$SOURCES $srcdir/src/*.c"
  17366. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17367. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17368. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17369. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17370. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17371. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17372. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17373. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17374. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17375. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17376. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17377. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17378. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17379. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17380. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17381. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17382. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17383. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17384. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17385. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17386. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17387. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17388. case "$host" in
  17389. *-*-emscripten*)
  17390. default_atomic=no
  17391. ;;
  17392. *)
  17393. default_atomic=yes
  17394. ;;
  17395. esac
  17396. # Check whether --enable-atomic was given.
  17397. if test ${enable_atomic+y}
  17398. then :
  17399. enableval=$enable_atomic;
  17400. else $as_nop
  17401. enable_atomic=$default_atomic
  17402. fi
  17403. if test x$enable_atomic != xyes; then
  17404. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17405. else
  17406. SUMMARY_modules="${SUMMARY_modules} atomic"
  17407. fi
  17408. # Check whether --enable-audio was given.
  17409. if test ${enable_audio+y}
  17410. then :
  17411. enableval=$enable_audio;
  17412. else $as_nop
  17413. enable_audio=yes
  17414. fi
  17415. if test x$enable_audio != xyes; then
  17416. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17417. else
  17418. SUMMARY_modules="${SUMMARY_modules} audio"
  17419. fi
  17420. # Check whether --enable-video was given.
  17421. if test ${enable_video+y}
  17422. then :
  17423. enableval=$enable_video;
  17424. else $as_nop
  17425. enable_video=yes
  17426. fi
  17427. if test x$enable_video != xyes; then
  17428. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17429. else
  17430. SUMMARY_modules="${SUMMARY_modules} video"
  17431. fi
  17432. # Check whether --enable-render was given.
  17433. if test ${enable_render+y}
  17434. then :
  17435. enableval=$enable_render;
  17436. else $as_nop
  17437. enable_render=yes
  17438. fi
  17439. if test x$enable_render != xyes; then
  17440. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17441. else
  17442. SUMMARY_modules="${SUMMARY_modules} render"
  17443. fi
  17444. # Check whether --enable-events was given.
  17445. if test ${enable_events+y}
  17446. then :
  17447. enableval=$enable_events;
  17448. else $as_nop
  17449. enable_events=yes
  17450. fi
  17451. if test x$enable_events != xyes; then
  17452. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17453. else
  17454. SUMMARY_modules="${SUMMARY_modules} events"
  17455. fi
  17456. # Check whether --enable-joystick was given.
  17457. if test ${enable_joystick+y}
  17458. then :
  17459. enableval=$enable_joystick;
  17460. else $as_nop
  17461. enable_joystick=yes
  17462. fi
  17463. if test x$enable_joystick != xyes; then
  17464. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17465. else
  17466. SUMMARY_modules="${SUMMARY_modules} joystick"
  17467. fi
  17468. # Check whether --enable-haptic was given.
  17469. if test ${enable_haptic+y}
  17470. then :
  17471. enableval=$enable_haptic;
  17472. else $as_nop
  17473. enable_haptic=yes
  17474. fi
  17475. if test x$enable_haptic != xyes; then
  17476. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17477. else
  17478. SUMMARY_modules="${SUMMARY_modules} haptic"
  17479. fi
  17480. # Check whether --enable-hidapi was given.
  17481. if test ${enable_hidapi+y}
  17482. then :
  17483. enableval=$enable_hidapi;
  17484. else $as_nop
  17485. enable_hidapi=yes
  17486. fi
  17487. if test x$enable_hidapi != xyes; then
  17488. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17489. else
  17490. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17491. fi
  17492. # Check whether --enable-sensor was given.
  17493. if test ${enable_sensor+y}
  17494. then :
  17495. enableval=$enable_sensor;
  17496. else $as_nop
  17497. enable_sensor=yes
  17498. fi
  17499. if test x$enable_sensor != xyes; then
  17500. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17501. else
  17502. SUMMARY_modules="${SUMMARY_modules} sensor"
  17503. fi
  17504. # Check whether --enable-power was given.
  17505. if test ${enable_power+y}
  17506. then :
  17507. enableval=$enable_power;
  17508. else $as_nop
  17509. enable_power=yes
  17510. fi
  17511. if test x$enable_power != xyes; then
  17512. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17513. else
  17514. SUMMARY_modules="${SUMMARY_modules} power"
  17515. fi
  17516. # Check whether --enable-filesystem was given.
  17517. if test ${enable_filesystem+y}
  17518. then :
  17519. enableval=$enable_filesystem;
  17520. else $as_nop
  17521. enable_filesystem=yes
  17522. fi
  17523. if test x$enable_filesystem != xyes; then
  17524. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17525. else
  17526. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17527. fi
  17528. # Many subsystems depend on threads, so leave them enabled by default
  17529. #AC_ARG_ENABLE(threads,
  17530. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17531. # , enable_threads=yes)
  17532. enable_threads=yes
  17533. if test x$enable_threads != xyes; then
  17534. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17535. else
  17536. SUMMARY_modules="${SUMMARY_modules} threads"
  17537. fi
  17538. # Check whether --enable-timers was given.
  17539. if test ${enable_timers+y}
  17540. then :
  17541. enableval=$enable_timers;
  17542. else $as_nop
  17543. enable_timers=yes
  17544. fi
  17545. if test x$enable_timers != xyes; then
  17546. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17547. else
  17548. SUMMARY_modules="${SUMMARY_modules} timers"
  17549. fi
  17550. # Check whether --enable-file was given.
  17551. if test ${enable_file+y}
  17552. then :
  17553. enableval=$enable_file;
  17554. else $as_nop
  17555. enable_file=yes
  17556. fi
  17557. if test x$enable_file != xyes; then
  17558. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17559. else
  17560. SUMMARY_modules="${SUMMARY_modules} file"
  17561. fi
  17562. # Check whether --enable-misc was given.
  17563. if test ${enable_misc+y}
  17564. then :
  17565. enableval=$enable_misc;
  17566. else $as_nop
  17567. enable_misc=yes
  17568. fi
  17569. if test x$enable_misc != xyes; then
  17570. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17571. else
  17572. SUMMARY_modules="${SUMMARY_modules} misc"
  17573. fi
  17574. # Check whether --enable-locale was given.
  17575. if test ${enable_locale+y}
  17576. then :
  17577. enableval=$enable_locale;
  17578. else $as_nop
  17579. enable_locale=yes
  17580. fi
  17581. if test x$enable_locale != xyes; then
  17582. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17583. else
  17584. SUMMARY_modules="${SUMMARY_modules} locale"
  17585. fi
  17586. # Check whether --enable-loadso was given.
  17587. if test ${enable_loadso+y}
  17588. then :
  17589. enableval=$enable_loadso;
  17590. else $as_nop
  17591. enable_loadso=yes
  17592. fi
  17593. if test x$enable_loadso != xyes; then
  17594. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17595. else
  17596. SUMMARY_modules="${SUMMARY_modules} loadso"
  17597. fi
  17598. # Check whether --enable-cpuinfo was given.
  17599. if test ${enable_cpuinfo+y}
  17600. then :
  17601. enableval=$enable_cpuinfo;
  17602. else $as_nop
  17603. enable_cpuinfo=yes
  17604. fi
  17605. if test x$enable_cpuinfo != xyes; then
  17606. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17607. else
  17608. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17609. fi
  17610. # Check whether --enable-assembly was given.
  17611. if test ${enable_assembly+y}
  17612. then :
  17613. enableval=$enable_assembly;
  17614. else $as_nop
  17615. enable_assembly=yes
  17616. fi
  17617. if test x$enable_assembly = xyes; then
  17618. SUMMARY_modules="${SUMMARY_modules} assembly"
  17619. # Make sure that we don't generate floating point code that would
  17620. # cause illegal instruction exceptions on older processors
  17621. case "$host" in
  17622. *-*-darwin*)
  17623. # Don't need to worry about Apple hardware, it's all SSE capable
  17624. default_ssemath=yes
  17625. ;;
  17626. *64-*-*)
  17627. # x86 64-bit architectures all have SSE instructions
  17628. default_ssemath=yes
  17629. ;;
  17630. *)
  17631. default_ssemath=no
  17632. ;;
  17633. esac
  17634. # Check whether --enable-ssemath was given.
  17635. if test ${enable_ssemath+y}
  17636. then :
  17637. enableval=$enable_ssemath;
  17638. else $as_nop
  17639. enable_ssemath=$default_ssemath
  17640. fi
  17641. if test x$enable_ssemath = xno; then
  17642. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17643. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17644. fi
  17645. fi
  17646. # Check whether --enable-mmx was given.
  17647. if test ${enable_mmx+y}
  17648. then :
  17649. enableval=$enable_mmx;
  17650. else $as_nop
  17651. enable_mmx=yes
  17652. fi
  17653. if test x$enable_mmx = xyes; then
  17654. save_CFLAGS="$CFLAGS"
  17655. have_gcc_mmx=no
  17656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17657. printf %s "checking for GCC -mmmx option... " >&6; }
  17658. mmx_CFLAGS="-mmmx"
  17659. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17661. /* end confdefs.h. */
  17662. #ifdef __MINGW32__
  17663. #include <_mingw.h>
  17664. #ifdef __MINGW64_VERSION_MAJOR
  17665. #include <intrin.h>
  17666. #else
  17667. #include <mmintrin.h>
  17668. #endif
  17669. #else
  17670. #include <mmintrin.h>
  17671. #endif
  17672. #ifndef __MMX__
  17673. #error Assembler CPP flag not enabled
  17674. #endif
  17675. int
  17676. main (void)
  17677. {
  17678. ;
  17679. return 0;
  17680. }
  17681. _ACEOF
  17682. if ac_fn_c_try_compile "$LINENO"
  17683. then :
  17684. have_gcc_mmx=yes
  17685. fi
  17686. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17688. printf "%s\n" "$have_gcc_mmx" >&6; }
  17689. CFLAGS="$save_CFLAGS"
  17690. if test x$have_gcc_mmx = xyes; then
  17691. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17692. SUMMARY_math="${SUMMARY_math} mmx"
  17693. fi
  17694. fi
  17695. # Check whether --enable-3dnow was given.
  17696. if test ${enable_3dnow+y}
  17697. then :
  17698. enableval=$enable_3dnow;
  17699. else $as_nop
  17700. enable_3dnow=yes
  17701. fi
  17702. if test x$enable_3dnow = xyes; then
  17703. save_CFLAGS="$CFLAGS"
  17704. have_gcc_3dnow=no
  17705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17706. printf %s "checking for GCC -m3dnow option... " >&6; }
  17707. amd3dnow_CFLAGS="-m3dnow"
  17708. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17710. /* end confdefs.h. */
  17711. #include <mm3dnow.h>
  17712. #ifndef __3dNOW__
  17713. #error Assembler CPP flag not enabled
  17714. #endif
  17715. int
  17716. main (void)
  17717. {
  17718. void *p = 0;
  17719. _m_prefetch(p);
  17720. ;
  17721. return 0;
  17722. }
  17723. _ACEOF
  17724. if ac_fn_c_try_link "$LINENO"
  17725. then :
  17726. have_gcc_3dnow=yes
  17727. fi
  17728. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17729. conftest$ac_exeext conftest.$ac_ext
  17730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17731. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17732. CFLAGS="$save_CFLAGS"
  17733. if test x$have_gcc_3dnow = xyes; then
  17734. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17735. SUMMARY_math="${SUMMARY_math} 3dnow"
  17736. fi
  17737. fi
  17738. # Check whether --enable-sse was given.
  17739. if test ${enable_sse+y}
  17740. then :
  17741. enableval=$enable_sse;
  17742. else $as_nop
  17743. enable_sse=yes
  17744. fi
  17745. if test x$enable_sse = xyes; then
  17746. save_CFLAGS="$CFLAGS"
  17747. have_gcc_sse=no
  17748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17749. printf %s "checking for GCC -msse option... " >&6; }
  17750. sse_CFLAGS="-msse"
  17751. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17753. /* end confdefs.h. */
  17754. #ifdef __MINGW32__
  17755. #include <_mingw.h>
  17756. #ifdef __MINGW64_VERSION_MAJOR
  17757. #include <intrin.h>
  17758. #else
  17759. #include <xmmintrin.h>
  17760. #endif
  17761. #else
  17762. #include <xmmintrin.h>
  17763. #endif
  17764. #ifndef __SSE__
  17765. #error Assembler CPP flag not enabled
  17766. #endif
  17767. int
  17768. main (void)
  17769. {
  17770. ;
  17771. return 0;
  17772. }
  17773. _ACEOF
  17774. if ac_fn_c_try_compile "$LINENO"
  17775. then :
  17776. have_gcc_sse=yes
  17777. fi
  17778. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17780. printf "%s\n" "$have_gcc_sse" >&6; }
  17781. CFLAGS="$save_CFLAGS"
  17782. if test x$have_gcc_sse = xyes; then
  17783. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17784. SUMMARY_math="${SUMMARY_math} sse"
  17785. fi
  17786. fi
  17787. # Check whether --enable-sse2 was given.
  17788. if test ${enable_sse2+y}
  17789. then :
  17790. enableval=$enable_sse2;
  17791. else $as_nop
  17792. enable_sse2=$default_ssemath
  17793. fi
  17794. if test x$enable_sse2 = xyes; then
  17795. save_CFLAGS="$CFLAGS"
  17796. have_gcc_sse2=no
  17797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17798. printf %s "checking for GCC -msse2 option... " >&6; }
  17799. sse2_CFLAGS="-msse2"
  17800. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17802. /* end confdefs.h. */
  17803. #ifdef __MINGW32__
  17804. #include <_mingw.h>
  17805. #ifdef __MINGW64_VERSION_MAJOR
  17806. #include <intrin.h>
  17807. #else
  17808. #include <emmintrin.h>
  17809. #endif
  17810. #else
  17811. #include <emmintrin.h>
  17812. #endif
  17813. #ifndef __SSE2__
  17814. #error Assembler CPP flag not enabled
  17815. #endif
  17816. int
  17817. main (void)
  17818. {
  17819. ;
  17820. return 0;
  17821. }
  17822. _ACEOF
  17823. if ac_fn_c_try_compile "$LINENO"
  17824. then :
  17825. have_gcc_sse2=yes
  17826. fi
  17827. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17829. printf "%s\n" "$have_gcc_sse2" >&6; }
  17830. CFLAGS="$save_CFLAGS"
  17831. if test x$have_gcc_sse2 = xyes; then
  17832. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17833. SUMMARY_math="${SUMMARY_math} sse2"
  17834. fi
  17835. fi
  17836. # Check whether --enable-sse3 was given.
  17837. if test ${enable_sse3+y}
  17838. then :
  17839. enableval=$enable_sse3;
  17840. else $as_nop
  17841. enable_sse3=$default_ssemath
  17842. fi
  17843. if test x$enable_sse3 = xyes; then
  17844. save_CFLAGS="$CFLAGS"
  17845. have_gcc_sse3=no
  17846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17847. printf %s "checking for GCC -msse3 option... " >&6; }
  17848. sse3_CFLAGS="-msse3"
  17849. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17851. /* end confdefs.h. */
  17852. #ifdef __MINGW32__
  17853. #include <_mingw.h>
  17854. #ifdef __MINGW64_VERSION_MAJOR
  17855. #include <intrin.h>
  17856. #else
  17857. #include <pmmintrin.h>
  17858. #endif
  17859. #else
  17860. #include <pmmintrin.h>
  17861. #endif
  17862. #ifndef __SSE2__
  17863. #error Assembler CPP flag not enabled
  17864. #endif
  17865. int
  17866. main (void)
  17867. {
  17868. ;
  17869. return 0;
  17870. }
  17871. _ACEOF
  17872. if ac_fn_c_try_compile "$LINENO"
  17873. then :
  17874. have_gcc_sse3=yes
  17875. fi
  17876. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17878. printf "%s\n" "$have_gcc_sse3" >&6; }
  17879. CFLAGS="$save_CFLAGS"
  17880. if test x$have_gcc_sse3 = xyes; then
  17881. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17882. SUMMARY_math="${SUMMARY_math} sse3"
  17883. fi
  17884. fi
  17885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17886. printf %s "checking for immintrin.h... " >&6; }
  17887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17888. /* end confdefs.h. */
  17889. #include <immintrin.h>
  17890. int
  17891. main (void)
  17892. {
  17893. ;
  17894. return 0;
  17895. }
  17896. _ACEOF
  17897. if ac_fn_c_try_compile "$LINENO"
  17898. then :
  17899. have_immintrin_h_hdr=yes
  17900. else $as_nop
  17901. have_immintrin_h_hdr=no
  17902. fi
  17903. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17905. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17906. if test x$have_immintrin_h_hdr = xyes; then
  17907. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17908. fi
  17909. # Check whether --enable-altivec was given.
  17910. if test ${enable_altivec+y}
  17911. then :
  17912. enableval=$enable_altivec;
  17913. else $as_nop
  17914. enable_altivec=yes
  17915. fi
  17916. if test x$enable_altivec = xyes; then
  17917. save_CFLAGS="$CFLAGS"
  17918. have_gcc_altivec=no
  17919. have_altivec_h_hdr=no
  17920. altivec_CFLAGS="-maltivec"
  17921. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17923. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17925. /* end confdefs.h. */
  17926. #include <altivec.h>
  17927. vector unsigned int vzero() {
  17928. return vec_splat_u32(0);
  17929. }
  17930. int
  17931. main (void)
  17932. {
  17933. ;
  17934. return 0;
  17935. }
  17936. _ACEOF
  17937. if ac_fn_c_try_compile "$LINENO"
  17938. then :
  17939. have_gcc_altivec=yes
  17940. have_altivec_h_hdr=yes
  17941. fi
  17942. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17944. printf "%s\n" "$have_gcc_altivec" >&6; }
  17945. if test x$have_gcc_altivec = xno; then
  17946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  17947. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  17948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17949. /* end confdefs.h. */
  17950. vector unsigned int vzero() {
  17951. return vec_splat_u32(0);
  17952. }
  17953. int
  17954. main (void)
  17955. {
  17956. ;
  17957. return 0;
  17958. }
  17959. _ACEOF
  17960. if ac_fn_c_try_compile "$LINENO"
  17961. then :
  17962. have_gcc_altivec=yes
  17963. fi
  17964. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17966. printf "%s\n" "$have_gcc_altivec" >&6; }
  17967. fi
  17968. if test x$have_gcc_altivec = xno; then
  17969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  17970. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  17971. altivec_CFLAGS="-faltivec"
  17972. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17974. /* end confdefs.h. */
  17975. #include <altivec.h>
  17976. vector unsigned int vzero() {
  17977. return vec_splat_u32(0);
  17978. }
  17979. int
  17980. main (void)
  17981. {
  17982. ;
  17983. return 0;
  17984. }
  17985. _ACEOF
  17986. if ac_fn_c_try_compile "$LINENO"
  17987. then :
  17988. have_gcc_altivec=yes
  17989. have_altivec_h_hdr=yes
  17990. fi
  17991. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17993. printf "%s\n" "$have_gcc_altivec" >&6; }
  17994. fi
  17995. if test x$have_gcc_altivec = xno; then
  17996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  17997. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  17998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17999. /* end confdefs.h. */
  18000. vector unsigned int vzero() {
  18001. return vec_splat_u32(0);
  18002. }
  18003. int
  18004. main (void)
  18005. {
  18006. ;
  18007. return 0;
  18008. }
  18009. _ACEOF
  18010. if ac_fn_c_try_compile "$LINENO"
  18011. then :
  18012. have_gcc_altivec=yes
  18013. fi
  18014. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18016. printf "%s\n" "$have_gcc_altivec" >&6; }
  18017. fi
  18018. CFLAGS="$save_CFLAGS"
  18019. if test x$have_gcc_altivec = xyes; then
  18020. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18021. if test x$have_altivec_h_hdr = xyes; then
  18022. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18023. fi
  18024. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18025. SUMMARY_math="${SUMMARY_math} altivec"
  18026. fi
  18027. fi
  18028. fi
  18029. # Check whether --enable-lsx was given.
  18030. if test ${enable_lsx+y}
  18031. then :
  18032. enableval=$enable_lsx;
  18033. else $as_nop
  18034. enable_lsx=yes
  18035. fi
  18036. if test x$enable_lsx = xyes; then
  18037. save_CFLAGS="$CFLAGS"
  18038. have_gcc_lsx=no
  18039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18040. printf %s "checking for GCC -mlsx option... " >&6; }
  18041. lsx_CFLAGS="-mlsx"
  18042. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18044. /* end confdefs.h. */
  18045. #ifndef __loongarch_sx
  18046. #error Assembler CPP flag not enabled
  18047. #endif
  18048. int
  18049. main (void)
  18050. {
  18051. ;
  18052. return 0;
  18053. }
  18054. _ACEOF
  18055. if ac_fn_c_try_compile "$LINENO"
  18056. then :
  18057. have_gcc_lsx=yes
  18058. fi
  18059. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18061. printf "%s\n" "$have_gcc_lsx" >&6; }
  18062. CFLAGS="$save_CFLAGS"
  18063. if test x$have_gcc_lsx = xyes; then
  18064. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18065. SUMMARY_math="${SUMMARY_math} lsx"
  18066. fi
  18067. fi
  18068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18069. printf %s "checking for lsxintrin.h... " >&6; }
  18070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18071. /* end confdefs.h. */
  18072. #include <lsxintrin.h>
  18073. int
  18074. main (void)
  18075. {
  18076. ;
  18077. return 0;
  18078. }
  18079. _ACEOF
  18080. if ac_fn_c_try_compile "$LINENO"
  18081. then :
  18082. have_lsxintrin_h_hdr=yes
  18083. else $as_nop
  18084. have_lsxintrin_h_hdr=no
  18085. fi
  18086. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18088. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18089. if test x$have_lsxintrin_h_hdr = xyes; then
  18090. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18091. fi
  18092. # Check whether --enable-lasx was given.
  18093. if test ${enable_lasx+y}
  18094. then :
  18095. enableval=$enable_lasx;
  18096. else $as_nop
  18097. enable_LASX=yes
  18098. fi
  18099. if test x$enable_LASX = xyes; then
  18100. save_CFLAGS="$CFLAGS"
  18101. have_gcc_lasx=no
  18102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18103. printf %s "checking for GCC -mlasx option... " >&6; }
  18104. lasx_CFLAGS="-mlasx"
  18105. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18107. /* end confdefs.h. */
  18108. #ifndef __loongarch_asx
  18109. #error Assembler CPP flag not enabled
  18110. #endif
  18111. int
  18112. main (void)
  18113. {
  18114. ;
  18115. return 0;
  18116. }
  18117. _ACEOF
  18118. if ac_fn_c_try_compile "$LINENO"
  18119. then :
  18120. have_gcc_lasx=yes
  18121. fi
  18122. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18124. printf "%s\n" "$have_gcc_lasx" >&6; }
  18125. CFLAGS="$save_CFLAGS"
  18126. if test x$have_gcc_lasx = xyes; then
  18127. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18128. SUMMARY_math="${SUMMARY_math} lasx"
  18129. fi
  18130. fi
  18131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18132. printf %s "checking for lasxintrin.h... " >&6; }
  18133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18134. /* end confdefs.h. */
  18135. #include <lasxintrin.h>
  18136. int
  18137. main (void)
  18138. {
  18139. ;
  18140. return 0;
  18141. }
  18142. _ACEOF
  18143. if ac_fn_c_try_compile "$LINENO"
  18144. then :
  18145. have_lasxintrin_h_hdr=yes
  18146. else $as_nop
  18147. have_lasxintrin_h_hdr=no
  18148. fi
  18149. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18151. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18152. if test x$have_lasxintrin_h_hdr = xyes; then
  18153. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18154. fi
  18155. CheckOSS()
  18156. {
  18157. # Check whether --enable-oss was given.
  18158. if test ${enable_oss+y}
  18159. then :
  18160. enableval=$enable_oss;
  18161. else $as_nop
  18162. enable_oss=maybe
  18163. fi
  18164. if test x$enable_oss = xmaybe; then
  18165. enable_oss=yes
  18166. fi
  18167. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18169. printf %s "checking for OSS audio support... " >&6; }
  18170. have_oss=no
  18171. if test x$have_oss != xyes; then
  18172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18173. /* end confdefs.h. */
  18174. #include <sys/soundcard.h>
  18175. int
  18176. main (void)
  18177. {
  18178. int arg = SNDCTL_DSP_SETFRAGMENT;
  18179. ;
  18180. return 0;
  18181. }
  18182. _ACEOF
  18183. if ac_fn_c_try_compile "$LINENO"
  18184. then :
  18185. have_oss=yes
  18186. fi
  18187. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18188. fi
  18189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18190. printf "%s\n" "$have_oss" >&6; }
  18191. if test x$have_oss = xyes; then
  18192. SUMMARY_audio="${SUMMARY_audio} oss"
  18193. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18194. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18195. have_audio=yes
  18196. # We may need to link with ossaudio emulation library
  18197. case "$host" in
  18198. *-*-netbsd*)
  18199. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18200. esac
  18201. fi
  18202. fi
  18203. }
  18204. CheckALSA()
  18205. {
  18206. # Check whether --enable-alsa was given.
  18207. if test ${enable_alsa+y}
  18208. then :
  18209. enableval=$enable_alsa;
  18210. else $as_nop
  18211. enable_alsa=yes
  18212. fi
  18213. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18214. alsa_save_CFLAGS="$CFLAGS"
  18215. alsa_save_LDFLAGS="$LDFLAGS"
  18216. alsa_save_LIBS="$LIBS"
  18217. alsa_found=yes
  18218. # Check whether --with-alsa-prefix was given.
  18219. if test ${with_alsa_prefix+y}
  18220. then :
  18221. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18222. else $as_nop
  18223. alsa_prefix=""
  18224. fi
  18225. # Check whether --with-alsa-inc-prefix was given.
  18226. if test ${with_alsa_inc_prefix+y}
  18227. then :
  18228. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18229. else $as_nop
  18230. alsa_inc_prefix=""
  18231. fi
  18232. # Check whether --enable-alsatest was given.
  18233. if test ${enable_alsatest+y}
  18234. then :
  18235. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18236. else $as_nop
  18237. enable_alsatest=yes
  18238. fi
  18239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18240. printf %s "checking for ALSA CFLAGS... " >&6; }
  18241. if test "$alsa_inc_prefix" != "" ; then
  18242. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18243. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18244. fi
  18245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18246. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18248. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18249. if test "$alsa_prefix" != "" ; then
  18250. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18251. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18252. fi
  18253. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18254. LIBS=`echo $LIBS | sed 's/-lm//'`
  18255. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18256. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18257. LIBS=`echo $LIBS | sed 's/ //'`
  18258. LIBS="$ALSA_LIBS $LIBS"
  18259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18260. printf "%s\n" "$ALSA_LIBS" >&6; }
  18261. min_alsa_version=1.0.11
  18262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18263. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18264. no_alsa=""
  18265. alsa_min_major_version=`echo $min_alsa_version | \
  18266. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18267. alsa_min_minor_version=`echo $min_alsa_version | \
  18268. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18269. alsa_min_micro_version=`echo $min_alsa_version | \
  18270. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18271. ac_ext=c
  18272. ac_cpp='$CPP $CPPFLAGS'
  18273. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18274. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18275. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18277. /* end confdefs.h. */
  18278. #include <alsa/asoundlib.h>
  18279. int
  18280. main (void)
  18281. {
  18282. /* ensure backward compatibility */
  18283. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18284. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18285. #endif
  18286. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18287. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18288. #endif
  18289. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18290. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18291. #endif
  18292. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18293. exit(0);
  18294. # else
  18295. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18296. # error not present
  18297. # endif
  18298. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18299. exit(0);
  18300. # else
  18301. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18302. # error not present
  18303. # endif
  18304. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18305. # error not present
  18306. # endif
  18307. # endif
  18308. # endif
  18309. exit(0);
  18310. ;
  18311. return 0;
  18312. }
  18313. _ACEOF
  18314. if ac_fn_c_try_compile "$LINENO"
  18315. then :
  18316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18317. printf "%s\n" "found." >&6; }
  18318. else $as_nop
  18319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18320. printf "%s\n" "not present." >&6; }
  18321. alsa_found=no
  18322. fi
  18323. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18324. ac_ext=c
  18325. ac_cpp='$CPP $CPPFLAGS'
  18326. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18327. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18328. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18329. if test "x$enable_alsatest" = "xyes"; then
  18330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18331. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18332. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18333. then :
  18334. printf %s "(cached) " >&6
  18335. else $as_nop
  18336. ac_check_lib_save_LIBS=$LIBS
  18337. LIBS="-lasound $LIBS"
  18338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18339. /* end confdefs.h. */
  18340. /* Override any GCC internal prototype to avoid an error.
  18341. Use char because int might match the return type of a GCC
  18342. builtin and then its argument prototype would still apply. */
  18343. char snd_ctl_open ();
  18344. int
  18345. main (void)
  18346. {
  18347. return snd_ctl_open ();
  18348. ;
  18349. return 0;
  18350. }
  18351. _ACEOF
  18352. if ac_fn_c_try_link "$LINENO"
  18353. then :
  18354. ac_cv_lib_asound_snd_ctl_open=yes
  18355. else $as_nop
  18356. ac_cv_lib_asound_snd_ctl_open=no
  18357. fi
  18358. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18359. conftest$ac_exeext conftest.$ac_ext
  18360. LIBS=$ac_check_lib_save_LIBS
  18361. fi
  18362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18363. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18364. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18365. then :
  18366. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18367. LIBS="-lasound $LIBS"
  18368. else $as_nop
  18369. alsa_found=no
  18370. fi
  18371. fi
  18372. if test "x$alsa_found" = "xyes" ; then
  18373. have_alsa=yes
  18374. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18375. LIBS=`echo $LIBS | sed 's/ //'`
  18376. LIBS="-lasound $LIBS"
  18377. fi
  18378. if test "x$alsa_found" = "xno" ; then
  18379. have_alsa=no
  18380. CFLAGS="$alsa_save_CFLAGS"
  18381. LDFLAGS="$alsa_save_LDFLAGS"
  18382. LIBS="$alsa_save_LIBS"
  18383. ALSA_CFLAGS=""
  18384. ALSA_LIBS=""
  18385. fi
  18386. # Restore all flags from before the ALSA detection runs
  18387. CFLAGS="$alsa_save_CFLAGS"
  18388. LDFLAGS="$alsa_save_LDFLAGS"
  18389. LIBS="$alsa_save_LIBS"
  18390. if test x$have_alsa = xyes; then
  18391. # Check whether --enable-alsa-shared was given.
  18392. if test ${enable_alsa_shared+y}
  18393. then :
  18394. enableval=$enable_alsa_shared;
  18395. else $as_nop
  18396. enable_alsa_shared=yes
  18397. fi
  18398. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18399. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18400. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18401. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18402. if test x$have_loadso != xyes && \
  18403. test x$enable_alsa_shared = xyes; then
  18404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18405. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18406. fi
  18407. if test x$have_loadso = xyes && \
  18408. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18409. echo "-- dynamic libasound -> $alsa_lib"
  18410. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18411. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18412. else
  18413. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18414. SUMMARY_audio="${SUMMARY_audio} alsa"
  18415. fi
  18416. have_audio=yes
  18417. fi
  18418. fi
  18419. }
  18420. CheckPipewire()
  18421. {
  18422. # Check whether --enable-pipewire was given.
  18423. if test ${enable_pipewire+y}
  18424. then :
  18425. enableval=$enable_pipewire;
  18426. else $as_nop
  18427. enable_pipewire=yes
  18428. fi
  18429. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18430. pkg_failed=no
  18431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18432. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18433. if test -n "$PIPEWIRE_CFLAGS"; then
  18434. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18435. elif test -n "$PKG_CONFIG"; then
  18436. if test -n "$PKG_CONFIG" && \
  18437. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18438. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18439. ac_status=$?
  18440. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18441. test $ac_status = 0; }; then
  18442. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18443. test "x$?" != "x0" && pkg_failed=yes
  18444. else
  18445. pkg_failed=yes
  18446. fi
  18447. else
  18448. pkg_failed=untried
  18449. fi
  18450. if test -n "$PIPEWIRE_LIBS"; then
  18451. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18452. elif test -n "$PKG_CONFIG"; then
  18453. if test -n "$PKG_CONFIG" && \
  18454. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18455. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18456. ac_status=$?
  18457. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18458. test $ac_status = 0; }; then
  18459. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18460. test "x$?" != "x0" && pkg_failed=yes
  18461. else
  18462. pkg_failed=yes
  18463. fi
  18464. else
  18465. pkg_failed=untried
  18466. fi
  18467. if test $pkg_failed = yes; then
  18468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18469. printf "%s\n" "no" >&6; }
  18470. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18471. _pkg_short_errors_supported=yes
  18472. else
  18473. _pkg_short_errors_supported=no
  18474. fi
  18475. if test $_pkg_short_errors_supported = yes; then
  18476. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18477. else
  18478. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18479. fi
  18480. # Put the nasty error message in config.log where it belongs
  18481. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18482. audio_pipewire=no
  18483. elif test $pkg_failed = untried; then
  18484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18485. printf "%s\n" "no" >&6; }
  18486. audio_pipewire=no
  18487. else
  18488. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  18489. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  18490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18491. printf "%s\n" "yes" >&6; }
  18492. audio_pipewire=yes
  18493. fi
  18494. if test x$audio_pipewire = xyes; then
  18495. # Check whether --enable-pipewire-shared was given.
  18496. if test ${enable_pipewire_shared+y}
  18497. then :
  18498. enableval=$enable_pipewire_shared;
  18499. else $as_nop
  18500. enable_pipewire_shared=yes
  18501. fi
  18502. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18503. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  18504. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  18505. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  18506. if test x$have_loadso != xyes && \
  18507. test x$enable_pipewire_shared = xyes; then
  18508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  18509. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  18510. fi
  18511. if test x$have_loadso = xyes && \
  18512. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  18513. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  18514. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  18515. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  18516. else
  18517. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  18518. SUMMARY_audio="${SUMMARY_audio} pipewire"
  18519. fi
  18520. have_audio=yes
  18521. fi
  18522. fi
  18523. }
  18524. CheckPulseAudio()
  18525. {
  18526. # Check whether --enable-pulseaudio was given.
  18527. if test ${enable_pulseaudio+y}
  18528. then :
  18529. enableval=$enable_pulseaudio;
  18530. else $as_nop
  18531. enable_pulseaudio=yes
  18532. fi
  18533. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  18534. pkg_failed=no
  18535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  18536. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  18537. if test -n "$PULSEAUDIO_CFLAGS"; then
  18538. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  18539. elif test -n "$PKG_CONFIG"; then
  18540. if test -n "$PKG_CONFIG" && \
  18541. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18542. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18543. ac_status=$?
  18544. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18545. test $ac_status = 0; }; then
  18546. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  18547. test "x$?" != "x0" && pkg_failed=yes
  18548. else
  18549. pkg_failed=yes
  18550. fi
  18551. else
  18552. pkg_failed=untried
  18553. fi
  18554. if test -n "$PULSEAUDIO_LIBS"; then
  18555. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  18556. elif test -n "$PKG_CONFIG"; then
  18557. if test -n "$PKG_CONFIG" && \
  18558. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18559. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18560. ac_status=$?
  18561. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18562. test $ac_status = 0; }; then
  18563. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  18564. test "x$?" != "x0" && pkg_failed=yes
  18565. else
  18566. pkg_failed=yes
  18567. fi
  18568. else
  18569. pkg_failed=untried
  18570. fi
  18571. if test $pkg_failed = yes; then
  18572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18573. printf "%s\n" "no" >&6; }
  18574. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18575. _pkg_short_errors_supported=yes
  18576. else
  18577. _pkg_short_errors_supported=no
  18578. fi
  18579. if test $_pkg_short_errors_supported = yes; then
  18580. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  18581. else
  18582. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  18583. fi
  18584. # Put the nasty error message in config.log where it belongs
  18585. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  18586. audio_pulseaudio=no
  18587. elif test $pkg_failed = untried; then
  18588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18589. printf "%s\n" "no" >&6; }
  18590. audio_pulseaudio=no
  18591. else
  18592. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  18593. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  18594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18595. printf "%s\n" "yes" >&6; }
  18596. audio_pulseaudio=yes
  18597. fi
  18598. if test x$audio_pulseaudio = xyes; then
  18599. # Check whether --enable-pulseaudio-shared was given.
  18600. if test ${enable_pulseaudio_shared+y}
  18601. then :
  18602. enableval=$enable_pulseaudio_shared;
  18603. else $as_nop
  18604. enable_pulseaudio_shared=yes
  18605. fi
  18606. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18607. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  18608. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  18609. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  18610. if test x$have_loadso != xyes && \
  18611. test x$enable_pulseaudio_shared = xyes; then
  18612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  18613. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  18614. fi
  18615. if test x$have_loadso = xyes && \
  18616. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  18617. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  18618. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  18619. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  18620. case "$host" in
  18621. # On Solaris, pulseaudio must be linked deferred explicitly
  18622. # to prevent undefined symbol failures.
  18623. *-*-solaris*)
  18624. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  18625. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  18626. esac
  18627. else
  18628. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  18629. SUMMARY_audio="${SUMMARY_audio} pulse"
  18630. fi
  18631. have_audio=yes
  18632. fi
  18633. fi
  18634. }
  18635. CheckSNDIO()
  18636. {
  18637. # Check whether --enable-sndio was given.
  18638. if test ${enable_sndio+y}
  18639. then :
  18640. enableval=$enable_sndio;
  18641. else $as_nop
  18642. enable_sndio=yes
  18643. fi
  18644. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  18645. pkg_failed=no
  18646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  18647. printf %s "checking for sndio... " >&6; }
  18648. if test -n "$SNDIO_CFLAGS"; then
  18649. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  18650. elif test -n "$PKG_CONFIG"; then
  18651. if test -n "$PKG_CONFIG" && \
  18652. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  18653. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  18654. ac_status=$?
  18655. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18656. test $ac_status = 0; }; then
  18657. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  18658. test "x$?" != "x0" && pkg_failed=yes
  18659. else
  18660. pkg_failed=yes
  18661. fi
  18662. else
  18663. pkg_failed=untried
  18664. fi
  18665. if test -n "$SNDIO_LIBS"; then
  18666. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  18667. elif test -n "$PKG_CONFIG"; then
  18668. if test -n "$PKG_CONFIG" && \
  18669. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  18670. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  18671. ac_status=$?
  18672. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18673. test $ac_status = 0; }; then
  18674. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  18675. test "x$?" != "x0" && pkg_failed=yes
  18676. else
  18677. pkg_failed=yes
  18678. fi
  18679. else
  18680. pkg_failed=untried
  18681. fi
  18682. if test $pkg_failed = yes; then
  18683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18684. printf "%s\n" "no" >&6; }
  18685. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18686. _pkg_short_errors_supported=yes
  18687. else
  18688. _pkg_short_errors_supported=no
  18689. fi
  18690. if test $_pkg_short_errors_supported = yes; then
  18691. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  18692. else
  18693. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  18694. fi
  18695. # Put the nasty error message in config.log where it belongs
  18696. echo "$SNDIO_PKG_ERRORS" >&5
  18697. audio_sndio=no
  18698. elif test $pkg_failed = untried; then
  18699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18700. printf "%s\n" "no" >&6; }
  18701. audio_sndio=no
  18702. else
  18703. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  18704. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  18705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18706. printf "%s\n" "yes" >&6; }
  18707. audio_sndio=yes
  18708. fi
  18709. if test x$audio_sndio = xyes; then
  18710. # Check whether --enable-sndio-shared was given.
  18711. if test ${enable_sndio_shared+y}
  18712. then :
  18713. enableval=$enable_sndio_shared;
  18714. else $as_nop
  18715. enable_sndio_shared=yes
  18716. fi
  18717. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18718. if test x$have_loadso != xyes && \
  18719. test x$enable_sndio_shared = xyes; then
  18720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  18721. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  18722. fi
  18723. if test x$have_loadso = xyes && \
  18724. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  18725. echo "-- dynamic libsndio -> $sndio_lib"
  18726. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  18727. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  18728. else
  18729. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  18730. SUMMARY_audio="${SUMMARY_audio} sndio"
  18731. fi
  18732. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  18733. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  18734. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  18735. have_audio=yes
  18736. fi
  18737. fi
  18738. }
  18739. CheckDiskAudio()
  18740. {
  18741. # Check whether --enable-diskaudio was given.
  18742. if test ${enable_diskaudio+y}
  18743. then :
  18744. enableval=$enable_diskaudio;
  18745. else $as_nop
  18746. enable_diskaudio=yes
  18747. fi
  18748. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  18749. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  18750. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  18751. SUMMARY_audio="${SUMMARY_audio} disk"
  18752. have_audio=yes
  18753. fi
  18754. }
  18755. CheckDummyAudio()
  18756. {
  18757. # Check whether --enable-dummyaudio was given.
  18758. if test ${enable_dummyaudio+y}
  18759. then :
  18760. enableval=$enable_dummyaudio;
  18761. else $as_nop
  18762. enable_dummyaudio=yes
  18763. fi
  18764. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  18765. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  18766. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  18767. SUMMARY_audio="${SUMMARY_audio} dummy"
  18768. have_audio=yes
  18769. fi
  18770. }
  18771. CheckLibSampleRate()
  18772. {
  18773. # Check whether --enable-libsamplerate was given.
  18774. if test ${enable_libsamplerate+y}
  18775. then :
  18776. enableval=$enable_libsamplerate;
  18777. else $as_nop
  18778. enable_libsamplerate=yes
  18779. fi
  18780. if test x$enable_libsamplerate = xyes; then
  18781. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  18782. if test "x$ac_cv_header_samplerate_h" = xyes
  18783. then :
  18784. have_samplerate_h_hdr=yes
  18785. else $as_nop
  18786. have_samplerate_h_hdr=no
  18787. fi
  18788. if test x$have_samplerate_h_hdr = xyes; then
  18789. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  18790. # Check whether --enable-libsamplerate-shared was given.
  18791. if test ${enable_libsamplerate_shared+y}
  18792. then :
  18793. enableval=$enable_libsamplerate_shared;
  18794. else $as_nop
  18795. enable_libsamplerate_shared=yes
  18796. fi
  18797. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18798. if test x$have_loadso != xyes && \
  18799. test x$enable_libsamplerate_shared = xyes; then
  18800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  18801. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  18802. fi
  18803. if test x$have_loadso = xyes && \
  18804. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  18805. echo "-- dynamic libsamplerate -> $samplerate_lib"
  18806. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  18807. else
  18808. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  18809. fi
  18810. fi
  18811. fi
  18812. }
  18813. CheckARM()
  18814. {
  18815. # Check whether --enable-arm-simd was given.
  18816. if test ${enable_arm_simd+y}
  18817. then :
  18818. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  18819. else $as_nop
  18820. enable_arm_simd=no
  18821. fi
  18822. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  18823. save_CFLAGS="$CFLAGS"
  18824. have_arm_simd=no
  18825. CFLAGS="-x assembler-with-cpp $CFLAGS"
  18826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  18827. printf %s "checking for ARM SIMD... " >&6; }
  18828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18829. /* end confdefs.h. */
  18830. .text
  18831. .arch armv6
  18832. .object_arch armv4
  18833. .arm
  18834. .altmacro
  18835. #ifndef __ARM_EABI__
  18836. #error EABI is required (to be sure that calling conventions are compatible)
  18837. #endif
  18838. pld [r0]
  18839. uqadd8 r0, r0, r0
  18840. _ACEOF
  18841. if ac_fn_c_try_compile "$LINENO"
  18842. then :
  18843. have_arm_simd=yes
  18844. fi
  18845. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  18847. printf "%s\n" "$have_arm_simd" >&6; }
  18848. CFLAGS="$save_CFLAGS"
  18849. if test x$have_arm_simd = xyes; then
  18850. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  18851. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  18852. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  18853. fi
  18854. fi
  18855. }
  18856. CheckNEON()
  18857. {
  18858. # Check whether --enable-arm-neon was given.
  18859. if test ${enable_arm_neon+y}
  18860. then :
  18861. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  18862. else $as_nop
  18863. enable_arm_neon=no
  18864. fi
  18865. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  18866. save_CFLAGS="$CFLAGS"
  18867. have_arm_neon=no
  18868. CFLAGS="-x assembler-with-cpp $CFLAGS"
  18869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  18870. printf %s "checking for ARM NEON... " >&6; }
  18871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18872. /* end confdefs.h. */
  18873. .text
  18874. .fpu neon
  18875. .arch armv7a
  18876. .object_arch armv4
  18877. .eabi_attribute 10, 0
  18878. .arm
  18879. .altmacro
  18880. #ifndef __ARM_EABI__
  18881. #error EABI is required (to be sure that calling conventions are compatible)
  18882. #endif
  18883. pld [r0]
  18884. vmovn.u16 d0, q0
  18885. _ACEOF
  18886. if ac_fn_c_try_compile "$LINENO"
  18887. then :
  18888. have_arm_neon=yes
  18889. fi
  18890. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  18892. printf "%s\n" "$have_arm_neon" >&6; }
  18893. CFLAGS="$save_CFLAGS"
  18894. if test x$have_arm_neon = xyes; then
  18895. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  18896. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  18897. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  18898. fi
  18899. fi
  18900. }
  18901. CheckObjectiveCARC()
  18902. {
  18903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  18904. printf %s "checking for clang -fobjc-arc option... " >&6; }
  18905. have_clang_objc_arc=no
  18906. save_CFLAGS="$CFLAGS"
  18907. CFLAGS="$save_CFLAGS -fobjc-arc"
  18908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18909. /* end confdefs.h. */
  18910. int x = 0;
  18911. int
  18912. main (void)
  18913. {
  18914. ;
  18915. return 0;
  18916. }
  18917. _ACEOF
  18918. if ac_fn_c_try_compile "$LINENO"
  18919. then :
  18920. have_clang_objc_arc=yes
  18921. fi
  18922. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  18924. printf "%s\n" "$have_clang_objc_arc" >&6; }
  18925. CFLAGS="$save_CFLAGS"
  18926. if test x$have_clang_objc_arc = xyes; then
  18927. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  18928. fi
  18929. }
  18930. CheckGDwarf4()
  18931. {
  18932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  18933. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  18934. have_gcc_gdwarf4=no
  18935. save_CFLAGS="$CFLAGS"
  18936. CFLAGS="$save_CFLAGS -gdwarf-4"
  18937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18938. /* end confdefs.h. */
  18939. int x = 0;
  18940. int
  18941. main (void)
  18942. {
  18943. ;
  18944. return 0;
  18945. }
  18946. _ACEOF
  18947. if ac_fn_c_try_compile "$LINENO"
  18948. then :
  18949. have_gcc_gdwarf4=yes
  18950. fi
  18951. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  18953. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  18954. CFLAGS="$save_CFLAGS"
  18955. if test x$have_gcc_gdwarf4 = xyes; then
  18956. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  18957. fi
  18958. }
  18959. CheckVisibilityHidden()
  18960. {
  18961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  18962. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  18963. have_gcc_fvisibility=no
  18964. visibility_CFLAGS="-fvisibility=hidden"
  18965. save_CFLAGS="$CFLAGS"
  18966. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  18967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18968. /* end confdefs.h. */
  18969. #if !defined(__GNUC__) || __GNUC__ < 4
  18970. #error SDL only uses visibility attributes in GCC 4 or newer
  18971. #endif
  18972. int
  18973. main (void)
  18974. {
  18975. ;
  18976. return 0;
  18977. }
  18978. _ACEOF
  18979. if ac_fn_c_try_compile "$LINENO"
  18980. then :
  18981. have_gcc_fvisibility=yes
  18982. fi
  18983. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  18985. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  18986. CFLAGS="$save_CFLAGS"
  18987. if test x$have_gcc_fvisibility = xyes; then
  18988. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  18989. fi
  18990. }
  18991. CheckNoStrictAliasing()
  18992. {
  18993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  18994. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  18995. have_gcc_no_strict_aliasing=no
  18996. save_CFLAGS="$CFLAGS"
  18997. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  18998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18999. /* end confdefs.h. */
  19000. int x = 0;
  19001. int
  19002. main (void)
  19003. {
  19004. ;
  19005. return 0;
  19006. }
  19007. _ACEOF
  19008. if ac_fn_c_try_compile "$LINENO"
  19009. then :
  19010. have_gcc_no_strict_aliasing=yes
  19011. fi
  19012. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19014. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19015. CFLAGS="$save_CFLAGS"
  19016. if test x$have_gcc_no_strict_aliasing = xyes; then
  19017. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19018. fi
  19019. }
  19020. CheckStackBoundary()
  19021. {
  19022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19023. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19024. have_gcc_preferred_stack_boundary=no
  19025. save_CFLAGS="$CFLAGS"
  19026. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19028. /* end confdefs.h. */
  19029. int x = 0;
  19030. int
  19031. main (void)
  19032. {
  19033. ;
  19034. return 0;
  19035. }
  19036. _ACEOF
  19037. if ac_fn_c_try_compile "$LINENO"
  19038. then :
  19039. have_gcc_preferred_stack_boundary=yes
  19040. fi
  19041. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19043. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19044. CFLAGS="$save_CFLAGS"
  19045. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19046. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19047. fi
  19048. }
  19049. CheckWerror()
  19050. {
  19051. # Check whether --enable-werror was given.
  19052. if test ${enable_werror+y}
  19053. then :
  19054. enableval=$enable_werror; enable_werror=$enableval
  19055. else $as_nop
  19056. enable_werror=no
  19057. fi
  19058. if test x$enable_werror = xyes; then
  19059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19060. printf %s "checking for GCC -Werror option... " >&6; }
  19061. have_gcc_werror=no
  19062. save_CFLAGS="$CFLAGS"
  19063. CFLAGS="$save_CFLAGS -Werror"
  19064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19065. /* end confdefs.h. */
  19066. int x = 0;
  19067. int
  19068. main (void)
  19069. {
  19070. ;
  19071. return 0;
  19072. }
  19073. _ACEOF
  19074. if ac_fn_c_try_compile "$LINENO"
  19075. then :
  19076. have_gcc_werror=yes
  19077. fi
  19078. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19080. printf "%s\n" "$have_gcc_werror" >&6; }
  19081. CFLAGS="$save_CFLAGS"
  19082. if test x$have_gcc_werror = xyes; then
  19083. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  19084. fi
  19085. fi
  19086. }
  19087. CheckNoErrorDeprecatedDeclarationsWerror()
  19088. {
  19089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  19090. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  19091. have_gcc_no_werror_deprecated_declarations=no
  19092. save_CFLAGS="$CFLAGS"
  19093. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  19094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19095. /* end confdefs.h. */
  19096. int x = 0;
  19097. int
  19098. main (void)
  19099. {
  19100. ;
  19101. return 0;
  19102. }
  19103. _ACEOF
  19104. if ac_fn_c_try_compile "$LINENO"
  19105. then :
  19106. have_gcc_no_werror_deprecated_declarations=yes
  19107. fi
  19108. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19110. printf "%s\n" "$have_gcc_werror" >&6; }
  19111. CFLAGS="$save_CFLAGS"
  19112. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  19113. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  19114. fi
  19115. }
  19116. CheckDeclarationAfterStatement()
  19117. {
  19118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19119. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19120. have_gcc_declaration_after_statement=no
  19121. save_CFLAGS="$CFLAGS"
  19122. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19124. /* end confdefs.h. */
  19125. int x = 0;
  19126. int
  19127. main (void)
  19128. {
  19129. ;
  19130. return 0;
  19131. }
  19132. _ACEOF
  19133. if ac_fn_c_try_compile "$LINENO"
  19134. then :
  19135. have_gcc_declaration_after_statement=yes
  19136. fi
  19137. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19139. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19140. CFLAGS="$save_CFLAGS"
  19141. if test x$have_gcc_declaration_after_statement = xyes; then
  19142. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19143. fi
  19144. }
  19145. CheckWarnAll()
  19146. {
  19147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19148. printf %s "checking for GCC -Wall option... " >&6; }
  19149. have_gcc_Wall=no
  19150. save_CFLAGS="$CFLAGS"
  19151. CFLAGS="$save_CFLAGS -Wall"
  19152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19153. /* end confdefs.h. */
  19154. int x = 0;
  19155. int
  19156. main (void)
  19157. {
  19158. ;
  19159. return 0;
  19160. }
  19161. _ACEOF
  19162. if ac_fn_c_try_compile "$LINENO"
  19163. then :
  19164. have_gcc_Wall=yes
  19165. fi
  19166. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19168. printf "%s\n" "$have_gcc_Wall" >&6; }
  19169. CFLAGS="$save_CFLAGS"
  19170. if test x$have_gcc_Wall = xyes; then
  19171. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19173. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19174. need_gcc_Wno_multichar=no
  19175. case "$host" in
  19176. *-*-haiku*)
  19177. need_gcc_Wno_multichar=yes
  19178. ;;
  19179. esac
  19180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19181. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19182. if test x$need_gcc_Wno_multichar = xyes; then
  19183. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19184. fi
  19185. fi
  19186. }
  19187. CheckWayland()
  19188. {
  19189. # Check whether --enable-video-wayland was given.
  19190. if test ${enable_video_wayland+y}
  19191. then :
  19192. enableval=$enable_video_wayland;
  19193. else $as_nop
  19194. enable_video_wayland=yes
  19195. fi
  19196. # Check whether --enable-video-wayland-qt-touch was given.
  19197. if test ${enable_video_wayland_qt_touch+y}
  19198. then :
  19199. enableval=$enable_video_wayland_qt_touch;
  19200. else $as_nop
  19201. enable_video_wayland_qt_touch=yes
  19202. fi
  19203. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  19204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  19205. printf %s "checking for Wayland support... " >&6; }
  19206. video_wayland=no
  19207. if test x$video_opengl_egl = xyes && \
  19208. test x$video_opengles_v2 = xyes; then
  19209. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  19210. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  19211. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  19212. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  19213. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  19214. then :
  19215. WAYLAND_SCANNER_CODE_MODE=private-code
  19216. else $as_nop
  19217. WAYLAND_SCANNER_CODE_MODE=code
  19218. fi
  19219. video_wayland=yes
  19220. fi
  19221. fi
  19222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  19223. printf "%s\n" "$video_wayland" >&6; }
  19224. if test x$video_wayland = xyes; then
  19225. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  19226. if test x$enable_video_wayland_qt_touch = xyes; then
  19227. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  19228. fi
  19229. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  19230. SOURCES="$SOURCES $WAYLAND_SOURCES"
  19231. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  19232. # Check whether --enable-wayland-shared was given.
  19233. if test ${enable_wayland_shared+y}
  19234. then :
  19235. enableval=$enable_wayland_shared;
  19236. else $as_nop
  19237. enable_wayland_shared=maybe
  19238. fi
  19239. case "$host" in
  19240. *)
  19241. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19242. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19243. if test x$wayland_egl_lib = x; then
  19244. # This works in Ubuntu 13.10, maybe others
  19245. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19246. fi
  19247. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19248. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19249. ;;
  19250. esac
  19251. if test x$enable_wayland_shared = xmaybe; then
  19252. enable_wayland_shared=yes
  19253. fi
  19254. if test x$have_loadso != xyes && \
  19255. test x$enable_wayland_shared = xyes; then
  19256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  19257. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  19258. enable_wayland_shared=no
  19259. fi
  19260. if test x$have_loadso = xyes && \
  19261. test x$enable_wayland_shared = xyes && \
  19262. test x$wayland_client_lib != x && \
  19263. test x$wayland_egl_lib != x && \
  19264. test x$wayland_cursor_lib != x && \
  19265. test x$xkbcommon_lib != x; then
  19266. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  19267. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  19268. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  19269. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  19270. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  19271. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  19272. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  19273. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  19274. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  19275. else
  19276. enable_wayland_shared=no
  19277. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  19278. SUMMARY_video="${SUMMARY_video} wayland"
  19279. fi
  19280. have_video=yes
  19281. # Check whether --enable-libdecor was given.
  19282. if test ${enable_libdecor+y}
  19283. then :
  19284. enableval=$enable_libdecor;
  19285. else $as_nop
  19286. enable_libdecor=yes
  19287. fi
  19288. if test x$enable_libdecor = xyes; then
  19289. pkg_failed=no
  19290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  19291. printf %s "checking for libdecor-0... " >&6; }
  19292. if test -n "$DECOR_CFLAGS"; then
  19293. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  19294. elif test -n "$PKG_CONFIG"; then
  19295. if test -n "$PKG_CONFIG" && \
  19296. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19297. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19298. ac_status=$?
  19299. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19300. test $ac_status = 0; }; then
  19301. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  19302. test "x$?" != "x0" && pkg_failed=yes
  19303. else
  19304. pkg_failed=yes
  19305. fi
  19306. else
  19307. pkg_failed=untried
  19308. fi
  19309. if test -n "$DECOR_LIBS"; then
  19310. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  19311. elif test -n "$PKG_CONFIG"; then
  19312. if test -n "$PKG_CONFIG" && \
  19313. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19314. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19315. ac_status=$?
  19316. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19317. test $ac_status = 0; }; then
  19318. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  19319. test "x$?" != "x0" && pkg_failed=yes
  19320. else
  19321. pkg_failed=yes
  19322. fi
  19323. else
  19324. pkg_failed=untried
  19325. fi
  19326. if test $pkg_failed = yes; then
  19327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19328. printf "%s\n" "no" >&6; }
  19329. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19330. _pkg_short_errors_supported=yes
  19331. else
  19332. _pkg_short_errors_supported=no
  19333. fi
  19334. if test $_pkg_short_errors_supported = yes; then
  19335. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  19336. else
  19337. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  19338. fi
  19339. # Put the nasty error message in config.log where it belongs
  19340. echo "$DECOR_PKG_ERRORS" >&5
  19341. video_libdecor=no
  19342. elif test $pkg_failed = untried; then
  19343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19344. printf "%s\n" "no" >&6; }
  19345. video_libdecor=no
  19346. else
  19347. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  19348. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  19349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19350. printf "%s\n" "yes" >&6; }
  19351. video_libdecor=yes
  19352. fi
  19353. if test x$video_libdecor = xyes; then
  19354. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  19355. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  19356. # Check whether --enable-libdecor-shared was given.
  19357. if test ${enable_libdecor_shared+y}
  19358. then :
  19359. enableval=$enable_libdecor_shared;
  19360. else $as_nop
  19361. enable_libdecor_shared=yes
  19362. fi
  19363. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19364. if test x$enable_wayland_shared != xyes; then
  19365. enable_libdecor_shared=no
  19366. fi
  19367. if test x$have_loadso != xyes && \
  19368. test x$enable_libdecor_shared = xyes; then
  19369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  19370. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  19371. fi
  19372. if test x$have_loadso = xyes && \
  19373. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  19374. echo "-- dynamic libdecor -> $decor_lib"
  19375. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  19376. else
  19377. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  19378. fi
  19379. fi
  19380. fi
  19381. fi
  19382. fi
  19383. }
  19384. CheckRPI()
  19385. {
  19386. # Check whether --enable-video-rpi was given.
  19387. if test ${enable_video_rpi+y}
  19388. then :
  19389. enableval=$enable_video_rpi;
  19390. else $as_nop
  19391. enable_video_rpi=yes
  19392. fi
  19393. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  19394. pkg_failed=no
  19395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  19396. printf %s "checking for bcm_host brcmegl... " >&6; }
  19397. if test -n "$RPI_CFLAGS"; then
  19398. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  19399. elif test -n "$PKG_CONFIG"; then
  19400. if test -n "$PKG_CONFIG" && \
  19401. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  19402. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  19403. ac_status=$?
  19404. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19405. test $ac_status = 0; }; then
  19406. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  19407. test "x$?" != "x0" && pkg_failed=yes
  19408. else
  19409. pkg_failed=yes
  19410. fi
  19411. else
  19412. pkg_failed=untried
  19413. fi
  19414. if test -n "$RPI_LIBS"; then
  19415. pkg_cv_RPI_LIBS="$RPI_LIBS"
  19416. elif test -n "$PKG_CONFIG"; then
  19417. if test -n "$PKG_CONFIG" && \
  19418. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  19419. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  19420. ac_status=$?
  19421. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19422. test $ac_status = 0; }; then
  19423. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  19424. test "x$?" != "x0" && pkg_failed=yes
  19425. else
  19426. pkg_failed=yes
  19427. fi
  19428. else
  19429. pkg_failed=untried
  19430. fi
  19431. if test $pkg_failed = yes; then
  19432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19433. printf "%s\n" "no" >&6; }
  19434. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19435. _pkg_short_errors_supported=yes
  19436. else
  19437. _pkg_short_errors_supported=no
  19438. fi
  19439. if test $_pkg_short_errors_supported = yes; then
  19440. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  19441. else
  19442. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  19443. fi
  19444. # Put the nasty error message in config.log where it belongs
  19445. echo "$RPI_PKG_ERRORS" >&5
  19446. video_rpi=no
  19447. elif test $pkg_failed = untried; then
  19448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19449. printf "%s\n" "no" >&6; }
  19450. video_rpi=no
  19451. else
  19452. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  19453. RPI_LIBS=$pkg_cv_RPI_LIBS
  19454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19455. printf "%s\n" "yes" >&6; }
  19456. video_rpi=yes
  19457. fi
  19458. if test x$video_rpi = xno; then
  19459. if test x$ARCH = xnetbsd; then
  19460. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  19461. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  19462. else
  19463. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19464. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  19465. fi
  19466. fi
  19467. # Save the original compiler flags and libraries
  19468. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19469. # Add the Raspberry Pi compiler flags and libraries
  19470. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  19471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  19472. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  19473. have_video_rpi=no
  19474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19475. /* end confdefs.h. */
  19476. #include <bcm_host.h>
  19477. #include <EGL/eglplatform.h>
  19478. int
  19479. main (void)
  19480. {
  19481. EGL_DISPMANX_WINDOW_T window;
  19482. bcm_host_init();
  19483. ;
  19484. return 0;
  19485. }
  19486. _ACEOF
  19487. if ac_fn_c_try_link "$LINENO"
  19488. then :
  19489. have_video_rpi=yes
  19490. fi
  19491. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19492. conftest$ac_exeext conftest.$ac_ext
  19493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  19494. printf "%s\n" "$have_video_rpi" >&6; }
  19495. # Restore the compiler flags and libraries
  19496. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19497. if test x$have_video_rpi = xyes; then
  19498. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19499. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19500. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19501. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  19502. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19503. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19504. SUMMARY_video="${SUMMARY_video} rpi"
  19505. have_video=yes
  19506. fi
  19507. fi
  19508. }
  19509. CheckX11()
  19510. {
  19511. # Check whether --enable-video-x11 was given.
  19512. if test ${enable_video_x11+y}
  19513. then :
  19514. enableval=$enable_video_x11;
  19515. else $as_nop
  19516. enable_video_x11=yes
  19517. case "$host" in
  19518. *-*-darwin*|*-ios-*)
  19519. enable_video_x11=no
  19520. ;;
  19521. esac
  19522. fi
  19523. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  19524. case "$host" in
  19525. *-*-darwin*)
  19526. # This isn't necessary for X11, but fixes GLX detection
  19527. if test "x$x_includes" = xNONE && \
  19528. test "x$x_libraries" = xNONE && \
  19529. test -d /opt/X11/include && \
  19530. test -d /opt/X11/lib; then
  19531. x_includes="/opt/X11/include"
  19532. x_libraries="/opt/X11/lib"
  19533. fi
  19534. ;;
  19535. esac
  19536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  19537. printf %s "checking for X... " >&6; }
  19538. # Check whether --with-x was given.
  19539. if test ${with_x+y}
  19540. then :
  19541. withval=$with_x;
  19542. fi
  19543. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  19544. if test "x$with_x" = xno; then
  19545. # The user explicitly disabled X.
  19546. have_x=disabled
  19547. else
  19548. case $x_includes,$x_libraries in #(
  19549. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  19550. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  19551. then :
  19552. printf %s "(cached) " >&6
  19553. else $as_nop
  19554. # One or both of the vars are not set, and there is no cached value.
  19555. ac_x_includes=no
  19556. ac_x_libraries=no
  19557. # Do we need to do anything special at all?
  19558. ac_save_LIBS=$LIBS
  19559. LIBS="-lX11 $LIBS"
  19560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19561. /* end confdefs.h. */
  19562. #include <X11/Xlib.h>
  19563. int
  19564. main (void)
  19565. {
  19566. XrmInitialize ()
  19567. ;
  19568. return 0;
  19569. }
  19570. _ACEOF
  19571. if ac_fn_c_try_link "$LINENO"
  19572. then :
  19573. # We can compile and link X programs with no special options.
  19574. ac_x_includes=
  19575. ac_x_libraries=
  19576. fi
  19577. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19578. conftest$ac_exeext conftest.$ac_ext
  19579. LIBS="$ac_save_LIBS"
  19580. # If that didn't work, only try xmkmf and file system searches
  19581. # for native compilation.
  19582. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  19583. then :
  19584. rm -f -r conftest.dir
  19585. if mkdir conftest.dir; then
  19586. cd conftest.dir
  19587. cat >Imakefile <<'_ACEOF'
  19588. incroot:
  19589. @echo incroot='${INCROOT}'
  19590. usrlibdir:
  19591. @echo usrlibdir='${USRLIBDIR}'
  19592. libdir:
  19593. @echo libdir='${LIBDIR}'
  19594. _ACEOF
  19595. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  19596. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  19597. for ac_var in incroot usrlibdir libdir; do
  19598. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  19599. done
  19600. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  19601. for ac_extension in a so sl dylib la dll; do
  19602. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  19603. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  19604. ac_im_usrlibdir=$ac_im_libdir; break
  19605. fi
  19606. done
  19607. # Screen out bogus values from the imake configuration. They are
  19608. # bogus both because they are the default anyway, and because
  19609. # using them would break gcc on systems where it needs fixed includes.
  19610. case $ac_im_incroot in
  19611. /usr/include) ac_x_includes= ;;
  19612. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  19613. esac
  19614. case $ac_im_usrlibdir in
  19615. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  19616. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  19617. esac
  19618. fi
  19619. cd ..
  19620. rm -f -r conftest.dir
  19621. fi
  19622. # Standard set of common directories for X headers.
  19623. # Check X11 before X11Rn because it is often a symlink to the current release.
  19624. ac_x_header_dirs='
  19625. /usr/X11/include
  19626. /usr/X11R7/include
  19627. /usr/X11R6/include
  19628. /usr/X11R5/include
  19629. /usr/X11R4/include
  19630. /usr/include/X11
  19631. /usr/include/X11R7
  19632. /usr/include/X11R6
  19633. /usr/include/X11R5
  19634. /usr/include/X11R4
  19635. /usr/local/X11/include
  19636. /usr/local/X11R7/include
  19637. /usr/local/X11R6/include
  19638. /usr/local/X11R5/include
  19639. /usr/local/X11R4/include
  19640. /usr/local/include/X11
  19641. /usr/local/include/X11R7
  19642. /usr/local/include/X11R6
  19643. /usr/local/include/X11R5
  19644. /usr/local/include/X11R4
  19645. /opt/X11/include
  19646. /usr/X386/include
  19647. /usr/x386/include
  19648. /usr/XFree86/include/X11
  19649. /usr/include
  19650. /usr/local/include
  19651. /usr/unsupported/include
  19652. /usr/athena/include
  19653. /usr/local/x11r5/include
  19654. /usr/lpp/Xamples/include
  19655. /usr/openwin/include
  19656. /usr/openwin/share/include'
  19657. if test "$ac_x_includes" = no; then
  19658. # Guess where to find include files, by looking for Xlib.h.
  19659. # First, try using that file with no special directory specified.
  19660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19661. /* end confdefs.h. */
  19662. #include <X11/Xlib.h>
  19663. _ACEOF
  19664. if ac_fn_c_try_cpp "$LINENO"
  19665. then :
  19666. # We can compile using X headers with no special include directory.
  19667. ac_x_includes=
  19668. else $as_nop
  19669. for ac_dir in $ac_x_header_dirs; do
  19670. if test -r "$ac_dir/X11/Xlib.h"; then
  19671. ac_x_includes=$ac_dir
  19672. break
  19673. fi
  19674. done
  19675. fi
  19676. rm -f conftest.err conftest.i conftest.$ac_ext
  19677. fi # $ac_x_includes = no
  19678. if test "$ac_x_libraries" = no; then
  19679. # Check for the libraries.
  19680. # See if we find them without any special options.
  19681. # Don't add to $LIBS permanently.
  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. LIBS=$ac_save_LIBS
  19698. # We can link X programs with no special library path.
  19699. ac_x_libraries=
  19700. else $as_nop
  19701. LIBS=$ac_save_LIBS
  19702. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  19703. do
  19704. # Don't even attempt the hair of trying to link an X program!
  19705. for ac_extension in a so sl dylib la dll; do
  19706. if test -r "$ac_dir/libX11.$ac_extension"; then
  19707. ac_x_libraries=$ac_dir
  19708. break 2
  19709. fi
  19710. done
  19711. done
  19712. fi
  19713. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19714. conftest$ac_exeext conftest.$ac_ext
  19715. fi # $ac_x_libraries = no
  19716. fi
  19717. # Record the results.
  19718. case $ac_x_includes,$ac_x_libraries in #(
  19719. no,* | *,no | *\'*) :
  19720. # Didn't find X, or a directory has "'" in its name.
  19721. ac_cv_have_x="have_x=no" ;; #(
  19722. *) :
  19723. # Record where we found X for the cache.
  19724. ac_cv_have_x="have_x=yes\
  19725. ac_x_includes='$ac_x_includes'\
  19726. ac_x_libraries='$ac_x_libraries'" ;;
  19727. esac
  19728. fi
  19729. ;; #(
  19730. *) have_x=yes;;
  19731. esac
  19732. eval "$ac_cv_have_x"
  19733. fi # $with_x != no
  19734. if test "$have_x" != yes; then
  19735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  19736. printf "%s\n" "$have_x" >&6; }
  19737. no_x=yes
  19738. else
  19739. # If each of the values was on the command line, it overrides each guess.
  19740. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  19741. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  19742. # Update the cache value to reflect the command line values.
  19743. ac_cv_have_x="have_x=yes\
  19744. ac_x_includes='$x_includes'\
  19745. ac_x_libraries='$x_libraries'"
  19746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  19747. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  19748. fi
  19749. if test "$no_x" = yes; then
  19750. # Not all programs may use this symbol, but it does not hurt to define it.
  19751. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  19752. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  19753. else
  19754. if test -n "$x_includes"; then
  19755. X_CFLAGS="$X_CFLAGS -I$x_includes"
  19756. fi
  19757. # It would also be nice to do this for all -L options, not just this one.
  19758. if test -n "$x_libraries"; then
  19759. X_LIBS="$X_LIBS -L$x_libraries"
  19760. # For Solaris; some versions of Sun CC require a space after -R and
  19761. # others require no space. Words are not sufficient . . . .
  19762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  19763. printf %s "checking whether -R must be followed by a space... " >&6; }
  19764. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  19765. ac_xsave_c_werror_flag=$ac_c_werror_flag
  19766. ac_c_werror_flag=yes
  19767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19768. /* end confdefs.h. */
  19769. int
  19770. main (void)
  19771. {
  19772. ;
  19773. return 0;
  19774. }
  19775. _ACEOF
  19776. if ac_fn_c_try_link "$LINENO"
  19777. then :
  19778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19779. printf "%s\n" "no" >&6; }
  19780. X_LIBS="$X_LIBS -R$x_libraries"
  19781. else $as_nop
  19782. LIBS="$ac_xsave_LIBS -R $x_libraries"
  19783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19784. /* end confdefs.h. */
  19785. int
  19786. main (void)
  19787. {
  19788. ;
  19789. return 0;
  19790. }
  19791. _ACEOF
  19792. if ac_fn_c_try_link "$LINENO"
  19793. then :
  19794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19795. printf "%s\n" "yes" >&6; }
  19796. X_LIBS="$X_LIBS -R $x_libraries"
  19797. else $as_nop
  19798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  19799. printf "%s\n" "neither works" >&6; }
  19800. fi
  19801. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19802. conftest$ac_exeext conftest.$ac_ext
  19803. fi
  19804. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19805. conftest$ac_exeext conftest.$ac_ext
  19806. ac_c_werror_flag=$ac_xsave_c_werror_flag
  19807. LIBS=$ac_xsave_LIBS
  19808. fi
  19809. # Check for system-dependent libraries X programs must link with.
  19810. # Do this before checking for the system-independent R6 libraries
  19811. # (-lICE), since we may need -lsocket or whatever for X linking.
  19812. if test "$ISC" = yes; then
  19813. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  19814. else
  19815. # Martyn Johnson says this is needed for Ultrix, if the X
  19816. # libraries were built with DECnet support. And Karl Berry says
  19817. # the Alpha needs dnet_stub (dnet does not exist).
  19818. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  19819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19820. /* end confdefs.h. */
  19821. /* Override any GCC internal prototype to avoid an error.
  19822. Use char because int might match the return type of a GCC
  19823. builtin and then its argument prototype would still apply. */
  19824. char XOpenDisplay ();
  19825. int
  19826. main (void)
  19827. {
  19828. return XOpenDisplay ();
  19829. ;
  19830. return 0;
  19831. }
  19832. _ACEOF
  19833. if ac_fn_c_try_link "$LINENO"
  19834. then :
  19835. else $as_nop
  19836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  19837. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  19838. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  19839. then :
  19840. printf %s "(cached) " >&6
  19841. else $as_nop
  19842. ac_check_lib_save_LIBS=$LIBS
  19843. LIBS="-ldnet $LIBS"
  19844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19845. /* end confdefs.h. */
  19846. /* Override any GCC internal prototype to avoid an error.
  19847. Use char because int might match the return type of a GCC
  19848. builtin and then its argument prototype would still apply. */
  19849. char dnet_ntoa ();
  19850. int
  19851. main (void)
  19852. {
  19853. return dnet_ntoa ();
  19854. ;
  19855. return 0;
  19856. }
  19857. _ACEOF
  19858. if ac_fn_c_try_link "$LINENO"
  19859. then :
  19860. ac_cv_lib_dnet_dnet_ntoa=yes
  19861. else $as_nop
  19862. ac_cv_lib_dnet_dnet_ntoa=no
  19863. fi
  19864. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19865. conftest$ac_exeext conftest.$ac_ext
  19866. LIBS=$ac_check_lib_save_LIBS
  19867. fi
  19868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  19869. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  19870. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  19871. then :
  19872. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  19873. fi
  19874. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  19875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  19876. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  19877. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  19878. then :
  19879. printf %s "(cached) " >&6
  19880. else $as_nop
  19881. ac_check_lib_save_LIBS=$LIBS
  19882. LIBS="-ldnet_stub $LIBS"
  19883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19884. /* end confdefs.h. */
  19885. /* Override any GCC internal prototype to avoid an error.
  19886. Use char because int might match the return type of a GCC
  19887. builtin and then its argument prototype would still apply. */
  19888. char dnet_ntoa ();
  19889. int
  19890. main (void)
  19891. {
  19892. return dnet_ntoa ();
  19893. ;
  19894. return 0;
  19895. }
  19896. _ACEOF
  19897. if ac_fn_c_try_link "$LINENO"
  19898. then :
  19899. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  19900. else $as_nop
  19901. ac_cv_lib_dnet_stub_dnet_ntoa=no
  19902. fi
  19903. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19904. conftest$ac_exeext conftest.$ac_ext
  19905. LIBS=$ac_check_lib_save_LIBS
  19906. fi
  19907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  19908. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  19909. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  19910. then :
  19911. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  19912. fi
  19913. fi
  19914. fi
  19915. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19916. conftest$ac_exeext conftest.$ac_ext
  19917. LIBS="$ac_xsave_LIBS"
  19918. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  19919. # to get the SysV transport functions.
  19920. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  19921. # needs -lnsl.
  19922. # The nsl library prevents programs from opening the X display
  19923. # on Irix 5.2, according to T.E. Dickey.
  19924. # The functions gethostbyname, getservbyname, and inet_addr are
  19925. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  19926. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  19927. if test "x$ac_cv_func_gethostbyname" = xyes
  19928. then :
  19929. fi
  19930. if test $ac_cv_func_gethostbyname = no; then
  19931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  19932. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  19933. if test ${ac_cv_lib_nsl_gethostbyname+y}
  19934. then :
  19935. printf %s "(cached) " >&6
  19936. else $as_nop
  19937. ac_check_lib_save_LIBS=$LIBS
  19938. LIBS="-lnsl $LIBS"
  19939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19940. /* end confdefs.h. */
  19941. /* Override any GCC internal prototype to avoid an error.
  19942. Use char because int might match the return type of a GCC
  19943. builtin and then its argument prototype would still apply. */
  19944. char gethostbyname ();
  19945. int
  19946. main (void)
  19947. {
  19948. return gethostbyname ();
  19949. ;
  19950. return 0;
  19951. }
  19952. _ACEOF
  19953. if ac_fn_c_try_link "$LINENO"
  19954. then :
  19955. ac_cv_lib_nsl_gethostbyname=yes
  19956. else $as_nop
  19957. ac_cv_lib_nsl_gethostbyname=no
  19958. fi
  19959. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19960. conftest$ac_exeext conftest.$ac_ext
  19961. LIBS=$ac_check_lib_save_LIBS
  19962. fi
  19963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  19964. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  19965. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  19966. then :
  19967. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  19968. fi
  19969. if test $ac_cv_lib_nsl_gethostbyname = no; then
  19970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  19971. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  19972. if test ${ac_cv_lib_bsd_gethostbyname+y}
  19973. then :
  19974. printf %s "(cached) " >&6
  19975. else $as_nop
  19976. ac_check_lib_save_LIBS=$LIBS
  19977. LIBS="-lbsd $LIBS"
  19978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19979. /* end confdefs.h. */
  19980. /* Override any GCC internal prototype to avoid an error.
  19981. Use char because int might match the return type of a GCC
  19982. builtin and then its argument prototype would still apply. */
  19983. char gethostbyname ();
  19984. int
  19985. main (void)
  19986. {
  19987. return gethostbyname ();
  19988. ;
  19989. return 0;
  19990. }
  19991. _ACEOF
  19992. if ac_fn_c_try_link "$LINENO"
  19993. then :
  19994. ac_cv_lib_bsd_gethostbyname=yes
  19995. else $as_nop
  19996. ac_cv_lib_bsd_gethostbyname=no
  19997. fi
  19998. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19999. conftest$ac_exeext conftest.$ac_ext
  20000. LIBS=$ac_check_lib_save_LIBS
  20001. fi
  20002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20003. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20004. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20005. then :
  20006. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20007. fi
  20008. fi
  20009. fi
  20010. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20011. # socket/setsockopt and other routines are undefined under SCO ODT
  20012. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20013. # on later versions), says Simon Leinen: it contains gethostby*
  20014. # variants that don't use the name server (or something). -lsocket
  20015. # must be given before -lnsl if both are needed. We assume that
  20016. # if connect needs -lnsl, so does gethostbyname.
  20017. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20018. if test "x$ac_cv_func_connect" = xyes
  20019. then :
  20020. fi
  20021. if test $ac_cv_func_connect = no; then
  20022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20023. printf %s "checking for connect in -lsocket... " >&6; }
  20024. if test ${ac_cv_lib_socket_connect+y}
  20025. then :
  20026. printf %s "(cached) " >&6
  20027. else $as_nop
  20028. ac_check_lib_save_LIBS=$LIBS
  20029. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20031. /* end confdefs.h. */
  20032. /* Override any GCC internal prototype to avoid an error.
  20033. Use char because int might match the return type of a GCC
  20034. builtin and then its argument prototype would still apply. */
  20035. char connect ();
  20036. int
  20037. main (void)
  20038. {
  20039. return connect ();
  20040. ;
  20041. return 0;
  20042. }
  20043. _ACEOF
  20044. if ac_fn_c_try_link "$LINENO"
  20045. then :
  20046. ac_cv_lib_socket_connect=yes
  20047. else $as_nop
  20048. ac_cv_lib_socket_connect=no
  20049. fi
  20050. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20051. conftest$ac_exeext conftest.$ac_ext
  20052. LIBS=$ac_check_lib_save_LIBS
  20053. fi
  20054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20055. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20056. if test "x$ac_cv_lib_socket_connect" = xyes
  20057. then :
  20058. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20059. fi
  20060. fi
  20061. # Guillermo Gomez says -lposix is necessary on A/UX.
  20062. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20063. if test "x$ac_cv_func_remove" = xyes
  20064. then :
  20065. fi
  20066. if test $ac_cv_func_remove = no; then
  20067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20068. printf %s "checking for remove in -lposix... " >&6; }
  20069. if test ${ac_cv_lib_posix_remove+y}
  20070. then :
  20071. printf %s "(cached) " >&6
  20072. else $as_nop
  20073. ac_check_lib_save_LIBS=$LIBS
  20074. LIBS="-lposix $LIBS"
  20075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20076. /* end confdefs.h. */
  20077. /* Override any GCC internal prototype to avoid an error.
  20078. Use char because int might match the return type of a GCC
  20079. builtin and then its argument prototype would still apply. */
  20080. char remove ();
  20081. int
  20082. main (void)
  20083. {
  20084. return remove ();
  20085. ;
  20086. return 0;
  20087. }
  20088. _ACEOF
  20089. if ac_fn_c_try_link "$LINENO"
  20090. then :
  20091. ac_cv_lib_posix_remove=yes
  20092. else $as_nop
  20093. ac_cv_lib_posix_remove=no
  20094. fi
  20095. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20096. conftest$ac_exeext conftest.$ac_ext
  20097. LIBS=$ac_check_lib_save_LIBS
  20098. fi
  20099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20100. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20101. if test "x$ac_cv_lib_posix_remove" = xyes
  20102. then :
  20103. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20104. fi
  20105. fi
  20106. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20107. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20108. if test "x$ac_cv_func_shmat" = xyes
  20109. then :
  20110. fi
  20111. if test $ac_cv_func_shmat = no; then
  20112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20113. printf %s "checking for shmat in -lipc... " >&6; }
  20114. if test ${ac_cv_lib_ipc_shmat+y}
  20115. then :
  20116. printf %s "(cached) " >&6
  20117. else $as_nop
  20118. ac_check_lib_save_LIBS=$LIBS
  20119. LIBS="-lipc $LIBS"
  20120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20121. /* end confdefs.h. */
  20122. /* Override any GCC internal prototype to avoid an error.
  20123. Use char because int might match the return type of a GCC
  20124. builtin and then its argument prototype would still apply. */
  20125. char shmat ();
  20126. int
  20127. main (void)
  20128. {
  20129. return shmat ();
  20130. ;
  20131. return 0;
  20132. }
  20133. _ACEOF
  20134. if ac_fn_c_try_link "$LINENO"
  20135. then :
  20136. ac_cv_lib_ipc_shmat=yes
  20137. else $as_nop
  20138. ac_cv_lib_ipc_shmat=no
  20139. fi
  20140. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20141. conftest$ac_exeext conftest.$ac_ext
  20142. LIBS=$ac_check_lib_save_LIBS
  20143. fi
  20144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20145. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20146. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20147. then :
  20148. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20149. fi
  20150. fi
  20151. fi
  20152. # Check for libraries that X11R6 Xt/Xaw programs need.
  20153. ac_save_LDFLAGS=$LDFLAGS
  20154. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20155. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20156. # check for ICE first), but we must link in the order -lSM -lICE or
  20157. # we get undefined symbols. So assume we have SM if we have ICE.
  20158. # These have to be linked with before -lX11, unlike the other
  20159. # libraries we check for below, so use a different variable.
  20160. # John Interrante, Karl Berry
  20161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20162. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20163. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20164. then :
  20165. printf %s "(cached) " >&6
  20166. else $as_nop
  20167. ac_check_lib_save_LIBS=$LIBS
  20168. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20170. /* end confdefs.h. */
  20171. /* Override any GCC internal prototype to avoid an error.
  20172. Use char because int might match the return type of a GCC
  20173. builtin and then its argument prototype would still apply. */
  20174. char IceConnectionNumber ();
  20175. int
  20176. main (void)
  20177. {
  20178. return IceConnectionNumber ();
  20179. ;
  20180. return 0;
  20181. }
  20182. _ACEOF
  20183. if ac_fn_c_try_link "$LINENO"
  20184. then :
  20185. ac_cv_lib_ICE_IceConnectionNumber=yes
  20186. else $as_nop
  20187. ac_cv_lib_ICE_IceConnectionNumber=no
  20188. fi
  20189. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20190. conftest$ac_exeext conftest.$ac_ext
  20191. LIBS=$ac_check_lib_save_LIBS
  20192. fi
  20193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20194. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20195. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  20196. then :
  20197. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  20198. fi
  20199. LDFLAGS=$ac_save_LDFLAGS
  20200. fi
  20201. if test x$have_x = xyes; then
  20202. # Check whether --enable-x11-shared was given.
  20203. if test ${enable_x11_shared+y}
  20204. then :
  20205. enableval=$enable_x11_shared;
  20206. else $as_nop
  20207. enable_x11_shared=maybe
  20208. fi
  20209. case "$host" in
  20210. *-*-darwin*)
  20211. # Apple now puts this in /opt/X11
  20212. x11_lib='/opt/X11/lib/libX11.6.dylib'
  20213. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  20214. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  20215. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  20216. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  20217. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  20218. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  20219. xss_lib='/opt/X11/lib/libXss.1.dylib'
  20220. ;;
  20221. *-*-openbsd*)
  20222. x11_lib='libX11.so'
  20223. x11ext_lib='libXext.so'
  20224. xcursor_lib='libXcursor.so'
  20225. xinput_lib='libXi.so'
  20226. xfixes_lib='libXfixes.so'
  20227. xrandr_lib='libXrandr.so'
  20228. xrender_lib='libXrender.so'
  20229. xss_lib='libXss.so'
  20230. ;;
  20231. *)
  20232. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20233. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20234. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20235. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20236. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20237. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20238. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20239. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20240. ;;
  20241. esac
  20242. if test x$ac_cv_func_shmat != xyes; then
  20243. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  20244. fi
  20245. CFLAGS="$CFLAGS $X_CFLAGS"
  20246. LDFLAGS="$LDFLAGS $X_LIBS"
  20247. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  20248. #include <X11/Xproto.h>
  20249. "
  20250. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  20251. then :
  20252. have_xext_h_hdr=yes
  20253. else $as_nop
  20254. have_xext_h_hdr=no
  20255. fi
  20256. if test x$have_xext_h_hdr != xyes; then
  20257. as_fn_error $? "
  20258. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  20259. " "$LINENO" 5
  20260. fi
  20261. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  20262. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  20263. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  20264. # Needed so SDL applications can include SDL_syswm.h
  20265. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  20266. if test x$enable_x11_shared = xmaybe; then
  20267. enable_x11_shared=yes
  20268. fi
  20269. if test x$have_loadso != xyes && \
  20270. test x$enable_x11_shared = xyes; then
  20271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  20272. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  20273. enable_x11_shared=no
  20274. fi
  20275. if test x$have_loadso = xyes && \
  20276. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  20277. echo "-- dynamic libX11 -> $x11_lib"
  20278. echo "-- dynamic libX11ext -> $x11ext_lib"
  20279. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  20280. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  20281. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  20282. else
  20283. enable_x11_shared=no
  20284. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  20285. SUMMARY_video="${SUMMARY_video} x11"
  20286. fi
  20287. have_video=yes
  20288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  20289. printf %s "checking for XGenericEvent... " >&6; }
  20290. have_XGenericEvent=no
  20291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20292. /* end confdefs.h. */
  20293. #include <X11/Xlib.h>
  20294. int
  20295. main (void)
  20296. {
  20297. Display *display;
  20298. XEvent event;
  20299. XGenericEventCookie *cookie = &event.xcookie;
  20300. XNextEvent(display, &event);
  20301. XGetEventData(display, cookie);
  20302. XFreeEventData(display, cookie);
  20303. ;
  20304. return 0;
  20305. }
  20306. _ACEOF
  20307. if ac_fn_c_try_compile "$LINENO"
  20308. then :
  20309. have_XGenericEvent=yes
  20310. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  20311. fi
  20312. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  20314. printf "%s\n" "$have_XGenericEvent" >&6; }
  20315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  20316. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  20317. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  20318. then :
  20319. printf %s "(cached) " >&6
  20320. else $as_nop
  20321. ac_check_lib_save_LIBS=$LIBS
  20322. LIBS="-lX11 $LIBS"
  20323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20324. /* end confdefs.h. */
  20325. /* Override any GCC internal prototype to avoid an error.
  20326. Use char because int might match the return type of a GCC
  20327. builtin and then its argument prototype would still apply. */
  20328. char XkbKeycodeToKeysym ();
  20329. int
  20330. main (void)
  20331. {
  20332. return XkbKeycodeToKeysym ();
  20333. ;
  20334. return 0;
  20335. }
  20336. _ACEOF
  20337. if ac_fn_c_try_link "$LINENO"
  20338. then :
  20339. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  20340. else $as_nop
  20341. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  20342. fi
  20343. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20344. conftest$ac_exeext conftest.$ac_ext
  20345. LIBS=$ac_check_lib_save_LIBS
  20346. fi
  20347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  20348. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  20349. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  20350. then :
  20351. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  20352. fi
  20353. # Check whether --enable-video-x11-xcursor was given.
  20354. if test ${enable_video_x11_xcursor+y}
  20355. then :
  20356. enableval=$enable_video_x11_xcursor;
  20357. else $as_nop
  20358. enable_video_x11_xcursor=yes
  20359. fi
  20360. if test x$enable_video_x11_xcursor = xyes; then
  20361. definitely_enable_video_x11_xcursor=no
  20362. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  20363. "
  20364. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  20365. then :
  20366. have_xcursor_h_hdr=yes
  20367. else $as_nop
  20368. have_xcursor_h_hdr=no
  20369. fi
  20370. if test x$have_xcursor_h_hdr = xyes; then
  20371. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  20372. echo "-- dynamic libXcursor -> $xcursor_lib"
  20373. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  20374. definitely_enable_video_x11_xcursor=yes
  20375. else
  20376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  20377. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  20378. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  20379. then :
  20380. printf %s "(cached) " >&6
  20381. else $as_nop
  20382. ac_check_lib_save_LIBS=$LIBS
  20383. LIBS="-lXcursor $LIBS"
  20384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20385. /* end confdefs.h. */
  20386. /* Override any GCC internal prototype to avoid an error.
  20387. Use char because int might match the return type of a GCC
  20388. builtin and then its argument prototype would still apply. */
  20389. char XcursorImageCreate ();
  20390. int
  20391. main (void)
  20392. {
  20393. return XcursorImageCreate ();
  20394. ;
  20395. return 0;
  20396. }
  20397. _ACEOF
  20398. if ac_fn_c_try_link "$LINENO"
  20399. then :
  20400. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  20401. else $as_nop
  20402. ac_cv_lib_Xcursor_XcursorImageCreate=no
  20403. fi
  20404. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20405. conftest$ac_exeext conftest.$ac_ext
  20406. LIBS=$ac_check_lib_save_LIBS
  20407. fi
  20408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  20409. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  20410. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  20411. then :
  20412. have_xcursor_lib=yes
  20413. fi
  20414. if test x$have_xcursor_lib = xyes ; then
  20415. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  20416. definitely_enable_video_x11_xcursor=yes
  20417. fi
  20418. fi
  20419. fi
  20420. fi
  20421. if test x$definitely_enable_video_x11_xcursor = xyes; then
  20422. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  20423. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  20424. fi
  20425. # Check whether --enable-video-x11-xdbe was given.
  20426. if test ${enable_video_x11_xdbe+y}
  20427. then :
  20428. enableval=$enable_video_x11_xdbe;
  20429. else $as_nop
  20430. enable_video_x11_xdbe=yes
  20431. fi
  20432. if test x$enable_video_x11_xdbe = xyes; then
  20433. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  20434. "
  20435. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  20436. then :
  20437. have_dbe_h_hdr=yes
  20438. else $as_nop
  20439. have_dbe_h_hdr=no
  20440. fi
  20441. if test x$have_dbe_h_hdr = xyes; then
  20442. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  20443. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  20444. fi
  20445. fi
  20446. # Check whether --enable-video-x11-xinput was given.
  20447. if test ${enable_video_x11_xinput+y}
  20448. then :
  20449. enableval=$enable_video_x11_xinput;
  20450. else $as_nop
  20451. enable_video_x11_xinput=yes
  20452. fi
  20453. if test x$enable_video_x11_xinput = xyes; then
  20454. definitely_enable_video_x11_xinput=no
  20455. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  20456. "
  20457. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  20458. then :
  20459. have_xinput_h_hdr=yes
  20460. else $as_nop
  20461. have_xinput_h_hdr=no
  20462. fi
  20463. if test x$have_xinput_h_hdr = xyes; then
  20464. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  20465. echo "-- dynamic libXi -> $xinput_lib"
  20466. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  20467. definitely_enable_video_x11_xinput=yes
  20468. else
  20469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  20470. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  20471. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  20472. then :
  20473. printf %s "(cached) " >&6
  20474. else $as_nop
  20475. ac_check_lib_save_LIBS=$LIBS
  20476. LIBS="-lXi $LIBS"
  20477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20478. /* end confdefs.h. */
  20479. /* Override any GCC internal prototype to avoid an error.
  20480. Use char because int might match the return type of a GCC
  20481. builtin and then its argument prototype would still apply. */
  20482. char XOpenDevice ();
  20483. int
  20484. main (void)
  20485. {
  20486. return XOpenDevice ();
  20487. ;
  20488. return 0;
  20489. }
  20490. _ACEOF
  20491. if ac_fn_c_try_link "$LINENO"
  20492. then :
  20493. ac_cv_lib_Xi_XOpenDevice=yes
  20494. else $as_nop
  20495. ac_cv_lib_Xi_XOpenDevice=no
  20496. fi
  20497. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20498. conftest$ac_exeext conftest.$ac_ext
  20499. LIBS=$ac_check_lib_save_LIBS
  20500. fi
  20501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  20502. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  20503. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  20504. then :
  20505. have_xinput_lib=yes
  20506. fi
  20507. if test x$have_xinput_lib = xyes ; then
  20508. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  20509. definitely_enable_video_x11_xinput=yes
  20510. fi
  20511. fi
  20512. fi
  20513. fi
  20514. if test x$definitely_enable_video_x11_xinput = xyes; then
  20515. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  20516. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  20517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  20518. printf %s "checking for xinput2 multitouch... " >&6; }
  20519. have_xinput2_multitouch=no
  20520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20521. /* end confdefs.h. */
  20522. #include <X11/Xlib.h>
  20523. #include <X11/Xproto.h>
  20524. #include <X11/extensions/XInput2.h>
  20525. int
  20526. main (void)
  20527. {
  20528. int event_type = XI_TouchBegin;
  20529. XITouchClassInfo *t;
  20530. ;
  20531. return 0;
  20532. }
  20533. _ACEOF
  20534. if ac_fn_c_try_compile "$LINENO"
  20535. then :
  20536. have_xinput2_multitouch=yes
  20537. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  20538. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  20539. fi
  20540. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  20542. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  20543. fi
  20544. # Check whether --enable-video-x11-xfixes was given.
  20545. if test ${enable_video_x11_xfixes+y}
  20546. then :
  20547. enableval=$enable_video_x11_xfixes;
  20548. else $as_nop
  20549. enable_video_x11_xfixes=yes
  20550. fi
  20551. if test x$enable_video_x11_xfixes = xyes; then
  20552. definitely_enable_video_x11_xfixes=no
  20553. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  20554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  20555. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  20556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20557. /* end confdefs.h. */
  20558. #include <X11/Xlib.h>
  20559. #include <X11/Xproto.h>
  20560. #include <X11/extensions/XInput2.h>
  20561. #include <X11/extensions/Xfixes.h>
  20562. int
  20563. main (void)
  20564. {
  20565. BarrierEventID b;
  20566. ;
  20567. return 0;
  20568. }
  20569. _ACEOF
  20570. if ac_fn_c_try_compile "$LINENO"
  20571. then :
  20572. have_xfixes_h_hdr=yes
  20573. else $as_nop
  20574. have_xfixes_h_hdr=no
  20575. fi
  20576. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  20578. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  20579. if test x$have_xfixes_h_hdr = xyes; then
  20580. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  20581. echo "-- dynamic libXfixes -> $xfixes_lib"
  20582. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  20583. definitely_enable_video_x11_xfixes=yes
  20584. else
  20585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  20586. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  20587. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  20588. then :
  20589. printf %s "(cached) " >&6
  20590. else $as_nop
  20591. ac_check_lib_save_LIBS=$LIBS
  20592. LIBS="-lXfixes $LIBS"
  20593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20594. /* end confdefs.h. */
  20595. /* Override any GCC internal prototype to avoid an error.
  20596. Use char because int might match the return type of a GCC
  20597. builtin and then its argument prototype would still apply. */
  20598. char XFixesCreatePointerBarrier ();
  20599. int
  20600. main (void)
  20601. {
  20602. return XFixesCreatePointerBarrier ();
  20603. ;
  20604. return 0;
  20605. }
  20606. _ACEOF
  20607. if ac_fn_c_try_link "$LINENO"
  20608. then :
  20609. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  20610. else $as_nop
  20611. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  20612. fi
  20613. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20614. conftest$ac_exeext conftest.$ac_ext
  20615. LIBS=$ac_check_lib_save_LIBS
  20616. fi
  20617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  20618. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  20619. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  20620. then :
  20621. have_xfixes_lib=yes
  20622. fi
  20623. if test x$have_xfixes_lib = xyes ; then
  20624. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  20625. definitely_enable_video_x11_xfixes=yes
  20626. fi
  20627. fi
  20628. fi
  20629. fi
  20630. if test x$definitely_enable_video_x11_xfixes = xyes; then
  20631. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  20632. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  20633. fi
  20634. # Check whether --enable-video-x11-xrandr was given.
  20635. if test ${enable_video_x11_xrandr+y}
  20636. then :
  20637. enableval=$enable_video_x11_xrandr;
  20638. else $as_nop
  20639. enable_video_x11_xrandr=yes
  20640. fi
  20641. if test x$enable_video_x11_xrandr = xyes; then
  20642. definitely_enable_video_x11_xrandr=no
  20643. have_xrandr_h_hdr=no
  20644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20645. /* end confdefs.h. */
  20646. #include <X11/Xlib.h>
  20647. #include <X11/extensions/Xrandr.h>
  20648. int
  20649. main (void)
  20650. {
  20651. XRRScreenResources *res = NULL;
  20652. ;
  20653. return 0;
  20654. }
  20655. _ACEOF
  20656. if ac_fn_c_try_compile "$LINENO"
  20657. then :
  20658. have_xrandr_h_hdr=yes
  20659. fi
  20660. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20661. if test x$have_xrandr_h_hdr = xyes; then
  20662. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  20663. echo "-- dynamic libXrandr -> $xrandr_lib"
  20664. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  20665. definitely_enable_video_x11_xrandr=yes
  20666. else
  20667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  20668. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  20669. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  20670. then :
  20671. printf %s "(cached) " >&6
  20672. else $as_nop
  20673. ac_check_lib_save_LIBS=$LIBS
  20674. LIBS="-lXrandr $LIBS"
  20675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20676. /* end confdefs.h. */
  20677. /* Override any GCC internal prototype to avoid an error.
  20678. Use char because int might match the return type of a GCC
  20679. builtin and then its argument prototype would still apply. */
  20680. char XRRQueryExtension ();
  20681. int
  20682. main (void)
  20683. {
  20684. return XRRQueryExtension ();
  20685. ;
  20686. return 0;
  20687. }
  20688. _ACEOF
  20689. if ac_fn_c_try_link "$LINENO"
  20690. then :
  20691. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  20692. else $as_nop
  20693. ac_cv_lib_Xrandr_XRRQueryExtension=no
  20694. fi
  20695. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20696. conftest$ac_exeext conftest.$ac_ext
  20697. LIBS=$ac_check_lib_save_LIBS
  20698. fi
  20699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  20700. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  20701. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  20702. then :
  20703. have_xrandr_lib=yes
  20704. fi
  20705. if test x$have_xrandr_lib = xyes ; then
  20706. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  20707. definitely_enable_video_x11_xrandr=yes
  20708. fi
  20709. fi
  20710. fi
  20711. fi
  20712. if test x$definitely_enable_video_x11_xrandr = xyes; then
  20713. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  20714. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  20715. fi
  20716. # Check whether --enable-video-x11-scrnsaver was given.
  20717. if test ${enable_video_x11_scrnsaver+y}
  20718. then :
  20719. enableval=$enable_video_x11_scrnsaver;
  20720. else $as_nop
  20721. enable_video_x11_scrnsaver=yes
  20722. fi
  20723. if test x$enable_video_x11_scrnsaver = xyes; then
  20724. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  20725. "
  20726. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  20727. then :
  20728. have_scrnsaver_h_hdr=yes
  20729. else $as_nop
  20730. have_scrnsaver_h_hdr=no
  20731. fi
  20732. if test x$have_scrnsaver_h_hdr = xyes; then
  20733. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  20734. echo "-- dynamic libXss -> $xss_lib"
  20735. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  20736. definitely_enable_video_x11_scrnsaver=yes
  20737. else
  20738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  20739. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  20740. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  20741. then :
  20742. printf %s "(cached) " >&6
  20743. else $as_nop
  20744. ac_check_lib_save_LIBS=$LIBS
  20745. LIBS="-lXss $LIBS"
  20746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20747. /* end confdefs.h. */
  20748. /* Override any GCC internal prototype to avoid an error.
  20749. Use char because int might match the return type of a GCC
  20750. builtin and then its argument prototype would still apply. */
  20751. char XScreenSaverSuspend ();
  20752. int
  20753. main (void)
  20754. {
  20755. return XScreenSaverSuspend ();
  20756. ;
  20757. return 0;
  20758. }
  20759. _ACEOF
  20760. if ac_fn_c_try_link "$LINENO"
  20761. then :
  20762. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  20763. else $as_nop
  20764. ac_cv_lib_Xss_XScreenSaverSuspend=no
  20765. fi
  20766. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20767. conftest$ac_exeext conftest.$ac_ext
  20768. LIBS=$ac_check_lib_save_LIBS
  20769. fi
  20770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  20771. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  20772. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  20773. then :
  20774. have_xss_lib=yes
  20775. fi
  20776. if test x$have_xss_lib = xyes ; then
  20777. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  20778. definitely_enable_video_x11_scrnsaver=yes
  20779. fi
  20780. fi
  20781. fi
  20782. fi
  20783. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  20784. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  20785. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  20786. fi
  20787. # Check whether --enable-video-x11-xshape was given.
  20788. if test ${enable_video_x11_xshape+y}
  20789. then :
  20790. enableval=$enable_video_x11_xshape;
  20791. else $as_nop
  20792. enable_video_x11_xshape=yes
  20793. fi
  20794. if test x$enable_video_x11_xshape = xyes; then
  20795. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  20796. "
  20797. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  20798. then :
  20799. have_shape_h_hdr=yes
  20800. else $as_nop
  20801. have_shape_h_hdr=no
  20802. fi
  20803. if test x$have_shape_h_hdr = xyes; then
  20804. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  20805. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  20806. fi
  20807. fi
  20808. fi
  20809. fi
  20810. if test x$have_x != xyes; then
  20811. # Prevent Mesa from including X11 headers
  20812. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  20813. fi
  20814. }
  20815. CheckVivanteVideo()
  20816. {
  20817. # Check whether --enable-video-vivante was given.
  20818. if test ${enable_video_vivante+y}
  20819. then :
  20820. enableval=$enable_video_vivante;
  20821. else $as_nop
  20822. enable_video_vivante=yes
  20823. fi
  20824. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  20825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  20826. printf %s "checking for Vivante VDK API... " >&6; }
  20827. have_vivante_vdk=no
  20828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20829. /* end confdefs.h. */
  20830. #define LINUX
  20831. #define EGL_API_FB
  20832. #include <gc_vdk.h>
  20833. int
  20834. main (void)
  20835. {
  20836. ;
  20837. return 0;
  20838. }
  20839. _ACEOF
  20840. if ac_fn_c_try_compile "$LINENO"
  20841. then :
  20842. have_vivante_vdk=yes
  20843. fi
  20844. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  20846. printf "%s\n" "$have_vivante_vdk" >&6; }
  20847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  20848. printf %s "checking for Vivante FB API... " >&6; }
  20849. have_vivante_egl=no
  20850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20851. /* end confdefs.h. */
  20852. #define LINUX
  20853. #define EGL_API_FB
  20854. #include <EGL/eglvivante.h>
  20855. int
  20856. main (void)
  20857. {
  20858. ;
  20859. return 0;
  20860. }
  20861. _ACEOF
  20862. if ac_fn_c_try_compile "$LINENO"
  20863. then :
  20864. have_vivante_egl=yes
  20865. fi
  20866. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  20868. printf "%s\n" "$have_vivante_egl" >&6; }
  20869. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  20870. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  20871. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  20872. if test x$have_vivante_vdk = xyes; then
  20873. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  20874. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  20875. fi
  20876. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  20877. SUMMARY_video="${SUMMARY_video} vivante"
  20878. have_video=yes
  20879. fi
  20880. fi
  20881. }
  20882. CheckHaikuVideo()
  20883. {
  20884. if test x$enable_video = xyes; then
  20885. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  20886. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  20887. have_video=yes
  20888. SUMMARY_video="${SUMMARY_video} haiku"
  20889. fi
  20890. }
  20891. CheckCOCOA()
  20892. {
  20893. # Check whether --enable-video-cocoa was given.
  20894. if test ${enable_video_cocoa+y}
  20895. then :
  20896. enableval=$enable_video_cocoa;
  20897. else $as_nop
  20898. enable_video_cocoa=yes
  20899. fi
  20900. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  20901. save_CFLAGS="$CFLAGS"
  20902. CFLAGS="$CFLAGS -x objective-c"
  20903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  20904. printf %s "checking for Cocoa framework... " >&6; }
  20905. have_cocoa=no
  20906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20907. /* end confdefs.h. */
  20908. #import <Cocoa/Cocoa.h>
  20909. int
  20910. main (void)
  20911. {
  20912. ;
  20913. return 0;
  20914. }
  20915. _ACEOF
  20916. if ac_fn_c_try_compile "$LINENO"
  20917. then :
  20918. have_cocoa=yes
  20919. fi
  20920. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  20922. printf "%s\n" "$have_cocoa" >&6; }
  20923. CFLAGS="$save_CFLAGS"
  20924. if test x$have_cocoa = xyes; then
  20925. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  20926. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  20927. SUMMARY_video="${SUMMARY_video} cocoa"
  20928. have_video=yes
  20929. fi
  20930. fi
  20931. }
  20932. CheckMETAL()
  20933. {
  20934. # Check whether --enable-video-metal was given.
  20935. if test ${enable_video_metal+y}
  20936. then :
  20937. enableval=$enable_video_metal;
  20938. else $as_nop
  20939. enable_video_metal=yes
  20940. fi
  20941. # Check whether --enable-render-metal was given.
  20942. if test ${enable_render_metal+y}
  20943. then :
  20944. enableval=$enable_render_metal;
  20945. else $as_nop
  20946. enable_render_metal=yes
  20947. fi
  20948. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  20949. save_CFLAGS="$CFLAGS"
  20950. CFLAGS="$CFLAGS -x objective-c"
  20951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  20952. printf %s "checking for Metal framework... " >&6; }
  20953. have_metal=no
  20954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20955. /* end confdefs.h. */
  20956. #import <Cocoa/Cocoa.h>
  20957. #import <Metal/Metal.h>
  20958. #import <QuartzCore/CAMetalLayer.h>
  20959. #if TARGET_CPU_X86
  20960. #error Metal doesn't work on this configuration
  20961. #endif
  20962. int
  20963. main (void)
  20964. {
  20965. ;
  20966. return 0;
  20967. }
  20968. _ACEOF
  20969. if ac_fn_c_try_compile "$LINENO"
  20970. then :
  20971. have_metal=yes
  20972. fi
  20973. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20974. CFLAGS="$save_CFLAGS"
  20975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  20976. printf "%s\n" "$have_metal" >&6; }
  20977. if test x$have_metal = xyes; then
  20978. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  20979. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  20980. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  20981. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  20982. fi
  20983. SUMMARY_video="${SUMMARY_video} metal"
  20984. else
  20985. enable_video_metal=no
  20986. enable_render_metal=no
  20987. fi
  20988. fi
  20989. }
  20990. CheckKMSDRM()
  20991. {
  20992. # Check whether --enable-video-kmsdrm was given.
  20993. if test ${enable_video_kmsdrm+y}
  20994. then :
  20995. enableval=$enable_video_kmsdrm;
  20996. else $as_nop
  20997. enable_video_kmsdrm=yes
  20998. fi
  20999. if test x$enable_video = xyes && \
  21000. test x$enable_video_kmsdrm = xyes && \
  21001. test x$video_opengl_egl = xyes; then
  21002. video_kmsdrm=no
  21003. pkg_failed=no
  21004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21005. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21006. if test -n "$LIBDRM_CFLAGS"; then
  21007. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21008. elif test -n "$PKG_CONFIG"; then
  21009. if test -n "$PKG_CONFIG" && \
  21010. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21011. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21012. ac_status=$?
  21013. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21014. test $ac_status = 0; }; then
  21015. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21016. test "x$?" != "x0" && pkg_failed=yes
  21017. else
  21018. pkg_failed=yes
  21019. fi
  21020. else
  21021. pkg_failed=untried
  21022. fi
  21023. if test -n "$LIBDRM_LIBS"; then
  21024. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21025. elif test -n "$PKG_CONFIG"; then
  21026. if test -n "$PKG_CONFIG" && \
  21027. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21028. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21029. ac_status=$?
  21030. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21031. test $ac_status = 0; }; then
  21032. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  21033. test "x$?" != "x0" && pkg_failed=yes
  21034. else
  21035. pkg_failed=yes
  21036. fi
  21037. else
  21038. pkg_failed=untried
  21039. fi
  21040. if test $pkg_failed = yes; then
  21041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21042. printf "%s\n" "no" >&6; }
  21043. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21044. _pkg_short_errors_supported=yes
  21045. else
  21046. _pkg_short_errors_supported=no
  21047. fi
  21048. if test $_pkg_short_errors_supported = yes; then
  21049. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21050. else
  21051. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21052. fi
  21053. # Put the nasty error message in config.log where it belongs
  21054. echo "$LIBDRM_PKG_ERRORS" >&5
  21055. libdrm_avail=no
  21056. elif test $pkg_failed = untried; then
  21057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21058. printf "%s\n" "no" >&6; }
  21059. libdrm_avail=no
  21060. else
  21061. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  21062. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  21063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21064. printf "%s\n" "yes" >&6; }
  21065. libdrm_avail=yes
  21066. fi
  21067. pkg_failed=no
  21068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  21069. printf %s "checking for gbm >= 11.1.0... " >&6; }
  21070. if test -n "$LIBGBM_CFLAGS"; then
  21071. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  21072. elif test -n "$PKG_CONFIG"; then
  21073. if test -n "$PKG_CONFIG" && \
  21074. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21075. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21076. ac_status=$?
  21077. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21078. test $ac_status = 0; }; then
  21079. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  21080. test "x$?" != "x0" && pkg_failed=yes
  21081. else
  21082. pkg_failed=yes
  21083. fi
  21084. else
  21085. pkg_failed=untried
  21086. fi
  21087. if test -n "$LIBGBM_LIBS"; then
  21088. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  21089. elif test -n "$PKG_CONFIG"; then
  21090. if test -n "$PKG_CONFIG" && \
  21091. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21092. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21093. ac_status=$?
  21094. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21095. test $ac_status = 0; }; then
  21096. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  21097. test "x$?" != "x0" && pkg_failed=yes
  21098. else
  21099. pkg_failed=yes
  21100. fi
  21101. else
  21102. pkg_failed=untried
  21103. fi
  21104. if test $pkg_failed = yes; then
  21105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21106. printf "%s\n" "no" >&6; }
  21107. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21108. _pkg_short_errors_supported=yes
  21109. else
  21110. _pkg_short_errors_supported=no
  21111. fi
  21112. if test $_pkg_short_errors_supported = yes; then
  21113. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21114. else
  21115. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21116. fi
  21117. # Put the nasty error message in config.log where it belongs
  21118. echo "$LIBGBM_PKG_ERRORS" >&5
  21119. libgbm_avail=no
  21120. elif test $pkg_failed = untried; then
  21121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21122. printf "%s\n" "no" >&6; }
  21123. libgbm_avail=no
  21124. else
  21125. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  21126. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  21127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21128. printf "%s\n" "yes" >&6; }
  21129. libgbm_avail=yes
  21130. fi
  21131. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  21132. video_kmsdrm=yes
  21133. fi
  21134. if test x$video_kmsdrm = xyes; then
  21135. # Check whether --enable-kmsdrm-shared was given.
  21136. if test ${enable_kmsdrm_shared+y}
  21137. then :
  21138. enableval=$enable_kmsdrm_shared;
  21139. else $as_nop
  21140. enable_kmsdrm_shared=yes
  21141. fi
  21142. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  21143. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  21144. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  21145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  21146. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  21147. kmsdrm_shared=no
  21148. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  21149. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  21150. if test x$have_loadso != xyes && \
  21151. test x$enable_kmsdrm_shared = xyes; then
  21152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  21153. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  21154. fi
  21155. if test x$have_loadso = xyes && \
  21156. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  21157. kmsdrm_shared=yes
  21158. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  21159. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  21160. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  21161. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  21162. else
  21163. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  21164. SUMMARY_video="${SUMMARY_video} kmsdrm"
  21165. fi
  21166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  21167. printf "%s\n" "$kmsdrm_shared" >&6; }
  21168. if test x$kmsdrm_shared = xyes; then
  21169. echo "-- dynamic libdrm -> $drm_lib"
  21170. echo "-- dynamic libgbm -> $gbm_lib"
  21171. fi
  21172. have_video=yes
  21173. fi
  21174. fi
  21175. }
  21176. CheckDummyVideo()
  21177. {
  21178. # Check whether --enable-video-dummy was given.
  21179. if test ${enable_video_dummy+y}
  21180. then :
  21181. enableval=$enable_video_dummy;
  21182. else $as_nop
  21183. enable_video_dummy=yes
  21184. fi
  21185. if test x$enable_video_dummy = xyes; then
  21186. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  21187. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  21188. have_video=yes
  21189. SUMMARY_video="${SUMMARY_video} dummy"
  21190. fi
  21191. }
  21192. CheckOffscreenVideo()
  21193. {
  21194. # Check whether --enable-video-offscreen was given.
  21195. if test ${enable_video_offscreen+y}
  21196. then :
  21197. enableval=$enable_video_offscreen;
  21198. else $as_nop
  21199. enable_video_offscreen=yes
  21200. fi
  21201. if test x$enable_video_offscreen = xyes; then
  21202. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  21203. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  21204. have_video=yes
  21205. SUMMARY_video="${SUMMARY_video} offscreen"
  21206. fi
  21207. }
  21208. # Check whether --enable-video-opengl was given.
  21209. if test ${enable_video_opengl+y}
  21210. then :
  21211. enableval=$enable_video_opengl;
  21212. else $as_nop
  21213. enable_video_opengl=yes
  21214. fi
  21215. CheckGLX()
  21216. {
  21217. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  21219. printf %s "checking for GLX support... " >&6; }
  21220. video_opengl_glx=no
  21221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21222. /* end confdefs.h. */
  21223. #include <GL/glx.h>
  21224. int
  21225. main (void)
  21226. {
  21227. ;
  21228. return 0;
  21229. }
  21230. _ACEOF
  21231. if ac_fn_c_try_compile "$LINENO"
  21232. then :
  21233. video_opengl_glx=yes
  21234. fi
  21235. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  21237. printf "%s\n" "$video_opengl_glx" >&6; }
  21238. if test x$video_opengl_glx = xyes; then
  21239. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21240. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  21241. fi
  21242. fi
  21243. }
  21244. # Check whether --enable-video-opengles was given.
  21245. if test ${enable_video_opengles+y}
  21246. then :
  21247. enableval=$enable_video_opengles;
  21248. else $as_nop
  21249. enable_video_opengles=yes
  21250. fi
  21251. # Check whether --enable-video-opengles2 was given.
  21252. if test ${enable_video_opengles2+y}
  21253. then :
  21254. enableval=$enable_video_opengles2;
  21255. else $as_nop
  21256. enable_video_opengles2=yes
  21257. fi
  21258. CheckEGL()
  21259. {
  21260. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21262. printf %s "checking for EGL support... " >&6; }
  21263. video_opengl_egl=no
  21264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21265. /* end confdefs.h. */
  21266. #define LINUX
  21267. #define EGL_API_FB
  21268. #define MESA_EGL_NO_X11_HEADERS
  21269. #define EGL_NO_X11
  21270. #include <EGL/egl.h>
  21271. #include <EGL/eglext.h>
  21272. int
  21273. main (void)
  21274. {
  21275. ;
  21276. return 0;
  21277. }
  21278. _ACEOF
  21279. if ac_fn_c_try_compile "$LINENO"
  21280. then :
  21281. video_opengl_egl=yes
  21282. fi
  21283. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21285. printf "%s\n" "$video_opengl_egl" >&6; }
  21286. if test x$video_opengl_egl = xyes; then
  21287. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21288. fi
  21289. fi
  21290. }
  21291. CheckOpenGL()
  21292. {
  21293. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  21295. printf %s "checking for OpenGL headers... " >&6; }
  21296. video_opengl=no
  21297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21298. /* end confdefs.h. */
  21299. #include <GL/gl.h>
  21300. #include <GL/glext.h>
  21301. int
  21302. main (void)
  21303. {
  21304. ;
  21305. return 0;
  21306. }
  21307. _ACEOF
  21308. if ac_fn_c_try_compile "$LINENO"
  21309. then :
  21310. video_opengl=yes
  21311. fi
  21312. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  21314. printf "%s\n" "$video_opengl" >&6; }
  21315. if test x$video_opengl = xyes; then
  21316. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21317. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21318. SUMMARY_video="${SUMMARY_video} opengl"
  21319. fi
  21320. fi
  21321. }
  21322. CheckOpenGLES()
  21323. {
  21324. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21325. if test x$enable_video_opengles2 = xyes; then
  21326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21327. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21328. video_opengles_v2=no
  21329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21330. /* end confdefs.h. */
  21331. #include <GLES2/gl2.h>
  21332. #include <GLES2/gl2ext.h>
  21333. int
  21334. main (void)
  21335. {
  21336. ;
  21337. return 0;
  21338. }
  21339. _ACEOF
  21340. if ac_fn_c_try_compile "$LINENO"
  21341. then :
  21342. video_opengles_v2=yes
  21343. fi
  21344. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21346. printf "%s\n" "$video_opengles_v2" >&6; }
  21347. if test x$video_opengles_v2 = xyes; then
  21348. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21349. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21350. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21351. fi
  21352. fi
  21353. fi
  21354. }
  21355. CheckWINDOWSGL()
  21356. {
  21357. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21358. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21359. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  21360. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21361. SUMMARY_video="${SUMMARY_video} opengl"
  21362. fi
  21363. }
  21364. CheckWINDOWSGLES()
  21365. {
  21366. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21368. printf %s "checking for EGL support... " >&6; }
  21369. video_opengl_egl=no
  21370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21371. /* end confdefs.h. */
  21372. #include <EGL/egl.h>
  21373. int
  21374. main (void)
  21375. {
  21376. ;
  21377. return 0;
  21378. }
  21379. _ACEOF
  21380. if ac_fn_c_try_compile "$LINENO"
  21381. then :
  21382. video_opengl_egl=yes
  21383. fi
  21384. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21386. printf "%s\n" "$video_opengl_egl" >&6; }
  21387. if test x$video_opengl_egl = xyes; then
  21388. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21389. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21390. SUMMARY_video="${SUMMARY_video} opengl_es1"
  21391. fi
  21392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21393. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21394. video_opengles_v2=no
  21395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21396. /* end confdefs.h. */
  21397. #include <GLES2/gl2.h>
  21398. #include <GLES2/gl2ext.h>
  21399. int
  21400. main (void)
  21401. {
  21402. ;
  21403. return 0;
  21404. }
  21405. _ACEOF
  21406. if ac_fn_c_try_compile "$LINENO"
  21407. then :
  21408. video_opengles_v2=yes
  21409. fi
  21410. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21412. printf "%s\n" "$video_opengles_v2" >&6; }
  21413. if test x$video_opengles_v2 = xyes; then
  21414. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21415. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21416. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21417. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21418. fi
  21419. fi
  21420. }
  21421. CheckHaikuGL()
  21422. {
  21423. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21424. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21425. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  21426. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21427. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  21428. SUMMARY_video="${SUMMARY_video} opengl"
  21429. fi
  21430. }
  21431. CheckMacGL()
  21432. {
  21433. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21434. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21435. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  21436. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21437. SUMMARY_video="${SUMMARY_video} opengl"
  21438. fi
  21439. }
  21440. CheckMacGLES()
  21441. {
  21442. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21443. video_opengl_egl=yes
  21444. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21445. video_opengles_v2=yes
  21446. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21447. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21448. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21449. fi
  21450. }
  21451. CheckEmscriptenGLES()
  21452. {
  21453. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21455. printf %s "checking for EGL support... " >&6; }
  21456. video_opengl_egl=no
  21457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21458. /* end confdefs.h. */
  21459. #include <EGL/egl.h>
  21460. int
  21461. main (void)
  21462. {
  21463. ;
  21464. return 0;
  21465. }
  21466. _ACEOF
  21467. if ac_fn_c_try_compile "$LINENO"
  21468. then :
  21469. video_opengl_egl=yes
  21470. fi
  21471. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21473. printf "%s\n" "$video_opengl_egl" >&6; }
  21474. if test x$video_opengl_egl = xyes; then
  21475. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21476. fi
  21477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21478. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21479. video_opengles_v2=no
  21480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21481. /* end confdefs.h. */
  21482. #include <GLES2/gl2.h>
  21483. #include <GLES2/gl2ext.h>
  21484. int
  21485. main (void)
  21486. {
  21487. ;
  21488. return 0;
  21489. }
  21490. _ACEOF
  21491. if ac_fn_c_try_compile "$LINENO"
  21492. then :
  21493. video_opengles_v2=yes
  21494. fi
  21495. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21497. printf "%s\n" "$video_opengles_v2" >&6; }
  21498. if test x$video_opengles_v2 = xyes; then
  21499. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21500. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21501. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21502. fi
  21503. fi
  21504. }
  21505. # Check whether --enable-video-vulkan was given.
  21506. if test ${enable_video_vulkan+y}
  21507. then :
  21508. enableval=$enable_video_vulkan;
  21509. else $as_nop
  21510. enable_video_vulkan=yes
  21511. fi
  21512. CheckVulkan()
  21513. {
  21514. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  21515. case "$host" in
  21516. *-*-android*)
  21517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21518. /* end confdefs.h. */
  21519. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  21520. #error Vulkan doesn't work on this configuration
  21521. #endif
  21522. int
  21523. main (void)
  21524. {
  21525. ;
  21526. return 0;
  21527. }
  21528. _ACEOF
  21529. if ac_fn_c_try_compile "$LINENO"
  21530. then :
  21531. else $as_nop
  21532. enable_video_vulkan=no
  21533. fi
  21534. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21535. ;;
  21536. *-*-darwin*)
  21537. save_CFLAGS="$CFLAGS"
  21538. CFLAGS="$CFLAGS -x objective-c"
  21539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21540. /* end confdefs.h. */
  21541. #include <Cocoa/Cocoa.h>
  21542. #include <Metal/Metal.h>
  21543. #include <QuartzCore/CAMetalLayer.h>
  21544. #if TARGET_CPU_X86
  21545. #error Vulkan doesn't work on this configuration
  21546. #endif
  21547. int
  21548. main (void)
  21549. {
  21550. ;
  21551. return 0;
  21552. }
  21553. _ACEOF
  21554. if ac_fn_c_try_compile "$LINENO"
  21555. then :
  21556. else $as_nop
  21557. enable_video_vulkan=no
  21558. fi
  21559. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21560. CFLAGS="$save_CFLAGS"
  21561. ;;
  21562. *)
  21563. ;;
  21564. esac
  21565. if test x$enable_video_vulkan = xno; then
  21566. # For reasons I am totally unable to see, I get an undefined macro error if
  21567. # I put this in the AC_TRY_COMPILE.
  21568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  21569. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  21570. fi
  21571. fi
  21572. if test x$have_loadso != xyes; then
  21573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  21574. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  21575. enable_video_vulkan=no
  21576. fi
  21577. if test x$enable_video_vulkan = xyes; then
  21578. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  21579. SUMMARY_video="${SUMMARY_video} vulkan"
  21580. fi
  21581. }
  21582. CheckInputEvents()
  21583. {
  21584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  21585. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  21586. use_input_events=no
  21587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21588. /* end confdefs.h. */
  21589. #include <linux/input.h>
  21590. int
  21591. main (void)
  21592. {
  21593. #ifndef EVIOCGNAME
  21594. #error EVIOCGNAME() ioctl not available
  21595. #endif
  21596. ;
  21597. return 0;
  21598. }
  21599. _ACEOF
  21600. if ac_fn_c_try_compile "$LINENO"
  21601. then :
  21602. use_input_events=yes
  21603. fi
  21604. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  21606. printf "%s\n" "$use_input_events" >&6; }
  21607. if test x$use_input_events = xyes; then
  21608. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  21609. SUMMARY_input="${SUMMARY_input} linuxev"
  21610. fi
  21611. }
  21612. CheckInputKD()
  21613. {
  21614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  21615. printf %s "checking for Linux kd.h... " >&6; }
  21616. use_input_kd=no
  21617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21618. /* end confdefs.h. */
  21619. #include <linux/kd.h>
  21620. #include <linux/keyboard.h>
  21621. #include <sys/ioctl.h>
  21622. int
  21623. main (void)
  21624. {
  21625. struct kbentry kbe;
  21626. kbe.kb_table = KG_CTRL;
  21627. ioctl(0, KDGKBENT, &kbe);
  21628. ;
  21629. return 0;
  21630. }
  21631. _ACEOF
  21632. if ac_fn_c_try_compile "$LINENO"
  21633. then :
  21634. use_input_kd=yes
  21635. fi
  21636. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  21638. printf "%s\n" "$use_input_kd" >&6; }
  21639. if test x$use_input_kd = xyes; then
  21640. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  21641. SUMMARY_input="${SUMMARY_input} linuxkd"
  21642. fi
  21643. }
  21644. CheckInputKBIO()
  21645. {
  21646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  21647. printf %s "checking for FreeBSD kbio.h... " >&6; }
  21648. use_input_kbio=no
  21649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21650. /* end confdefs.h. */
  21651. #include <sys/kbio.h>
  21652. #include <sys/ioctl.h>
  21653. int
  21654. main (void)
  21655. {
  21656. accentmap_t accTable;
  21657. ioctl(0, KDENABIO, 1);
  21658. ;
  21659. return 0;
  21660. }
  21661. _ACEOF
  21662. if ac_fn_c_try_compile "$LINENO"
  21663. then :
  21664. use_input_kbio=yes
  21665. fi
  21666. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  21668. printf "%s\n" "$use_input_kbio" >&6; }
  21669. if test x$use_input_kbio = xyes; then
  21670. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  21671. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  21672. fi
  21673. }
  21674. CheckInputWSCONS()
  21675. {
  21676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  21677. printf %s "checking for OpenBSD wscons... " >&6; }
  21678. use_input_wscons=no
  21679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21680. /* end confdefs.h. */
  21681. #include <sys/time.h>
  21682. #include <dev/wscons/wsconsio.h>
  21683. #include <dev/wscons/wsksymdef.h>
  21684. #include <dev/wscons/wsksymvar.h>
  21685. #include <sys/ioctl.h>
  21686. int
  21687. main (void)
  21688. {
  21689. struct wskbd_map_data data;
  21690. ioctl(0, WSKBDIO_GETMAP, &data);
  21691. ;
  21692. return 0;
  21693. }
  21694. _ACEOF
  21695. if ac_fn_c_try_compile "$LINENO"
  21696. then :
  21697. use_input_wscons=yes
  21698. fi
  21699. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  21701. printf "%s\n" "$use_input_wscons" >&6; }
  21702. if test x$use_input_wscons = xyes; then
  21703. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  21704. SUMMARY_input="${SUMMARY_input} wscons"
  21705. fi
  21706. }
  21707. CheckLibUDev()
  21708. {
  21709. # Check whether --enable-libudev was given.
  21710. if test ${enable_libudev+y}
  21711. then :
  21712. enableval=$enable_libudev;
  21713. else $as_nop
  21714. enable_libudev=yes
  21715. fi
  21716. if test x$enable_libudev = xyes; then
  21717. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  21718. if test "x$ac_cv_header_libudev_h" = xyes
  21719. then :
  21720. have_libudev_h_hdr=yes
  21721. else $as_nop
  21722. have_libudev_h_hdr=no
  21723. fi
  21724. if test x$have_libudev_h_hdr = xyes; then
  21725. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  21726. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21727. if test x$udev_lib != x; then
  21728. echo "-- dynamic udev -> $udev_lib"
  21729. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  21730. fi
  21731. fi
  21732. fi
  21733. }
  21734. CheckDBus()
  21735. {
  21736. # Check whether --enable-dbus was given.
  21737. if test ${enable_dbus+y}
  21738. then :
  21739. enableval=$enable_dbus;
  21740. else $as_nop
  21741. enable_dbus=yes
  21742. fi
  21743. if test x$enable_dbus = xyes; then
  21744. pkg_failed=no
  21745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  21746. printf %s "checking for dbus-1... " >&6; }
  21747. if test -n "$DBUS_CFLAGS"; then
  21748. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  21749. elif test -n "$PKG_CONFIG"; then
  21750. if test -n "$PKG_CONFIG" && \
  21751. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  21752. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  21753. ac_status=$?
  21754. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21755. test $ac_status = 0; }; then
  21756. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  21757. test "x$?" != "x0" && pkg_failed=yes
  21758. else
  21759. pkg_failed=yes
  21760. fi
  21761. else
  21762. pkg_failed=untried
  21763. fi
  21764. if test -n "$DBUS_LIBS"; then
  21765. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  21766. elif test -n "$PKG_CONFIG"; then
  21767. if test -n "$PKG_CONFIG" && \
  21768. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  21769. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  21770. ac_status=$?
  21771. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21772. test $ac_status = 0; }; then
  21773. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  21774. test "x$?" != "x0" && pkg_failed=yes
  21775. else
  21776. pkg_failed=yes
  21777. fi
  21778. else
  21779. pkg_failed=untried
  21780. fi
  21781. if test $pkg_failed = yes; then
  21782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21783. printf "%s\n" "no" >&6; }
  21784. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21785. _pkg_short_errors_supported=yes
  21786. else
  21787. _pkg_short_errors_supported=no
  21788. fi
  21789. if test $_pkg_short_errors_supported = yes; then
  21790. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  21791. else
  21792. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  21793. fi
  21794. # Put the nasty error message in config.log where it belongs
  21795. echo "$DBUS_PKG_ERRORS" >&5
  21796. have_dbus=no
  21797. elif test $pkg_failed = untried; then
  21798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21799. printf "%s\n" "no" >&6; }
  21800. have_dbus=no
  21801. else
  21802. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  21803. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  21804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21805. printf "%s\n" "yes" >&6; }
  21806. have_dbus=yes
  21807. fi
  21808. save_CPPFLAGS="$CPPFLAGS"
  21809. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  21810. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  21811. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  21812. then :
  21813. have_dbus_dbus_h_hdr=yes
  21814. else $as_nop
  21815. have_dbus_dbus_h_hdr=no
  21816. fi
  21817. CPPFLAGS="$save_CPPFLAGS"
  21818. if test x$have_dbus_dbus_h_hdr = xyes; then
  21819. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  21820. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  21821. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  21822. fi
  21823. fi
  21824. }
  21825. CheckIME()
  21826. {
  21827. # Check whether --enable-ime was given.
  21828. if test ${enable_ime+y}
  21829. then :
  21830. enableval=$enable_ime;
  21831. else $as_nop
  21832. enable_ime=yes
  21833. fi
  21834. if test x$enable_ime = xyes; then
  21835. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  21836. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  21837. fi
  21838. }
  21839. CheckInotify()
  21840. {
  21841. save_LIBS="$LIBS"
  21842. case "$host" in
  21843. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  21844. ;;
  21845. esac
  21846. for ac_header in sys/inotify.h
  21847. do :
  21848. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  21849. if test "x$ac_cv_header_sys_inotify_h" = xyes
  21850. then :
  21851. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  21852. have_inotify_inotify_h_hdr=yes
  21853. fi
  21854. done
  21855. for ac_func in inotify_init
  21856. do :
  21857. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  21858. if test "x$ac_cv_func_inotify_init" = xyes
  21859. then :
  21860. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  21861. have_inotify=yes
  21862. fi
  21863. done
  21864. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  21865. if test "x$ac_cv_func_inotify_init1" = xyes
  21866. then :
  21867. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  21868. fi
  21869. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  21870. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  21871. case "$host" in
  21872. *-*-freebsd*|*-*-dragonfly*)
  21873. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  21874. ;;
  21875. esac
  21876. fi
  21877. LIBS="$save_LIBS"
  21878. }
  21879. CheckIBus()
  21880. {
  21881. # Check whether --enable-ibus was given.
  21882. if test ${enable_ibus+y}
  21883. then :
  21884. enableval=$enable_ibus;
  21885. else $as_nop
  21886. enable_ibus=yes
  21887. fi
  21888. if test x$enable_ibus = xyes; then
  21889. pkg_failed=no
  21890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  21891. printf %s "checking for ibus-1.0... " >&6; }
  21892. if test -n "$IBUS_CFLAGS"; then
  21893. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  21894. elif test -n "$PKG_CONFIG"; then
  21895. if test -n "$PKG_CONFIG" && \
  21896. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  21897. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  21898. ac_status=$?
  21899. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21900. test $ac_status = 0; }; then
  21901. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  21902. test "x$?" != "x0" && pkg_failed=yes
  21903. else
  21904. pkg_failed=yes
  21905. fi
  21906. else
  21907. pkg_failed=untried
  21908. fi
  21909. if test -n "$IBUS_LIBS"; then
  21910. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  21911. elif test -n "$PKG_CONFIG"; then
  21912. if test -n "$PKG_CONFIG" && \
  21913. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  21914. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  21915. ac_status=$?
  21916. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21917. test $ac_status = 0; }; then
  21918. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  21919. test "x$?" != "x0" && pkg_failed=yes
  21920. else
  21921. pkg_failed=yes
  21922. fi
  21923. else
  21924. pkg_failed=untried
  21925. fi
  21926. if test $pkg_failed = yes; then
  21927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21928. printf "%s\n" "no" >&6; }
  21929. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21930. _pkg_short_errors_supported=yes
  21931. else
  21932. _pkg_short_errors_supported=no
  21933. fi
  21934. if test $_pkg_short_errors_supported = yes; then
  21935. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  21936. else
  21937. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  21938. fi
  21939. # Put the nasty error message in config.log where it belongs
  21940. echo "$IBUS_PKG_ERRORS" >&5
  21941. have_ibus=no
  21942. elif test $pkg_failed = untried; then
  21943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21944. printf "%s\n" "no" >&6; }
  21945. have_ibus=no
  21946. else
  21947. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  21948. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  21949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21950. printf "%s\n" "yes" >&6; }
  21951. have_ibus=yes
  21952. fi
  21953. save_CPPFLAGS="$CPPFLAGS"
  21954. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  21955. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  21956. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  21957. then :
  21958. have_ibus_ibus_h_hdr=yes
  21959. else $as_nop
  21960. have_ibus_ibus_h_hdr=no
  21961. fi
  21962. CPPFLAGS="$save_CPPFLAGS"
  21963. if test x$have_ibus_ibus_h_hdr = xyes; then
  21964. if test x$enable_ime != xyes; then
  21965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  21966. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  21967. have_ibus_ibus_h_hdr=no
  21968. elif test x$enable_dbus != xyes; then
  21969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  21970. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  21971. have_ibus_ibus_h_hdr=no
  21972. elif test x$have_inotify_inotify_h_hdr != xyes; then
  21973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  21974. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  21975. have_ibus_ibus_h_hdr=no
  21976. else
  21977. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  21978. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  21979. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  21980. fi
  21981. fi
  21982. fi
  21983. }
  21984. CheckFcitx()
  21985. {
  21986. # Check whether --enable-fcitx was given.
  21987. if test ${enable_fcitx+y}
  21988. then :
  21989. enableval=$enable_fcitx;
  21990. else $as_nop
  21991. enable_fcitx=yes
  21992. fi
  21993. if test x$enable_fcitx = xyes; then
  21994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  21995. printf %s "checking for fcitx support... " >&6; }
  21996. have_fcitx=no
  21997. if test x$enable_ime != xyes; then
  21998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  21999. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  22000. elif test x$have_dbus_dbus_h_hdr != xyes; then
  22001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  22002. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  22003. else
  22004. have_fcitx=yes
  22005. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  22006. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  22007. fi
  22008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  22009. printf "%s\n" "$have_fcitx" >&6; }
  22010. fi
  22011. }
  22012. CheckJoystickMFI()
  22013. {
  22014. # Check whether --enable-joystick-mfi was given.
  22015. if test ${enable_joystick_mfi+y}
  22016. then :
  22017. enableval=$enable_joystick_mfi;
  22018. else $as_nop
  22019. enable_joystick_mfi=yes
  22020. fi
  22021. if test x$enable_joystick_mfi = xyes; then
  22022. save_CFLAGS="$CFLAGS"
  22023. save_LDFLAGS="$LDFLAGS"
  22024. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  22025. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  22027. printf %s "checking for GameController framework... " >&6; }
  22028. enable_joystick_mfi=no
  22029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22030. /* end confdefs.h. */
  22031. #include <AvailabilityMacros.h>
  22032. #include <TargetConditionals.h>
  22033. #import <GameController/GameController.h>
  22034. int
  22035. main (void)
  22036. {
  22037. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  22038. #error GameController framework doesn't work on this configuration
  22039. #endif
  22040. #if TARGET_CPU_X86
  22041. #error GameController framework doesn't work on this configuration
  22042. #endif
  22043. ;
  22044. return 0;
  22045. }
  22046. _ACEOF
  22047. if ac_fn_c_try_link "$LINENO"
  22048. then :
  22049. enable_joystick_mfi=yes
  22050. fi
  22051. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22052. conftest$ac_exeext conftest.$ac_ext
  22053. CFLAGS="$save_CFLAGS"
  22054. LDFLAGS="$save_LDFLAGS"
  22055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  22056. printf "%s\n" "$enable_joystick_mfi" >&6; }
  22057. if test x$enable_joystick_mfi = xyes; then
  22058. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22059. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  22060. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22061. fi
  22062. fi
  22063. }
  22064. CheckPTHREAD()
  22065. {
  22066. case "$host" in
  22067. *-*-emscripten*)
  22068. enable_pthreads_default=no
  22069. ;;
  22070. *)
  22071. enable_pthreads_default=yes
  22072. ;;
  22073. esac
  22074. # Check whether --enable-pthreads was given.
  22075. if test ${enable_pthreads+y}
  22076. then :
  22077. enableval=$enable_pthreads;
  22078. else $as_nop
  22079. enable_pthreads=maybe
  22080. fi
  22081. # Check whether --enable-pthread-sem was given.
  22082. if test ${enable_pthread_sem+y}
  22083. then :
  22084. enableval=$enable_pthread_sem;
  22085. else $as_nop
  22086. enable_pthread_sem=maybe
  22087. fi
  22088. if test x$enable_pthreads = xmaybe; then
  22089. enable_pthreads=$enable_pthreads_default
  22090. fi
  22091. if test x$enable_pthread_sem = xmaybe; then
  22092. enable_pthread_sem=$enable_pthreads
  22093. fi
  22094. case "$host" in
  22095. *-*-android*)
  22096. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22097. pthread_lib=""
  22098. ;;
  22099. *-*-linux*|*-*-uclinux*)
  22100. pthread_cflags="-D_REENTRANT"
  22101. pthread_lib="-lpthread"
  22102. ;;
  22103. *-*-bsdi*)
  22104. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22105. pthread_lib=""
  22106. ;;
  22107. *-*-darwin*)
  22108. pthread_cflags="-D_THREAD_SAFE"
  22109. # causes Carbon.p complaints?
  22110. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22111. ;;
  22112. *-*-freebsd*|*-*-dragonfly*)
  22113. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22114. pthread_lib="-pthread"
  22115. ;;
  22116. *-*-netbsd*)
  22117. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22118. pthread_lib="-lpthread"
  22119. ;;
  22120. *-*-openbsd*)
  22121. pthread_cflags="-D_REENTRANT"
  22122. pthread_lib="-lpthread"
  22123. ;;
  22124. *-*-solaris2.9)
  22125. # From Solaris 9+, posix4's preferred name is rt.
  22126. pthread_cflags="-D_REENTRANT"
  22127. pthread_lib="-lpthread -lrt"
  22128. ;;
  22129. *-*-solaris2.10)
  22130. # Solaris 10+ merged pthread into libc.
  22131. pthread_cflags="-D_REENTRANT"
  22132. pthread_lib="-lrt"
  22133. ;;
  22134. *-*-solaris*)
  22135. # Solaris 11+ merged rt into libc.
  22136. pthread_cflags="-D_REENTRANT"
  22137. pthread_lib=""
  22138. ;;
  22139. *-*-sysv5*)
  22140. pthread_cflags="-D_REENTRANT -Kthread"
  22141. pthread_lib=""
  22142. ;;
  22143. *-*-aix*)
  22144. pthread_cflags="-D_REENTRANT -mthreads"
  22145. pthread_lib="-lpthread"
  22146. ;;
  22147. *-*-hpux11*)
  22148. pthread_cflags="-D_REENTRANT"
  22149. pthread_lib="-L/usr/lib -lpthread"
  22150. ;;
  22151. *-*-haiku*)
  22152. pthread_cflags="-D_REENTRANT"
  22153. pthread_lib=""
  22154. ;;
  22155. *-*-emscripten*)
  22156. pthread_cflags="-D_REENTRANT -pthread"
  22157. pthread_lib="-pthread"
  22158. ;;
  22159. *)
  22160. pthread_cflags="-D_REENTRANT"
  22161. pthread_lib="-lpthread"
  22162. ;;
  22163. esac
  22164. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  22165. # Save the original compiler flags and libraries
  22166. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  22167. # Add the pthread compiler flags and libraries
  22168. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  22169. # Check to see if we have pthread support on this system
  22170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  22171. printf %s "checking for pthreads... " >&6; }
  22172. use_pthreads=no
  22173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22174. /* end confdefs.h. */
  22175. #include <pthread.h>
  22176. int
  22177. main (void)
  22178. {
  22179. pthread_attr_t type;
  22180. pthread_attr_init(&type);
  22181. ;
  22182. return 0;
  22183. }
  22184. _ACEOF
  22185. if ac_fn_c_try_link "$LINENO"
  22186. then :
  22187. use_pthreads=yes
  22188. fi
  22189. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22190. conftest$ac_exeext conftest.$ac_ext
  22191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  22192. printf "%s\n" "$use_pthreads" >&6; }
  22193. # Restore the compiler flags and libraries
  22194. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  22195. # Do futher testing if we have pthread support...
  22196. if test x$use_pthreads = xyes; then
  22197. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  22198. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  22199. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  22200. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  22201. # Save the original compiler flags and libraries
  22202. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  22203. # Add the pthread compiler flags and libraries
  22204. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  22205. # Check to see if recursive mutexes are available
  22206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  22207. printf %s "checking for recursive mutexes... " >&6; }
  22208. has_recursive_mutexes=no
  22209. if test x$has_recursive_mutexes = xno; then
  22210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22211. /* end confdefs.h. */
  22212. #define _GNU_SOURCE 1
  22213. #include <pthread.h>
  22214. int
  22215. main (void)
  22216. {
  22217. pthread_mutexattr_t attr;
  22218. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  22219. ;
  22220. return 0;
  22221. }
  22222. _ACEOF
  22223. if ac_fn_c_try_link "$LINENO"
  22224. then :
  22225. has_recursive_mutexes=yes
  22226. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  22227. fi
  22228. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22229. conftest$ac_exeext conftest.$ac_ext
  22230. fi
  22231. if test x$has_recursive_mutexes = xno; then
  22232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22233. /* end confdefs.h. */
  22234. #define _GNU_SOURCE 1
  22235. #include <pthread.h>
  22236. int
  22237. main (void)
  22238. {
  22239. pthread_mutexattr_t attr;
  22240. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  22241. ;
  22242. return 0;
  22243. }
  22244. _ACEOF
  22245. if ac_fn_c_try_link "$LINENO"
  22246. then :
  22247. has_recursive_mutexes=yes
  22248. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  22249. fi
  22250. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22251. conftest$ac_exeext conftest.$ac_ext
  22252. fi
  22253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  22254. printf "%s\n" "$has_recursive_mutexes" >&6; }
  22255. # Check to see if pthread semaphore support is missing
  22256. if test x$enable_pthread_sem = xyes; then
  22257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  22258. printf %s "checking for pthread semaphores... " >&6; }
  22259. have_pthread_sem=no
  22260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22261. /* end confdefs.h. */
  22262. #include <pthread.h>
  22263. #include <semaphore.h>
  22264. int
  22265. main (void)
  22266. {
  22267. ;
  22268. return 0;
  22269. }
  22270. _ACEOF
  22271. if ac_fn_c_try_compile "$LINENO"
  22272. then :
  22273. have_pthread_sem=yes
  22274. fi
  22275. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  22277. printf "%s\n" "$have_pthread_sem" >&6; }
  22278. fi
  22279. if test x$have_pthread_sem = xyes; then
  22280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  22281. printf %s "checking for sem_timedwait... " >&6; }
  22282. have_sem_timedwait=no
  22283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22284. /* end confdefs.h. */
  22285. #include <pthread.h>
  22286. #include <semaphore.h>
  22287. int
  22288. main (void)
  22289. {
  22290. sem_timedwait(NULL, NULL);
  22291. ;
  22292. return 0;
  22293. }
  22294. _ACEOF
  22295. if ac_fn_c_try_link "$LINENO"
  22296. then :
  22297. have_sem_timedwait=yes
  22298. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  22299. fi
  22300. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22301. conftest$ac_exeext conftest.$ac_ext
  22302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  22303. printf "%s\n" "$have_sem_timedwait" >&6; }
  22304. fi
  22305. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  22306. "
  22307. if test "x$ac_cv_header_pthread_np_h" = xyes
  22308. then :
  22309. have_pthread_np_h=yes
  22310. else $as_nop
  22311. have_pthread_np_h=no
  22312. fi
  22313. if test x$have_pthread_np_h = xyes; then
  22314. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  22315. fi
  22316. # Check to see if pthread naming is available
  22317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  22318. printf %s "checking for pthread_setname_np... " >&6; }
  22319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22320. /* end confdefs.h. */
  22321. /* Override any GCC internal prototype to avoid an error.
  22322. Use char because int might match the return type of a GCC
  22323. builtin and then its argument prototype would still apply. */
  22324. char pthread_setname_np ();
  22325. int
  22326. main (void)
  22327. {
  22328. return pthread_setname_np ();
  22329. ;
  22330. return 0;
  22331. }
  22332. _ACEOF
  22333. if ac_fn_c_try_link "$LINENO"
  22334. then :
  22335. has_pthread_setname_np=yes
  22336. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  22337. else $as_nop
  22338. has_pthread_setname_np=no
  22339. fi
  22340. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22341. conftest$ac_exeext conftest.$ac_ext
  22342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  22343. printf "%s\n" "$has_pthread_setname_np" >&6; }
  22344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  22345. printf %s "checking for pthread_set_name_np... " >&6; }
  22346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22347. /* end confdefs.h. */
  22348. /* Override any GCC internal prototype to avoid an error.
  22349. Use char because int might match the return type of a GCC
  22350. builtin and then its argument prototype would still apply. */
  22351. char pthread_set_name_np ();
  22352. int
  22353. main (void)
  22354. {
  22355. return pthread_set_name_np ();
  22356. ;
  22357. return 0;
  22358. }
  22359. _ACEOF
  22360. if ac_fn_c_try_link "$LINENO"
  22361. then :
  22362. has_pthread_set_name_np=yes
  22363. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  22364. else $as_nop
  22365. has_pthread_set_name_np=no
  22366. fi
  22367. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22368. conftest$ac_exeext conftest.$ac_ext
  22369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  22370. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  22371. # Restore the compiler flags and libraries
  22372. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  22373. # Basic thread creation functions
  22374. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  22375. # Semaphores
  22376. # We can fake these with mutexes and condition variables if necessary
  22377. if test x$have_pthread_sem = xyes; then
  22378. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  22379. else
  22380. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  22381. fi
  22382. # Mutexes
  22383. # We can fake these with semaphores if necessary
  22384. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  22385. # Condition variables
  22386. # We can fake these with semaphores and mutexes if necessary
  22387. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  22388. # Thread local storage
  22389. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  22390. have_threads=yes
  22391. fi
  22392. fi
  22393. }
  22394. CheckWINDOWS()
  22395. {
  22396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  22397. printf %s "checking Windows compiler... " >&6; }
  22398. have_win32_gcc=no
  22399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22400. /* end confdefs.h. */
  22401. #include <windows.h>
  22402. int
  22403. main (void)
  22404. {
  22405. ;
  22406. return 0;
  22407. }
  22408. _ACEOF
  22409. if ac_fn_c_try_compile "$LINENO"
  22410. then :
  22411. have_win32_gcc=yes
  22412. fi
  22413. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  22415. printf "%s\n" "$have_win32_gcc" >&6; }
  22416. if test x$have_win32_gcc != xyes; then
  22417. as_fn_error $? "
  22418. *** Your compiler ($CC) does not produce Windows executables!
  22419. " "$LINENO" 5
  22420. fi
  22421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  22422. printf %s "checking Windows CE... " >&6; }
  22423. have_wince=no
  22424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22425. /* end confdefs.h. */
  22426. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  22427. #error This is not Windows CE
  22428. #endif
  22429. int
  22430. main (void)
  22431. {
  22432. ;
  22433. return 0;
  22434. }
  22435. _ACEOF
  22436. if ac_fn_c_try_compile "$LINENO"
  22437. then :
  22438. have_wince=yes
  22439. as_fn_error $? "
  22440. *** Sorry, Windows CE is no longer supported.
  22441. " "$LINENO" 5
  22442. fi
  22443. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  22445. printf "%s\n" "$have_wince" >&6; }
  22446. # This fixes Windows stack alignment with newer GCC
  22447. CheckStackBoundary
  22448. # headers needed elsewhere
  22449. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  22450. if test "x$ac_cv_header_tpcshrd_h" = xyes
  22451. then :
  22452. have_tpcshrd_h=yes
  22453. fi
  22454. if test x$have_tpcshrd_h = xyes; then
  22455. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  22456. fi
  22457. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  22458. if test "x$ac_cv_header_roapi_h" = xyes
  22459. then :
  22460. have_roapi_h=yes
  22461. fi
  22462. if test x$have_roapi_h = xyes; then
  22463. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  22464. fi
  22465. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  22466. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  22467. then :
  22468. have_shellscalingapi_h=yes
  22469. fi
  22470. if test x$shellscalingapi_h = xyes; then
  22471. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  22472. fi
  22473. }
  22474. CheckDIRECTX()
  22475. {
  22476. # Check whether --enable-directx was given.
  22477. if test ${enable_directx+y}
  22478. then :
  22479. enableval=$enable_directx;
  22480. else $as_nop
  22481. enable_directx=yes
  22482. fi
  22483. if test x$enable_directx = xyes; then
  22484. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  22485. if test "x$ac_cv_header_d3d9_h" = xyes
  22486. then :
  22487. have_d3d=yes
  22488. fi
  22489. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  22490. if test "x$ac_cv_header_d3d11_1_h" = xyes
  22491. then :
  22492. have_d3d11=yes
  22493. fi
  22494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  22495. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  22496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22497. /* end confdefs.h. */
  22498. #include <winsdkver.h>
  22499. #include <sdkddkver.h>
  22500. #include <d3d12.h>
  22501. ID3D12Device1 *device;
  22502. #if WDK_NTDDI_VERSION <= 0x0A000008
  22503. asdf
  22504. #endif
  22505. int
  22506. main (void)
  22507. {
  22508. ;
  22509. return 0;
  22510. }
  22511. _ACEOF
  22512. if ac_fn_c_try_compile "$LINENO"
  22513. then :
  22514. have_d3d12=yes
  22515. else $as_nop
  22516. have_d3d12=no
  22517. fi
  22518. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  22520. printf "%s\n" "$have_d3d12" >&6; }
  22521. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  22522. if test "x$ac_cv_header_ddraw_h" = xyes
  22523. then :
  22524. have_ddraw=yes
  22525. fi
  22526. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  22527. if test "x$ac_cv_header_dsound_h" = xyes
  22528. then :
  22529. have_dsound=yes
  22530. fi
  22531. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  22532. if test "x$ac_cv_header_dinput_h" = xyes
  22533. then :
  22534. have_dinput=yes
  22535. fi
  22536. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  22537. if test "x$ac_cv_header_dxgi_h" = xyes
  22538. then :
  22539. have_dxgi=yes
  22540. fi
  22541. if test x$have_ddraw = xyes; then
  22542. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  22543. fi
  22544. if test x$have_dinput = xyes; then
  22545. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  22546. fi
  22547. if test x$have_dsound = xyes; then
  22548. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  22549. fi
  22550. if test x$have_dxgi = xyes; then
  22551. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  22552. fi
  22553. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  22554. # FIXME: ...so force it off for now.
  22555. case "$host" in
  22556. *-*-cygwin*)
  22557. have_dinput=false
  22558. ;;
  22559. esac
  22560. fi
  22561. # Check whether --enable-xinput was given.
  22562. if test ${enable_xinput+y}
  22563. then :
  22564. enableval=$enable_xinput;
  22565. else $as_nop
  22566. enable_xinput=yes
  22567. fi
  22568. if test x$enable_xinput = xyes; then
  22569. have_xinput_gamepadex=no
  22570. have_xinput_stateex=no
  22571. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  22572. if test "x$ac_cv_header_xinput_h" = xyes
  22573. then :
  22574. have_xinput=yes
  22575. fi
  22576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  22577. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  22578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22579. /* end confdefs.h. */
  22580. #include <windows.h>
  22581. #include <xinput.h>
  22582. XINPUT_GAMEPAD_EX x1;
  22583. int
  22584. main (void)
  22585. {
  22586. ;
  22587. return 0;
  22588. }
  22589. _ACEOF
  22590. if ac_fn_c_try_compile "$LINENO"
  22591. then :
  22592. have_xinput_gamepadex=yes
  22593. fi
  22594. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  22596. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  22597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  22598. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  22599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22600. /* end confdefs.h. */
  22601. #include <windows.h>
  22602. #include <xinput.h>
  22603. XINPUT_STATE_EX s1;
  22604. int
  22605. main (void)
  22606. {
  22607. ;
  22608. return 0;
  22609. }
  22610. _ACEOF
  22611. if ac_fn_c_try_compile "$LINENO"
  22612. then :
  22613. have_xinput_stateex=yes
  22614. fi
  22615. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  22617. printf "%s\n" "$have_xinput_stateex" >&6; }
  22618. if test x$have_xinput = xyes; then
  22619. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  22620. fi
  22621. if test x$have_xinput_gamepadex = xyes; then
  22622. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  22623. fi
  22624. if test x$have_xinput_stateex = xyes; then
  22625. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  22626. fi
  22627. fi
  22628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  22629. printf %s "checking for windows.gaming.input.h... " >&6; }
  22630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22631. /* end confdefs.h. */
  22632. #define COBJMACROS
  22633. #include <windows.gaming.input.h>
  22634. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  22635. int
  22636. main (void)
  22637. {
  22638. ;
  22639. return 0;
  22640. }
  22641. _ACEOF
  22642. if ac_fn_c_try_compile "$LINENO"
  22643. then :
  22644. have_wgi=yes
  22645. else $as_nop
  22646. have_wgi=no
  22647. fi
  22648. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  22650. printf "%s\n" "$have_wgi" >&6; }
  22651. if test x$have_wgi = xyes; then
  22652. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  22653. fi
  22654. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  22655. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  22656. then :
  22657. have_wasapi=yes
  22658. fi
  22659. if test x$have_wasapi = xyes; then
  22660. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  22661. fi
  22662. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  22663. if test "x$ac_cv_header_audioclient_h" = xyes
  22664. then :
  22665. else $as_nop
  22666. have_wasapi=no
  22667. fi
  22668. if test x$have_wasapi = xyes; then
  22669. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  22670. fi
  22671. # Check whether --enable-wasapi was given.
  22672. if test ${enable_wasapi+y}
  22673. then :
  22674. enableval=$enable_wasapi;
  22675. else $as_nop
  22676. enable_wasapi=yes
  22677. fi
  22678. }
  22679. CheckDLOPEN()
  22680. {
  22681. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  22682. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  22683. if test "x$ac_cv_header_dlfcn_h" = xyes
  22684. then :
  22685. have_dlfcn_h=yes
  22686. else $as_nop
  22687. have_dlfcn_h=no
  22688. fi
  22689. have_dlopen=no
  22690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  22691. printf %s "checking for dlopen in -lc... " >&6; }
  22692. if test ${ac_cv_lib_c_dlopen+y}
  22693. then :
  22694. printf %s "(cached) " >&6
  22695. else $as_nop
  22696. ac_check_lib_save_LIBS=$LIBS
  22697. LIBS="-lc $LIBS"
  22698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22699. /* end confdefs.h. */
  22700. /* Override any GCC internal prototype to avoid an error.
  22701. Use char because int might match the return type of a GCC
  22702. builtin and then its argument prototype would still apply. */
  22703. char dlopen ();
  22704. int
  22705. main (void)
  22706. {
  22707. return dlopen ();
  22708. ;
  22709. return 0;
  22710. }
  22711. _ACEOF
  22712. if ac_fn_c_try_link "$LINENO"
  22713. then :
  22714. ac_cv_lib_c_dlopen=yes
  22715. else $as_nop
  22716. ac_cv_lib_c_dlopen=no
  22717. fi
  22718. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22719. conftest$ac_exeext conftest.$ac_ext
  22720. LIBS=$ac_check_lib_save_LIBS
  22721. fi
  22722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  22723. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  22724. if test "x$ac_cv_lib_c_dlopen" = xyes
  22725. then :
  22726. have_dlopen=yes
  22727. else $as_nop
  22728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  22729. printf %s "checking for dlopen in -ldl... " >&6; }
  22730. if test ${ac_cv_lib_dl_dlopen+y}
  22731. then :
  22732. printf %s "(cached) " >&6
  22733. else $as_nop
  22734. ac_check_lib_save_LIBS=$LIBS
  22735. LIBS="-ldl $LIBS"
  22736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22737. /* end confdefs.h. */
  22738. /* Override any GCC internal prototype to avoid an error.
  22739. Use char because int might match the return type of a GCC
  22740. builtin and then its argument prototype would still apply. */
  22741. char dlopen ();
  22742. int
  22743. main (void)
  22744. {
  22745. return dlopen ();
  22746. ;
  22747. return 0;
  22748. }
  22749. _ACEOF
  22750. if ac_fn_c_try_link "$LINENO"
  22751. then :
  22752. ac_cv_lib_dl_dlopen=yes
  22753. else $as_nop
  22754. ac_cv_lib_dl_dlopen=no
  22755. fi
  22756. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22757. conftest$ac_exeext conftest.$ac_ext
  22758. LIBS=$ac_check_lib_save_LIBS
  22759. fi
  22760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  22761. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  22762. if test "x$ac_cv_lib_dl_dlopen" = xyes
  22763. then :
  22764. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  22765. fi
  22766. fi
  22767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  22768. printf %s "checking for dlopen... " >&6; }
  22769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  22770. printf "%s\n" "$have_dlopen" >&6; }
  22771. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  22772. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  22773. if test x$enable_loadso = xyes; then
  22774. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  22775. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  22776. have_loadso=yes
  22777. fi
  22778. fi
  22779. }
  22780. CheckO_CLOEXEC()
  22781. {
  22782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  22783. printf %s "checking for O_CLOEXEC... " >&6; }
  22784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22785. /* end confdefs.h. */
  22786. #include <fcntl.h>
  22787. int flag = O_CLOEXEC;
  22788. int
  22789. main (void)
  22790. {
  22791. ;
  22792. return 0;
  22793. }
  22794. _ACEOF
  22795. if ac_fn_c_try_compile "$LINENO"
  22796. then :
  22797. have_o_cloexec=yes
  22798. else $as_nop
  22799. have_o_cloexec=no
  22800. fi
  22801. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  22803. printf "%s\n" "$have_o_cloexec" >&6; }
  22804. if test $have_o_cloexec = yes; then
  22805. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  22806. fi
  22807. }
  22808. CheckUSBHID()
  22809. {
  22810. case "$host" in
  22811. *-*-*bsd*|*-*-dragonfly*)
  22812. if test x$enable_joystick = xyes; then
  22813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  22814. printf %s "checking for hid_init in -lusbhid... " >&6; }
  22815. if test ${ac_cv_lib_usbhid_hid_init+y}
  22816. then :
  22817. printf %s "(cached) " >&6
  22818. else $as_nop
  22819. ac_check_lib_save_LIBS=$LIBS
  22820. LIBS="-lusbhid $LIBS"
  22821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22822. /* end confdefs.h. */
  22823. /* Override any GCC internal prototype to avoid an error.
  22824. Use char because int might match the return type of a GCC
  22825. builtin and then its argument prototype would still apply. */
  22826. char hid_init ();
  22827. int
  22828. main (void)
  22829. {
  22830. return hid_init ();
  22831. ;
  22832. return 0;
  22833. }
  22834. _ACEOF
  22835. if ac_fn_c_try_link "$LINENO"
  22836. then :
  22837. ac_cv_lib_usbhid_hid_init=yes
  22838. else $as_nop
  22839. ac_cv_lib_usbhid_hid_init=no
  22840. fi
  22841. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22842. conftest$ac_exeext conftest.$ac_ext
  22843. LIBS=$ac_check_lib_save_LIBS
  22844. fi
  22845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  22846. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  22847. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  22848. then :
  22849. have_libusbhid=yes
  22850. fi
  22851. if test x$have_libusbhid = xyes; then
  22852. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  22853. if test "x$ac_cv_header_usbhid_h" = xyes
  22854. then :
  22855. USB_CFLAGS="-DHAVE_USBHID_H"
  22856. fi
  22857. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  22858. if test "x$ac_cv_header_libusbhid_h" = xyes
  22859. then :
  22860. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  22861. fi
  22862. USB_LIBS="$USB_LIBS -lusbhid"
  22863. else
  22864. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  22865. if test "x$ac_cv_header_usb_h" = xyes
  22866. then :
  22867. USB_CFLAGS="-DHAVE_USB_H"
  22868. fi
  22869. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  22870. if test "x$ac_cv_header_libusb_h" = xyes
  22871. then :
  22872. USB_CFLAGS="-DHAVE_LIBUSB_H"
  22873. fi
  22874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  22875. printf %s "checking for hid_init in -lusb... " >&6; }
  22876. if test ${ac_cv_lib_usb_hid_init+y}
  22877. then :
  22878. printf %s "(cached) " >&6
  22879. else $as_nop
  22880. ac_check_lib_save_LIBS=$LIBS
  22881. LIBS="-lusb $LIBS"
  22882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22883. /* end confdefs.h. */
  22884. /* Override any GCC internal prototype to avoid an error.
  22885. Use char because int might match the return type of a GCC
  22886. builtin and then its argument prototype would still apply. */
  22887. char hid_init ();
  22888. int
  22889. main (void)
  22890. {
  22891. return hid_init ();
  22892. ;
  22893. return 0;
  22894. }
  22895. _ACEOF
  22896. if ac_fn_c_try_link "$LINENO"
  22897. then :
  22898. ac_cv_lib_usb_hid_init=yes
  22899. else $as_nop
  22900. ac_cv_lib_usb_hid_init=no
  22901. fi
  22902. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22903. conftest$ac_exeext conftest.$ac_ext
  22904. LIBS=$ac_check_lib_save_LIBS
  22905. fi
  22906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  22907. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  22908. if test "x$ac_cv_lib_usb_hid_init" = xyes
  22909. then :
  22910. USB_LIBS="$USB_LIBS -lusb"
  22911. fi
  22912. fi
  22913. save_CFLAGS="$CFLAGS"
  22914. CFLAGS="$CFLAGS $USB_CFLAGS"
  22915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  22916. printf %s "checking for usbhid... " >&6; }
  22917. have_usbhid=no
  22918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22919. /* end confdefs.h. */
  22920. #include <sys/types.h>
  22921. #if defined(HAVE_USB_H)
  22922. #include <usb.h>
  22923. #endif
  22924. #ifdef __DragonFly__
  22925. # include <bus/u4b/usb.h>
  22926. # include <bus/u4b/usbhid.h>
  22927. #else
  22928. # include <dev/usb/usb.h>
  22929. # include <dev/usb/usbhid.h>
  22930. #endif
  22931. #if defined(HAVE_USBHID_H)
  22932. #include <usbhid.h>
  22933. #elif defined(HAVE_LIBUSB_H)
  22934. #include <libusb.h>
  22935. #elif defined(HAVE_LIBUSBHID_H)
  22936. #include <libusbhid.h>
  22937. #endif
  22938. int
  22939. main (void)
  22940. {
  22941. struct report_desc *repdesc;
  22942. struct usb_ctl_report *repbuf;
  22943. hid_kind_t hidkind;
  22944. ;
  22945. return 0;
  22946. }
  22947. _ACEOF
  22948. if ac_fn_c_try_compile "$LINENO"
  22949. then :
  22950. have_usbhid=yes
  22951. fi
  22952. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  22954. printf "%s\n" "$have_usbhid" >&6; }
  22955. if test x$have_usbhid = xyes; then
  22956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  22957. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  22958. have_usbhid_ucr_data=no
  22959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22960. /* end confdefs.h. */
  22961. #include <sys/types.h>
  22962. #if defined(HAVE_USB_H)
  22963. #include <usb.h>
  22964. #endif
  22965. #ifdef __DragonFly__
  22966. # include <bus/u4b/usb.h>
  22967. # include <bus/u4b/usbhid.h>
  22968. #else
  22969. # include <dev/usb/usb.h>
  22970. # include <dev/usb/usbhid.h>
  22971. #endif
  22972. #if defined(HAVE_USBHID_H)
  22973. #include <usbhid.h>
  22974. #elif defined(HAVE_LIBUSB_H)
  22975. #include <libusb.h>
  22976. #elif defined(HAVE_LIBUSBHID_H)
  22977. #include <libusbhid.h>
  22978. #endif
  22979. int
  22980. main (void)
  22981. {
  22982. struct usb_ctl_report buf;
  22983. if (buf.ucr_data) { }
  22984. ;
  22985. return 0;
  22986. }
  22987. _ACEOF
  22988. if ac_fn_c_try_compile "$LINENO"
  22989. then :
  22990. have_usbhid_ucr_data=yes
  22991. fi
  22992. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22993. if test x$have_usbhid_ucr_data = xyes; then
  22994. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  22995. fi
  22996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  22997. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  22998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  22999. printf %s "checking for new usbhid API... " >&6; }
  23000. have_usbhid_new=no
  23001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23002. /* end confdefs.h. */
  23003. #include <sys/types.h>
  23004. #if defined(HAVE_USB_H)
  23005. #include <usb.h>
  23006. #endif
  23007. #ifdef __DragonFly__
  23008. #include <bus/u4b/usb.h>
  23009. #include <bus/u4b/usbhid.h>
  23010. #else
  23011. #include <dev/usb/usb.h>
  23012. #include <dev/usb/usbhid.h>
  23013. #endif
  23014. #if defined(HAVE_USBHID_H)
  23015. #include <usbhid.h>
  23016. #elif defined(HAVE_LIBUSB_H)
  23017. #include <libusb.h>
  23018. #elif defined(HAVE_LIBUSBHID_H)
  23019. #include <libusbhid.h>
  23020. #endif
  23021. int
  23022. main (void)
  23023. {
  23024. report_desc_t d;
  23025. hid_start_parse(d, 1, 1);
  23026. ;
  23027. return 0;
  23028. }
  23029. _ACEOF
  23030. if ac_fn_c_try_compile "$LINENO"
  23031. then :
  23032. have_usbhid_new=yes
  23033. fi
  23034. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23035. if test x$have_usbhid_new = xyes; then
  23036. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  23037. fi
  23038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  23039. printf "%s\n" "$have_usbhid_new" >&6; }
  23040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  23041. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  23042. have_machine_joystick=no
  23043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23044. /* end confdefs.h. */
  23045. #include <machine/joystick.h>
  23046. int
  23047. main (void)
  23048. {
  23049. struct joystick t;
  23050. ;
  23051. return 0;
  23052. }
  23053. _ACEOF
  23054. if ac_fn_c_try_compile "$LINENO"
  23055. then :
  23056. have_machine_joystick=yes
  23057. fi
  23058. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23059. if test x$have_machine_joystick = xyes; then
  23060. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  23061. fi
  23062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  23063. printf "%s\n" "$have_machine_joystick" >&6; }
  23064. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  23065. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  23066. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  23067. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  23068. have_joystick=yes
  23069. fi
  23070. CFLAGS="$save_CFLAGS"
  23071. fi
  23072. ;;
  23073. esac
  23074. }
  23075. CheckHIDAPI()
  23076. {
  23077. # Check whether --enable-hidapi-joystick was given.
  23078. if test ${enable_hidapi_joystick+y}
  23079. then :
  23080. enableval=$enable_hidapi_joystick;
  23081. else $as_nop
  23082. enable_hidapi_joystick=yes
  23083. fi
  23084. # Check whether --enable-hidapi-libusb was given.
  23085. if test ${enable_hidapi_libusb+y}
  23086. then :
  23087. enableval=$enable_hidapi_libusb;
  23088. else $as_nop
  23089. enable_hidapi_libusb=maybe
  23090. fi
  23091. if test x$enable_hidapi = xyes; then
  23092. case "$host" in
  23093. # libusb does not support iOS
  23094. *-ios-* )
  23095. enable_hidapi_libusb=no
  23096. ;;
  23097. # On the other hand, *BSD specifically uses libusb only
  23098. *-*-*bsd* )
  23099. enable_hidapi_libusb=yes
  23100. require_hidapi_libusb=yes
  23101. ;;
  23102. esac
  23103. hidapi_support=yes
  23104. if test x$enable_hidapi_libusb = xyes; then
  23105. pkg_failed=no
  23106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  23107. printf %s "checking for libusb-1.0... " >&6; }
  23108. if test -n "$LIBUSB_CFLAGS"; then
  23109. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  23110. elif test -n "$PKG_CONFIG"; then
  23111. if test -n "$PKG_CONFIG" && \
  23112. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  23113. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  23114. ac_status=$?
  23115. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23116. test $ac_status = 0; }; then
  23117. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  23118. test "x$?" != "x0" && pkg_failed=yes
  23119. else
  23120. pkg_failed=yes
  23121. fi
  23122. else
  23123. pkg_failed=untried
  23124. fi
  23125. if test -n "$LIBUSB_LIBS"; then
  23126. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  23127. elif test -n "$PKG_CONFIG"; then
  23128. if test -n "$PKG_CONFIG" && \
  23129. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  23130. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  23131. ac_status=$?
  23132. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23133. test $ac_status = 0; }; then
  23134. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  23135. test "x$?" != "x0" && pkg_failed=yes
  23136. else
  23137. pkg_failed=yes
  23138. fi
  23139. else
  23140. pkg_failed=untried
  23141. fi
  23142. if test $pkg_failed = yes; then
  23143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23144. printf "%s\n" "no" >&6; }
  23145. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23146. _pkg_short_errors_supported=yes
  23147. else
  23148. _pkg_short_errors_supported=no
  23149. fi
  23150. if test $_pkg_short_errors_supported = yes; then
  23151. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  23152. else
  23153. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  23154. fi
  23155. # Put the nasty error message in config.log where it belongs
  23156. echo "$LIBUSB_PKG_ERRORS" >&5
  23157. have_libusb=no
  23158. elif test $pkg_failed = untried; then
  23159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23160. printf "%s\n" "no" >&6; }
  23161. have_libusb=no
  23162. else
  23163. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  23164. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  23165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23166. printf "%s\n" "yes" >&6; }
  23167. have_libusb=yes
  23168. fi
  23169. save_CPPFLAGS="$CPPFLAGS"
  23170. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  23171. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23172. if test "x$ac_cv_header_libusb_h" = xyes
  23173. then :
  23174. have_libusb_h=yes
  23175. else $as_nop
  23176. have_libusb_h=no
  23177. fi
  23178. CPPFLAGS="$save_CPPFLAGS"
  23179. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  23180. hidapi_support=no
  23181. fi
  23182. fi
  23183. if test x$hidapi_support = xyes; then
  23184. if test x$have_libusb_h = xyes; then
  23185. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  23186. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  23187. if test x$require_hidapi_libusb = xyes; then
  23188. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  23189. else
  23190. if test x$have_loadso != xyes; then
  23191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  23192. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  23193. fi
  23194. # libusb is loaded dynamically, so don't add it to LDFLAGS
  23195. libusb_lib=""
  23196. case "$host" in
  23197. *-*-darwin* )
  23198. libusb_lib="libusb-1.0.0.dylib"
  23199. ;;
  23200. *-*-cygwin* | *-*-mingw* )
  23201. libusb_lib="libusb-1.0.dll"
  23202. ;;
  23203. esac
  23204. if test x$libusb_lib = x; then
  23205. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  23206. fi
  23207. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  23208. fi
  23209. fi
  23210. fi
  23211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  23212. printf %s "checking for hidapi joystick support... " >&6; }
  23213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  23214. printf "%s\n" "$hidapi_support" >&6; }
  23215. fi
  23216. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  23217. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  23218. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  23219. fi
  23220. }
  23221. CheckClockGettime()
  23222. {
  23223. # Check whether --enable-clock_gettime was given.
  23224. if test ${enable_clock_gettime+y}
  23225. then :
  23226. enableval=$enable_clock_gettime;
  23227. else $as_nop
  23228. enable_clock_gettime=yes
  23229. fi
  23230. if test x$enable_clock_gettime = xyes; then
  23231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  23232. printf %s "checking for clock_gettime in -lrt... " >&6; }
  23233. if test ${ac_cv_lib_rt_clock_gettime+y}
  23234. then :
  23235. printf %s "(cached) " >&6
  23236. else $as_nop
  23237. ac_check_lib_save_LIBS=$LIBS
  23238. LIBS="-lrt $LIBS"
  23239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23240. /* end confdefs.h. */
  23241. /* Override any GCC internal prototype to avoid an error.
  23242. Use char because int might match the return type of a GCC
  23243. builtin and then its argument prototype would still apply. */
  23244. char clock_gettime ();
  23245. int
  23246. main (void)
  23247. {
  23248. return clock_gettime ();
  23249. ;
  23250. return 0;
  23251. }
  23252. _ACEOF
  23253. if ac_fn_c_try_link "$LINENO"
  23254. then :
  23255. ac_cv_lib_rt_clock_gettime=yes
  23256. else $as_nop
  23257. ac_cv_lib_rt_clock_gettime=no
  23258. fi
  23259. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23260. conftest$ac_exeext conftest.$ac_ext
  23261. LIBS=$ac_check_lib_save_LIBS
  23262. fi
  23263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  23264. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  23265. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  23266. then :
  23267. have_clock_gettime=yes
  23268. fi
  23269. if test x$have_clock_gettime = xyes; then
  23270. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  23271. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  23272. else
  23273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  23274. printf %s "checking for clock_gettime in -lc... " >&6; }
  23275. if test ${ac_cv_lib_c_clock_gettime+y}
  23276. then :
  23277. printf %s "(cached) " >&6
  23278. else $as_nop
  23279. ac_check_lib_save_LIBS=$LIBS
  23280. LIBS="-lc $LIBS"
  23281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23282. /* end confdefs.h. */
  23283. /* Override any GCC internal prototype to avoid an error.
  23284. Use char because int might match the return type of a GCC
  23285. builtin and then its argument prototype would still apply. */
  23286. char clock_gettime ();
  23287. int
  23288. main (void)
  23289. {
  23290. return clock_gettime ();
  23291. ;
  23292. return 0;
  23293. }
  23294. _ACEOF
  23295. if ac_fn_c_try_link "$LINENO"
  23296. then :
  23297. ac_cv_lib_c_clock_gettime=yes
  23298. else $as_nop
  23299. ac_cv_lib_c_clock_gettime=no
  23300. fi
  23301. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23302. conftest$ac_exeext conftest.$ac_ext
  23303. LIBS=$ac_check_lib_save_LIBS
  23304. fi
  23305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  23306. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  23307. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  23308. then :
  23309. have_clock_gettime=yes
  23310. fi
  23311. if test x$have_clock_gettime = xyes; then
  23312. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  23313. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  23314. fi
  23315. fi
  23316. fi
  23317. }
  23318. CheckLinuxVersion()
  23319. {
  23320. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  23321. if test "x$ac_cv_header_linux_version_h" = xyes
  23322. then :
  23323. have_linux_version_h=yes
  23324. fi
  23325. if test x$have_linux_version_h = xyes; then
  23326. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  23327. fi
  23328. }
  23329. CheckRPATH()
  23330. {
  23331. # Check whether --enable-rpath was given.
  23332. if test ${enable_rpath+y}
  23333. then :
  23334. enableval=$enable_rpath;
  23335. else $as_nop
  23336. enable_rpath=yes
  23337. fi
  23338. }
  23339. CheckEventSignals()
  23340. {
  23341. # Check whether --enable-backgrounding-signal was given.
  23342. if test ${enable_backgrounding_signal+y}
  23343. then :
  23344. enableval=$enable_backgrounding_signal;
  23345. else $as_nop
  23346. enable_backgrounding_signal=no
  23347. fi
  23348. if test x$enable_backgrounding_signal != xno; then
  23349. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  23350. fi
  23351. # Check whether --enable-foregrounding-signal was given.
  23352. if test ${enable_foregrounding_signal+y}
  23353. then :
  23354. enableval=$enable_foregrounding_signal;
  23355. else $as_nop
  23356. enable_foregrounding_signal=no
  23357. fi
  23358. if test x$enable_foregrounding_signal != xno; then
  23359. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  23360. fi
  23361. }
  23362. CheckVirtualJoystick()
  23363. {
  23364. # Check whether --enable-joystick-virtual was given.
  23365. if test ${enable_joystick_virtual+y}
  23366. then :
  23367. enableval=$enable_joystick_virtual;
  23368. else $as_nop
  23369. enable_joystick_virtual=yes
  23370. fi
  23371. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  23372. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  23373. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  23374. have_joystick_virtual=yes
  23375. fi
  23376. }
  23377. CheckWarnAll
  23378. CheckNoStrictAliasing
  23379. CheckEventSignals
  23380. have_locale=no
  23381. case "$host" in
  23382. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  23383. case "$host" in
  23384. *-*-android*)
  23385. # Android
  23386. ARCH=android
  23387. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  23388. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  23389. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  23390. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  23391. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  23392. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  23393. if test x$enable_video = xyes; then
  23394. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  23395. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  23396. SUMMARY_video="${SUMMARY_video} android"
  23397. have_video=yes
  23398. fi
  23399. ;;
  23400. *-*-linux*) ARCH=linux ;;
  23401. *-*-uclinux*) ARCH=linux ;;
  23402. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  23403. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  23404. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  23405. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  23406. *-*-bsdi*) ARCH=bsdi ;;
  23407. *-*-freebsd*) ARCH=freebsd ;;
  23408. *-*-dragonfly*) ARCH=freebsd ;;
  23409. *-*-netbsd*) ARCH=netbsd ;;
  23410. *-*-openbsd*) ARCH=openbsd ;;
  23411. *-*-sysv5*) ARCH=sysv5 ;;
  23412. *-*-solaris*) ARCH=solaris ;;
  23413. *-*-hpux*) ARCH=hpux ;;
  23414. *-*-aix*) ARCH=aix ;;
  23415. *-*-minix*) ARCH=minix ;;
  23416. esac
  23417. CheckVisibilityHidden
  23418. CheckWerror
  23419. CheckDeclarationAfterStatement
  23420. CheckDummyVideo
  23421. CheckOffscreenVideo
  23422. CheckDiskAudio
  23423. CheckDummyAudio
  23424. CheckDLOPEN
  23425. CheckARM
  23426. CheckNEON
  23427. CheckO_CLOEXEC
  23428. CheckOSS
  23429. CheckALSA
  23430. CheckPipewire
  23431. CheckPulseAudio
  23432. CheckSNDIO
  23433. CheckLibSampleRate
  23434. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  23435. CheckRPI
  23436. CheckX11
  23437. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  23438. CheckEGL
  23439. CheckKMSDRM
  23440. CheckGLX
  23441. CheckOpenGL
  23442. CheckOpenGLES
  23443. CheckVulkan
  23444. CheckWayland
  23445. CheckInputEvents
  23446. CheckLibUDev
  23447. CheckDBus
  23448. CheckIME
  23449. CheckInotify
  23450. CheckIBus
  23451. CheckFcitx
  23452. case $ARCH in
  23453. linux)
  23454. CheckInputKD
  23455. ;;
  23456. freebsd)
  23457. CheckInputKBIO
  23458. ;;
  23459. openbsd|netbsd)
  23460. CheckInputWSCONS
  23461. ;;
  23462. esac
  23463. CheckUSBHID
  23464. CheckHIDAPI
  23465. CheckPTHREAD
  23466. CheckClockGettime
  23467. CheckLinuxVersion
  23468. CheckRPATH
  23469. CheckVivanteVideo
  23470. # Set up files for the misc library
  23471. if test x$enable_misc = xyes; then
  23472. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  23473. have_misc=yes
  23474. fi
  23475. # Set up files for the locale library
  23476. if test x$enable_locale = xyes; then
  23477. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  23478. have_locale=yes
  23479. fi
  23480. # Set up files for the audio library
  23481. if test x$enable_audio = xyes; then
  23482. case $ARCH in
  23483. netbsd) # Don't use this on OpenBSD, it's busted.
  23484. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  23485. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  23486. SUMMARY_audio="${SUMMARY_audio} netbsd"
  23487. have_audio=yes
  23488. ;;
  23489. android)
  23490. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  23491. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  23492. SUMMARY_audio="${SUMMARY_audio} android"
  23493. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  23494. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  23495. SUMMARY_audio="${SUMMARY_audio} openslES"
  23496. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  23497. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  23498. SUMMARY_audio="${SUMMARY_audio} aaudio"
  23499. have_audio=yes
  23500. ;;
  23501. esac
  23502. fi
  23503. # Set up files for the joystick library
  23504. if test x$enable_joystick = xyes; then
  23505. case $ARCH in
  23506. linux)
  23507. if test "x$ac_cv_header_linux_input_h" = xyes; then
  23508. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  23509. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  23510. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23511. have_joystick=yes
  23512. fi
  23513. ;;
  23514. freebsd)
  23515. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  23516. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  23517. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  23518. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23519. have_joystick=yes
  23520. fi
  23521. ;;
  23522. android)
  23523. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  23524. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  23525. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23526. have_joystick=yes
  23527. ;;
  23528. esac
  23529. fi
  23530. # Set up files for the haptic library
  23531. if test x$enable_haptic = xyes; then
  23532. case $ARCH in
  23533. linux|freebsd)
  23534. if test x$use_input_events = xyes; then
  23535. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  23536. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  23537. have_haptic=yes
  23538. fi
  23539. ;;
  23540. android)
  23541. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  23542. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  23543. have_haptic=yes
  23544. ;;
  23545. esac
  23546. fi
  23547. # Set up files for the sensor library
  23548. if test x$enable_sensor = xyes; then
  23549. case $ARCH in
  23550. android)
  23551. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  23552. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  23553. have_sensor=yes
  23554. ;;
  23555. esac
  23556. fi
  23557. # Set up files for the power library
  23558. if test x$enable_power = xyes; then
  23559. case $ARCH in
  23560. linux)
  23561. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  23562. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  23563. have_power=yes
  23564. ;;
  23565. android)
  23566. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  23567. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  23568. have_power=yes
  23569. ;;
  23570. esac
  23571. fi
  23572. # Set up files for the filesystem library
  23573. if test x$enable_filesystem = xyes; then
  23574. case $ARCH in
  23575. android)
  23576. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  23577. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  23578. have_filesystem=yes
  23579. ;;
  23580. *)
  23581. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  23582. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  23583. have_filesystem=yes
  23584. ;;
  23585. esac
  23586. fi
  23587. # Set up files for the timer library
  23588. if test x$enable_timers = xyes; then
  23589. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23590. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23591. have_timers=yes
  23592. fi
  23593. # Set up files for udev hotplugging support
  23594. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  23595. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  23596. fi
  23597. # Set up files for evdev input
  23598. if test x$use_input_events = xyes; then
  23599. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  23600. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  23601. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  23602. fi
  23603. # Set up files for wscons input
  23604. if test x$use_input_wscons = xyes; then
  23605. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  23606. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  23607. fi
  23608. # Set up other core UNIX files
  23609. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  23610. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  23611. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  23612. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  23613. ;;
  23614. *-*-cygwin* | *-*-mingw*)
  23615. ARCH=win32
  23616. if test "$build" != "$host"; then # cross-compiling
  23617. # Default cross-compile location
  23618. ac_default_prefix=/usr/local/cross-tools/$host
  23619. else
  23620. # Look for the location of the tools and install there
  23621. if test "$BUILD_PREFIX" != ""; then
  23622. ac_default_prefix=$BUILD_PREFIX
  23623. fi
  23624. fi
  23625. if test x$enable_loadso = xyes; then
  23626. have_loadso=yes
  23627. fi
  23628. CheckGDwarf4
  23629. CheckWerror
  23630. CheckDeclarationAfterStatement
  23631. CheckDummyVideo
  23632. CheckOffscreenVideo
  23633. CheckDiskAudio
  23634. CheckDummyAudio
  23635. CheckWINDOWS
  23636. CheckWINDOWSGL
  23637. CheckWINDOWSGLES
  23638. CheckVulkan
  23639. CheckDIRECTX
  23640. CheckHIDAPI
  23641. # Set up the core platform files
  23642. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  23643. # Set up files for the misc library
  23644. if test x$enable_misc = xyes; then
  23645. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  23646. have_misc=yes
  23647. fi
  23648. # Use the Windows locale APIs.
  23649. if test x$enable_locale = xyes; then
  23650. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  23651. have_locale=yes
  23652. fi
  23653. # Set up files for the video library
  23654. if test x$enable_video = xyes; then
  23655. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  23656. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  23657. have_video=yes
  23658. # Check whether --enable-render-d3d was given.
  23659. if test ${enable_render_d3d+y}
  23660. then :
  23661. enableval=$enable_render_d3d;
  23662. else $as_nop
  23663. enable_render_d3d=yes
  23664. fi
  23665. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  23666. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  23667. SUMMARY_video="${SUMMARY_video} d3d9"
  23668. fi
  23669. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  23670. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  23671. SUMMARY_video="${SUMMARY_video} d3d11"
  23672. fi
  23673. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  23674. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  23675. SUMMARY_video="${SUMMARY_video} d3d12"
  23676. fi
  23677. fi
  23678. # Set up files for the audio library
  23679. if test x$enable_audio = xyes; then
  23680. if test x$have_dsound = xyes; then
  23681. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  23682. SUMMARY_audio="${SUMMARY_audio} directsound"
  23683. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  23684. fi
  23685. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  23686. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  23687. SUMMARY_audio="${SUMMARY_audio} wasapi"
  23688. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  23689. fi
  23690. have_audio=yes
  23691. fi
  23692. # Set up files for the joystick library
  23693. if test x$enable_joystick = xyes; then
  23694. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  23695. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  23696. if test x$have_xinput = xyes; then
  23697. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  23698. fi
  23699. if test x$have_wgi = xyes; then
  23700. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  23701. fi
  23702. if test x$have_dinput = xyes; then
  23703. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  23704. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  23705. fi
  23706. fi
  23707. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  23708. have_joystick=yes
  23709. fi
  23710. if test x$enable_haptic = xyes; then
  23711. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  23712. if test x$have_xinput = xyes; then
  23713. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  23714. fi
  23715. if test x$have_dinput = xyes; then
  23716. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  23717. fi
  23718. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  23719. have_haptic=yes
  23720. fi
  23721. fi
  23722. # Set up files for the sensor library
  23723. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  23724. if test "x$ac_cv_header_sensorsapi_h" = xyes
  23725. then :
  23726. have_winsensors=yes
  23727. else $as_nop
  23728. have_winsensors=no
  23729. fi
  23730. if test x$have_winsensors = xyes; then
  23731. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  23732. fi
  23733. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  23734. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  23735. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  23736. have_sensor=yes
  23737. fi
  23738. # Set up files for the power library
  23739. if test x$enable_power = xyes; then
  23740. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  23741. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  23742. have_power=yes
  23743. fi
  23744. # Set up files for the filesystem library
  23745. if test x$enable_filesystem = xyes; then
  23746. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  23747. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  23748. have_filesystem=yes
  23749. fi
  23750. # Set up files for the thread library
  23751. if test x$enable_threads = xyes; then
  23752. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  23753. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  23754. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  23755. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  23756. have_threads=yes
  23757. fi
  23758. # Set up files for the timer library
  23759. if test x$enable_timers = xyes; then
  23760. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  23761. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  23762. have_timers=yes
  23763. fi
  23764. # Set up files for the shared object loading library
  23765. if test x$enable_loadso = xyes; then
  23766. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  23767. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  23768. fi
  23769. # Set up the system libraries we need
  23770. if test -f /lib/w32api/libuuid.a; then
  23771. LIBUUID=/lib/w32api/libuuid.a
  23772. else
  23773. LIBUUID=-luuid
  23774. fi
  23775. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  23776. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  23777. # The Windows platform requires special setup
  23778. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  23779. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  23780. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  23781. SDL_LIBS="-lSDL3main $SDL_LIBS -mwindows"
  23782. # Check to see if this is a mingw or cygwin build
  23783. have_mingw32=
  23784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  23785. printf %s "checking for main in -lmingw32... " >&6; }
  23786. if test ${ac_cv_lib_mingw32_main+y}
  23787. then :
  23788. printf %s "(cached) " >&6
  23789. else $as_nop
  23790. ac_check_lib_save_LIBS=$LIBS
  23791. LIBS="-lmingw32 $LIBS"
  23792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23793. /* end confdefs.h. */
  23794. int
  23795. main (void)
  23796. {
  23797. return main ();
  23798. ;
  23799. return 0;
  23800. }
  23801. _ACEOF
  23802. if ac_fn_c_try_link "$LINENO"
  23803. then :
  23804. ac_cv_lib_mingw32_main=yes
  23805. else $as_nop
  23806. ac_cv_lib_mingw32_main=no
  23807. fi
  23808. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23809. conftest$ac_exeext conftest.$ac_ext
  23810. LIBS=$ac_check_lib_save_LIBS
  23811. fi
  23812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  23813. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  23814. if test "x$ac_cv_lib_mingw32_main" = xyes
  23815. then :
  23816. have_mingw32=yes
  23817. fi
  23818. if test x$have_mingw32 = xyes; then
  23819. SDL_LIBS="-lmingw32 $SDL_LIBS"
  23820. else
  23821. SDL_LIBS="-lcygwin $SDL_LIBS"
  23822. fi
  23823. ;;
  23824. *-*-beos*)
  23825. as_fn_error $? "
  23826. *** BeOS support has been removed as of SDL 2.0.2.
  23827. " "$LINENO" 5
  23828. ;;
  23829. *-*-haiku*)
  23830. ARCH=haiku
  23831. ac_default_prefix=/boot/system
  23832. CheckDummyVideo
  23833. CheckOffscreenVideo
  23834. CheckDiskAudio
  23835. CheckDummyAudio
  23836. CheckDLOPEN
  23837. CheckO_CLOEXEC
  23838. CheckHaikuVideo
  23839. CheckHaikuGL
  23840. CheckPTHREAD
  23841. # Set up files for the audio library
  23842. if test x$enable_audio = xyes; then
  23843. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  23844. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  23845. SUMMARY_audio="${SUMMARY_audio} haiku"
  23846. have_audio=yes
  23847. fi
  23848. # Set up files for the joystick library
  23849. if test x$enable_joystick = xyes; then
  23850. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  23851. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  23852. have_joystick=yes
  23853. fi
  23854. # Set up files for the timer library
  23855. if test x$enable_timers = xyes; then
  23856. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  23857. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  23858. have_timers=yes
  23859. fi
  23860. # Set up files for the system power library
  23861. if test x$enable_power = xyes; then
  23862. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  23863. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  23864. have_power=yes
  23865. fi
  23866. # Set up files for the system filesystem library
  23867. if test x$enable_filesystem = xyes; then
  23868. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  23869. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  23870. have_filesystem=yes
  23871. fi
  23872. # Set up files for the misc library
  23873. if test x$enable_misc = xyes; then
  23874. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  23875. have_misc=yes
  23876. fi
  23877. # Set up files for the locale library
  23878. if test x$enable_locale = xyes; then
  23879. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  23880. have_locale=yes
  23881. fi
  23882. # The Haiku platform requires special setup.
  23883. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  23884. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  23885. ;;
  23886. *-ios-*)
  23887. ARCH=ios
  23888. CheckVisibilityHidden
  23889. CheckWerror
  23890. CheckNoErrorDeprecatedDeclarationsWerror
  23891. CheckDeclarationAfterStatement
  23892. CheckDummyVideo
  23893. CheckOffscreenVideo
  23894. CheckDiskAudio
  23895. CheckDummyAudio
  23896. CheckDLOPEN
  23897. CheckO_CLOEXEC
  23898. CheckMETAL
  23899. CheckVulkan
  23900. CheckPTHREAD
  23901. # Set up files for the misc library
  23902. if test x$enable_misc = xyes; then
  23903. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  23904. have_misc=yes
  23905. fi
  23906. # Set up files for the locale library
  23907. if test x$enable_locale = xyes; then
  23908. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  23909. have_locale=yes
  23910. fi
  23911. # Set up files for the audio library
  23912. if test x$enable_audio = xyes; then
  23913. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  23914. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  23915. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  23916. have_audio=yes
  23917. fi
  23918. # Set up files for the joystick library
  23919. if test x$enable_joystick = xyes; then
  23920. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23921. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  23922. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23923. have_joystick=yes
  23924. else
  23925. # Need this code for accelerometer as joystick support
  23926. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  23927. fi
  23928. # Set up files for the haptic library
  23929. #if test x$enable_haptic = xyes; then
  23930. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  23931. # have_haptic=yes
  23932. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  23933. #fi
  23934. # Set up files for the sensor library
  23935. if test x$enable_sensor = xyes; then
  23936. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  23937. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  23938. have_sensor=yes
  23939. fi
  23940. # Set up files for the power library
  23941. if test x$enable_power = xyes; then
  23942. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  23943. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  23944. have_power=yes
  23945. fi
  23946. # Set up files for the filesystem library
  23947. if test x$enable_filesystem = xyes; then
  23948. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  23949. have_filesystem=yes
  23950. fi
  23951. # Set up additional files for the file library
  23952. if test x$enable_file = xyes; then
  23953. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  23954. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  23955. fi
  23956. # Set up files for the timer library
  23957. if test x$enable_timers = xyes; then
  23958. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23959. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23960. have_timers=yes
  23961. fi
  23962. # Set up other core UNIX files
  23963. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  23964. # The iOS platform requires special setup.
  23965. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  23966. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  23967. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  23968. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  23969. SUMMARY_video="${SUMMARY_video} uikit"
  23970. have_video=yes
  23971. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  23972. if test x$enable_system_iconv = xyes; then
  23973. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  23974. fi
  23975. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  23976. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  23977. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  23978. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  23979. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  23980. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  23981. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  23982. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  23983. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  23984. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  23985. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  23986. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  23987. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  23988. fi
  23989. ;;
  23990. *-*-darwin* )
  23991. # This could be either full "Mac OS X", or plain "Darwin" which is
  23992. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  23993. # Next line is broken, and a few files below require Mac OS X (full)
  23994. ARCH=macosx
  23995. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  23996. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  23997. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  23998. CheckObjectiveCARC
  23999. CheckVisibilityHidden
  24000. CheckWerror
  24001. CheckNoErrorDeprecatedDeclarationsWerror
  24002. CheckDeclarationAfterStatement
  24003. CheckDummyVideo
  24004. CheckOffscreenVideo
  24005. CheckDiskAudio
  24006. CheckDummyAudio
  24007. CheckDLOPEN
  24008. CheckO_CLOEXEC
  24009. CheckCOCOA
  24010. CheckMETAL
  24011. CheckX11
  24012. CheckMacGL
  24013. CheckMacGLES
  24014. CheckGLX
  24015. CheckOpenGL
  24016. CheckVulkan
  24017. CheckPTHREAD
  24018. CheckHIDAPI
  24019. # Set up files for the misc library
  24020. if test x$enable_misc = xyes; then
  24021. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  24022. have_misc=yes
  24023. fi
  24024. # Set up files for the locale library
  24025. if test x$enable_locale = xyes; then
  24026. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24027. have_locale=yes
  24028. fi
  24029. # Set up files for the audio library
  24030. if test x$enable_audio = xyes; then
  24031. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24032. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24033. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  24034. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24035. have_audio=yes
  24036. fi
  24037. # Set up files for the joystick library
  24038. if test x$enable_joystick = xyes; then
  24039. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  24040. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  24041. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24042. CheckJoystickMFI
  24043. have_joystick=yes
  24044. fi
  24045. # Set up files for the haptic library
  24046. if test x$enable_haptic = xyes; then
  24047. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  24048. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24049. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24050. have_haptic=yes
  24051. fi
  24052. # Set up files for the power library
  24053. if test x$enable_power = xyes; then
  24054. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  24055. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  24056. have_power=yes
  24057. fi
  24058. # Set up files for the filesystem library
  24059. if test x$enable_filesystem = xyes; then
  24060. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24061. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24062. have_filesystem=yes
  24063. fi
  24064. # Set up files for the timer library
  24065. if test x$enable_timers = xyes; then
  24066. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24067. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24068. have_timers=yes
  24069. fi
  24070. # Set up additional files for the file library
  24071. if test x$enable_file = xyes; then
  24072. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24073. fi
  24074. # Set up other core UNIX files
  24075. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24076. # The Mac OS X platform requires special setup.
  24077. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  24078. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  24079. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  24080. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  24081. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  24082. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24083. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  24084. fi
  24085. ;;
  24086. *-*-emscripten* )
  24087. if test x$enable_video = xyes; then
  24088. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  24089. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  24090. have_video=yes
  24091. SUMMARY_video="${SUMMARY_video} emscripten"
  24092. fi
  24093. if test x$enable_audio = xyes; then
  24094. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  24095. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  24096. have_audio=yes
  24097. SUMMARY_audio="${SUMMARY_audio} emscripten"
  24098. fi
  24099. CheckVisibilityHidden
  24100. CheckWerror
  24101. CheckDeclarationAfterStatement
  24102. CheckDummyVideo
  24103. CheckOffscreenVideo
  24104. CheckDiskAudio
  24105. CheckDummyAudio
  24106. CheckPTHREAD
  24107. CheckDLOPEN
  24108. CheckClockGettime
  24109. CheckEmscriptenGLES
  24110. # Set up files for the misc library
  24111. if test x$enable_misc = xyes; then
  24112. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  24113. have_misc=yes
  24114. fi
  24115. # Set up files for the power library
  24116. if test x$enable_power = xyes; then
  24117. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  24118. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  24119. have_power=yes
  24120. fi
  24121. # Set up files for the joystick library
  24122. if test x$enable_joystick = xyes; then
  24123. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  24124. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  24125. have_joystick=yes
  24126. fi
  24127. # Set up files for the filesystem library
  24128. if test x$enable_filesystem = xyes; then
  24129. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  24130. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  24131. have_filesystem=yes
  24132. fi
  24133. # Set up files for the timer library
  24134. if test x$enable_timers = xyes; then
  24135. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24136. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24137. have_timers=yes
  24138. fi
  24139. # Set up files for the locale library
  24140. if test x$enable_locale = xyes; then
  24141. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  24142. have_locale=yes
  24143. fi
  24144. ;;
  24145. *-*-riscos*)
  24146. ARCH=riscos
  24147. CheckVisibilityHidden
  24148. CheckWerror
  24149. CheckDeclarationAfterStatement
  24150. CheckDummyVideo
  24151. CheckOffscreenVideo
  24152. CheckDiskAudio
  24153. CheckDummyAudio
  24154. CheckDLOPEN
  24155. CheckO_CLOEXEC
  24156. CheckOSS
  24157. CheckPTHREAD
  24158. CheckClockGettime
  24159. # Set up files for the misc library
  24160. if test x$enable_misc = xyes; then
  24161. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  24162. have_misc=yes
  24163. fi
  24164. # Set up files for the video library
  24165. if test x$enable_video = xyes; then
  24166. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  24167. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  24168. have_video=yes
  24169. SUMMARY_video="${SUMMARY_video} riscos"
  24170. fi
  24171. # Set up files for the filesystem library
  24172. if test x$enable_filesystem = xyes; then
  24173. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  24174. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  24175. have_filesystem=yes
  24176. fi
  24177. # Set up files for the timer library
  24178. if test x$enable_timers = xyes; then
  24179. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24180. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24181. have_timers=yes
  24182. fi
  24183. ;;
  24184. *)
  24185. as_fn_error $? "
  24186. *** Unsupported host: Please add to configure.ac
  24187. " "$LINENO" 5
  24188. ;;
  24189. esac
  24190. CheckVirtualJoystick
  24191. # Check whether to install sdl3-config
  24192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl3-config" >&5
  24193. printf %s "checking whether to install sdl3-config... " >&6; }
  24194. # Check whether --enable-sdl3-config was given.
  24195. if test ${enable_sdl3_config+y}
  24196. then :
  24197. enableval=$enable_sdl3_config; case "${enableval}" in
  24198. yes) enable_sdl3_config="TRUE" ;;
  24199. no) enable_sdl3_config="FALSE" ;;
  24200. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl3-config" "$LINENO" 5 ;;
  24201. esac
  24202. else $as_nop
  24203. enable_sdl3_config="TRUE"
  24204. fi
  24205. if test "$enable_sdl3_config" = "TRUE"; then
  24206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24207. printf "%s\n" "yes" >&6; }
  24208. else
  24209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24210. printf "%s\n" "no" >&6; }
  24211. fi
  24212. INSTALL_SDL3_CONFIG=$enable_sdl3_config
  24213. # Check whether --enable-vendor-info was given.
  24214. if test ${enable_vendor_info+y}
  24215. then :
  24216. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  24217. else $as_nop
  24218. enable_vendor_info=
  24219. fi
  24220. if test "$enable_vendor_info" = no
  24221. then :
  24222. enable_vendor_info=
  24223. fi
  24224. SDL_VENDOR_INFO=$enable_vendor_info
  24225. # Verify that we have all the platform specific files we need
  24226. if test x$have_audio != xyes; then
  24227. if test x$enable_audio = xyes; then
  24228. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  24229. fi
  24230. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  24231. fi
  24232. if test x$have_video != xyes; then
  24233. if test x$enable_video = xyes; then
  24234. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  24235. fi
  24236. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  24237. fi
  24238. if test x$have_misc != xyes; then
  24239. if test x$enable_misc = xyes; then
  24240. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  24241. fi
  24242. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  24243. fi
  24244. if test x$have_locale != xyes; then
  24245. if test x$enable_locale = xyes; then
  24246. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  24247. fi
  24248. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  24249. fi
  24250. if test x$have_joystick != xyes; then
  24251. if test x$enable_joystick = xyes; then
  24252. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  24253. fi
  24254. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  24255. fi
  24256. if test x$have_haptic != xyes; then
  24257. if test x$enable_haptic = xyes; then
  24258. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  24259. fi
  24260. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  24261. fi
  24262. if test x$have_sensor != xyes; then
  24263. if test x$enable_sensor = xyes; then
  24264. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  24265. fi
  24266. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  24267. fi
  24268. if test x$have_threads != xyes; then
  24269. if test x$enable_threads = xyes; then
  24270. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  24271. fi
  24272. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  24273. fi
  24274. if test x$have_timers != xyes; then
  24275. if test x$enable_timers = xyes; then
  24276. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  24277. fi
  24278. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  24279. fi
  24280. if test x$have_filesystem != xyes; then
  24281. if test x$enable_filesystem = xyes; then
  24282. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  24283. fi
  24284. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  24285. fi
  24286. if test x$have_loadso != xyes; then
  24287. if test x$enable_loadso = xyes; then
  24288. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  24289. fi
  24290. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  24291. fi
  24292. if test x$SDLMAIN_SOURCES = x; then
  24293. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  24294. fi
  24295. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  24296. if test x$video_wayland = xyes; then
  24297. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  24298. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  24299. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  24300. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  24301. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  24302. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  24303. echo ;\
  24304. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  24305. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  24306. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  24307. echo ;\
  24308. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  24309. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  24310. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  24311. echo ;\
  24312. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  24313. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  24314. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  24315. done ;\
  24316. echo ;\
  24317. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  24318. fi
  24319. OBJECTS=`echo $SOURCES`
  24320. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  24321. for EXT in asm cc m c S; do
  24322. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  24323. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  24324. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  24325. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24326. done
  24327. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24328. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  24329. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  24330. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  24331. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  24332. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  24333. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  24334. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  24335. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  24336. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24337. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  24338. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  24339. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24340. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  24341. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  24342. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24343. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  24344. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  24345. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24346. # Set runtime shared library paths as needed
  24347. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  24348. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  24349. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  24350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  24351. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  24352. have_enable_new_dtags=no
  24353. save_LDFLAGS="$LDFLAGS"
  24354. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  24355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24356. /* end confdefs.h. */
  24357. int
  24358. main (void)
  24359. {
  24360. ;
  24361. return 0;
  24362. }
  24363. _ACEOF
  24364. if ac_fn_c_try_link "$LINENO"
  24365. then :
  24366. have_enable_new_dtags=yes
  24367. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  24368. fi
  24369. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24370. conftest$ac_exeext conftest.$ac_ext
  24371. LDFLAGS="$save_LDFLAGS"
  24372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  24373. printf "%s\n" "$have_enable_new_dtags" >&6; }
  24374. fi
  24375. if test $ARCH = solaris; then
  24376. SDL_RLD_FLAGS="-R\${libdir}"
  24377. fi
  24378. else
  24379. SDL_RLD_FLAGS=""
  24380. fi
  24381. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  24382. pkg_cmakedir='$libdir/cmake/SDL3'
  24383. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  24384. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  24385. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  24386. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  24387. _lcl_receval="$_lcl_from"
  24388. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  24389. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  24390. _lcl_receval_old=''
  24391. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  24392. _lcl_receval_old="$_lcl_receval"
  24393. eval _lcl_receval="\"$_lcl_receval\""
  24394. done
  24395. echo "$_lcl_receval")`
  24396. _lcl_receval="$_lcl_to"
  24397. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  24398. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  24399. _lcl_receval_old=''
  24400. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  24401. _lcl_receval_old="$_lcl_receval"
  24402. eval _lcl_receval="\"$_lcl_receval\""
  24403. done
  24404. echo "$_lcl_receval")`
  24405. _lcl_notation="$_lcl_from$_lcl_to"
  24406. case ":$_lcl_from:" in
  24407. # change empty paths to '.'
  24408. ::) _lcl_from='.' ;;
  24409. # strip trailing slashes
  24410. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  24411. :*:) ;;
  24412. esac
  24413. # squeeze repeated slashes
  24414. case '/' in
  24415. # if the path contains any backslashes, turn slashes into backslashes
  24416. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24417. # if the path contains slashes, also turn backslashes into slashes
  24418. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24419. esac
  24420. case ":$_lcl_to:" in
  24421. # change empty paths to '.'
  24422. ::) _lcl_to='.' ;;
  24423. # strip trailing slashes
  24424. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  24425. :*:) ;;
  24426. esac
  24427. # squeeze repeated slashes
  24428. case '/' in
  24429. # if the path contains any backslashes, turn slashes into backslashes
  24430. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24431. # if the path contains slashes, also turn backslashes into slashes
  24432. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24433. esac
  24434. _lcl_common_prefix=''
  24435. _lcl_second_prefix_match=''
  24436. while test "$_lcl_second_prefix_match" != 0; do
  24437. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  24438. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  24439. if test "$_lcl_second_prefix_match" != 0; then
  24440. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  24441. _lcl_common_prefix="$_lcl_first_prefix"
  24442. else
  24443. _lcl_second_prefix_match=0
  24444. fi
  24445. fi
  24446. done
  24447. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  24448. _lcl_first_rel=''
  24449. _lcl_tmp='xxx'
  24450. while test "$_lcl_tmp" != ''; do
  24451. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  24452. if test "$_lcl_first_suffix" != ''; then
  24453. _lcl_first_suffix="$_lcl_tmp"
  24454. _lcl_first_rel="../$_lcl_first_rel"
  24455. fi
  24456. done
  24457. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  24458. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  24459. case ":$_lcl_result_tmp:" in
  24460. # change empty paths to '.'
  24461. ::) _lcl_result_tmp='.' ;;
  24462. # strip trailing slashes
  24463. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  24464. :*:) ;;
  24465. esac
  24466. # squeeze repeated slashes
  24467. case "$_lcl_notation" in
  24468. # if the path contains any backslashes, turn slashes into backslashes
  24469. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24470. # if the path contains slashes, also turn backslashes into slashes
  24471. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24472. esac
  24473. eval $_lcl_result_var='$_lcl_result_tmp'
  24474. done
  24475. if test x$enable_shared = xyes; then
  24476. PKGCONFIG_LIBS_PRIV="
  24477. Libs.private:"
  24478. ENABLE_SHARED_TRUE=
  24479. ENABLE_SHARED_FALSE="#"
  24480. else
  24481. PKGCONFIG_LIBS_PRIV=
  24482. ENABLE_SHARED_TRUE="#"
  24483. ENABLE_SHARED_FALSE=
  24484. fi
  24485. if test x$enable_static = xyes; then
  24486. ENABLE_STATIC_TRUE=
  24487. ENABLE_STATIC_FALSE="#"
  24488. else
  24489. ENABLE_STATIC_TRUE="#"
  24490. ENABLE_STATIC_FALSE=
  24491. fi
  24492. cat >Makefile.rules <<__EOF__
  24493. # Build rules for objects
  24494. -include \$(OBJECTS:.lo=.d)
  24495. # Special dependency for SDL.c, since it depends on SDL_revision.h
  24496. $srcdir/src/SDL.c: update-revision
  24497. $DEPENDS
  24498. $VERSION_DEPENDS
  24499. $SDLMAIN_DEPENDS
  24500. $SDLTEST_DEPENDS
  24501. $WAYLAND_PROTOCOLS_DEPENDS
  24502. __EOF__
  24503. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl3-config sdl3-config.cmake sdl3-config-version.cmake SDL3.spec sdl3.pc"
  24504. ac_config_commands="$ac_config_commands sdl3_config"
  24505. SUMMARY="SDL3 Configure Summary:\n"
  24506. if test x$enable_shared = xyes; then
  24507. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  24508. fi
  24509. if test x$enable_static = xyes; then
  24510. SUMMARY="${SUMMARY}Building Static Libraries\n"
  24511. fi
  24512. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  24513. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  24514. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  24515. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  24516. if test x$have_x = xyes; then
  24517. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  24518. fi
  24519. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  24520. if test x$have_joystick_virtual = xyes; then
  24521. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  24522. else
  24523. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  24524. fi
  24525. if test x$have_samplerate_h_hdr = xyes; then
  24526. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  24527. else
  24528. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  24529. fi
  24530. if test x$have_libudev_h_hdr = xyes; then
  24531. SUMMARY="${SUMMARY}Using libudev : YES\n"
  24532. else
  24533. SUMMARY="${SUMMARY}Using libudev : NO\n"
  24534. fi
  24535. if test x$have_dbus_dbus_h_hdr = xyes; then
  24536. SUMMARY="${SUMMARY}Using dbus : YES\n"
  24537. else
  24538. SUMMARY="${SUMMARY}Using dbus : NO\n"
  24539. fi
  24540. if test x$enable_ime = xyes; then
  24541. SUMMARY="${SUMMARY}Using ime : YES\n"
  24542. else
  24543. SUMMARY="${SUMMARY}Using ime : NO\n"
  24544. fi
  24545. if test x$have_ibus_ibus_h_hdr = xyes; then
  24546. SUMMARY="${SUMMARY}Using ibus : YES\n"
  24547. else
  24548. SUMMARY="${SUMMARY}Using ibus : NO\n"
  24549. fi
  24550. if test x$have_fcitx = xyes; then
  24551. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  24552. else
  24553. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  24554. fi
  24555. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  24556. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  24557. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  24558. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  24559. SUMMARY="${SUMMARY}configure script with:\n"
  24560. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  24561. fi
  24562. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  24563. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  24564. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  24565. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  24566. SUMMARY="${SUMMARY}configure script with:\n"
  24567. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  24568. fi
  24569. ac_config_commands="$ac_config_commands summary"
  24570. cat >confcache <<\_ACEOF
  24571. # This file is a shell script that caches the results of configure
  24572. # tests run on this system so they can be shared between configure
  24573. # scripts and configure runs, see configure's option --config-cache.
  24574. # It is not useful on other systems. If it contains results you don't
  24575. # want to keep, you may remove or edit it.
  24576. #
  24577. # config.status only pays attention to the cache file if you give it
  24578. # the --recheck option to rerun configure.
  24579. #
  24580. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  24581. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  24582. # following values.
  24583. _ACEOF
  24584. # The following way of writing the cache mishandles newlines in values,
  24585. # but we know of no workaround that is simple, portable, and efficient.
  24586. # So, we kill variables containing newlines.
  24587. # Ultrix sh set writes to stderr and can't be redirected directly,
  24588. # and sets the high bit in the cache file unless we assign to the vars.
  24589. (
  24590. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  24591. eval ac_val=\$$ac_var
  24592. case $ac_val in #(
  24593. *${as_nl}*)
  24594. case $ac_var in #(
  24595. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  24596. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  24597. esac
  24598. case $ac_var in #(
  24599. _ | IFS | as_nl) ;; #(
  24600. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  24601. *) { eval $ac_var=; unset $ac_var;} ;;
  24602. esac ;;
  24603. esac
  24604. done
  24605. (set) 2>&1 |
  24606. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  24607. *${as_nl}ac_space=\ *)
  24608. # `set' does not quote correctly, so add quotes: double-quote
  24609. # substitution turns \\\\ into \\, and sed turns \\ into \.
  24610. sed -n \
  24611. "s/'/'\\\\''/g;
  24612. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  24613. ;; #(
  24614. *)
  24615. # `set' quotes correctly as required by POSIX, so do not add quotes.
  24616. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  24617. ;;
  24618. esac |
  24619. sort
  24620. ) |
  24621. sed '
  24622. /^ac_cv_env_/b end
  24623. t clear
  24624. :clear
  24625. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  24626. t end
  24627. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  24628. :end' >>confcache
  24629. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  24630. if test -w "$cache_file"; then
  24631. if test "x$cache_file" != "x/dev/null"; then
  24632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  24633. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  24634. if test ! -f "$cache_file" || test -h "$cache_file"; then
  24635. cat confcache >"$cache_file"
  24636. else
  24637. case $cache_file in #(
  24638. */* | ?:*)
  24639. mv -f confcache "$cache_file"$$ &&
  24640. mv -f "$cache_file"$$ "$cache_file" ;; #(
  24641. *)
  24642. mv -f confcache "$cache_file" ;;
  24643. esac
  24644. fi
  24645. fi
  24646. else
  24647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  24648. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  24649. fi
  24650. fi
  24651. rm -f confcache
  24652. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  24653. # Let make expand exec_prefix.
  24654. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  24655. DEFS=-DHAVE_CONFIG_H
  24656. ac_libobjs=
  24657. ac_ltlibobjs=
  24658. U=
  24659. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  24660. # 1. Remove the extension, and $U if already installed.
  24661. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  24662. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  24663. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  24664. # will be set to the directory where LIBOBJS objects are built.
  24665. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  24666. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  24667. done
  24668. LIBOBJS=$ac_libobjs
  24669. LTLIBOBJS=$ac_ltlibobjs
  24670. : "${CONFIG_STATUS=./config.status}"
  24671. ac_write_fail=0
  24672. ac_clean_files_save=$ac_clean_files
  24673. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  24674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  24675. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  24676. as_write_fail=0
  24677. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  24678. #! $SHELL
  24679. # Generated by $as_me.
  24680. # Run this file to recreate the current configuration.
  24681. # Compiler output produced by configure, useful for debugging
  24682. # configure, is in config.log if it exists.
  24683. debug=false
  24684. ac_cs_recheck=false
  24685. ac_cs_silent=false
  24686. SHELL=\${CONFIG_SHELL-$SHELL}
  24687. export SHELL
  24688. _ASEOF
  24689. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  24690. ## -------------------- ##
  24691. ## M4sh Initialization. ##
  24692. ## -------------------- ##
  24693. # Be more Bourne compatible
  24694. DUALCASE=1; export DUALCASE # for MKS sh
  24695. as_nop=:
  24696. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  24697. then :
  24698. emulate sh
  24699. NULLCMD=:
  24700. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24701. # is contrary to our usage. Disable this feature.
  24702. alias -g '${1+"$@"}'='"$@"'
  24703. setopt NO_GLOB_SUBST
  24704. else $as_nop
  24705. case `(set -o) 2>/dev/null` in #(
  24706. *posix*) :
  24707. set -o posix ;; #(
  24708. *) :
  24709. ;;
  24710. esac
  24711. fi
  24712. # Reset variables that may have inherited troublesome values from
  24713. # the environment.
  24714. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  24715. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  24716. # side effect of setting IFS to empty, thus disabling word splitting.)
  24717. # Quoting is to prevent editors from complaining about space-tab.
  24718. as_nl='
  24719. '
  24720. export as_nl
  24721. IFS=" "" $as_nl"
  24722. PS1='$ '
  24723. PS2='> '
  24724. PS4='+ '
  24725. # Ensure predictable behavior from utilities with locale-dependent output.
  24726. LC_ALL=C
  24727. export LC_ALL
  24728. LANGUAGE=C
  24729. export LANGUAGE
  24730. # We cannot yet rely on "unset" to work, but we need these variables
  24731. # to be unset--not just set to an empty or harmless value--now, to
  24732. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  24733. # also avoids known problems related to "unset" and subshell syntax
  24734. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  24735. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  24736. do eval test \${$as_var+y} \
  24737. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  24738. done
  24739. # Ensure that fds 0, 1, and 2 are open.
  24740. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  24741. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  24742. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  24743. # The user is always right.
  24744. if ${PATH_SEPARATOR+false} :; then
  24745. PATH_SEPARATOR=:
  24746. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  24747. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  24748. PATH_SEPARATOR=';'
  24749. }
  24750. fi
  24751. # Find who we are. Look in the path if we contain no directory separator.
  24752. as_myself=
  24753. case $0 in #((
  24754. *[\\/]* ) as_myself=$0 ;;
  24755. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24756. for as_dir in $PATH
  24757. do
  24758. IFS=$as_save_IFS
  24759. case $as_dir in #(((
  24760. '') as_dir=./ ;;
  24761. */) ;;
  24762. *) as_dir=$as_dir/ ;;
  24763. esac
  24764. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  24765. done
  24766. IFS=$as_save_IFS
  24767. ;;
  24768. esac
  24769. # We did not find ourselves, most probably we were run as `sh COMMAND'
  24770. # in which case we are not to be found in the path.
  24771. if test "x$as_myself" = x; then
  24772. as_myself=$0
  24773. fi
  24774. if test ! -f "$as_myself"; then
  24775. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  24776. exit 1
  24777. fi
  24778. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  24779. # ----------------------------------------
  24780. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  24781. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  24782. # script with STATUS, using 1 if that was 0.
  24783. as_fn_error ()
  24784. {
  24785. as_status=$1; test $as_status -eq 0 && as_status=1
  24786. if test "$4"; then
  24787. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  24788. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  24789. fi
  24790. printf "%s\n" "$as_me: error: $2" >&2
  24791. as_fn_exit $as_status
  24792. } # as_fn_error
  24793. # as_fn_set_status STATUS
  24794. # -----------------------
  24795. # Set $? to STATUS, without forking.
  24796. as_fn_set_status ()
  24797. {
  24798. return $1
  24799. } # as_fn_set_status
  24800. # as_fn_exit STATUS
  24801. # -----------------
  24802. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  24803. as_fn_exit ()
  24804. {
  24805. set +e
  24806. as_fn_set_status $1
  24807. exit $1
  24808. } # as_fn_exit
  24809. # as_fn_unset VAR
  24810. # ---------------
  24811. # Portably unset VAR.
  24812. as_fn_unset ()
  24813. {
  24814. { eval $1=; unset $1;}
  24815. }
  24816. as_unset=as_fn_unset
  24817. # as_fn_append VAR VALUE
  24818. # ----------------------
  24819. # Append the text in VALUE to the end of the definition contained in VAR. Take
  24820. # advantage of any shell optimizations that allow amortized linear growth over
  24821. # repeated appends, instead of the typical quadratic growth present in naive
  24822. # implementations.
  24823. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  24824. then :
  24825. eval 'as_fn_append ()
  24826. {
  24827. eval $1+=\$2
  24828. }'
  24829. else $as_nop
  24830. as_fn_append ()
  24831. {
  24832. eval $1=\$$1\$2
  24833. }
  24834. fi # as_fn_append
  24835. # as_fn_arith ARG...
  24836. # ------------------
  24837. # Perform arithmetic evaluation on the ARGs, and store the result in the
  24838. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  24839. # must be portable across $(()) and expr.
  24840. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  24841. then :
  24842. eval 'as_fn_arith ()
  24843. {
  24844. as_val=$(( $* ))
  24845. }'
  24846. else $as_nop
  24847. as_fn_arith ()
  24848. {
  24849. as_val=`expr "$@" || test $? -eq 1`
  24850. }
  24851. fi # as_fn_arith
  24852. if expr a : '\(a\)' >/dev/null 2>&1 &&
  24853. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  24854. as_expr=expr
  24855. else
  24856. as_expr=false
  24857. fi
  24858. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  24859. as_basename=basename
  24860. else
  24861. as_basename=false
  24862. fi
  24863. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  24864. as_dirname=dirname
  24865. else
  24866. as_dirname=false
  24867. fi
  24868. as_me=`$as_basename -- "$0" ||
  24869. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  24870. X"$0" : 'X\(//\)$' \| \
  24871. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  24872. printf "%s\n" X/"$0" |
  24873. sed '/^.*\/\([^/][^/]*\)\/*$/{
  24874. s//\1/
  24875. q
  24876. }
  24877. /^X\/\(\/\/\)$/{
  24878. s//\1/
  24879. q
  24880. }
  24881. /^X\/\(\/\).*/{
  24882. s//\1/
  24883. q
  24884. }
  24885. s/.*/./; q'`
  24886. # Avoid depending upon Character Ranges.
  24887. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  24888. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  24889. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  24890. as_cr_digits='0123456789'
  24891. as_cr_alnum=$as_cr_Letters$as_cr_digits
  24892. # Determine whether it's possible to make 'echo' print without a newline.
  24893. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  24894. # for compatibility with existing Makefiles.
  24895. ECHO_C= ECHO_N= ECHO_T=
  24896. case `echo -n x` in #(((((
  24897. -n*)
  24898. case `echo 'xy\c'` in
  24899. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  24900. xy) ECHO_C='\c';;
  24901. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  24902. ECHO_T=' ';;
  24903. esac;;
  24904. *)
  24905. ECHO_N='-n';;
  24906. esac
  24907. # For backward compatibility with old third-party macros, we provide
  24908. # the shell variables $as_echo and $as_echo_n. New code should use
  24909. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  24910. as_echo='printf %s\n'
  24911. as_echo_n='printf %s'
  24912. rm -f conf$$ conf$$.exe conf$$.file
  24913. if test -d conf$$.dir; then
  24914. rm -f conf$$.dir/conf$$.file
  24915. else
  24916. rm -f conf$$.dir
  24917. mkdir conf$$.dir 2>/dev/null
  24918. fi
  24919. if (echo >conf$$.file) 2>/dev/null; then
  24920. if ln -s conf$$.file conf$$ 2>/dev/null; then
  24921. as_ln_s='ln -s'
  24922. # ... but there are two gotchas:
  24923. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  24924. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  24925. # In both cases, we have to default to `cp -pR'.
  24926. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  24927. as_ln_s='cp -pR'
  24928. elif ln conf$$.file conf$$ 2>/dev/null; then
  24929. as_ln_s=ln
  24930. else
  24931. as_ln_s='cp -pR'
  24932. fi
  24933. else
  24934. as_ln_s='cp -pR'
  24935. fi
  24936. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  24937. rmdir conf$$.dir 2>/dev/null
  24938. # as_fn_mkdir_p
  24939. # -------------
  24940. # Create "$as_dir" as a directory, including parents if necessary.
  24941. as_fn_mkdir_p ()
  24942. {
  24943. case $as_dir in #(
  24944. -*) as_dir=./$as_dir;;
  24945. esac
  24946. test -d "$as_dir" || eval $as_mkdir_p || {
  24947. as_dirs=
  24948. while :; do
  24949. case $as_dir in #(
  24950. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  24951. *) as_qdir=$as_dir;;
  24952. esac
  24953. as_dirs="'$as_qdir' $as_dirs"
  24954. as_dir=`$as_dirname -- "$as_dir" ||
  24955. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24956. X"$as_dir" : 'X\(//\)[^/]' \| \
  24957. X"$as_dir" : 'X\(//\)$' \| \
  24958. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  24959. printf "%s\n" X"$as_dir" |
  24960. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24961. s//\1/
  24962. q
  24963. }
  24964. /^X\(\/\/\)[^/].*/{
  24965. s//\1/
  24966. q
  24967. }
  24968. /^X\(\/\/\)$/{
  24969. s//\1/
  24970. q
  24971. }
  24972. /^X\(\/\).*/{
  24973. s//\1/
  24974. q
  24975. }
  24976. s/.*/./; q'`
  24977. test -d "$as_dir" && break
  24978. done
  24979. test -z "$as_dirs" || eval "mkdir $as_dirs"
  24980. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  24981. } # as_fn_mkdir_p
  24982. if mkdir -p . 2>/dev/null; then
  24983. as_mkdir_p='mkdir -p "$as_dir"'
  24984. else
  24985. test -d ./-p && rmdir ./-p
  24986. as_mkdir_p=false
  24987. fi
  24988. # as_fn_executable_p FILE
  24989. # -----------------------
  24990. # Test if FILE is an executable regular file.
  24991. as_fn_executable_p ()
  24992. {
  24993. test -f "$1" && test -x "$1"
  24994. } # as_fn_executable_p
  24995. as_test_x='test -x'
  24996. as_executable_p=as_fn_executable_p
  24997. # Sed expression to map a string onto a valid CPP name.
  24998. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  24999. # Sed expression to map a string onto a valid variable name.
  25000. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  25001. exec 6>&1
  25002. ## ----------------------------------- ##
  25003. ## Main body of $CONFIG_STATUS script. ##
  25004. ## ----------------------------------- ##
  25005. _ASEOF
  25006. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  25007. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25008. # Save the log message, to keep $0 and so on meaningful, and to
  25009. # report actual input values of CONFIG_FILES etc. instead of their
  25010. # values after options handling.
  25011. ac_log="
  25012. This file was extended by $as_me, which was
  25013. generated by GNU Autoconf 2.71. Invocation command line was
  25014. CONFIG_FILES = $CONFIG_FILES
  25015. CONFIG_HEADERS = $CONFIG_HEADERS
  25016. CONFIG_LINKS = $CONFIG_LINKS
  25017. CONFIG_COMMANDS = $CONFIG_COMMANDS
  25018. $ $0 $@
  25019. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  25020. "
  25021. _ACEOF
  25022. case $ac_config_files in *"
  25023. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  25024. esac
  25025. case $ac_config_headers in *"
  25026. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  25027. esac
  25028. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25029. # Files that config.status was made for.
  25030. config_files="$ac_config_files"
  25031. config_headers="$ac_config_headers"
  25032. config_commands="$ac_config_commands"
  25033. _ACEOF
  25034. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25035. ac_cs_usage="\
  25036. \`$as_me' instantiates files and other configuration actions
  25037. from templates according to the current configuration. Unless the files
  25038. and actions are specified as TAGs, all are instantiated by default.
  25039. Usage: $0 [OPTION]... [TAG]...
  25040. -h, --help print this help, then exit
  25041. -V, --version print version number and configuration settings, then exit
  25042. --config print configuration, then exit
  25043. -q, --quiet, --silent
  25044. do not print progress messages
  25045. -d, --debug don't remove temporary files
  25046. --recheck update $as_me by reconfiguring in the same conditions
  25047. --file=FILE[:TEMPLATE]
  25048. instantiate the configuration file FILE
  25049. --header=FILE[:TEMPLATE]
  25050. instantiate the configuration header FILE
  25051. Configuration files:
  25052. $config_files
  25053. Configuration headers:
  25054. $config_headers
  25055. Configuration commands:
  25056. $config_commands
  25057. Report bugs to the package provider."
  25058. _ACEOF
  25059. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  25060. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  25061. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25062. ac_cs_config='$ac_cs_config_escaped'
  25063. ac_cs_version="\\
  25064. config.status
  25065. configured by $0, generated by GNU Autoconf 2.71,
  25066. with options \\"\$ac_cs_config\\"
  25067. Copyright (C) 2021 Free Software Foundation, Inc.
  25068. This config.status script is free software; the Free Software Foundation
  25069. gives unlimited permission to copy, distribute and modify it."
  25070. ac_pwd='$ac_pwd'
  25071. srcdir='$srcdir'
  25072. INSTALL='$INSTALL'
  25073. AWK='$AWK'
  25074. test -n "\$AWK" || AWK=awk
  25075. _ACEOF
  25076. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25077. # The default lists apply if the user does not specify any file.
  25078. ac_need_defaults=:
  25079. while test $# != 0
  25080. do
  25081. case $1 in
  25082. --*=?*)
  25083. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  25084. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  25085. ac_shift=:
  25086. ;;
  25087. --*=)
  25088. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  25089. ac_optarg=
  25090. ac_shift=:
  25091. ;;
  25092. *)
  25093. ac_option=$1
  25094. ac_optarg=$2
  25095. ac_shift=shift
  25096. ;;
  25097. esac
  25098. case $ac_option in
  25099. # Handling of the options.
  25100. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  25101. ac_cs_recheck=: ;;
  25102. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  25103. printf "%s\n" "$ac_cs_version"; exit ;;
  25104. --config | --confi | --conf | --con | --co | --c )
  25105. printf "%s\n" "$ac_cs_config"; exit ;;
  25106. --debug | --debu | --deb | --de | --d | -d )
  25107. debug=: ;;
  25108. --file | --fil | --fi | --f )
  25109. $ac_shift
  25110. case $ac_optarg in
  25111. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25112. '') as_fn_error $? "missing file argument" ;;
  25113. esac
  25114. as_fn_append CONFIG_FILES " '$ac_optarg'"
  25115. ac_need_defaults=false;;
  25116. --header | --heade | --head | --hea )
  25117. $ac_shift
  25118. case $ac_optarg in
  25119. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25120. esac
  25121. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  25122. ac_need_defaults=false;;
  25123. --he | --h)
  25124. # Conflict between --help and --header
  25125. as_fn_error $? "ambiguous option: \`$1'
  25126. Try \`$0 --help' for more information.";;
  25127. --help | --hel | -h )
  25128. printf "%s\n" "$ac_cs_usage"; exit ;;
  25129. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  25130. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  25131. ac_cs_silent=: ;;
  25132. # This is an error.
  25133. -*) as_fn_error $? "unrecognized option: \`$1'
  25134. Try \`$0 --help' for more information." ;;
  25135. *) as_fn_append ac_config_targets " $1"
  25136. ac_need_defaults=false ;;
  25137. esac
  25138. shift
  25139. done
  25140. ac_configure_extra_args=
  25141. if $ac_cs_silent; then
  25142. exec 6>/dev/null
  25143. ac_configure_extra_args="$ac_configure_extra_args --silent"
  25144. fi
  25145. _ACEOF
  25146. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25147. if \$ac_cs_recheck; then
  25148. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  25149. shift
  25150. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  25151. CONFIG_SHELL='$SHELL'
  25152. export CONFIG_SHELL
  25153. exec "\$@"
  25154. fi
  25155. _ACEOF
  25156. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25157. exec 5>>config.log
  25158. {
  25159. echo
  25160. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  25161. ## Running $as_me. ##
  25162. _ASBOX
  25163. printf "%s\n" "$ac_log"
  25164. } >&5
  25165. _ACEOF
  25166. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25167. #
  25168. # INIT-COMMANDS
  25169. #
  25170. # The HP-UX ksh and POSIX shell print the target directory to stdout
  25171. # if CDPATH is set.
  25172. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  25173. sed_quote_subst='$sed_quote_subst'
  25174. double_quote_subst='$double_quote_subst'
  25175. delay_variable_subst='$delay_variable_subst'
  25176. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  25177. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  25178. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  25179. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  25180. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  25181. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  25182. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  25183. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  25184. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  25185. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  25186. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  25187. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  25188. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  25189. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  25190. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  25191. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  25192. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  25193. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  25194. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  25195. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  25196. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  25197. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  25198. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  25199. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  25200. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  25201. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  25202. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  25203. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  25204. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  25205. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  25206. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  25207. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  25208. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  25209. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  25210. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  25211. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  25212. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  25213. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  25214. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  25215. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  25216. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  25217. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  25218. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  25219. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  25220. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  25221. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  25222. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  25223. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  25224. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  25225. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  25226. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  25227. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  25228. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  25229. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  25230. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  25231. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  25232. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  25233. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  25234. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  25235. 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"`'
  25236. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  25237. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  25238. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  25239. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  25240. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  25241. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  25242. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  25243. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  25244. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  25245. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  25246. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  25247. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  25248. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  25249. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  25250. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  25251. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  25252. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  25253. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  25254. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  25255. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  25256. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  25257. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  25258. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  25259. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  25260. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  25261. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  25262. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  25263. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  25264. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  25265. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  25266. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  25267. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  25268. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  25269. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  25270. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  25271. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  25272. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  25273. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  25274. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  25275. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  25276. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  25277. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  25278. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  25279. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  25280. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  25281. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  25282. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  25283. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  25284. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  25285. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  25286. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  25287. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  25288. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  25289. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  25290. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  25291. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  25292. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  25293. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  25294. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  25295. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  25296. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  25297. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  25298. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  25299. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  25300. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  25301. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  25302. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  25303. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  25304. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  25305. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  25306. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  25307. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  25308. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  25309. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  25310. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  25311. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  25312. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  25313. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  25314. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  25315. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  25316. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  25317. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  25318. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  25319. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  25320. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  25321. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25322. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25323. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25324. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25325. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25326. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  25327. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  25328. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  25329. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  25330. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  25331. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25332. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  25333. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  25334. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  25335. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  25336. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  25337. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  25338. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  25339. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  25340. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  25341. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  25342. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  25343. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  25344. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25345. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25346. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25347. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25348. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  25349. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  25350. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25351. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25352. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25353. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25354. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25355. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25356. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25357. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25358. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25359. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25360. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25361. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25362. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  25363. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  25364. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  25365. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25366. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  25367. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25368. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25369. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25370. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  25371. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  25372. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  25373. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  25374. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  25375. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  25376. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  25377. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  25378. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  25379. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  25380. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  25381. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  25382. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  25383. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  25384. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  25385. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  25386. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  25387. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  25388. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25389. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25390. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  25391. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  25392. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  25393. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  25394. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25395. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25396. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25397. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25398. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  25399. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25400. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  25401. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  25402. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  25403. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  25404. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  25405. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  25406. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  25407. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  25408. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  25409. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  25410. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  25411. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  25412. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  25413. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  25414. LTCC='$LTCC'
  25415. LTCFLAGS='$LTCFLAGS'
  25416. compiler='$compiler_DEFAULT'
  25417. # A function that is used when there is no print builtin or printf.
  25418. func_fallback_echo ()
  25419. {
  25420. eval 'cat <<_LTECHO_EOF
  25421. \$1
  25422. _LTECHO_EOF'
  25423. }
  25424. # Quote evaled strings.
  25425. for var in AS \
  25426. DLLTOOL \
  25427. OBJDUMP \
  25428. SHELL \
  25429. ECHO \
  25430. PATH_SEPARATOR \
  25431. SED \
  25432. GREP \
  25433. EGREP \
  25434. FGREP \
  25435. LD \
  25436. NM \
  25437. LN_S \
  25438. lt_SP2NL \
  25439. lt_NL2SP \
  25440. reload_flag \
  25441. deplibs_check_method \
  25442. file_magic_cmd \
  25443. file_magic_glob \
  25444. want_nocaseglob \
  25445. sharedlib_from_linklib_cmd \
  25446. AR \
  25447. AR_FLAGS \
  25448. archiver_list_spec \
  25449. STRIP \
  25450. RANLIB \
  25451. CC \
  25452. CFLAGS \
  25453. compiler \
  25454. lt_cv_sys_global_symbol_pipe \
  25455. lt_cv_sys_global_symbol_to_cdecl \
  25456. lt_cv_sys_global_symbol_to_import \
  25457. lt_cv_sys_global_symbol_to_c_name_address \
  25458. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  25459. lt_cv_nm_interface \
  25460. nm_file_list_spec \
  25461. lt_cv_truncate_bin \
  25462. lt_prog_compiler_no_builtin_flag \
  25463. lt_prog_compiler_pic \
  25464. lt_prog_compiler_wl \
  25465. lt_prog_compiler_static \
  25466. lt_cv_prog_compiler_c_o \
  25467. need_locks \
  25468. MANIFEST_TOOL \
  25469. DSYMUTIL \
  25470. NMEDIT \
  25471. LIPO \
  25472. OTOOL \
  25473. OTOOL64 \
  25474. shrext_cmds \
  25475. export_dynamic_flag_spec \
  25476. whole_archive_flag_spec \
  25477. compiler_needs_object \
  25478. with_gnu_ld \
  25479. allow_undefined_flag \
  25480. no_undefined_flag \
  25481. hardcode_libdir_flag_spec \
  25482. hardcode_libdir_separator \
  25483. exclude_expsyms \
  25484. include_expsyms \
  25485. file_list_spec \
  25486. variables_saved_for_relink \
  25487. libname_spec \
  25488. library_names_spec \
  25489. soname_spec \
  25490. install_override_mode \
  25491. finish_eval \
  25492. old_striplib \
  25493. striplib \
  25494. compiler_lib_search_dirs \
  25495. predep_objects \
  25496. postdep_objects \
  25497. predeps \
  25498. postdeps \
  25499. compiler_lib_search_path \
  25500. LD_RC \
  25501. LD_CXX \
  25502. reload_flag_RC \
  25503. reload_flag_CXX \
  25504. compiler_RC \
  25505. compiler_CXX \
  25506. lt_prog_compiler_no_builtin_flag_RC \
  25507. lt_prog_compiler_no_builtin_flag_CXX \
  25508. lt_prog_compiler_pic_RC \
  25509. lt_prog_compiler_pic_CXX \
  25510. lt_prog_compiler_wl_RC \
  25511. lt_prog_compiler_wl_CXX \
  25512. lt_prog_compiler_static_RC \
  25513. lt_prog_compiler_static_CXX \
  25514. lt_cv_prog_compiler_c_o_RC \
  25515. lt_cv_prog_compiler_c_o_CXX \
  25516. export_dynamic_flag_spec_RC \
  25517. export_dynamic_flag_spec_CXX \
  25518. whole_archive_flag_spec_RC \
  25519. whole_archive_flag_spec_CXX \
  25520. compiler_needs_object_RC \
  25521. compiler_needs_object_CXX \
  25522. with_gnu_ld_RC \
  25523. with_gnu_ld_CXX \
  25524. allow_undefined_flag_RC \
  25525. allow_undefined_flag_CXX \
  25526. no_undefined_flag_RC \
  25527. no_undefined_flag_CXX \
  25528. hardcode_libdir_flag_spec_RC \
  25529. hardcode_libdir_flag_spec_CXX \
  25530. hardcode_libdir_separator_RC \
  25531. hardcode_libdir_separator_CXX \
  25532. exclude_expsyms_RC \
  25533. exclude_expsyms_CXX \
  25534. include_expsyms_RC \
  25535. include_expsyms_CXX \
  25536. file_list_spec_RC \
  25537. file_list_spec_CXX \
  25538. compiler_lib_search_dirs_RC \
  25539. compiler_lib_search_dirs_CXX \
  25540. predep_objects_RC \
  25541. predep_objects_CXX \
  25542. postdep_objects_RC \
  25543. postdep_objects_CXX \
  25544. predeps_RC \
  25545. predeps_CXX \
  25546. postdeps_RC \
  25547. postdeps_CXX \
  25548. compiler_lib_search_path_RC \
  25549. compiler_lib_search_path_CXX; do
  25550. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  25551. *[\\\\\\\`\\"\\\$]*)
  25552. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  25553. ;;
  25554. *)
  25555. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  25556. ;;
  25557. esac
  25558. done
  25559. # Double-quote double-evaled strings.
  25560. for var in reload_cmds \
  25561. old_postinstall_cmds \
  25562. old_postuninstall_cmds \
  25563. old_archive_cmds \
  25564. extract_expsyms_cmds \
  25565. old_archive_from_new_cmds \
  25566. old_archive_from_expsyms_cmds \
  25567. archive_cmds \
  25568. archive_expsym_cmds \
  25569. module_cmds \
  25570. module_expsym_cmds \
  25571. export_symbols_cmds \
  25572. prelink_cmds \
  25573. postlink_cmds \
  25574. postinstall_cmds \
  25575. postuninstall_cmds \
  25576. finish_cmds \
  25577. sys_lib_search_path_spec \
  25578. configure_time_dlsearch_path \
  25579. configure_time_lt_sys_library_path \
  25580. reload_cmds_RC \
  25581. reload_cmds_CXX \
  25582. old_archive_cmds_RC \
  25583. old_archive_cmds_CXX \
  25584. old_archive_from_new_cmds_RC \
  25585. old_archive_from_new_cmds_CXX \
  25586. old_archive_from_expsyms_cmds_RC \
  25587. old_archive_from_expsyms_cmds_CXX \
  25588. archive_cmds_RC \
  25589. archive_cmds_CXX \
  25590. archive_expsym_cmds_RC \
  25591. archive_expsym_cmds_CXX \
  25592. module_cmds_RC \
  25593. module_cmds_CXX \
  25594. module_expsym_cmds_RC \
  25595. module_expsym_cmds_CXX \
  25596. export_symbols_cmds_RC \
  25597. export_symbols_cmds_CXX \
  25598. prelink_cmds_RC \
  25599. prelink_cmds_CXX \
  25600. postlink_cmds_RC \
  25601. postlink_cmds_CXX; do
  25602. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  25603. *[\\\\\\\`\\"\\\$]*)
  25604. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  25605. ;;
  25606. *)
  25607. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  25608. ;;
  25609. esac
  25610. done
  25611. ac_aux_dir='$ac_aux_dir'
  25612. # See if we are running on zsh, and set the options that allow our
  25613. # commands through without removal of \ escapes INIT.
  25614. if test -n "\${ZSH_VERSION+set}"; then
  25615. setopt NO_GLOB_SUBST
  25616. fi
  25617. PACKAGE='$PACKAGE'
  25618. VERSION='$VERSION'
  25619. RM='$RM'
  25620. ofile='$ofile'
  25621. SUMMARY="$SUMMARY"
  25622. _ACEOF
  25623. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25624. # Handling of arguments.
  25625. for ac_config_target in $ac_config_targets
  25626. do
  25627. case $ac_config_target in
  25628. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  25629. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  25630. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  25631. "sdl3-config") CONFIG_FILES="$CONFIG_FILES sdl3-config" ;;
  25632. "sdl3-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl3-config.cmake" ;;
  25633. "sdl3-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl3-config-version.cmake" ;;
  25634. "SDL3.spec") CONFIG_FILES="$CONFIG_FILES SDL3.spec" ;;
  25635. "sdl3.pc") CONFIG_FILES="$CONFIG_FILES sdl3.pc" ;;
  25636. "sdl3_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl3_config" ;;
  25637. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  25638. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  25639. esac
  25640. done
  25641. # If the user did not use the arguments to specify the items to instantiate,
  25642. # then the envvar interface is used. Set only those that are not.
  25643. # We use the long form for the default assignment because of an extremely
  25644. # bizarre bug on SunOS 4.1.3.
  25645. if $ac_need_defaults; then
  25646. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  25647. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  25648. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  25649. fi
  25650. # Have a temporary directory for convenience. Make it in the build tree
  25651. # simply because there is no reason against having it here, and in addition,
  25652. # creating and moving files from /tmp can sometimes cause problems.
  25653. # Hook for its removal unless debugging.
  25654. # Note that there is a small window in which the directory will not be cleaned:
  25655. # after its creation but before its name has been assigned to `$tmp'.
  25656. $debug ||
  25657. {
  25658. tmp= ac_tmp=
  25659. trap 'exit_status=$?
  25660. : "${ac_tmp:=$tmp}"
  25661. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  25662. ' 0
  25663. trap 'as_fn_exit 1' 1 2 13 15
  25664. }
  25665. # Create a (secure) tmp directory for tmp files.
  25666. {
  25667. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  25668. test -d "$tmp"
  25669. } ||
  25670. {
  25671. tmp=./conf$$-$RANDOM
  25672. (umask 077 && mkdir "$tmp")
  25673. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  25674. ac_tmp=$tmp
  25675. # Set up the scripts for CONFIG_FILES section.
  25676. # No need to generate them if there are no CONFIG_FILES.
  25677. # This happens for instance with `./config.status config.h'.
  25678. if test -n "$CONFIG_FILES"; then
  25679. ac_cr=`echo X | tr X '\015'`
  25680. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  25681. # But we know of no other shell where ac_cr would be empty at this
  25682. # point, so we can use a bashism as a fallback.
  25683. if test "x$ac_cr" = x; then
  25684. eval ac_cr=\$\'\\r\'
  25685. fi
  25686. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  25687. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  25688. ac_cs_awk_cr='\\r'
  25689. else
  25690. ac_cs_awk_cr=$ac_cr
  25691. fi
  25692. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  25693. _ACEOF
  25694. {
  25695. echo "cat >conf$$subs.awk <<_ACEOF" &&
  25696. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  25697. echo "_ACEOF"
  25698. } >conf$$subs.sh ||
  25699. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25700. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  25701. ac_delim='%!_!# '
  25702. for ac_last_try in false false false false false :; do
  25703. . ./conf$$subs.sh ||
  25704. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25705. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  25706. if test $ac_delim_n = $ac_delim_num; then
  25707. break
  25708. elif $ac_last_try; then
  25709. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25710. else
  25711. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  25712. fi
  25713. done
  25714. rm -f conf$$subs.sh
  25715. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25716. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  25717. _ACEOF
  25718. sed -n '
  25719. h
  25720. s/^/S["/; s/!.*/"]=/
  25721. p
  25722. g
  25723. s/^[^!]*!//
  25724. :repl
  25725. t repl
  25726. s/'"$ac_delim"'$//
  25727. t delim
  25728. :nl
  25729. h
  25730. s/\(.\{148\}\)..*/\1/
  25731. t more1
  25732. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  25733. p
  25734. n
  25735. b repl
  25736. :more1
  25737. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  25738. p
  25739. g
  25740. s/.\{148\}//
  25741. t nl
  25742. :delim
  25743. h
  25744. s/\(.\{148\}\)..*/\1/
  25745. t more2
  25746. s/["\\]/\\&/g; s/^/"/; s/$/"/
  25747. p
  25748. b
  25749. :more2
  25750. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  25751. p
  25752. g
  25753. s/.\{148\}//
  25754. t delim
  25755. ' <conf$$subs.awk | sed '
  25756. /^[^""]/{
  25757. N
  25758. s/\n//
  25759. }
  25760. ' >>$CONFIG_STATUS || ac_write_fail=1
  25761. rm -f conf$$subs.awk
  25762. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25763. _ACAWK
  25764. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  25765. for (key in S) S_is_set[key] = 1
  25766. FS = ""
  25767. }
  25768. {
  25769. line = $ 0
  25770. nfields = split(line, field, "@")
  25771. substed = 0
  25772. len = length(field[1])
  25773. for (i = 2; i < nfields; i++) {
  25774. key = field[i]
  25775. keylen = length(key)
  25776. if (S_is_set[key]) {
  25777. value = S[key]
  25778. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  25779. len += length(value) + length(field[++i])
  25780. substed = 1
  25781. } else
  25782. len += 1 + keylen
  25783. }
  25784. print line
  25785. }
  25786. _ACAWK
  25787. _ACEOF
  25788. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25789. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  25790. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  25791. else
  25792. cat
  25793. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  25794. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  25795. _ACEOF
  25796. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  25797. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  25798. # trailing colons and then remove the whole line if VPATH becomes empty
  25799. # (actually we leave an empty line to preserve line numbers).
  25800. if test "x$srcdir" = x.; then
  25801. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  25802. h
  25803. s///
  25804. s/^/:/
  25805. s/[ ]*$/:/
  25806. s/:\$(srcdir):/:/g
  25807. s/:\${srcdir}:/:/g
  25808. s/:@srcdir@:/:/g
  25809. s/^:*//
  25810. s/:*$//
  25811. x
  25812. s/\(=[ ]*\).*/\1/
  25813. G
  25814. s/\n//
  25815. s/^[^=]*=[ ]*$//
  25816. }'
  25817. fi
  25818. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25819. fi # test -n "$CONFIG_FILES"
  25820. # Set up the scripts for CONFIG_HEADERS section.
  25821. # No need to generate them if there are no CONFIG_HEADERS.
  25822. # This happens for instance with `./config.status Makefile'.
  25823. if test -n "$CONFIG_HEADERS"; then
  25824. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  25825. BEGIN {
  25826. _ACEOF
  25827. # Transform confdefs.h into an awk script `defines.awk', embedded as
  25828. # here-document in config.status, that substitutes the proper values into
  25829. # config.h.in to produce config.h.
  25830. # Create a delimiter string that does not exist in confdefs.h, to ease
  25831. # handling of long lines.
  25832. ac_delim='%!_!# '
  25833. for ac_last_try in false false :; do
  25834. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  25835. if test -z "$ac_tt"; then
  25836. break
  25837. elif $ac_last_try; then
  25838. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  25839. else
  25840. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  25841. fi
  25842. done
  25843. # For the awk script, D is an array of macro values keyed by name,
  25844. # likewise P contains macro parameters if any. Preserve backslash
  25845. # newline sequences.
  25846. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  25847. sed -n '
  25848. s/.\{148\}/&'"$ac_delim"'/g
  25849. t rset
  25850. :rset
  25851. s/^[ ]*#[ ]*define[ ][ ]*/ /
  25852. t def
  25853. d
  25854. :def
  25855. s/\\$//
  25856. t bsnl
  25857. s/["\\]/\\&/g
  25858. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  25859. D["\1"]=" \3"/p
  25860. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  25861. d
  25862. :bsnl
  25863. s/["\\]/\\&/g
  25864. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  25865. D["\1"]=" \3\\\\\\n"\\/p
  25866. t cont
  25867. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  25868. t cont
  25869. d
  25870. :cont
  25871. n
  25872. s/.\{148\}/&'"$ac_delim"'/g
  25873. t clear
  25874. :clear
  25875. s/\\$//
  25876. t bsnlc
  25877. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  25878. d
  25879. :bsnlc
  25880. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  25881. b cont
  25882. ' <confdefs.h | sed '
  25883. s/'"$ac_delim"'/"\\\
  25884. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  25885. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25886. for (key in D) D_is_set[key] = 1
  25887. FS = ""
  25888. }
  25889. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  25890. line = \$ 0
  25891. split(line, arg, " ")
  25892. if (arg[1] == "#") {
  25893. defundef = arg[2]
  25894. mac1 = arg[3]
  25895. } else {
  25896. defundef = substr(arg[1], 2)
  25897. mac1 = arg[2]
  25898. }
  25899. split(mac1, mac2, "(") #)
  25900. macro = mac2[1]
  25901. prefix = substr(line, 1, index(line, defundef) - 1)
  25902. if (D_is_set[macro]) {
  25903. # Preserve the white space surrounding the "#".
  25904. print prefix "define", macro P[macro] D[macro]
  25905. next
  25906. } else {
  25907. # Replace #undef with comments. This is necessary, for example,
  25908. # in the case of _POSIX_SOURCE, which is predefined and required
  25909. # on some systems where configure will not decide to define it.
  25910. if (defundef == "undef") {
  25911. print "/*", prefix defundef, macro, "*/"
  25912. next
  25913. }
  25914. }
  25915. }
  25916. { print }
  25917. _ACAWK
  25918. _ACEOF
  25919. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25920. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  25921. fi # test -n "$CONFIG_HEADERS"
  25922. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  25923. shift
  25924. for ac_tag
  25925. do
  25926. case $ac_tag in
  25927. :[FHLC]) ac_mode=$ac_tag; continue;;
  25928. esac
  25929. case $ac_mode$ac_tag in
  25930. :[FHL]*:*);;
  25931. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  25932. :[FH]-) ac_tag=-:-;;
  25933. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  25934. esac
  25935. ac_save_IFS=$IFS
  25936. IFS=:
  25937. set x $ac_tag
  25938. IFS=$ac_save_IFS
  25939. shift
  25940. ac_file=$1
  25941. shift
  25942. case $ac_mode in
  25943. :L) ac_source=$1;;
  25944. :[FH])
  25945. ac_file_inputs=
  25946. for ac_f
  25947. do
  25948. case $ac_f in
  25949. -) ac_f="$ac_tmp/stdin";;
  25950. *) # Look for the file first in the build tree, then in the source tree
  25951. # (if the path is not absolute). The absolute path cannot be DOS-style,
  25952. # because $ac_f cannot contain `:'.
  25953. test -f "$ac_f" ||
  25954. case $ac_f in
  25955. [\\/$]*) false;;
  25956. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  25957. esac ||
  25958. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  25959. esac
  25960. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  25961. as_fn_append ac_file_inputs " '$ac_f'"
  25962. done
  25963. # Let's still pretend it is `configure' which instantiates (i.e., don't
  25964. # use $as_me), people would be surprised to read:
  25965. # /* config.h. Generated by config.status. */
  25966. configure_input='Generated from '`
  25967. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  25968. `' by configure.'
  25969. if test x"$ac_file" != x-; then
  25970. configure_input="$ac_file. $configure_input"
  25971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  25972. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  25973. fi
  25974. # Neutralize special characters interpreted by sed in replacement strings.
  25975. case $configure_input in #(
  25976. *\&* | *\|* | *\\* )
  25977. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  25978. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  25979. *) ac_sed_conf_input=$configure_input;;
  25980. esac
  25981. case $ac_tag in
  25982. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  25983. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  25984. esac
  25985. ;;
  25986. esac
  25987. ac_dir=`$as_dirname -- "$ac_file" ||
  25988. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25989. X"$ac_file" : 'X\(//\)[^/]' \| \
  25990. X"$ac_file" : 'X\(//\)$' \| \
  25991. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  25992. printf "%s\n" X"$ac_file" |
  25993. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25994. s//\1/
  25995. q
  25996. }
  25997. /^X\(\/\/\)[^/].*/{
  25998. s//\1/
  25999. q
  26000. }
  26001. /^X\(\/\/\)$/{
  26002. s//\1/
  26003. q
  26004. }
  26005. /^X\(\/\).*/{
  26006. s//\1/
  26007. q
  26008. }
  26009. s/.*/./; q'`
  26010. as_dir="$ac_dir"; as_fn_mkdir_p
  26011. ac_builddir=.
  26012. case "$ac_dir" in
  26013. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26014. *)
  26015. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  26016. # A ".." for each directory in $ac_dir_suffix.
  26017. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  26018. case $ac_top_builddir_sub in
  26019. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26020. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  26021. esac ;;
  26022. esac
  26023. ac_abs_top_builddir=$ac_pwd
  26024. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  26025. # for backward compatibility:
  26026. ac_top_builddir=$ac_top_build_prefix
  26027. case $srcdir in
  26028. .) # We are building in place.
  26029. ac_srcdir=.
  26030. ac_top_srcdir=$ac_top_builddir_sub
  26031. ac_abs_top_srcdir=$ac_pwd ;;
  26032. [\\/]* | ?:[\\/]* ) # Absolute name.
  26033. ac_srcdir=$srcdir$ac_dir_suffix;
  26034. ac_top_srcdir=$srcdir
  26035. ac_abs_top_srcdir=$srcdir ;;
  26036. *) # Relative name.
  26037. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  26038. ac_top_srcdir=$ac_top_build_prefix$srcdir
  26039. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  26040. esac
  26041. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  26042. case $ac_mode in
  26043. :F)
  26044. #
  26045. # CONFIG_FILE
  26046. #
  26047. case $INSTALL in
  26048. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  26049. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  26050. esac
  26051. _ACEOF
  26052. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26053. # If the template does not know about datarootdir, expand it.
  26054. # FIXME: This hack should be removed a few years after 2.60.
  26055. ac_datarootdir_hack=; ac_datarootdir_seen=
  26056. ac_sed_dataroot='
  26057. /datarootdir/ {
  26058. p
  26059. q
  26060. }
  26061. /@datadir@/p
  26062. /@docdir@/p
  26063. /@infodir@/p
  26064. /@localedir@/p
  26065. /@mandir@/p'
  26066. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  26067. *datarootdir*) ac_datarootdir_seen=yes;;
  26068. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  26069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  26070. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  26071. _ACEOF
  26072. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26073. ac_datarootdir_hack='
  26074. s&@datadir@&$datadir&g
  26075. s&@docdir@&$docdir&g
  26076. s&@infodir@&$infodir&g
  26077. s&@localedir@&$localedir&g
  26078. s&@mandir@&$mandir&g
  26079. s&\\\${datarootdir}&$datarootdir&g' ;;
  26080. esac
  26081. _ACEOF
  26082. # Neutralize VPATH when `$srcdir' = `.'.
  26083. # Shell code in configure.ac might set extrasub.
  26084. # FIXME: do we really want to maintain this feature?
  26085. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26086. ac_sed_extra="$ac_vpsub
  26087. $extrasub
  26088. _ACEOF
  26089. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26090. :t
  26091. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  26092. s|@configure_input@|$ac_sed_conf_input|;t t
  26093. s&@top_builddir@&$ac_top_builddir_sub&;t t
  26094. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  26095. s&@srcdir@&$ac_srcdir&;t t
  26096. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  26097. s&@top_srcdir@&$ac_top_srcdir&;t t
  26098. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  26099. s&@builddir@&$ac_builddir&;t t
  26100. s&@abs_builddir@&$ac_abs_builddir&;t t
  26101. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  26102. s&@INSTALL@&$ac_INSTALL&;t t
  26103. $ac_datarootdir_hack
  26104. "
  26105. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  26106. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26107. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  26108. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  26109. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  26110. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  26111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  26112. which seems to be undefined. Please make sure it is defined" >&5
  26113. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  26114. which seems to be undefined. Please make sure it is defined" >&2;}
  26115. rm -f "$ac_tmp/stdin"
  26116. case $ac_file in
  26117. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  26118. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  26119. esac \
  26120. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26121. ;;
  26122. :H)
  26123. #
  26124. # CONFIG_HEADER
  26125. #
  26126. if test x"$ac_file" != x-; then
  26127. {
  26128. printf "%s\n" "/* $configure_input */" >&1 \
  26129. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  26130. } >"$ac_tmp/config.h" \
  26131. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26132. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  26133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  26134. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  26135. else
  26136. rm -f "$ac_file"
  26137. mv "$ac_tmp/config.h" "$ac_file" \
  26138. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26139. fi
  26140. else
  26141. printf "%s\n" "/* $configure_input */" >&1 \
  26142. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  26143. || as_fn_error $? "could not create -" "$LINENO" 5
  26144. fi
  26145. ;;
  26146. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  26147. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  26148. ;;
  26149. esac
  26150. case $ac_file$ac_mode in
  26151. "libtool":C)
  26152. # See if we are running on zsh, and set the options that allow our
  26153. # commands through without removal of \ escapes.
  26154. if test -n "${ZSH_VERSION+set}"; then
  26155. setopt NO_GLOB_SUBST
  26156. fi
  26157. cfgfile=${ofile}T
  26158. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  26159. $RM "$cfgfile"
  26160. cat <<_LT_EOF >> "$cfgfile"
  26161. #! $SHELL
  26162. # Generated automatically by $as_me ($PACKAGE) $VERSION
  26163. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  26164. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  26165. # Provide generalized library-building support services.
  26166. # Written by Gordon Matzigkeit, 1996
  26167. # Copyright (C) 2014 Free Software Foundation, Inc.
  26168. # This is free software; see the source for copying conditions. There is NO
  26169. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  26170. # GNU Libtool is free software; you can redistribute it and/or modify
  26171. # it under the terms of the GNU General Public License as published by
  26172. # the Free Software Foundation; either version 2 of of the License, or
  26173. # (at your option) any later version.
  26174. #
  26175. # As a special exception to the GNU General Public License, if you
  26176. # distribute this file as part of a program or library that is built
  26177. # using GNU Libtool, you may include this file under the same
  26178. # distribution terms that you use for the rest of that program.
  26179. #
  26180. # GNU Libtool is distributed in the hope that it will be useful, but
  26181. # WITHOUT ANY WARRANTY; without even the implied warranty of
  26182. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  26183. # GNU General Public License for more details.
  26184. #
  26185. # You should have received a copy of the GNU General Public License
  26186. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  26187. # The names of the tagged configurations supported by this script.
  26188. available_tags='RC CXX '
  26189. # Configured defaults for sys_lib_dlsearch_path munging.
  26190. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  26191. # ### BEGIN LIBTOOL CONFIG
  26192. # Which release of libtool.m4 was used?
  26193. macro_version=$macro_version
  26194. macro_revision=$macro_revision
  26195. # Assembler program.
  26196. AS=$lt_AS
  26197. # DLL creation program.
  26198. DLLTOOL=$lt_DLLTOOL
  26199. # Object dumper program.
  26200. OBJDUMP=$lt_OBJDUMP
  26201. # Whether or not to build shared libraries.
  26202. build_libtool_libs=$enable_shared
  26203. # Whether or not to build static libraries.
  26204. build_old_libs=$enable_static
  26205. # What type of objects to build.
  26206. pic_mode=$pic_mode
  26207. # Whether or not to optimize for fast installation.
  26208. fast_install=$enable_fast_install
  26209. # Shared archive member basename,for filename based shared library versioning on AIX.
  26210. shared_archive_member_spec=$shared_archive_member_spec
  26211. # Shell to use when invoking shell scripts.
  26212. SHELL=$lt_SHELL
  26213. # An echo program that protects backslashes.
  26214. ECHO=$lt_ECHO
  26215. # The PATH separator for the build system.
  26216. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  26217. # The host system.
  26218. host_alias=$host_alias
  26219. host=$host
  26220. host_os=$host_os
  26221. # The build system.
  26222. build_alias=$build_alias
  26223. build=$build
  26224. build_os=$build_os
  26225. # A sed program that does not truncate output.
  26226. SED=$lt_SED
  26227. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  26228. Xsed="\$SED -e 1s/^X//"
  26229. # A grep program that handles long lines.
  26230. GREP=$lt_GREP
  26231. # An ERE matcher.
  26232. EGREP=$lt_EGREP
  26233. # A literal string matcher.
  26234. FGREP=$lt_FGREP
  26235. # A BSD- or MS-compatible name lister.
  26236. NM=$lt_NM
  26237. # Whether we need soft or hard links.
  26238. LN_S=$lt_LN_S
  26239. # What is the maximum length of a command?
  26240. max_cmd_len=$max_cmd_len
  26241. # Object file suffix (normally "o").
  26242. objext=$ac_objext
  26243. # Executable file suffix (normally "").
  26244. exeext=$exeext
  26245. # whether the shell understands "unset".
  26246. lt_unset=$lt_unset
  26247. # turn spaces into newlines.
  26248. SP2NL=$lt_lt_SP2NL
  26249. # turn newlines into spaces.
  26250. NL2SP=$lt_lt_NL2SP
  26251. # convert \$build file names to \$host format.
  26252. to_host_file_cmd=$lt_cv_to_host_file_cmd
  26253. # convert \$build files to toolchain format.
  26254. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  26255. # Method to check whether dependent libraries are shared objects.
  26256. deplibs_check_method=$lt_deplibs_check_method
  26257. # Command to use when deplibs_check_method = "file_magic".
  26258. file_magic_cmd=$lt_file_magic_cmd
  26259. # How to find potential files when deplibs_check_method = "file_magic".
  26260. file_magic_glob=$lt_file_magic_glob
  26261. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  26262. want_nocaseglob=$lt_want_nocaseglob
  26263. # Command to associate shared and link libraries.
  26264. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  26265. # The archiver.
  26266. AR=$lt_AR
  26267. # Flags to create an archive.
  26268. AR_FLAGS=$lt_AR_FLAGS
  26269. # How to feed a file listing to the archiver.
  26270. archiver_list_spec=$lt_archiver_list_spec
  26271. # A symbol stripping program.
  26272. STRIP=$lt_STRIP
  26273. # Commands used to install an old-style archive.
  26274. RANLIB=$lt_RANLIB
  26275. old_postinstall_cmds=$lt_old_postinstall_cmds
  26276. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  26277. # Whether to use a lock for old archive extraction.
  26278. lock_old_archive_extraction=$lock_old_archive_extraction
  26279. # A C compiler.
  26280. LTCC=$lt_CC
  26281. # LTCC compiler flags.
  26282. LTCFLAGS=$lt_CFLAGS
  26283. # Take the output of nm and produce a listing of raw symbols and C names.
  26284. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  26285. # Transform the output of nm in a proper C declaration.
  26286. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  26287. # Transform the output of nm into a list of symbols to manually relocate.
  26288. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  26289. # Transform the output of nm in a C name address pair.
  26290. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  26291. # Transform the output of nm in a C name address pair when lib prefix is needed.
  26292. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  26293. # The name lister interface.
  26294. nm_interface=$lt_lt_cv_nm_interface
  26295. # Specify filename containing input files for \$NM.
  26296. nm_file_list_spec=$lt_nm_file_list_spec
  26297. # The root where to search for dependent libraries,and where our libraries should be installed.
  26298. lt_sysroot=$lt_sysroot
  26299. # Command to truncate a binary pipe.
  26300. lt_truncate_bin=$lt_lt_cv_truncate_bin
  26301. # The name of the directory that contains temporary libtool files.
  26302. objdir=$objdir
  26303. # Used to examine libraries when file_magic_cmd begins with "file".
  26304. MAGIC_CMD=$MAGIC_CMD
  26305. # Must we lock files when doing compilation?
  26306. need_locks=$lt_need_locks
  26307. # Manifest tool.
  26308. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  26309. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  26310. DSYMUTIL=$lt_DSYMUTIL
  26311. # Tool to change global to local symbols on Mac OS X.
  26312. NMEDIT=$lt_NMEDIT
  26313. # Tool to manipulate fat objects and archives on Mac OS X.
  26314. LIPO=$lt_LIPO
  26315. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  26316. OTOOL=$lt_OTOOL
  26317. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  26318. OTOOL64=$lt_OTOOL64
  26319. # Old archive suffix (normally "a").
  26320. libext=$libext
  26321. # Shared library suffix (normally ".so").
  26322. shrext_cmds=$lt_shrext_cmds
  26323. # The commands to extract the exported symbol list from a shared archive.
  26324. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  26325. # Variables whose values should be saved in libtool wrapper scripts and
  26326. # restored at link time.
  26327. variables_saved_for_relink=$lt_variables_saved_for_relink
  26328. # Do we need the "lib" prefix for modules?
  26329. need_lib_prefix=$need_lib_prefix
  26330. # Do we need a version for libraries?
  26331. need_version=$need_version
  26332. # Library versioning type.
  26333. version_type=$version_type
  26334. # Shared library runtime path variable.
  26335. runpath_var=$runpath_var
  26336. # Shared library path variable.
  26337. shlibpath_var=$shlibpath_var
  26338. # Is shlibpath searched before the hard-coded library search path?
  26339. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  26340. # Format of library name prefix.
  26341. libname_spec=$lt_libname_spec
  26342. # List of archive names. First name is the real one, the rest are links.
  26343. # The last name is the one that the linker finds with -lNAME
  26344. library_names_spec=$lt_library_names_spec
  26345. # The coded name of the library, if different from the real name.
  26346. soname_spec=$lt_soname_spec
  26347. # Permission mode override for installation of shared libraries.
  26348. install_override_mode=$lt_install_override_mode
  26349. # Command to use after installation of a shared archive.
  26350. postinstall_cmds=$lt_postinstall_cmds
  26351. # Command to use after uninstallation of a shared archive.
  26352. postuninstall_cmds=$lt_postuninstall_cmds
  26353. # Commands used to finish a libtool library installation in a directory.
  26354. finish_cmds=$lt_finish_cmds
  26355. # As "finish_cmds", except a single script fragment to be evaled but
  26356. # not shown.
  26357. finish_eval=$lt_finish_eval
  26358. # Whether we should hardcode library paths into libraries.
  26359. hardcode_into_libs=$hardcode_into_libs
  26360. # Compile-time system search path for libraries.
  26361. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  26362. # Detected run-time system search path for libraries.
  26363. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  26364. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  26365. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  26366. # Whether dlopen is supported.
  26367. dlopen_support=$enable_dlopen
  26368. # Whether dlopen of programs is supported.
  26369. dlopen_self=$enable_dlopen_self
  26370. # Whether dlopen of statically linked programs is supported.
  26371. dlopen_self_static=$enable_dlopen_self_static
  26372. # Commands to strip libraries.
  26373. old_striplib=$lt_old_striplib
  26374. striplib=$lt_striplib
  26375. # The linker used to build libraries.
  26376. LD=$lt_LD
  26377. # How to create reloadable object files.
  26378. reload_flag=$lt_reload_flag
  26379. reload_cmds=$lt_reload_cmds
  26380. # Commands used to build an old-style archive.
  26381. old_archive_cmds=$lt_old_archive_cmds
  26382. # A language specific compiler.
  26383. CC=$lt_compiler
  26384. # Is the compiler the GNU compiler?
  26385. with_gcc=$GCC
  26386. # Compiler flag to turn off builtin functions.
  26387. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  26388. # Additional compiler flags for building library objects.
  26389. pic_flag=$lt_lt_prog_compiler_pic
  26390. # How to pass a linker flag through the compiler.
  26391. wl=$lt_lt_prog_compiler_wl
  26392. # Compiler flag to prevent dynamic linking.
  26393. link_static_flag=$lt_lt_prog_compiler_static
  26394. # Does compiler simultaneously support -c and -o options?
  26395. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  26396. # Whether or not to add -lc for building shared libraries.
  26397. build_libtool_need_lc=$archive_cmds_need_lc
  26398. # Whether or not to disallow shared libs when runtime libs are static.
  26399. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  26400. # Compiler flag to allow reflexive dlopens.
  26401. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  26402. # Compiler flag to generate shared objects directly from archives.
  26403. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  26404. # Whether the compiler copes with passing no objects directly.
  26405. compiler_needs_object=$lt_compiler_needs_object
  26406. # Create an old-style archive from a shared archive.
  26407. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  26408. # Create a temporary old-style archive to link instead of a shared archive.
  26409. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  26410. # Commands used to build a shared archive.
  26411. archive_cmds=$lt_archive_cmds
  26412. archive_expsym_cmds=$lt_archive_expsym_cmds
  26413. # Commands used to build a loadable module if different from building
  26414. # a shared archive.
  26415. module_cmds=$lt_module_cmds
  26416. module_expsym_cmds=$lt_module_expsym_cmds
  26417. # Whether we are building with GNU ld or not.
  26418. with_gnu_ld=$lt_with_gnu_ld
  26419. # Flag that allows shared libraries with undefined symbols to be built.
  26420. allow_undefined_flag=$lt_allow_undefined_flag
  26421. # Flag that enforces no undefined symbols.
  26422. no_undefined_flag=$lt_no_undefined_flag
  26423. # Flag to hardcode \$libdir into a binary during linking.
  26424. # This must work even if \$libdir does not exist
  26425. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  26426. # Whether we need a single "-rpath" flag with a separated argument.
  26427. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  26428. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26429. # DIR into the resulting binary.
  26430. hardcode_direct=$hardcode_direct
  26431. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26432. # DIR into the resulting binary and the resulting library dependency is
  26433. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26434. # library is relocated.
  26435. hardcode_direct_absolute=$hardcode_direct_absolute
  26436. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26437. # into the resulting binary.
  26438. hardcode_minus_L=$hardcode_minus_L
  26439. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26440. # into the resulting binary.
  26441. hardcode_shlibpath_var=$hardcode_shlibpath_var
  26442. # Set to "yes" if building a shared library automatically hardcodes DIR
  26443. # into the library and all subsequent libraries and executables linked
  26444. # against it.
  26445. hardcode_automatic=$hardcode_automatic
  26446. # Set to yes if linker adds runtime paths of dependent libraries
  26447. # to runtime path list.
  26448. inherit_rpath=$inherit_rpath
  26449. # Whether libtool must link a program against all its dependency libraries.
  26450. link_all_deplibs=$link_all_deplibs
  26451. # Set to "yes" if exported symbols are required.
  26452. always_export_symbols=$always_export_symbols
  26453. # The commands to list exported symbols.
  26454. export_symbols_cmds=$lt_export_symbols_cmds
  26455. # Symbols that should not be listed in the preloaded symbols.
  26456. exclude_expsyms=$lt_exclude_expsyms
  26457. # Symbols that must always be exported.
  26458. include_expsyms=$lt_include_expsyms
  26459. # Commands necessary for linking programs (against libraries) with templates.
  26460. prelink_cmds=$lt_prelink_cmds
  26461. # Commands necessary for finishing linking programs.
  26462. postlink_cmds=$lt_postlink_cmds
  26463. # Specify filename containing input files.
  26464. file_list_spec=$lt_file_list_spec
  26465. # How to hardcode a shared library path into an executable.
  26466. hardcode_action=$hardcode_action
  26467. # The directories searched by this compiler when creating a shared library.
  26468. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  26469. # Dependencies to place before and after the objects being linked to
  26470. # create a shared library.
  26471. predep_objects=$lt_predep_objects
  26472. postdep_objects=$lt_postdep_objects
  26473. predeps=$lt_predeps
  26474. postdeps=$lt_postdeps
  26475. # The library search path used internally by the compiler when linking
  26476. # a shared library.
  26477. compiler_lib_search_path=$lt_compiler_lib_search_path
  26478. # ### END LIBTOOL CONFIG
  26479. _LT_EOF
  26480. cat <<'_LT_EOF' >> "$cfgfile"
  26481. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  26482. # func_munge_path_list VARIABLE PATH
  26483. # -----------------------------------
  26484. # VARIABLE is name of variable containing _space_ separated list of
  26485. # directories to be munged by the contents of PATH, which is string
  26486. # having a format:
  26487. # "DIR[:DIR]:"
  26488. # string "DIR[ DIR]" will be prepended to VARIABLE
  26489. # ":DIR[:DIR]"
  26490. # string "DIR[ DIR]" will be appended to VARIABLE
  26491. # "DIRP[:DIRP]::[DIRA:]DIRA"
  26492. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  26493. # "DIRA[ DIRA]" will be appended to VARIABLE
  26494. # "DIR[:DIR]"
  26495. # VARIABLE will be replaced by "DIR[ DIR]"
  26496. func_munge_path_list ()
  26497. {
  26498. case x$2 in
  26499. x)
  26500. ;;
  26501. *:)
  26502. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  26503. ;;
  26504. x:*)
  26505. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  26506. ;;
  26507. *::*)
  26508. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  26509. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  26510. ;;
  26511. *)
  26512. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  26513. ;;
  26514. esac
  26515. }
  26516. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  26517. func_cc_basename ()
  26518. {
  26519. for cc_temp in $*""; do
  26520. case $cc_temp in
  26521. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26522. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26523. \-*) ;;
  26524. *) break;;
  26525. esac
  26526. done
  26527. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  26528. }
  26529. # ### END FUNCTIONS SHARED WITH CONFIGURE
  26530. _LT_EOF
  26531. case $host_os in
  26532. aix3*)
  26533. cat <<\_LT_EOF >> "$cfgfile"
  26534. # AIX sometimes has problems with the GCC collect2 program. For some
  26535. # reason, if we set the COLLECT_NAMES environment variable, the problems
  26536. # vanish in a puff of smoke.
  26537. if test set != "${COLLECT_NAMES+set}"; then
  26538. COLLECT_NAMES=
  26539. export COLLECT_NAMES
  26540. fi
  26541. _LT_EOF
  26542. ;;
  26543. esac
  26544. ltmain=$ac_aux_dir/ltmain.sh
  26545. # We use sed instead of cat because bash on DJGPP gets confused if
  26546. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  26547. # text mode, it properly converts lines to CR/LF. This bash problem
  26548. # is reportedly fixed, but why not run on old versions too?
  26549. sed '$q' "$ltmain" >> "$cfgfile" \
  26550. || (rm -f "$cfgfile"; exit 1)
  26551. mv -f "$cfgfile" "$ofile" ||
  26552. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  26553. chmod +x "$ofile"
  26554. cat <<_LT_EOF >> "$ofile"
  26555. # ### BEGIN LIBTOOL TAG CONFIG: RC
  26556. # The linker used to build libraries.
  26557. LD=$lt_LD_RC
  26558. # How to create reloadable object files.
  26559. reload_flag=$lt_reload_flag_RC
  26560. reload_cmds=$lt_reload_cmds_RC
  26561. # Commands used to build an old-style archive.
  26562. old_archive_cmds=$lt_old_archive_cmds_RC
  26563. # A language specific compiler.
  26564. CC=$lt_compiler_RC
  26565. # Is the compiler the GNU compiler?
  26566. with_gcc=$GCC_RC
  26567. # Compiler flag to turn off builtin functions.
  26568. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  26569. # Additional compiler flags for building library objects.
  26570. pic_flag=$lt_lt_prog_compiler_pic_RC
  26571. # How to pass a linker flag through the compiler.
  26572. wl=$lt_lt_prog_compiler_wl_RC
  26573. # Compiler flag to prevent dynamic linking.
  26574. link_static_flag=$lt_lt_prog_compiler_static_RC
  26575. # Does compiler simultaneously support -c and -o options?
  26576. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  26577. # Whether or not to add -lc for building shared libraries.
  26578. build_libtool_need_lc=$archive_cmds_need_lc_RC
  26579. # Whether or not to disallow shared libs when runtime libs are static.
  26580. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  26581. # Compiler flag to allow reflexive dlopens.
  26582. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  26583. # Compiler flag to generate shared objects directly from archives.
  26584. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  26585. # Whether the compiler copes with passing no objects directly.
  26586. compiler_needs_object=$lt_compiler_needs_object_RC
  26587. # Create an old-style archive from a shared archive.
  26588. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  26589. # Create a temporary old-style archive to link instead of a shared archive.
  26590. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  26591. # Commands used to build a shared archive.
  26592. archive_cmds=$lt_archive_cmds_RC
  26593. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  26594. # Commands used to build a loadable module if different from building
  26595. # a shared archive.
  26596. module_cmds=$lt_module_cmds_RC
  26597. module_expsym_cmds=$lt_module_expsym_cmds_RC
  26598. # Whether we are building with GNU ld or not.
  26599. with_gnu_ld=$lt_with_gnu_ld_RC
  26600. # Flag that allows shared libraries with undefined symbols to be built.
  26601. allow_undefined_flag=$lt_allow_undefined_flag_RC
  26602. # Flag that enforces no undefined symbols.
  26603. no_undefined_flag=$lt_no_undefined_flag_RC
  26604. # Flag to hardcode \$libdir into a binary during linking.
  26605. # This must work even if \$libdir does not exist
  26606. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  26607. # Whether we need a single "-rpath" flag with a separated argument.
  26608. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  26609. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26610. # DIR into the resulting binary.
  26611. hardcode_direct=$hardcode_direct_RC
  26612. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26613. # DIR into the resulting binary and the resulting library dependency is
  26614. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26615. # library is relocated.
  26616. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  26617. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26618. # into the resulting binary.
  26619. hardcode_minus_L=$hardcode_minus_L_RC
  26620. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26621. # into the resulting binary.
  26622. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  26623. # Set to "yes" if building a shared library automatically hardcodes DIR
  26624. # into the library and all subsequent libraries and executables linked
  26625. # against it.
  26626. hardcode_automatic=$hardcode_automatic_RC
  26627. # Set to yes if linker adds runtime paths of dependent libraries
  26628. # to runtime path list.
  26629. inherit_rpath=$inherit_rpath_RC
  26630. # Whether libtool must link a program against all its dependency libraries.
  26631. link_all_deplibs=$link_all_deplibs_RC
  26632. # Set to "yes" if exported symbols are required.
  26633. always_export_symbols=$always_export_symbols_RC
  26634. # The commands to list exported symbols.
  26635. export_symbols_cmds=$lt_export_symbols_cmds_RC
  26636. # Symbols that should not be listed in the preloaded symbols.
  26637. exclude_expsyms=$lt_exclude_expsyms_RC
  26638. # Symbols that must always be exported.
  26639. include_expsyms=$lt_include_expsyms_RC
  26640. # Commands necessary for linking programs (against libraries) with templates.
  26641. prelink_cmds=$lt_prelink_cmds_RC
  26642. # Commands necessary for finishing linking programs.
  26643. postlink_cmds=$lt_postlink_cmds_RC
  26644. # Specify filename containing input files.
  26645. file_list_spec=$lt_file_list_spec_RC
  26646. # How to hardcode a shared library path into an executable.
  26647. hardcode_action=$hardcode_action_RC
  26648. # The directories searched by this compiler when creating a shared library.
  26649. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  26650. # Dependencies to place before and after the objects being linked to
  26651. # create a shared library.
  26652. predep_objects=$lt_predep_objects_RC
  26653. postdep_objects=$lt_postdep_objects_RC
  26654. predeps=$lt_predeps_RC
  26655. postdeps=$lt_postdeps_RC
  26656. # The library search path used internally by the compiler when linking
  26657. # a shared library.
  26658. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  26659. # ### END LIBTOOL TAG CONFIG: RC
  26660. _LT_EOF
  26661. cat <<_LT_EOF >> "$ofile"
  26662. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  26663. # The linker used to build libraries.
  26664. LD=$lt_LD_CXX
  26665. # How to create reloadable object files.
  26666. reload_flag=$lt_reload_flag_CXX
  26667. reload_cmds=$lt_reload_cmds_CXX
  26668. # Commands used to build an old-style archive.
  26669. old_archive_cmds=$lt_old_archive_cmds_CXX
  26670. # A language specific compiler.
  26671. CC=$lt_compiler_CXX
  26672. # Is the compiler the GNU compiler?
  26673. with_gcc=$GCC_CXX
  26674. # Compiler flag to turn off builtin functions.
  26675. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  26676. # Additional compiler flags for building library objects.
  26677. pic_flag=$lt_lt_prog_compiler_pic_CXX
  26678. # How to pass a linker flag through the compiler.
  26679. wl=$lt_lt_prog_compiler_wl_CXX
  26680. # Compiler flag to prevent dynamic linking.
  26681. link_static_flag=$lt_lt_prog_compiler_static_CXX
  26682. # Does compiler simultaneously support -c and -o options?
  26683. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  26684. # Whether or not to add -lc for building shared libraries.
  26685. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  26686. # Whether or not to disallow shared libs when runtime libs are static.
  26687. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  26688. # Compiler flag to allow reflexive dlopens.
  26689. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  26690. # Compiler flag to generate shared objects directly from archives.
  26691. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  26692. # Whether the compiler copes with passing no objects directly.
  26693. compiler_needs_object=$lt_compiler_needs_object_CXX
  26694. # Create an old-style archive from a shared archive.
  26695. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  26696. # Create a temporary old-style archive to link instead of a shared archive.
  26697. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  26698. # Commands used to build a shared archive.
  26699. archive_cmds=$lt_archive_cmds_CXX
  26700. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  26701. # Commands used to build a loadable module if different from building
  26702. # a shared archive.
  26703. module_cmds=$lt_module_cmds_CXX
  26704. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  26705. # Whether we are building with GNU ld or not.
  26706. with_gnu_ld=$lt_with_gnu_ld_CXX
  26707. # Flag that allows shared libraries with undefined symbols to be built.
  26708. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  26709. # Flag that enforces no undefined symbols.
  26710. no_undefined_flag=$lt_no_undefined_flag_CXX
  26711. # Flag to hardcode \$libdir into a binary during linking.
  26712. # This must work even if \$libdir does not exist
  26713. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  26714. # Whether we need a single "-rpath" flag with a separated argument.
  26715. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  26716. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26717. # DIR into the resulting binary.
  26718. hardcode_direct=$hardcode_direct_CXX
  26719. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26720. # DIR into the resulting binary and the resulting library dependency is
  26721. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26722. # library is relocated.
  26723. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  26724. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26725. # into the resulting binary.
  26726. hardcode_minus_L=$hardcode_minus_L_CXX
  26727. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26728. # into the resulting binary.
  26729. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  26730. # Set to "yes" if building a shared library automatically hardcodes DIR
  26731. # into the library and all subsequent libraries and executables linked
  26732. # against it.
  26733. hardcode_automatic=$hardcode_automatic_CXX
  26734. # Set to yes if linker adds runtime paths of dependent libraries
  26735. # to runtime path list.
  26736. inherit_rpath=$inherit_rpath_CXX
  26737. # Whether libtool must link a program against all its dependency libraries.
  26738. link_all_deplibs=$link_all_deplibs_CXX
  26739. # Set to "yes" if exported symbols are required.
  26740. always_export_symbols=$always_export_symbols_CXX
  26741. # The commands to list exported symbols.
  26742. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  26743. # Symbols that should not be listed in the preloaded symbols.
  26744. exclude_expsyms=$lt_exclude_expsyms_CXX
  26745. # Symbols that must always be exported.
  26746. include_expsyms=$lt_include_expsyms_CXX
  26747. # Commands necessary for linking programs (against libraries) with templates.
  26748. prelink_cmds=$lt_prelink_cmds_CXX
  26749. # Commands necessary for finishing linking programs.
  26750. postlink_cmds=$lt_postlink_cmds_CXX
  26751. # Specify filename containing input files.
  26752. file_list_spec=$lt_file_list_spec_CXX
  26753. # How to hardcode a shared library path into an executable.
  26754. hardcode_action=$hardcode_action_CXX
  26755. # The directories searched by this compiler when creating a shared library.
  26756. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  26757. # Dependencies to place before and after the objects being linked to
  26758. # create a shared library.
  26759. predep_objects=$lt_predep_objects_CXX
  26760. postdep_objects=$lt_postdep_objects_CXX
  26761. predeps=$lt_predeps_CXX
  26762. postdeps=$lt_postdeps_CXX
  26763. # The library search path used internally by the compiler when linking
  26764. # a shared library.
  26765. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  26766. # ### END LIBTOOL TAG CONFIG: CXX
  26767. _LT_EOF
  26768. ;;
  26769. "sdl3_config":C) chmod a+x sdl3-config ;;
  26770. "summary":C) printf "$SUMMARY" ;;
  26771. esac
  26772. done # for ac_tag
  26773. as_fn_exit 0
  26774. _ACEOF
  26775. ac_clean_files=$ac_clean_files_save
  26776. test $ac_write_fail = 0 ||
  26777. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  26778. # configure is writing to config.log, and then calls config.status.
  26779. # config.status does its own redirection, appending to config.log.
  26780. # Unfortunately, on DOS this fails, as config.log is still kept open
  26781. # by configure, so config.status won't be able to write to it; its
  26782. # output is simply discarded. So we exec the FD to /dev/null,
  26783. # effectively closing config.log, so it can be properly (re)opened and
  26784. # appended to by config.status. When coming back to configure, we
  26785. # need to make the FD available again.
  26786. if test "$no_create" != yes; then
  26787. ac_cs_success=:
  26788. ac_config_status_args=
  26789. test "$silent" = yes &&
  26790. ac_config_status_args="$ac_config_status_args --quiet"
  26791. exec 5>/dev/null
  26792. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  26793. exec 5>>config.log
  26794. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  26795. # would make configure fail if this is the last instruction.
  26796. $ac_cs_success || as_fn_exit 1
  26797. fi
  26798. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  26799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  26800. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  26801. fi