configure 908 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028
  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. PULSEAUDIO_LIBS
  648. PULSEAUDIO_CFLAGS
  649. PIPEWIRE_LIBS
  650. PIPEWIRE_CFLAGS
  651. ALSA_LIBS
  652. ALSA_CFLAGS
  653. ALLOCA
  654. CPP
  655. LIBTOOLLINKERTAG
  656. LINKER
  657. SORT
  658. PKG_CONFIG_LIBDIR
  659. PKG_CONFIG_PATH
  660. PKG_CONFIG
  661. SET_MAKE
  662. INSTALL_DATA
  663. INSTALL_SCRIPT
  664. INSTALL_PROGRAM
  665. CXXCPP
  666. ac_ct_CXX
  667. CXXFLAGS
  668. CXX
  669. LT_AGE
  670. LT_REVISION
  671. LT_CURRENT
  672. LT_RELEASE
  673. RC
  674. LT_SYS_LIBRARY_PATH
  675. OTOOL64
  676. OTOOL
  677. LIPO
  678. NMEDIT
  679. DSYMUTIL
  680. MANIFEST_TOOL
  681. AWK
  682. RANLIB
  683. STRIP
  684. ac_ct_AR
  685. AR
  686. LN_S
  687. NM
  688. ac_ct_DUMPBIN
  689. DUMPBIN
  690. LD
  691. FGREP
  692. EGREP
  693. GREP
  694. SED
  695. OBJEXT
  696. EXEEXT
  697. ac_ct_CC
  698. CPPFLAGS
  699. LDFLAGS
  700. CFLAGS
  701. CC
  702. host_os
  703. host_vendor
  704. host_cpu
  705. host
  706. build_os
  707. build_vendor
  708. build_cpu
  709. build
  710. LIBTOOL
  711. OBJDUMP
  712. DLLTOOL
  713. AS
  714. SDL_VERSION
  715. SDL_BINARY_AGE
  716. SDL_INTERFACE_AGE
  717. SDL_MICRO_VERSION
  718. SDL_MINOR_VERSION
  719. SDL_MAJOR_VERSION
  720. target_alias
  721. host_alias
  722. build_alias
  723. LIBS
  724. ECHO_T
  725. ECHO_N
  726. ECHO_C
  727. DEFS
  728. mandir
  729. localedir
  730. libdir
  731. psdir
  732. pdfdir
  733. dvidir
  734. htmldir
  735. infodir
  736. docdir
  737. oldincludedir
  738. includedir
  739. runstatedir
  740. localstatedir
  741. sharedstatedir
  742. sysconfdir
  743. datadir
  744. datarootdir
  745. libexecdir
  746. sbindir
  747. bindir
  748. program_transform_name
  749. prefix
  750. exec_prefix
  751. PACKAGE_URL
  752. PACKAGE_BUGREPORT
  753. PACKAGE_STRING
  754. PACKAGE_VERSION
  755. PACKAGE_TARNAME
  756. PACKAGE_NAME
  757. PATH_SEPARATOR
  758. SHELL'
  759. ac_subst_files=''
  760. ac_user_opts='
  761. enable_option_checking
  762. enable_shared
  763. enable_static
  764. with_pic
  765. enable_fast_install
  766. with_aix_soname
  767. with_gnu_ld
  768. with_sysroot
  769. enable_libtool_lock
  770. enable_largefile
  771. enable_assertions
  772. enable_dependency_tracking
  773. enable_libc
  774. enable_system_iconv
  775. enable_gcc_atomics
  776. enable_atomic
  777. enable_audio
  778. enable_video
  779. enable_render
  780. enable_events
  781. enable_joystick
  782. enable_haptic
  783. enable_hidapi
  784. enable_sensor
  785. enable_power
  786. enable_filesystem
  787. enable_timers
  788. enable_file
  789. enable_misc
  790. enable_locale
  791. enable_loadso
  792. enable_cpuinfo
  793. enable_assembly
  794. enable_ssemath
  795. enable_mmx
  796. enable_3dnow
  797. enable_sse
  798. enable_sse2
  799. enable_sse3
  800. enable_altivec
  801. enable_lsx
  802. enable_lasx
  803. enable_oss
  804. enable_alsa
  805. with_alsa_prefix
  806. with_alsa_inc_prefix
  807. enable_alsatest
  808. enable_alsa_shared
  809. enable_pipewire
  810. enable_pipewire_shared
  811. enable_pulseaudio
  812. enable_pulseaudio_shared
  813. enable_diskaudio
  814. enable_dummyaudio
  815. enable_libsamplerate
  816. enable_libsamplerate_shared
  817. enable_arm_simd
  818. enable_arm_neon
  819. enable_werror
  820. enable_video_wayland
  821. enable_video_wayland_qt_touch
  822. enable_wayland_shared
  823. enable_libdecor
  824. enable_libdecor_shared
  825. enable_video_rpi
  826. enable_video_x11
  827. with_x
  828. enable_x11_shared
  829. enable_video_x11_xcursor
  830. enable_video_x11_xdbe
  831. enable_video_x11_xinput
  832. enable_video_x11_xfixes
  833. enable_video_x11_xrandr
  834. enable_video_x11_scrnsaver
  835. enable_video_x11_xshape
  836. enable_video_vivante
  837. enable_video_cocoa
  838. enable_video_metal
  839. enable_render_metal
  840. enable_video_kmsdrm
  841. enable_kmsdrm_shared
  842. enable_video_dummy
  843. enable_video_offscreen
  844. enable_video_opengl
  845. enable_video_opengles
  846. enable_video_opengles2
  847. enable_video_vulkan
  848. enable_libudev
  849. enable_dbus
  850. enable_ime
  851. enable_ibus
  852. enable_fcitx
  853. enable_joystick_mfi
  854. enable_pthreads
  855. enable_pthread_sem
  856. enable_directx
  857. enable_xinput
  858. enable_wasapi
  859. enable_hidapi_joystick
  860. enable_hidapi_libusb
  861. enable_clock_gettime
  862. enable_rpath
  863. enable_backgrounding_signal
  864. enable_foregrounding_signal
  865. enable_joystick_virtual
  866. enable_render_d3d
  867. enable_sdl3_config
  868. enable_vendor_info
  869. '
  870. ac_precious_vars='build_alias
  871. host_alias
  872. target_alias
  873. CC
  874. CFLAGS
  875. LDFLAGS
  876. LIBS
  877. CPPFLAGS
  878. LT_SYS_LIBRARY_PATH
  879. CXX
  880. CXXFLAGS
  881. CCC
  882. CXXCPP
  883. PKG_CONFIG
  884. PKG_CONFIG_PATH
  885. PKG_CONFIG_LIBDIR
  886. CPP
  887. PIPEWIRE_CFLAGS
  888. PIPEWIRE_LIBS
  889. PULSEAUDIO_CFLAGS
  890. PULSEAUDIO_LIBS
  891. DECOR_CFLAGS
  892. DECOR_LIBS
  893. RPI_CFLAGS
  894. RPI_LIBS
  895. XMKMF
  896. LIBDRM_CFLAGS
  897. LIBDRM_LIBS
  898. LIBGBM_CFLAGS
  899. LIBGBM_LIBS
  900. DBUS_CFLAGS
  901. DBUS_LIBS
  902. IBUS_CFLAGS
  903. IBUS_LIBS
  904. LIBUSB_CFLAGS
  905. LIBUSB_LIBS'
  906. # Initialize some variables set by options.
  907. ac_init_help=
  908. ac_init_version=false
  909. ac_unrecognized_opts=
  910. ac_unrecognized_sep=
  911. # The variables have the same names as the options, with
  912. # dashes changed to underlines.
  913. cache_file=/dev/null
  914. exec_prefix=NONE
  915. no_create=
  916. no_recursion=
  917. prefix=NONE
  918. program_prefix=NONE
  919. program_suffix=NONE
  920. program_transform_name=s,x,x,
  921. silent=
  922. site=
  923. srcdir=
  924. verbose=
  925. x_includes=NONE
  926. x_libraries=NONE
  927. # Installation directory options.
  928. # These are left unexpanded so users can "make install exec_prefix=/foo"
  929. # and all the variables that are supposed to be based on exec_prefix
  930. # by default will actually change.
  931. # Use braces instead of parens because sh, perl, etc. also accept them.
  932. # (The list follows the same order as the GNU Coding Standards.)
  933. bindir='${exec_prefix}/bin'
  934. sbindir='${exec_prefix}/sbin'
  935. libexecdir='${exec_prefix}/libexec'
  936. datarootdir='${prefix}/share'
  937. datadir='${datarootdir}'
  938. sysconfdir='${prefix}/etc'
  939. sharedstatedir='${prefix}/com'
  940. localstatedir='${prefix}/var'
  941. runstatedir='${localstatedir}/run'
  942. includedir='${prefix}/include'
  943. oldincludedir='/usr/include'
  944. docdir='${datarootdir}/doc/${PACKAGE}'
  945. infodir='${datarootdir}/info'
  946. htmldir='${docdir}'
  947. dvidir='${docdir}'
  948. pdfdir='${docdir}'
  949. psdir='${docdir}'
  950. libdir='${exec_prefix}/lib'
  951. localedir='${datarootdir}/locale'
  952. mandir='${datarootdir}/man'
  953. ac_prev=
  954. ac_dashdash=
  955. for ac_option
  956. do
  957. # If the previous option needs an argument, assign it.
  958. if test -n "$ac_prev"; then
  959. eval $ac_prev=\$ac_option
  960. ac_prev=
  961. continue
  962. fi
  963. case $ac_option in
  964. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  965. *=) ac_optarg= ;;
  966. *) ac_optarg=yes ;;
  967. esac
  968. case $ac_dashdash$ac_option in
  969. --)
  970. ac_dashdash=yes ;;
  971. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  972. ac_prev=bindir ;;
  973. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  974. bindir=$ac_optarg ;;
  975. -build | --build | --buil | --bui | --bu)
  976. ac_prev=build_alias ;;
  977. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  978. build_alias=$ac_optarg ;;
  979. -cache-file | --cache-file | --cache-fil | --cache-fi \
  980. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  981. ac_prev=cache_file ;;
  982. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  983. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  984. cache_file=$ac_optarg ;;
  985. --config-cache | -C)
  986. cache_file=config.cache ;;
  987. -datadir | --datadir | --datadi | --datad)
  988. ac_prev=datadir ;;
  989. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  990. datadir=$ac_optarg ;;
  991. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  992. | --dataroo | --dataro | --datar)
  993. ac_prev=datarootdir ;;
  994. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  995. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  996. datarootdir=$ac_optarg ;;
  997. -disable-* | --disable-*)
  998. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  999. # Reject names that are not valid shell variable names.
  1000. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1001. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1002. ac_useropt_orig=$ac_useropt
  1003. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1004. case $ac_user_opts in
  1005. *"
  1006. "enable_$ac_useropt"
  1007. "*) ;;
  1008. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1009. ac_unrecognized_sep=', ';;
  1010. esac
  1011. eval enable_$ac_useropt=no ;;
  1012. -docdir | --docdir | --docdi | --doc | --do)
  1013. ac_prev=docdir ;;
  1014. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1015. docdir=$ac_optarg ;;
  1016. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1017. ac_prev=dvidir ;;
  1018. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1019. dvidir=$ac_optarg ;;
  1020. -enable-* | --enable-*)
  1021. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1022. # Reject names that are not valid shell variable names.
  1023. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1024. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1025. ac_useropt_orig=$ac_useropt
  1026. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1027. case $ac_user_opts in
  1028. *"
  1029. "enable_$ac_useropt"
  1030. "*) ;;
  1031. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1032. ac_unrecognized_sep=', ';;
  1033. esac
  1034. eval enable_$ac_useropt=\$ac_optarg ;;
  1035. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1036. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1037. | --exec | --exe | --ex)
  1038. ac_prev=exec_prefix ;;
  1039. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1040. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1041. | --exec=* | --exe=* | --ex=*)
  1042. exec_prefix=$ac_optarg ;;
  1043. -gas | --gas | --ga | --g)
  1044. # Obsolete; use --with-gas.
  1045. with_gas=yes ;;
  1046. -help | --help | --hel | --he | -h)
  1047. ac_init_help=long ;;
  1048. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1049. ac_init_help=recursive ;;
  1050. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1051. ac_init_help=short ;;
  1052. -host | --host | --hos | --ho)
  1053. ac_prev=host_alias ;;
  1054. -host=* | --host=* | --hos=* | --ho=*)
  1055. host_alias=$ac_optarg ;;
  1056. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1057. ac_prev=htmldir ;;
  1058. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1059. | --ht=*)
  1060. htmldir=$ac_optarg ;;
  1061. -includedir | --includedir | --includedi | --included | --include \
  1062. | --includ | --inclu | --incl | --inc)
  1063. ac_prev=includedir ;;
  1064. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1065. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1066. includedir=$ac_optarg ;;
  1067. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1068. ac_prev=infodir ;;
  1069. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1070. infodir=$ac_optarg ;;
  1071. -libdir | --libdir | --libdi | --libd)
  1072. ac_prev=libdir ;;
  1073. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1074. libdir=$ac_optarg ;;
  1075. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1076. | --libexe | --libex | --libe)
  1077. ac_prev=libexecdir ;;
  1078. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1079. | --libexe=* | --libex=* | --libe=*)
  1080. libexecdir=$ac_optarg ;;
  1081. -localedir | --localedir | --localedi | --localed | --locale)
  1082. ac_prev=localedir ;;
  1083. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1084. localedir=$ac_optarg ;;
  1085. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1086. | --localstate | --localstat | --localsta | --localst | --locals)
  1087. ac_prev=localstatedir ;;
  1088. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1089. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1090. localstatedir=$ac_optarg ;;
  1091. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1092. ac_prev=mandir ;;
  1093. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1094. mandir=$ac_optarg ;;
  1095. -nfp | --nfp | --nf)
  1096. # Obsolete; use --without-fp.
  1097. with_fp=no ;;
  1098. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1099. | --no-cr | --no-c | -n)
  1100. no_create=yes ;;
  1101. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1102. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1103. no_recursion=yes ;;
  1104. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1105. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1106. | --oldin | --oldi | --old | --ol | --o)
  1107. ac_prev=oldincludedir ;;
  1108. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1109. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1110. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1111. oldincludedir=$ac_optarg ;;
  1112. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1113. ac_prev=prefix ;;
  1114. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1115. prefix=$ac_optarg ;;
  1116. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1117. | --program-pre | --program-pr | --program-p)
  1118. ac_prev=program_prefix ;;
  1119. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1120. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1121. program_prefix=$ac_optarg ;;
  1122. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1123. | --program-suf | --program-su | --program-s)
  1124. ac_prev=program_suffix ;;
  1125. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1126. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1127. program_suffix=$ac_optarg ;;
  1128. -program-transform-name | --program-transform-name \
  1129. | --program-transform-nam | --program-transform-na \
  1130. | --program-transform-n | --program-transform- \
  1131. | --program-transform | --program-transfor \
  1132. | --program-transfo | --program-transf \
  1133. | --program-trans | --program-tran \
  1134. | --progr-tra | --program-tr | --program-t)
  1135. ac_prev=program_transform_name ;;
  1136. -program-transform-name=* | --program-transform-name=* \
  1137. | --program-transform-nam=* | --program-transform-na=* \
  1138. | --program-transform-n=* | --program-transform-=* \
  1139. | --program-transform=* | --program-transfor=* \
  1140. | --program-transfo=* | --program-transf=* \
  1141. | --program-trans=* | --program-tran=* \
  1142. | --progr-tra=* | --program-tr=* | --program-t=*)
  1143. program_transform_name=$ac_optarg ;;
  1144. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1145. ac_prev=pdfdir ;;
  1146. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1147. pdfdir=$ac_optarg ;;
  1148. -psdir | --psdir | --psdi | --psd | --ps)
  1149. ac_prev=psdir ;;
  1150. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1151. psdir=$ac_optarg ;;
  1152. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1153. | -silent | --silent | --silen | --sile | --sil)
  1154. silent=yes ;;
  1155. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1156. | --runstate | --runstat | --runsta | --runst | --runs \
  1157. | --run | --ru | --r)
  1158. ac_prev=runstatedir ;;
  1159. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1160. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1161. | --run=* | --ru=* | --r=*)
  1162. runstatedir=$ac_optarg ;;
  1163. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1164. ac_prev=sbindir ;;
  1165. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1166. | --sbi=* | --sb=*)
  1167. sbindir=$ac_optarg ;;
  1168. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1169. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1170. | --sharedst | --shareds | --shared | --share | --shar \
  1171. | --sha | --sh)
  1172. ac_prev=sharedstatedir ;;
  1173. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1174. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1175. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1176. | --sha=* | --sh=*)
  1177. sharedstatedir=$ac_optarg ;;
  1178. -site | --site | --sit)
  1179. ac_prev=site ;;
  1180. -site=* | --site=* | --sit=*)
  1181. site=$ac_optarg ;;
  1182. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1183. ac_prev=srcdir ;;
  1184. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1185. srcdir=$ac_optarg ;;
  1186. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1187. | --syscon | --sysco | --sysc | --sys | --sy)
  1188. ac_prev=sysconfdir ;;
  1189. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1190. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1191. sysconfdir=$ac_optarg ;;
  1192. -target | --target | --targe | --targ | --tar | --ta | --t)
  1193. ac_prev=target_alias ;;
  1194. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1195. target_alias=$ac_optarg ;;
  1196. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1197. verbose=yes ;;
  1198. -version | --version | --versio | --versi | --vers | -V)
  1199. ac_init_version=: ;;
  1200. -with-* | --with-*)
  1201. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1202. # Reject names that are not valid shell variable names.
  1203. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1204. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1205. ac_useropt_orig=$ac_useropt
  1206. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1207. case $ac_user_opts in
  1208. *"
  1209. "with_$ac_useropt"
  1210. "*) ;;
  1211. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1212. ac_unrecognized_sep=', ';;
  1213. esac
  1214. eval with_$ac_useropt=\$ac_optarg ;;
  1215. -without-* | --without-*)
  1216. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1217. # Reject names that are not valid shell variable names.
  1218. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1219. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1220. ac_useropt_orig=$ac_useropt
  1221. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1222. case $ac_user_opts in
  1223. *"
  1224. "with_$ac_useropt"
  1225. "*) ;;
  1226. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1227. ac_unrecognized_sep=', ';;
  1228. esac
  1229. eval with_$ac_useropt=no ;;
  1230. --x)
  1231. # Obsolete; use --with-x.
  1232. with_x=yes ;;
  1233. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1234. | --x-incl | --x-inc | --x-in | --x-i)
  1235. ac_prev=x_includes ;;
  1236. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1237. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1238. x_includes=$ac_optarg ;;
  1239. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1240. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1241. ac_prev=x_libraries ;;
  1242. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1243. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1244. x_libraries=$ac_optarg ;;
  1245. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1246. Try \`$0 --help' for more information"
  1247. ;;
  1248. *=*)
  1249. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1250. # Reject names that are not valid shell variable names.
  1251. case $ac_envvar in #(
  1252. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1253. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1254. esac
  1255. eval $ac_envvar=\$ac_optarg
  1256. export $ac_envvar ;;
  1257. *)
  1258. # FIXME: should be removed in autoconf 3.0.
  1259. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1260. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1261. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1262. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1263. ;;
  1264. esac
  1265. done
  1266. if test -n "$ac_prev"; then
  1267. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1268. as_fn_error $? "missing argument to $ac_option"
  1269. fi
  1270. if test -n "$ac_unrecognized_opts"; then
  1271. case $enable_option_checking in
  1272. no) ;;
  1273. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1274. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1275. esac
  1276. fi
  1277. # Check all directory arguments for consistency.
  1278. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1279. datadir sysconfdir sharedstatedir localstatedir includedir \
  1280. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1281. libdir localedir mandir runstatedir
  1282. do
  1283. eval ac_val=\$$ac_var
  1284. # Remove trailing slashes.
  1285. case $ac_val in
  1286. */ )
  1287. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1288. eval $ac_var=\$ac_val;;
  1289. esac
  1290. # Be sure to have absolute directory names.
  1291. case $ac_val in
  1292. [\\/$]* | ?:[\\/]* ) continue;;
  1293. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1294. esac
  1295. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1296. done
  1297. # There might be people who depend on the old broken behavior: `$host'
  1298. # used to hold the argument of --host etc.
  1299. # FIXME: To remove some day.
  1300. build=$build_alias
  1301. host=$host_alias
  1302. target=$target_alias
  1303. # FIXME: To remove some day.
  1304. if test "x$host_alias" != x; then
  1305. if test "x$build_alias" = x; then
  1306. cross_compiling=maybe
  1307. elif test "x$build_alias" != "x$host_alias"; then
  1308. cross_compiling=yes
  1309. fi
  1310. fi
  1311. ac_tool_prefix=
  1312. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1313. test "$silent" = yes && exec 6>/dev/null
  1314. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1315. ac_ls_di=`ls -di .` &&
  1316. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1317. as_fn_error $? "working directory cannot be determined"
  1318. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1319. as_fn_error $? "pwd does not report name of working directory"
  1320. # Find the source files, if location was not specified.
  1321. if test -z "$srcdir"; then
  1322. ac_srcdir_defaulted=yes
  1323. # Try the directory containing this script, then the parent directory.
  1324. ac_confdir=`$as_dirname -- "$as_myself" ||
  1325. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1326. X"$as_myself" : 'X\(//\)[^/]' \| \
  1327. X"$as_myself" : 'X\(//\)$' \| \
  1328. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1329. printf "%s\n" X"$as_myself" |
  1330. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1331. s//\1/
  1332. q
  1333. }
  1334. /^X\(\/\/\)[^/].*/{
  1335. s//\1/
  1336. q
  1337. }
  1338. /^X\(\/\/\)$/{
  1339. s//\1/
  1340. q
  1341. }
  1342. /^X\(\/\).*/{
  1343. s//\1/
  1344. q
  1345. }
  1346. s/.*/./; q'`
  1347. srcdir=$ac_confdir
  1348. if test ! -r "$srcdir/$ac_unique_file"; then
  1349. srcdir=..
  1350. fi
  1351. else
  1352. ac_srcdir_defaulted=no
  1353. fi
  1354. if test ! -r "$srcdir/$ac_unique_file"; then
  1355. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1356. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1357. fi
  1358. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1359. ac_abs_confdir=`(
  1360. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1361. pwd)`
  1362. # When building in place, set srcdir=.
  1363. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1364. srcdir=.
  1365. fi
  1366. # Remove unnecessary trailing slashes from srcdir.
  1367. # Double slashes in file names in object file debugging info
  1368. # mess up M-x gdb in Emacs.
  1369. case $srcdir in
  1370. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1371. esac
  1372. for ac_var in $ac_precious_vars; do
  1373. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1374. eval ac_env_${ac_var}_value=\$${ac_var}
  1375. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1376. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1377. done
  1378. #
  1379. # Report the --help message.
  1380. #
  1381. if test "$ac_init_help" = "long"; then
  1382. # Omit some internal or obsolete options to make the list less imposing.
  1383. # This message is too long to be a string in the A/UX 3.1 sh.
  1384. cat <<_ACEOF
  1385. \`configure' configures this package to adapt to many kinds of systems.
  1386. Usage: $0 [OPTION]... [VAR=VALUE]...
  1387. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1388. VAR=VALUE. See below for descriptions of some of the useful variables.
  1389. Defaults for the options are specified in brackets.
  1390. Configuration:
  1391. -h, --help display this help and exit
  1392. --help=short display options specific to this package
  1393. --help=recursive display the short help of all the included packages
  1394. -V, --version display version information and exit
  1395. -q, --quiet, --silent do not print \`checking ...' messages
  1396. --cache-file=FILE cache test results in FILE [disabled]
  1397. -C, --config-cache alias for \`--cache-file=config.cache'
  1398. -n, --no-create do not create output files
  1399. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1400. Installation directories:
  1401. --prefix=PREFIX install architecture-independent files in PREFIX
  1402. [$ac_default_prefix]
  1403. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1404. [PREFIX]
  1405. By default, \`make install' will install all the files in
  1406. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1407. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1408. for instance \`--prefix=\$HOME'.
  1409. For better control, use the options below.
  1410. Fine tuning of the installation directories:
  1411. --bindir=DIR user executables [EPREFIX/bin]
  1412. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1413. --libexecdir=DIR program executables [EPREFIX/libexec]
  1414. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1415. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1416. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1417. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1418. --libdir=DIR object code libraries [EPREFIX/lib]
  1419. --includedir=DIR C header files [PREFIX/include]
  1420. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1421. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1422. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1423. --infodir=DIR info documentation [DATAROOTDIR/info]
  1424. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1425. --mandir=DIR man documentation [DATAROOTDIR/man]
  1426. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1427. --htmldir=DIR html documentation [DOCDIR]
  1428. --dvidir=DIR dvi documentation [DOCDIR]
  1429. --pdfdir=DIR pdf documentation [DOCDIR]
  1430. --psdir=DIR ps documentation [DOCDIR]
  1431. _ACEOF
  1432. cat <<\_ACEOF
  1433. X features:
  1434. --x-includes=DIR X include files are in DIR
  1435. --x-libraries=DIR X library files are in DIR
  1436. System types:
  1437. --build=BUILD configure for building on BUILD [guessed]
  1438. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1439. _ACEOF
  1440. fi
  1441. if test -n "$ac_init_help"; then
  1442. cat <<\_ACEOF
  1443. Optional Features:
  1444. --disable-option-checking ignore unrecognized --enable/--with options
  1445. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1446. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1447. --enable-shared[=PKGS] build shared libraries [default=yes]
  1448. --enable-static[=PKGS] build static libraries [default=yes]
  1449. --enable-fast-install[=PKGS]
  1450. optimize for fast installation [default=yes]
  1451. --disable-libtool-lock avoid locking (might break parallel builds)
  1452. --disable-largefile omit support for large files
  1453. --enable-assertions Enable internal sanity checks
  1454. (auto/disabled/release/enabled/paranoid)
  1455. [default=auto]
  1456. --enable-dependency-tracking
  1457. Use gcc -MMD -MT dependency tracking [default=yes]
  1458. --enable-libc Use the system C library [default=yes]
  1459. --enable-system-iconv Use iconv() from system-installed libraries
  1460. [default=yes]
  1461. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1462. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1463. --enable-audio Enable the audio subsystem [default=yes]
  1464. --enable-video Enable the video subsystem [default=yes]
  1465. --enable-render Enable the render subsystem [default=yes]
  1466. --enable-events Enable the events subsystem [default=yes]
  1467. --enable-joystick Enable the joystick subsystem [default=yes]
  1468. --enable-haptic Enable the haptic (force feedback) subsystem
  1469. [default=yes]
  1470. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1471. --enable-sensor Enable the sensor subsystem [default=yes]
  1472. --enable-power Enable the power subsystem [default=yes]
  1473. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1474. --enable-timers Enable the timer subsystem [default=yes]
  1475. --enable-file Enable the file subsystem [default=yes]
  1476. --enable-misc Enable the misc subsystem [default=yes]
  1477. --enable-locale Enable the locale subsystem [default=yes]
  1478. --enable-loadso Enable the shared object loading subsystem
  1479. [default=yes]
  1480. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1481. --enable-assembly Enable assembly routines [default=yes]
  1482. --enable-ssemath Allow GCC to use SSE floating point math
  1483. [default=maybe]
  1484. --enable-mmx use MMX assembly routines [default=yes]
  1485. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1486. --enable-sse use SSE assembly routines [default=yes]
  1487. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1488. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1489. --enable-altivec use Altivec assembly routines [default=yes]
  1490. --enable-lsx use LSX assembly routines [default=yes]
  1491. --enable-lasx use LASX assembly routines [default=yes]
  1492. --enable-oss support the OSS audio API [default=maybe]
  1493. --enable-alsa support the ALSA audio API [default=yes]
  1494. --disable-alsatest Do not try to compile and run a test Alsa program
  1495. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1496. --enable-pipewire use Pipewire audio [default=yes]
  1497. --enable-pipewire-shared
  1498. dynamically load Pipewire support [default=yes]
  1499. --enable-pulseaudio use PulseAudio [default=yes]
  1500. --enable-pulseaudio-shared
  1501. dynamically load PulseAudio support [default=yes]
  1502. --enable-diskaudio support the disk writer audio driver [default=yes]
  1503. --enable-dummyaudio support the dummy audio driver [default=yes]
  1504. --enable-libsamplerate use libsamplerate for audio rate conversion
  1505. [default=yes]
  1506. --enable-libsamplerate-shared
  1507. dynamically load libsamplerate [default=yes]
  1508. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1509. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1510. --enable-werror treat warnings as errors [default=no]
  1511. --enable-video-wayland use Wayland video driver [default=yes]
  1512. --enable-video-wayland-qt-touch
  1513. QtWayland server support for Wayland video driver
  1514. [default=yes]
  1515. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1516. --enable-libdecor use libdecor for Wayland client-side decorations
  1517. [default=yes]
  1518. --enable-libdecor-shared
  1519. dynamically load libdecor [default=yes]
  1520. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1521. --enable-video-x11 use X11 video driver [default=maybe]
  1522. --enable-x11-shared dynamically load X11 support [default=maybe]
  1523. --enable-video-x11-xcursor
  1524. enable X11 Xcursor support [default=yes]
  1525. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1526. --enable-video-x11-xinput
  1527. enable X11 XInput extension for manymouse, tablets,
  1528. etc [default=yes]
  1529. --enable-video-x11-xfixes
  1530. enable X11 Xfixes support [default=yes]
  1531. --enable-video-x11-xrandr
  1532. enable X11 Xrandr extension for fullscreen
  1533. [default=yes]
  1534. --enable-video-x11-scrnsaver
  1535. enable X11 screensaver extension [default=yes]
  1536. --enable-video-x11-xshape
  1537. enable X11 XShape support [default=yes]
  1538. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1539. --enable-video-cocoa use Cocoa video driver [default=yes]
  1540. --enable-video-metal include Metal support [default=yes]
  1541. --enable-render-metal enable the Metal render driver [default=yes]
  1542. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1543. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1544. --enable-video-dummy use dummy video driver [default=yes]
  1545. --enable-video-offscreen
  1546. use offscreen video driver [default=yes]
  1547. --enable-video-opengl include OpenGL support [default=yes]
  1548. --enable-video-opengles include OpenGL ES support [default=yes]
  1549. --enable-video-opengles2
  1550. include OpenGL ES 2.0 support [default=yes]
  1551. --enable-video-vulkan include Vulkan support [default=yes]
  1552. --enable-libudev enable libudev support [default=yes]
  1553. --enable-dbus enable D-Bus support [default=yes]
  1554. --enable-ime enable IME support [default=yes]
  1555. --enable-ibus enable IBus support [default=yes]
  1556. --enable-fcitx enable fcitx support [default=yes]
  1557. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1558. --enable-pthreads use POSIX threads for multi-threading
  1559. [default=maybe]
  1560. --enable-pthread-sem use pthread semaphores [default=maybe]
  1561. --enable-directx use DirectX for Windows audio/video [default=yes]
  1562. --enable-xinput use Xinput for Windows [default=yes]
  1563. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1564. --enable-hidapi-joystick
  1565. use HIDAPI for low level joystick drivers
  1566. [default=yes]
  1567. --enable-hidapi-libusb use libusb for low level joystick drivers
  1568. [default=maybe]
  1569. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1570. UNIX [default=yes]
  1571. --enable-rpath use an rpath when linking SDL [default=yes]
  1572. --enable-backgrounding-signal
  1573. number to use for magic backgrounding signal or 'no'
  1574. [default=no]
  1575. --enable-foregrounding-signal
  1576. number to use for magic foregrounding signal or 'no'
  1577. [default=no]
  1578. --enable-joystick-virtual
  1579. enable virtual joystick APIs [default=yes]
  1580. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1581. --enable-sdl3-config Install sdl3-config [default=yes]
  1582. --enable-vendor-info=STRING
  1583. Add vendor info to SDL_REVISION
  1584. Optional Packages:
  1585. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1586. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1587. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1588. both]
  1589. --with-aix-soname=aix|svr4|both
  1590. shared library versioning (aka "SONAME") variant to
  1591. provide on AIX, [default=aix].
  1592. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1593. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1594. compiler's sysroot if not specified).
  1595. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1596. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1597. --with-x use the X Window System
  1598. Some influential environment variables:
  1599. CC C compiler command
  1600. CFLAGS C compiler flags
  1601. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1602. nonstandard directory <lib dir>
  1603. LIBS libraries to pass to the linker, e.g. -l<library>
  1604. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1605. you have headers in a nonstandard directory <include dir>
  1606. LT_SYS_LIBRARY_PATH
  1607. User-defined run-time library search path.
  1608. CXX C++ compiler command
  1609. CXXFLAGS C++ compiler flags
  1610. CXXCPP C++ preprocessor
  1611. PKG_CONFIG path to pkg-config utility
  1612. PKG_CONFIG_PATH
  1613. directories to add to pkg-config's search path
  1614. PKG_CONFIG_LIBDIR
  1615. path overriding pkg-config's built-in search path
  1616. CPP C preprocessor
  1617. PIPEWIRE_CFLAGS
  1618. C compiler flags for PIPEWIRE, overriding pkg-config
  1619. PIPEWIRE_LIBS
  1620. linker flags for PIPEWIRE, overriding pkg-config
  1621. PULSEAUDIO_CFLAGS
  1622. C compiler flags for PULSEAUDIO, overriding pkg-config
  1623. PULSEAUDIO_LIBS
  1624. linker flags for PULSEAUDIO, overriding pkg-config
  1625. DECOR_CFLAGS
  1626. C compiler flags for DECOR, overriding pkg-config
  1627. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1628. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1629. RPI_LIBS linker flags for RPI, overriding pkg-config
  1630. XMKMF Path to xmkmf, Makefile generator for X Window System
  1631. LIBDRM_CFLAGS
  1632. C compiler flags for LIBDRM, overriding pkg-config
  1633. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1634. LIBGBM_CFLAGS
  1635. C compiler flags for LIBGBM, overriding pkg-config
  1636. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1637. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1638. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1639. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1640. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1641. LIBUSB_CFLAGS
  1642. C compiler flags for LIBUSB, overriding pkg-config
  1643. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1644. Use these variables to override the choices made by `configure' or to help
  1645. it to find libraries and programs with nonstandard names/locations.
  1646. Report bugs to the package provider.
  1647. _ACEOF
  1648. ac_status=$?
  1649. fi
  1650. if test "$ac_init_help" = "recursive"; then
  1651. # If there are subdirs, report their specific --help.
  1652. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1653. test -d "$ac_dir" ||
  1654. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1655. continue
  1656. ac_builddir=.
  1657. case "$ac_dir" in
  1658. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1659. *)
  1660. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1661. # A ".." for each directory in $ac_dir_suffix.
  1662. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1663. case $ac_top_builddir_sub in
  1664. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1665. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1666. esac ;;
  1667. esac
  1668. ac_abs_top_builddir=$ac_pwd
  1669. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1670. # for backward compatibility:
  1671. ac_top_builddir=$ac_top_build_prefix
  1672. case $srcdir in
  1673. .) # We are building in place.
  1674. ac_srcdir=.
  1675. ac_top_srcdir=$ac_top_builddir_sub
  1676. ac_abs_top_srcdir=$ac_pwd ;;
  1677. [\\/]* | ?:[\\/]* ) # Absolute name.
  1678. ac_srcdir=$srcdir$ac_dir_suffix;
  1679. ac_top_srcdir=$srcdir
  1680. ac_abs_top_srcdir=$srcdir ;;
  1681. *) # Relative name.
  1682. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1683. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1684. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1685. esac
  1686. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1687. cd "$ac_dir" || { ac_status=$?; continue; }
  1688. # Check for configure.gnu first; this name is used for a wrapper for
  1689. # Metaconfig's "Configure" on case-insensitive file systems.
  1690. if test -f "$ac_srcdir/configure.gnu"; then
  1691. echo &&
  1692. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1693. elif test -f "$ac_srcdir/configure"; then
  1694. echo &&
  1695. $SHELL "$ac_srcdir/configure" --help=recursive
  1696. else
  1697. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1698. fi || ac_status=$?
  1699. cd "$ac_pwd" || { ac_status=$?; break; }
  1700. done
  1701. fi
  1702. test -n "$ac_init_help" && exit $ac_status
  1703. if $ac_init_version; then
  1704. cat <<\_ACEOF
  1705. configure
  1706. generated by GNU Autoconf 2.71
  1707. Copyright (C) 2021 Free Software Foundation, Inc.
  1708. This configure script is free software; the Free Software Foundation
  1709. gives unlimited permission to copy, distribute and modify it.
  1710. _ACEOF
  1711. exit
  1712. fi
  1713. ## ------------------------ ##
  1714. ## Autoconf initialization. ##
  1715. ## ------------------------ ##
  1716. # ac_fn_c_try_compile LINENO
  1717. # --------------------------
  1718. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1719. ac_fn_c_try_compile ()
  1720. {
  1721. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1722. rm -f conftest.$ac_objext conftest.beam
  1723. if { { ac_try="$ac_compile"
  1724. case "(($ac_try" in
  1725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1726. *) ac_try_echo=$ac_try;;
  1727. esac
  1728. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1729. printf "%s\n" "$ac_try_echo"; } >&5
  1730. (eval "$ac_compile") 2>conftest.err
  1731. ac_status=$?
  1732. if test -s conftest.err; then
  1733. grep -v '^ *+' conftest.err >conftest.er1
  1734. cat conftest.er1 >&5
  1735. mv -f conftest.er1 conftest.err
  1736. fi
  1737. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1738. test $ac_status = 0; } && {
  1739. test -z "$ac_c_werror_flag" ||
  1740. test ! -s conftest.err
  1741. } && test -s conftest.$ac_objext
  1742. then :
  1743. ac_retval=0
  1744. else $as_nop
  1745. printf "%s\n" "$as_me: failed program was:" >&5
  1746. sed 's/^/| /' conftest.$ac_ext >&5
  1747. ac_retval=1
  1748. fi
  1749. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1750. as_fn_set_status $ac_retval
  1751. } # ac_fn_c_try_compile
  1752. # ac_fn_c_try_link LINENO
  1753. # -----------------------
  1754. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1755. ac_fn_c_try_link ()
  1756. {
  1757. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1758. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1759. if { { ac_try="$ac_link"
  1760. case "(($ac_try" in
  1761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1762. *) ac_try_echo=$ac_try;;
  1763. esac
  1764. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1765. printf "%s\n" "$ac_try_echo"; } >&5
  1766. (eval "$ac_link") 2>conftest.err
  1767. ac_status=$?
  1768. if test -s conftest.err; then
  1769. grep -v '^ *+' conftest.err >conftest.er1
  1770. cat conftest.er1 >&5
  1771. mv -f conftest.er1 conftest.err
  1772. fi
  1773. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1774. test $ac_status = 0; } && {
  1775. test -z "$ac_c_werror_flag" ||
  1776. test ! -s conftest.err
  1777. } && test -s conftest$ac_exeext && {
  1778. test "$cross_compiling" = yes ||
  1779. test -x conftest$ac_exeext
  1780. }
  1781. then :
  1782. ac_retval=0
  1783. else $as_nop
  1784. printf "%s\n" "$as_me: failed program was:" >&5
  1785. sed 's/^/| /' conftest.$ac_ext >&5
  1786. ac_retval=1
  1787. fi
  1788. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1789. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1790. # interfere with the next link command; also delete a directory that is
  1791. # left behind by Apple's compiler. We do this before executing the actions.
  1792. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1793. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1794. as_fn_set_status $ac_retval
  1795. } # ac_fn_c_try_link
  1796. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1797. # -------------------------------------------------------
  1798. # Tests whether HEADER exists and can be compiled using the include files in
  1799. # INCLUDES, setting the cache variable VAR accordingly.
  1800. ac_fn_c_check_header_compile ()
  1801. {
  1802. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1804. printf %s "checking for $2... " >&6; }
  1805. if eval test \${$3+y}
  1806. then :
  1807. printf %s "(cached) " >&6
  1808. else $as_nop
  1809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1810. /* end confdefs.h. */
  1811. $4
  1812. #include <$2>
  1813. _ACEOF
  1814. if ac_fn_c_try_compile "$LINENO"
  1815. then :
  1816. eval "$3=yes"
  1817. else $as_nop
  1818. eval "$3=no"
  1819. fi
  1820. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1821. fi
  1822. eval ac_res=\$$3
  1823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1824. printf "%s\n" "$ac_res" >&6; }
  1825. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1826. } # ac_fn_c_check_header_compile
  1827. # ac_fn_c_check_func LINENO FUNC VAR
  1828. # ----------------------------------
  1829. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1830. ac_fn_c_check_func ()
  1831. {
  1832. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1834. printf %s "checking for $2... " >&6; }
  1835. if eval test \${$3+y}
  1836. then :
  1837. printf %s "(cached) " >&6
  1838. else $as_nop
  1839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1840. /* end confdefs.h. */
  1841. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1842. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1843. #define $2 innocuous_$2
  1844. /* System header to define __stub macros and hopefully few prototypes,
  1845. which can conflict with char $2 (); below. */
  1846. #include <limits.h>
  1847. #undef $2
  1848. /* Override any GCC internal prototype to avoid an error.
  1849. Use char because int might match the return type of a GCC
  1850. builtin and then its argument prototype would still apply. */
  1851. #ifdef __cplusplus
  1852. extern "C"
  1853. #endif
  1854. char $2 ();
  1855. /* The GNU C library defines this for functions which it implements
  1856. to always fail with ENOSYS. Some functions are actually named
  1857. something starting with __ and the normal name is an alias. */
  1858. #if defined __stub_$2 || defined __stub___$2
  1859. choke me
  1860. #endif
  1861. int
  1862. main (void)
  1863. {
  1864. return $2 ();
  1865. ;
  1866. return 0;
  1867. }
  1868. _ACEOF
  1869. if ac_fn_c_try_link "$LINENO"
  1870. then :
  1871. eval "$3=yes"
  1872. else $as_nop
  1873. eval "$3=no"
  1874. fi
  1875. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1876. conftest$ac_exeext conftest.$ac_ext
  1877. fi
  1878. eval ac_res=\$$3
  1879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1880. printf "%s\n" "$ac_res" >&6; }
  1881. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1882. } # ac_fn_c_check_func
  1883. # ac_fn_cxx_try_compile LINENO
  1884. # ----------------------------
  1885. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1886. ac_fn_cxx_try_compile ()
  1887. {
  1888. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1889. rm -f conftest.$ac_objext conftest.beam
  1890. if { { ac_try="$ac_compile"
  1891. case "(($ac_try" in
  1892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1893. *) ac_try_echo=$ac_try;;
  1894. esac
  1895. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1896. printf "%s\n" "$ac_try_echo"; } >&5
  1897. (eval "$ac_compile") 2>conftest.err
  1898. ac_status=$?
  1899. if test -s conftest.err; then
  1900. grep -v '^ *+' conftest.err >conftest.er1
  1901. cat conftest.er1 >&5
  1902. mv -f conftest.er1 conftest.err
  1903. fi
  1904. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1905. test $ac_status = 0; } && {
  1906. test -z "$ac_cxx_werror_flag" ||
  1907. test ! -s conftest.err
  1908. } && test -s conftest.$ac_objext
  1909. then :
  1910. ac_retval=0
  1911. else $as_nop
  1912. printf "%s\n" "$as_me: failed program was:" >&5
  1913. sed 's/^/| /' conftest.$ac_ext >&5
  1914. ac_retval=1
  1915. fi
  1916. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1917. as_fn_set_status $ac_retval
  1918. } # ac_fn_cxx_try_compile
  1919. # ac_fn_cxx_try_cpp LINENO
  1920. # ------------------------
  1921. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1922. ac_fn_cxx_try_cpp ()
  1923. {
  1924. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1925. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1926. case "(($ac_try" in
  1927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1928. *) ac_try_echo=$ac_try;;
  1929. esac
  1930. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1931. printf "%s\n" "$ac_try_echo"; } >&5
  1932. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1933. ac_status=$?
  1934. if test -s conftest.err; then
  1935. grep -v '^ *+' conftest.err >conftest.er1
  1936. cat conftest.er1 >&5
  1937. mv -f conftest.er1 conftest.err
  1938. fi
  1939. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1940. test $ac_status = 0; } > conftest.i && {
  1941. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1942. test ! -s conftest.err
  1943. }
  1944. then :
  1945. ac_retval=0
  1946. else $as_nop
  1947. printf "%s\n" "$as_me: failed program was:" >&5
  1948. sed 's/^/| /' conftest.$ac_ext >&5
  1949. ac_retval=1
  1950. fi
  1951. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1952. as_fn_set_status $ac_retval
  1953. } # ac_fn_cxx_try_cpp
  1954. # ac_fn_cxx_try_link LINENO
  1955. # -------------------------
  1956. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1957. ac_fn_cxx_try_link ()
  1958. {
  1959. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1960. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1961. if { { ac_try="$ac_link"
  1962. case "(($ac_try" in
  1963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1964. *) ac_try_echo=$ac_try;;
  1965. esac
  1966. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1967. printf "%s\n" "$ac_try_echo"; } >&5
  1968. (eval "$ac_link") 2>conftest.err
  1969. ac_status=$?
  1970. if test -s conftest.err; then
  1971. grep -v '^ *+' conftest.err >conftest.er1
  1972. cat conftest.er1 >&5
  1973. mv -f conftest.er1 conftest.err
  1974. fi
  1975. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1976. test $ac_status = 0; } && {
  1977. test -z "$ac_cxx_werror_flag" ||
  1978. test ! -s conftest.err
  1979. } && test -s conftest$ac_exeext && {
  1980. test "$cross_compiling" = yes ||
  1981. test -x conftest$ac_exeext
  1982. }
  1983. then :
  1984. ac_retval=0
  1985. else $as_nop
  1986. printf "%s\n" "$as_me: failed program was:" >&5
  1987. sed 's/^/| /' conftest.$ac_ext >&5
  1988. ac_retval=1
  1989. fi
  1990. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1991. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1992. # interfere with the next link command; also delete a directory that is
  1993. # left behind by Apple's compiler. We do this before executing the actions.
  1994. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1995. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1996. as_fn_set_status $ac_retval
  1997. } # ac_fn_cxx_try_link
  1998. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1999. # -------------------------------------------
  2000. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2001. # variable VAR accordingly.
  2002. ac_fn_c_check_type ()
  2003. {
  2004. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2006. printf %s "checking for $2... " >&6; }
  2007. if eval test \${$3+y}
  2008. then :
  2009. printf %s "(cached) " >&6
  2010. else $as_nop
  2011. eval "$3=no"
  2012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2013. /* end confdefs.h. */
  2014. $4
  2015. int
  2016. main (void)
  2017. {
  2018. if (sizeof ($2))
  2019. return 0;
  2020. ;
  2021. return 0;
  2022. }
  2023. _ACEOF
  2024. if ac_fn_c_try_compile "$LINENO"
  2025. then :
  2026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2027. /* end confdefs.h. */
  2028. $4
  2029. int
  2030. main (void)
  2031. {
  2032. if (sizeof (($2)))
  2033. return 0;
  2034. ;
  2035. return 0;
  2036. }
  2037. _ACEOF
  2038. if ac_fn_c_try_compile "$LINENO"
  2039. then :
  2040. else $as_nop
  2041. eval "$3=yes"
  2042. fi
  2043. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2044. fi
  2045. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2046. fi
  2047. eval ac_res=\$$3
  2048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2049. printf "%s\n" "$ac_res" >&6; }
  2050. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2051. } # ac_fn_c_check_type
  2052. # ac_fn_c_try_cpp LINENO
  2053. # ----------------------
  2054. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2055. ac_fn_c_try_cpp ()
  2056. {
  2057. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2058. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2059. case "(($ac_try" in
  2060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2061. *) ac_try_echo=$ac_try;;
  2062. esac
  2063. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2064. printf "%s\n" "$ac_try_echo"; } >&5
  2065. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2066. ac_status=$?
  2067. if test -s conftest.err; then
  2068. grep -v '^ *+' conftest.err >conftest.er1
  2069. cat conftest.er1 >&5
  2070. mv -f conftest.er1 conftest.err
  2071. fi
  2072. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2073. test $ac_status = 0; } > conftest.i && {
  2074. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2075. test ! -s conftest.err
  2076. }
  2077. then :
  2078. ac_retval=0
  2079. else $as_nop
  2080. printf "%s\n" "$as_me: failed program was:" >&5
  2081. sed 's/^/| /' conftest.$ac_ext >&5
  2082. ac_retval=1
  2083. fi
  2084. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2085. as_fn_set_status $ac_retval
  2086. } # ac_fn_c_try_cpp
  2087. # ac_fn_c_try_run LINENO
  2088. # ----------------------
  2089. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2090. # executables *can* be run.
  2091. ac_fn_c_try_run ()
  2092. {
  2093. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2094. if { { ac_try="$ac_link"
  2095. case "(($ac_try" in
  2096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2097. *) ac_try_echo=$ac_try;;
  2098. esac
  2099. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2100. printf "%s\n" "$ac_try_echo"; } >&5
  2101. (eval "$ac_link") 2>&5
  2102. ac_status=$?
  2103. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2104. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2105. { { case "(($ac_try" in
  2106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2107. *) ac_try_echo=$ac_try;;
  2108. esac
  2109. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2110. printf "%s\n" "$ac_try_echo"; } >&5
  2111. (eval "$ac_try") 2>&5
  2112. ac_status=$?
  2113. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2114. test $ac_status = 0; }; }
  2115. then :
  2116. ac_retval=0
  2117. else $as_nop
  2118. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2119. printf "%s\n" "$as_me: failed program was:" >&5
  2120. sed 's/^/| /' conftest.$ac_ext >&5
  2121. ac_retval=$ac_status
  2122. fi
  2123. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2124. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2125. as_fn_set_status $ac_retval
  2126. } # ac_fn_c_try_run
  2127. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2128. # ----------------------------------------------------
  2129. # Tries to find if the field MEMBER exists in type AGGR, after including
  2130. # INCLUDES, setting cache variable VAR accordingly.
  2131. ac_fn_c_check_member ()
  2132. {
  2133. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2135. printf %s "checking for $2.$3... " >&6; }
  2136. if eval test \${$4+y}
  2137. then :
  2138. printf %s "(cached) " >&6
  2139. else $as_nop
  2140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2141. /* end confdefs.h. */
  2142. $5
  2143. int
  2144. main (void)
  2145. {
  2146. static $2 ac_aggr;
  2147. if (ac_aggr.$3)
  2148. return 0;
  2149. ;
  2150. return 0;
  2151. }
  2152. _ACEOF
  2153. if ac_fn_c_try_compile "$LINENO"
  2154. then :
  2155. eval "$4=yes"
  2156. else $as_nop
  2157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2158. /* end confdefs.h. */
  2159. $5
  2160. int
  2161. main (void)
  2162. {
  2163. static $2 ac_aggr;
  2164. if (sizeof ac_aggr.$3)
  2165. return 0;
  2166. ;
  2167. return 0;
  2168. }
  2169. _ACEOF
  2170. if ac_fn_c_try_compile "$LINENO"
  2171. then :
  2172. eval "$4=yes"
  2173. else $as_nop
  2174. eval "$4=no"
  2175. fi
  2176. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2177. fi
  2178. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2179. fi
  2180. eval ac_res=\$$4
  2181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2182. printf "%s\n" "$ac_res" >&6; }
  2183. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2184. } # ac_fn_c_check_member
  2185. ac_configure_args_raw=
  2186. for ac_arg
  2187. do
  2188. case $ac_arg in
  2189. *\'*)
  2190. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2191. esac
  2192. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2193. done
  2194. case $ac_configure_args_raw in
  2195. *$as_nl*)
  2196. ac_safe_unquote= ;;
  2197. *)
  2198. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2199. ac_unsafe_a="$ac_unsafe_z#~"
  2200. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2201. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2202. esac
  2203. cat >config.log <<_ACEOF
  2204. This file contains any messages produced by compilers while
  2205. running configure, to aid debugging if configure makes a mistake.
  2206. It was created by $as_me, which was
  2207. generated by GNU Autoconf 2.71. Invocation command line was
  2208. $ $0$ac_configure_args_raw
  2209. _ACEOF
  2210. exec 5>>config.log
  2211. {
  2212. cat <<_ASUNAME
  2213. ## --------- ##
  2214. ## Platform. ##
  2215. ## --------- ##
  2216. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2217. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2218. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2219. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2220. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2221. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2222. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2223. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2224. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2225. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2226. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2227. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2228. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2229. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2230. _ASUNAME
  2231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2232. for as_dir in $PATH
  2233. do
  2234. IFS=$as_save_IFS
  2235. case $as_dir in #(((
  2236. '') as_dir=./ ;;
  2237. */) ;;
  2238. *) as_dir=$as_dir/ ;;
  2239. esac
  2240. printf "%s\n" "PATH: $as_dir"
  2241. done
  2242. IFS=$as_save_IFS
  2243. } >&5
  2244. cat >&5 <<_ACEOF
  2245. ## ----------- ##
  2246. ## Core tests. ##
  2247. ## ----------- ##
  2248. _ACEOF
  2249. # Keep a trace of the command line.
  2250. # Strip out --no-create and --no-recursion so they do not pile up.
  2251. # Strip out --silent because we don't want to record it for future runs.
  2252. # Also quote any args containing shell meta-characters.
  2253. # Make two passes to allow for proper duplicate-argument suppression.
  2254. ac_configure_args=
  2255. ac_configure_args0=
  2256. ac_configure_args1=
  2257. ac_must_keep_next=false
  2258. for ac_pass in 1 2
  2259. do
  2260. for ac_arg
  2261. do
  2262. case $ac_arg in
  2263. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2264. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2265. | -silent | --silent | --silen | --sile | --sil)
  2266. continue ;;
  2267. *\'*)
  2268. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2269. esac
  2270. case $ac_pass in
  2271. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2272. 2)
  2273. as_fn_append ac_configure_args1 " '$ac_arg'"
  2274. if test $ac_must_keep_next = true; then
  2275. ac_must_keep_next=false # Got value, back to normal.
  2276. else
  2277. case $ac_arg in
  2278. *=* | --config-cache | -C | -disable-* | --disable-* \
  2279. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2280. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2281. | -with-* | --with-* | -without-* | --without-* | --x)
  2282. case "$ac_configure_args0 " in
  2283. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2284. esac
  2285. ;;
  2286. -* ) ac_must_keep_next=true ;;
  2287. esac
  2288. fi
  2289. as_fn_append ac_configure_args " '$ac_arg'"
  2290. ;;
  2291. esac
  2292. done
  2293. done
  2294. { ac_configure_args0=; unset ac_configure_args0;}
  2295. { ac_configure_args1=; unset ac_configure_args1;}
  2296. # When interrupted or exit'd, cleanup temporary files, and complete
  2297. # config.log. We remove comments because anyway the quotes in there
  2298. # would cause problems or look ugly.
  2299. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2300. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2301. trap 'exit_status=$?
  2302. # Sanitize IFS.
  2303. IFS=" "" $as_nl"
  2304. # Save into config.log some information that might help in debugging.
  2305. {
  2306. echo
  2307. printf "%s\n" "## ---------------- ##
  2308. ## Cache variables. ##
  2309. ## ---------------- ##"
  2310. echo
  2311. # The following way of writing the cache mishandles newlines in values,
  2312. (
  2313. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2314. eval ac_val=\$$ac_var
  2315. case $ac_val in #(
  2316. *${as_nl}*)
  2317. case $ac_var in #(
  2318. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2319. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2320. esac
  2321. case $ac_var in #(
  2322. _ | IFS | as_nl) ;; #(
  2323. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2324. *) { eval $ac_var=; unset $ac_var;} ;;
  2325. esac ;;
  2326. esac
  2327. done
  2328. (set) 2>&1 |
  2329. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2330. *${as_nl}ac_space=\ *)
  2331. sed -n \
  2332. "s/'\''/'\''\\\\'\'''\''/g;
  2333. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2334. ;; #(
  2335. *)
  2336. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2337. ;;
  2338. esac |
  2339. sort
  2340. )
  2341. echo
  2342. printf "%s\n" "## ----------------- ##
  2343. ## Output variables. ##
  2344. ## ----------------- ##"
  2345. echo
  2346. for ac_var in $ac_subst_vars
  2347. do
  2348. eval ac_val=\$$ac_var
  2349. case $ac_val in
  2350. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2351. esac
  2352. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2353. done | sort
  2354. echo
  2355. if test -n "$ac_subst_files"; then
  2356. printf "%s\n" "## ------------------- ##
  2357. ## File substitutions. ##
  2358. ## ------------------- ##"
  2359. echo
  2360. for ac_var in $ac_subst_files
  2361. do
  2362. eval ac_val=\$$ac_var
  2363. case $ac_val in
  2364. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2365. esac
  2366. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2367. done | sort
  2368. echo
  2369. fi
  2370. if test -s confdefs.h; then
  2371. printf "%s\n" "## ----------- ##
  2372. ## confdefs.h. ##
  2373. ## ----------- ##"
  2374. echo
  2375. cat confdefs.h
  2376. echo
  2377. fi
  2378. test "$ac_signal" != 0 &&
  2379. printf "%s\n" "$as_me: caught signal $ac_signal"
  2380. printf "%s\n" "$as_me: exit $exit_status"
  2381. } >&5
  2382. rm -f core *.core core.conftest.* &&
  2383. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2384. exit $exit_status
  2385. ' 0
  2386. for ac_signal in 1 2 13 15; do
  2387. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2388. done
  2389. ac_signal=0
  2390. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2391. rm -f -r conftest* confdefs.h
  2392. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2393. # Predefined preprocessor variables.
  2394. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2395. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2396. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2397. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2398. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2399. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2400. # Let the site file select an alternate cache file if it wants to.
  2401. # Prefer an explicitly selected file to automatically selected ones.
  2402. if test -n "$CONFIG_SITE"; then
  2403. ac_site_files="$CONFIG_SITE"
  2404. elif test "x$prefix" != xNONE; then
  2405. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2406. else
  2407. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2408. fi
  2409. for ac_site_file in $ac_site_files
  2410. do
  2411. case $ac_site_file in #(
  2412. */*) :
  2413. ;; #(
  2414. *) :
  2415. ac_site_file=./$ac_site_file ;;
  2416. esac
  2417. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2419. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2420. sed 's/^/| /' "$ac_site_file" >&5
  2421. . "$ac_site_file" \
  2422. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2423. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2424. as_fn_error $? "failed to load site script $ac_site_file
  2425. See \`config.log' for more details" "$LINENO" 5; }
  2426. fi
  2427. done
  2428. if test -r "$cache_file"; then
  2429. # Some versions of bash will fail to source /dev/null (special files
  2430. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2431. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2433. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2434. case $cache_file in
  2435. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2436. *) . "./$cache_file";;
  2437. esac
  2438. fi
  2439. else
  2440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2441. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2442. >$cache_file
  2443. fi
  2444. # Test code for whether the C compiler supports C89 (global declarations)
  2445. ac_c_conftest_c89_globals='
  2446. /* Does the compiler advertise C89 conformance?
  2447. Do not test the value of __STDC__, because some compilers set it to 0
  2448. while being otherwise adequately conformant. */
  2449. #if !defined __STDC__
  2450. # error "Compiler does not advertise C89 conformance"
  2451. #endif
  2452. #include <stddef.h>
  2453. #include <stdarg.h>
  2454. struct stat;
  2455. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2456. struct buf { int x; };
  2457. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2458. static char *e (p, i)
  2459. char **p;
  2460. int i;
  2461. {
  2462. return p[i];
  2463. }
  2464. static char *f (char * (*g) (char **, int), char **p, ...)
  2465. {
  2466. char *s;
  2467. va_list v;
  2468. va_start (v,p);
  2469. s = g (p, va_arg (v,int));
  2470. va_end (v);
  2471. return s;
  2472. }
  2473. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2474. function prototypes and stuff, but not \xHH hex character constants.
  2475. These do not provoke an error unfortunately, instead are silently treated
  2476. as an "x". The following induces an error, until -std is added to get
  2477. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2478. array size at least. It is necessary to write \x00 == 0 to get something
  2479. that is true only with -std. */
  2480. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2481. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2482. inside strings and character constants. */
  2483. #define FOO(x) '\''x'\''
  2484. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2485. int test (int i, double x);
  2486. struct s1 {int (*f) (int a);};
  2487. struct s2 {int (*f) (double a);};
  2488. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2489. int, int);'
  2490. # Test code for whether the C compiler supports C89 (body of main).
  2491. ac_c_conftest_c89_main='
  2492. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2493. '
  2494. # Test code for whether the C compiler supports C99 (global declarations)
  2495. ac_c_conftest_c99_globals='
  2496. // Does the compiler advertise C99 conformance?
  2497. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2498. # error "Compiler does not advertise C99 conformance"
  2499. #endif
  2500. #include <stdbool.h>
  2501. extern int puts (const char *);
  2502. extern int printf (const char *, ...);
  2503. extern int dprintf (int, const char *, ...);
  2504. extern void *malloc (size_t);
  2505. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2506. // dprintf is used instead of fprintf to avoid needing to declare
  2507. // FILE and stderr.
  2508. #define debug(...) dprintf (2, __VA_ARGS__)
  2509. #define showlist(...) puts (#__VA_ARGS__)
  2510. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2511. static void
  2512. test_varargs_macros (void)
  2513. {
  2514. int x = 1234;
  2515. int y = 5678;
  2516. debug ("Flag");
  2517. debug ("X = %d\n", x);
  2518. showlist (The first, second, and third items.);
  2519. report (x>y, "x is %d but y is %d", x, y);
  2520. }
  2521. // Check long long types.
  2522. #define BIG64 18446744073709551615ull
  2523. #define BIG32 4294967295ul
  2524. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2525. #if !BIG_OK
  2526. #error "your preprocessor is broken"
  2527. #endif
  2528. #if BIG_OK
  2529. #else
  2530. #error "your preprocessor is broken"
  2531. #endif
  2532. static long long int bignum = -9223372036854775807LL;
  2533. static unsigned long long int ubignum = BIG64;
  2534. struct incomplete_array
  2535. {
  2536. int datasize;
  2537. double data[];
  2538. };
  2539. struct named_init {
  2540. int number;
  2541. const wchar_t *name;
  2542. double average;
  2543. };
  2544. typedef const char *ccp;
  2545. static inline int
  2546. test_restrict (ccp restrict text)
  2547. {
  2548. // See if C++-style comments work.
  2549. // Iterate through items via the restricted pointer.
  2550. // Also check for declarations in for loops.
  2551. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2552. continue;
  2553. return 0;
  2554. }
  2555. // Check varargs and va_copy.
  2556. static bool
  2557. test_varargs (const char *format, ...)
  2558. {
  2559. va_list args;
  2560. va_start (args, format);
  2561. va_list args_copy;
  2562. va_copy (args_copy, args);
  2563. const char *str = "";
  2564. int number = 0;
  2565. float fnumber = 0;
  2566. while (*format)
  2567. {
  2568. switch (*format++)
  2569. {
  2570. case '\''s'\'': // string
  2571. str = va_arg (args_copy, const char *);
  2572. break;
  2573. case '\''d'\'': // int
  2574. number = va_arg (args_copy, int);
  2575. break;
  2576. case '\''f'\'': // float
  2577. fnumber = va_arg (args_copy, double);
  2578. break;
  2579. default:
  2580. break;
  2581. }
  2582. }
  2583. va_end (args_copy);
  2584. va_end (args);
  2585. return *str && number && fnumber;
  2586. }
  2587. '
  2588. # Test code for whether the C compiler supports C99 (body of main).
  2589. ac_c_conftest_c99_main='
  2590. // Check bool.
  2591. _Bool success = false;
  2592. success |= (argc != 0);
  2593. // Check restrict.
  2594. if (test_restrict ("String literal") == 0)
  2595. success = true;
  2596. char *restrict newvar = "Another string";
  2597. // Check varargs.
  2598. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2599. test_varargs_macros ();
  2600. // Check flexible array members.
  2601. struct incomplete_array *ia =
  2602. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2603. ia->datasize = 10;
  2604. for (int i = 0; i < ia->datasize; ++i)
  2605. ia->data[i] = i * 1.234;
  2606. // Check named initializers.
  2607. struct named_init ni = {
  2608. .number = 34,
  2609. .name = L"Test wide string",
  2610. .average = 543.34343,
  2611. };
  2612. ni.number = 58;
  2613. int dynamic_array[ni.number];
  2614. dynamic_array[0] = argv[0][0];
  2615. dynamic_array[ni.number - 1] = 543;
  2616. // work around unused variable warnings
  2617. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2618. || dynamic_array[ni.number - 1] != 543);
  2619. '
  2620. # Test code for whether the C compiler supports C11 (global declarations)
  2621. ac_c_conftest_c11_globals='
  2622. // Does the compiler advertise C11 conformance?
  2623. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2624. # error "Compiler does not advertise C11 conformance"
  2625. #endif
  2626. // Check _Alignas.
  2627. char _Alignas (double) aligned_as_double;
  2628. char _Alignas (0) no_special_alignment;
  2629. extern char aligned_as_int;
  2630. char _Alignas (0) _Alignas (int) aligned_as_int;
  2631. // Check _Alignof.
  2632. enum
  2633. {
  2634. int_alignment = _Alignof (int),
  2635. int_array_alignment = _Alignof (int[100]),
  2636. char_alignment = _Alignof (char)
  2637. };
  2638. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2639. // Check _Noreturn.
  2640. int _Noreturn does_not_return (void) { for (;;) continue; }
  2641. // Check _Static_assert.
  2642. struct test_static_assert
  2643. {
  2644. int x;
  2645. _Static_assert (sizeof (int) <= sizeof (long int),
  2646. "_Static_assert does not work in struct");
  2647. long int y;
  2648. };
  2649. // Check UTF-8 literals.
  2650. #define u8 syntax error!
  2651. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2652. // Check duplicate typedefs.
  2653. typedef long *long_ptr;
  2654. typedef long int *long_ptr;
  2655. typedef long_ptr long_ptr;
  2656. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2657. struct anonymous
  2658. {
  2659. union {
  2660. struct { int i; int j; };
  2661. struct { int k; long int l; } w;
  2662. };
  2663. int m;
  2664. } v1;
  2665. '
  2666. # Test code for whether the C compiler supports C11 (body of main).
  2667. ac_c_conftest_c11_main='
  2668. _Static_assert ((offsetof (struct anonymous, i)
  2669. == offsetof (struct anonymous, w.k)),
  2670. "Anonymous union alignment botch");
  2671. v1.i = 2;
  2672. v1.w.k = 5;
  2673. ok |= v1.i != 5;
  2674. '
  2675. # Test code for whether the C compiler supports C11 (complete).
  2676. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2677. ${ac_c_conftest_c99_globals}
  2678. ${ac_c_conftest_c11_globals}
  2679. int
  2680. main (int argc, char **argv)
  2681. {
  2682. int ok = 0;
  2683. ${ac_c_conftest_c89_main}
  2684. ${ac_c_conftest_c99_main}
  2685. ${ac_c_conftest_c11_main}
  2686. return ok;
  2687. }
  2688. "
  2689. # Test code for whether the C compiler supports C99 (complete).
  2690. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2691. ${ac_c_conftest_c99_globals}
  2692. int
  2693. main (int argc, char **argv)
  2694. {
  2695. int ok = 0;
  2696. ${ac_c_conftest_c89_main}
  2697. ${ac_c_conftest_c99_main}
  2698. return ok;
  2699. }
  2700. "
  2701. # Test code for whether the C compiler supports C89 (complete).
  2702. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2703. int
  2704. main (int argc, char **argv)
  2705. {
  2706. int ok = 0;
  2707. ${ac_c_conftest_c89_main}
  2708. return ok;
  2709. }
  2710. "
  2711. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2712. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2713. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2714. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2715. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2716. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2717. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2718. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2719. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2720. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2721. ac_cxx_conftest_cxx98_globals='
  2722. // Does the compiler advertise C++98 conformance?
  2723. #if !defined __cplusplus || __cplusplus < 199711L
  2724. # error "Compiler does not advertise C++98 conformance"
  2725. #endif
  2726. // These inclusions are to reject old compilers that
  2727. // lack the unsuffixed header files.
  2728. #include <cstdlib>
  2729. #include <exception>
  2730. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2731. extern void assert (int);
  2732. namespace std {
  2733. extern int strcmp (const char *, const char *);
  2734. }
  2735. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2736. using std::exception;
  2737. using std::strcmp;
  2738. namespace {
  2739. void test_exception_syntax()
  2740. {
  2741. try {
  2742. throw "test";
  2743. } catch (const char *s) {
  2744. // Extra parentheses suppress a warning when building autoconf itself,
  2745. // due to lint rules shared with more typical C programs.
  2746. assert (!(strcmp) (s, "test"));
  2747. }
  2748. }
  2749. template <typename T> struct test_template
  2750. {
  2751. T const val;
  2752. explicit test_template(T t) : val(t) {}
  2753. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2754. };
  2755. } // anonymous namespace
  2756. '
  2757. # Test code for whether the C++ compiler supports C++98 (body of main)
  2758. ac_cxx_conftest_cxx98_main='
  2759. assert (argc);
  2760. assert (! argv[0]);
  2761. {
  2762. test_exception_syntax ();
  2763. test_template<double> tt (2.0);
  2764. assert (tt.add (4) == 6.0);
  2765. assert (true && !false);
  2766. }
  2767. '
  2768. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2769. ac_cxx_conftest_cxx11_globals='
  2770. // Does the compiler advertise C++ 2011 conformance?
  2771. #if !defined __cplusplus || __cplusplus < 201103L
  2772. # error "Compiler does not advertise C++11 conformance"
  2773. #endif
  2774. namespace cxx11test
  2775. {
  2776. constexpr int get_val() { return 20; }
  2777. struct testinit
  2778. {
  2779. int i;
  2780. double d;
  2781. };
  2782. class delegate
  2783. {
  2784. public:
  2785. delegate(int n) : n(n) {}
  2786. delegate(): delegate(2354) {}
  2787. virtual int getval() { return this->n; };
  2788. protected:
  2789. int n;
  2790. };
  2791. class overridden : public delegate
  2792. {
  2793. public:
  2794. overridden(int n): delegate(n) {}
  2795. virtual int getval() override final { return this->n * 2; }
  2796. };
  2797. class nocopy
  2798. {
  2799. public:
  2800. nocopy(int i): i(i) {}
  2801. nocopy() = default;
  2802. nocopy(const nocopy&) = delete;
  2803. nocopy & operator=(const nocopy&) = delete;
  2804. private:
  2805. int i;
  2806. };
  2807. // for testing lambda expressions
  2808. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2809. {
  2810. return f(v);
  2811. }
  2812. // for testing variadic templates and trailing return types
  2813. template <typename V> auto sum(V first) -> V
  2814. {
  2815. return first;
  2816. }
  2817. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2818. {
  2819. return first + sum(rest...);
  2820. }
  2821. }
  2822. '
  2823. # Test code for whether the C++ compiler supports C++11 (body of main)
  2824. ac_cxx_conftest_cxx11_main='
  2825. {
  2826. // Test auto and decltype
  2827. auto a1 = 6538;
  2828. auto a2 = 48573953.4;
  2829. auto a3 = "String literal";
  2830. int total = 0;
  2831. for (auto i = a3; *i; ++i) { total += *i; }
  2832. decltype(a2) a4 = 34895.034;
  2833. }
  2834. {
  2835. // Test constexpr
  2836. short sa[cxx11test::get_val()] = { 0 };
  2837. }
  2838. {
  2839. // Test initializer lists
  2840. cxx11test::testinit il = { 4323, 435234.23544 };
  2841. }
  2842. {
  2843. // Test range-based for
  2844. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2845. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2846. for (auto &x : array) { x += 23; }
  2847. }
  2848. {
  2849. // Test lambda expressions
  2850. using cxx11test::eval;
  2851. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2852. double d = 2.0;
  2853. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2854. assert (d == 5.0);
  2855. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2856. assert (d == 5.0);
  2857. }
  2858. {
  2859. // Test use of variadic templates
  2860. using cxx11test::sum;
  2861. auto a = sum(1);
  2862. auto b = sum(1, 2);
  2863. auto c = sum(1.0, 2.0, 3.0);
  2864. }
  2865. {
  2866. // Test constructor delegation
  2867. cxx11test::delegate d1;
  2868. cxx11test::delegate d2();
  2869. cxx11test::delegate d3(45);
  2870. }
  2871. {
  2872. // Test override and final
  2873. cxx11test::overridden o1(55464);
  2874. }
  2875. {
  2876. // Test nullptr
  2877. char *c = nullptr;
  2878. }
  2879. {
  2880. // Test template brackets
  2881. test_template<::test_template<int>> v(test_template<int>(12));
  2882. }
  2883. {
  2884. // Unicode literals
  2885. char const *utf8 = u8"UTF-8 string \u2500";
  2886. char16_t const *utf16 = u"UTF-8 string \u2500";
  2887. char32_t const *utf32 = U"UTF-32 string \u2500";
  2888. }
  2889. '
  2890. # Test code for whether the C compiler supports C++11 (complete).
  2891. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2892. ${ac_cxx_conftest_cxx11_globals}
  2893. int
  2894. main (int argc, char **argv)
  2895. {
  2896. int ok = 0;
  2897. ${ac_cxx_conftest_cxx98_main}
  2898. ${ac_cxx_conftest_cxx11_main}
  2899. return ok;
  2900. }
  2901. "
  2902. # Test code for whether the C compiler supports C++98 (complete).
  2903. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2904. int
  2905. main (int argc, char **argv)
  2906. {
  2907. int ok = 0;
  2908. ${ac_cxx_conftest_cxx98_main}
  2909. return ok;
  2910. }
  2911. "
  2912. # Auxiliary files required by this configure script.
  2913. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2914. # Locations in which to look for auxiliary files.
  2915. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2916. # Search for a directory containing all of the required auxiliary files,
  2917. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2918. # If we don't find one directory that contains all the files we need,
  2919. # we report the set of missing files from the *first* directory in
  2920. # $ac_aux_dir_candidates and give up.
  2921. ac_missing_aux_files=""
  2922. ac_first_candidate=:
  2923. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2925. as_found=false
  2926. for as_dir in $ac_aux_dir_candidates
  2927. do
  2928. IFS=$as_save_IFS
  2929. case $as_dir in #(((
  2930. '') as_dir=./ ;;
  2931. */) ;;
  2932. *) as_dir=$as_dir/ ;;
  2933. esac
  2934. as_found=:
  2935. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2936. ac_aux_dir_found=yes
  2937. ac_install_sh=
  2938. for ac_aux in $ac_aux_files
  2939. do
  2940. # As a special case, if "install-sh" is required, that requirement
  2941. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2942. # and $ac_install_sh is set appropriately for whichever one is found.
  2943. if test x"$ac_aux" = x"install-sh"
  2944. then
  2945. if test -f "${as_dir}install-sh"; then
  2946. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2947. ac_install_sh="${as_dir}install-sh -c"
  2948. elif test -f "${as_dir}install.sh"; then
  2949. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2950. ac_install_sh="${as_dir}install.sh -c"
  2951. elif test -f "${as_dir}shtool"; then
  2952. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2953. ac_install_sh="${as_dir}shtool install -c"
  2954. else
  2955. ac_aux_dir_found=no
  2956. if $ac_first_candidate; then
  2957. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2958. else
  2959. break
  2960. fi
  2961. fi
  2962. else
  2963. if test -f "${as_dir}${ac_aux}"; then
  2964. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2965. else
  2966. ac_aux_dir_found=no
  2967. if $ac_first_candidate; then
  2968. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2969. else
  2970. break
  2971. fi
  2972. fi
  2973. fi
  2974. done
  2975. if test "$ac_aux_dir_found" = yes; then
  2976. ac_aux_dir="$as_dir"
  2977. break
  2978. fi
  2979. ac_first_candidate=false
  2980. as_found=false
  2981. done
  2982. IFS=$as_save_IFS
  2983. if $as_found
  2984. then :
  2985. else $as_nop
  2986. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2987. fi
  2988. # These three variables are undocumented and unsupported,
  2989. # and are intended to be withdrawn in a future Autoconf release.
  2990. # They can cause serious problems if a builder's source tree is in a directory
  2991. # whose full name contains unusual characters.
  2992. if test -f "${ac_aux_dir}config.guess"; then
  2993. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2994. fi
  2995. if test -f "${ac_aux_dir}config.sub"; then
  2996. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2997. fi
  2998. if test -f "$ac_aux_dir/configure"; then
  2999. ac_configure="$SHELL ${ac_aux_dir}configure"
  3000. fi
  3001. # Check that the precious variables saved in the cache have kept the same
  3002. # value.
  3003. ac_cache_corrupted=false
  3004. for ac_var in $ac_precious_vars; do
  3005. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3006. eval ac_new_set=\$ac_env_${ac_var}_set
  3007. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3008. eval ac_new_val=\$ac_env_${ac_var}_value
  3009. case $ac_old_set,$ac_new_set in
  3010. set,)
  3011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3012. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3013. ac_cache_corrupted=: ;;
  3014. ,set)
  3015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3016. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3017. ac_cache_corrupted=: ;;
  3018. ,);;
  3019. *)
  3020. if test "x$ac_old_val" != "x$ac_new_val"; then
  3021. # differences in whitespace do not lead to failure.
  3022. ac_old_val_w=`echo x $ac_old_val`
  3023. ac_new_val_w=`echo x $ac_new_val`
  3024. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3026. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3027. ac_cache_corrupted=:
  3028. else
  3029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3030. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3031. eval $ac_var=\$ac_old_val
  3032. fi
  3033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3034. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3036. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3037. fi;;
  3038. esac
  3039. # Pass precious variables to config.status.
  3040. if test "$ac_new_set" = set; then
  3041. case $ac_new_val in
  3042. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3043. *) ac_arg=$ac_var=$ac_new_val ;;
  3044. esac
  3045. case " $ac_configure_args " in
  3046. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3047. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3048. esac
  3049. fi
  3050. done
  3051. if $ac_cache_corrupted; then
  3052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3053. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3055. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3056. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3057. and start over" "$LINENO" 5
  3058. fi
  3059. ## -------------------- ##
  3060. ## Main body of script. ##
  3061. ## -------------------- ##
  3062. ac_ext=c
  3063. ac_cpp='$CPP $CPPFLAGS'
  3064. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3065. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3066. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3067. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3068. orig_CFLAGS="$CFLAGS"
  3069. # See docs/release_checklist.md
  3070. SDL_MAJOR_VERSION=3
  3071. SDL_MINOR_VERSION=0
  3072. SDL_MICRO_VERSION=0
  3073. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3074. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3075. case "$SDL_MINOR_VERSION" in #(
  3076. *[02468]) :
  3077. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3078. *) :
  3079. SDL_INTERFACE_AGE=0 ;; #(
  3080. *) :
  3081. ;;
  3082. esac
  3083. # libtool versioning
  3084. case `pwd` in
  3085. *\ * | *\ *)
  3086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3087. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3088. esac
  3089. macro_version='2.4.6'
  3090. macro_revision='2.4.6'
  3091. ltmain=$ac_aux_dir/ltmain.sh
  3092. # Make sure we can run config.sub.
  3093. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3094. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3096. printf %s "checking build system type... " >&6; }
  3097. if test ${ac_cv_build+y}
  3098. then :
  3099. printf %s "(cached) " >&6
  3100. else $as_nop
  3101. ac_build_alias=$build_alias
  3102. test "x$ac_build_alias" = x &&
  3103. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3104. test "x$ac_build_alias" = x &&
  3105. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3106. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3107. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3108. fi
  3109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3110. printf "%s\n" "$ac_cv_build" >&6; }
  3111. case $ac_cv_build in
  3112. *-*-*) ;;
  3113. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3114. esac
  3115. build=$ac_cv_build
  3116. ac_save_IFS=$IFS; IFS='-'
  3117. set x $ac_cv_build
  3118. shift
  3119. build_cpu=$1
  3120. build_vendor=$2
  3121. shift; shift
  3122. # Remember, the first character of IFS is used to create $*,
  3123. # except with old shells:
  3124. build_os=$*
  3125. IFS=$ac_save_IFS
  3126. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3128. printf %s "checking host system type... " >&6; }
  3129. if test ${ac_cv_host+y}
  3130. then :
  3131. printf %s "(cached) " >&6
  3132. else $as_nop
  3133. if test "x$host_alias" = x; then
  3134. ac_cv_host=$ac_cv_build
  3135. else
  3136. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3137. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3138. fi
  3139. fi
  3140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3141. printf "%s\n" "$ac_cv_host" >&6; }
  3142. case $ac_cv_host in
  3143. *-*-*) ;;
  3144. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3145. esac
  3146. host=$ac_cv_host
  3147. ac_save_IFS=$IFS; IFS='-'
  3148. set x $ac_cv_host
  3149. shift
  3150. host_cpu=$1
  3151. host_vendor=$2
  3152. shift; shift
  3153. # Remember, the first character of IFS is used to create $*,
  3154. # except with old shells:
  3155. host_os=$*
  3156. IFS=$ac_save_IFS
  3157. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3158. # Backslashify metacharacters that are still active within
  3159. # double-quoted strings.
  3160. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3161. # Same as above, but do not quote variable references.
  3162. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3163. # Sed substitution to delay expansion of an escaped shell variable in a
  3164. # double_quote_subst'ed string.
  3165. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3166. # Sed substitution to delay expansion of an escaped single quote.
  3167. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3168. # Sed substitution to avoid accidental globbing in evaled expressions
  3169. no_glob_subst='s/\*/\\\*/g'
  3170. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3171. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3172. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3174. printf %s "checking how to print strings... " >&6; }
  3175. # Test print first, because it will be a builtin if present.
  3176. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3177. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3178. ECHO='print -r --'
  3179. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3180. ECHO='printf %s\n'
  3181. else
  3182. # Use this function as a fallback that always works.
  3183. func_fallback_echo ()
  3184. {
  3185. eval 'cat <<_LTECHO_EOF
  3186. $1
  3187. _LTECHO_EOF'
  3188. }
  3189. ECHO='func_fallback_echo'
  3190. fi
  3191. # func_echo_all arg...
  3192. # Invoke $ECHO with all args, space-separated.
  3193. func_echo_all ()
  3194. {
  3195. $ECHO ""
  3196. }
  3197. case $ECHO in
  3198. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3199. printf "%s\n" "printf" >&6; } ;;
  3200. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3201. printf "%s\n" "print -r" >&6; } ;;
  3202. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3203. printf "%s\n" "cat" >&6; } ;;
  3204. esac
  3205. ac_ext=c
  3206. ac_cpp='$CPP $CPPFLAGS'
  3207. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3208. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3209. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3210. if test -n "$ac_tool_prefix"; then
  3211. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3212. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3214. printf %s "checking for $ac_word... " >&6; }
  3215. if test ${ac_cv_prog_CC+y}
  3216. then :
  3217. printf %s "(cached) " >&6
  3218. else $as_nop
  3219. if test -n "$CC"; then
  3220. ac_cv_prog_CC="$CC" # Let the user override the test.
  3221. else
  3222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3223. for as_dir in $PATH
  3224. do
  3225. IFS=$as_save_IFS
  3226. case $as_dir in #(((
  3227. '') as_dir=./ ;;
  3228. */) ;;
  3229. *) as_dir=$as_dir/ ;;
  3230. esac
  3231. for ac_exec_ext in '' $ac_executable_extensions; do
  3232. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3233. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3234. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3235. break 2
  3236. fi
  3237. done
  3238. done
  3239. IFS=$as_save_IFS
  3240. fi
  3241. fi
  3242. CC=$ac_cv_prog_CC
  3243. if test -n "$CC"; then
  3244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3245. printf "%s\n" "$CC" >&6; }
  3246. else
  3247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3248. printf "%s\n" "no" >&6; }
  3249. fi
  3250. fi
  3251. if test -z "$ac_cv_prog_CC"; then
  3252. ac_ct_CC=$CC
  3253. # Extract the first word of "gcc", so it can be a program name with args.
  3254. set dummy gcc; ac_word=$2
  3255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3256. printf %s "checking for $ac_word... " >&6; }
  3257. if test ${ac_cv_prog_ac_ct_CC+y}
  3258. then :
  3259. printf %s "(cached) " >&6
  3260. else $as_nop
  3261. if test -n "$ac_ct_CC"; then
  3262. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3263. else
  3264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3265. for as_dir in $PATH
  3266. do
  3267. IFS=$as_save_IFS
  3268. case $as_dir in #(((
  3269. '') as_dir=./ ;;
  3270. */) ;;
  3271. *) as_dir=$as_dir/ ;;
  3272. esac
  3273. for ac_exec_ext in '' $ac_executable_extensions; do
  3274. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3275. ac_cv_prog_ac_ct_CC="gcc"
  3276. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3277. break 2
  3278. fi
  3279. done
  3280. done
  3281. IFS=$as_save_IFS
  3282. fi
  3283. fi
  3284. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3285. if test -n "$ac_ct_CC"; then
  3286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3287. printf "%s\n" "$ac_ct_CC" >&6; }
  3288. else
  3289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3290. printf "%s\n" "no" >&6; }
  3291. fi
  3292. if test "x$ac_ct_CC" = x; then
  3293. CC=""
  3294. else
  3295. case $cross_compiling:$ac_tool_warned in
  3296. yes:)
  3297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3298. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3299. ac_tool_warned=yes ;;
  3300. esac
  3301. CC=$ac_ct_CC
  3302. fi
  3303. else
  3304. CC="$ac_cv_prog_CC"
  3305. fi
  3306. if test -z "$CC"; then
  3307. if test -n "$ac_tool_prefix"; then
  3308. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3309. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3311. printf %s "checking for $ac_word... " >&6; }
  3312. if test ${ac_cv_prog_CC+y}
  3313. then :
  3314. printf %s "(cached) " >&6
  3315. else $as_nop
  3316. if test -n "$CC"; then
  3317. ac_cv_prog_CC="$CC" # Let the user override the test.
  3318. else
  3319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3320. for as_dir in $PATH
  3321. do
  3322. IFS=$as_save_IFS
  3323. case $as_dir in #(((
  3324. '') as_dir=./ ;;
  3325. */) ;;
  3326. *) as_dir=$as_dir/ ;;
  3327. esac
  3328. for ac_exec_ext in '' $ac_executable_extensions; do
  3329. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3330. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3331. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3332. break 2
  3333. fi
  3334. done
  3335. done
  3336. IFS=$as_save_IFS
  3337. fi
  3338. fi
  3339. CC=$ac_cv_prog_CC
  3340. if test -n "$CC"; then
  3341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3342. printf "%s\n" "$CC" >&6; }
  3343. else
  3344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3345. printf "%s\n" "no" >&6; }
  3346. fi
  3347. fi
  3348. fi
  3349. if test -z "$CC"; then
  3350. # Extract the first word of "cc", so it can be a program name with args.
  3351. set dummy cc; ac_word=$2
  3352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3353. printf %s "checking for $ac_word... " >&6; }
  3354. if test ${ac_cv_prog_CC+y}
  3355. then :
  3356. printf %s "(cached) " >&6
  3357. else $as_nop
  3358. if test -n "$CC"; then
  3359. ac_cv_prog_CC="$CC" # Let the user override the test.
  3360. else
  3361. ac_prog_rejected=no
  3362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3363. for as_dir in $PATH
  3364. do
  3365. IFS=$as_save_IFS
  3366. case $as_dir in #(((
  3367. '') as_dir=./ ;;
  3368. */) ;;
  3369. *) as_dir=$as_dir/ ;;
  3370. esac
  3371. for ac_exec_ext in '' $ac_executable_extensions; do
  3372. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3373. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3374. ac_prog_rejected=yes
  3375. continue
  3376. fi
  3377. ac_cv_prog_CC="cc"
  3378. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3379. break 2
  3380. fi
  3381. done
  3382. done
  3383. IFS=$as_save_IFS
  3384. if test $ac_prog_rejected = yes; then
  3385. # We found a bogon in the path, so make sure we never use it.
  3386. set dummy $ac_cv_prog_CC
  3387. shift
  3388. if test $# != 0; then
  3389. # We chose a different compiler from the bogus one.
  3390. # However, it has the same basename, so the bogon will be chosen
  3391. # first if we set CC to just the basename; use the full file name.
  3392. shift
  3393. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3394. fi
  3395. fi
  3396. fi
  3397. fi
  3398. CC=$ac_cv_prog_CC
  3399. if test -n "$CC"; then
  3400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3401. printf "%s\n" "$CC" >&6; }
  3402. else
  3403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3404. printf "%s\n" "no" >&6; }
  3405. fi
  3406. fi
  3407. if test -z "$CC"; then
  3408. if test -n "$ac_tool_prefix"; then
  3409. for ac_prog in cl.exe
  3410. do
  3411. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3412. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3414. printf %s "checking for $ac_word... " >&6; }
  3415. if test ${ac_cv_prog_CC+y}
  3416. then :
  3417. printf %s "(cached) " >&6
  3418. else $as_nop
  3419. if test -n "$CC"; then
  3420. ac_cv_prog_CC="$CC" # Let the user override the test.
  3421. else
  3422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3423. for as_dir in $PATH
  3424. do
  3425. IFS=$as_save_IFS
  3426. case $as_dir in #(((
  3427. '') as_dir=./ ;;
  3428. */) ;;
  3429. *) as_dir=$as_dir/ ;;
  3430. esac
  3431. for ac_exec_ext in '' $ac_executable_extensions; do
  3432. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3433. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3434. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3435. break 2
  3436. fi
  3437. done
  3438. done
  3439. IFS=$as_save_IFS
  3440. fi
  3441. fi
  3442. CC=$ac_cv_prog_CC
  3443. if test -n "$CC"; then
  3444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3445. printf "%s\n" "$CC" >&6; }
  3446. else
  3447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3448. printf "%s\n" "no" >&6; }
  3449. fi
  3450. test -n "$CC" && break
  3451. done
  3452. fi
  3453. if test -z "$CC"; then
  3454. ac_ct_CC=$CC
  3455. for ac_prog in cl.exe
  3456. do
  3457. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3458. set dummy $ac_prog; ac_word=$2
  3459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3460. printf %s "checking for $ac_word... " >&6; }
  3461. if test ${ac_cv_prog_ac_ct_CC+y}
  3462. then :
  3463. printf %s "(cached) " >&6
  3464. else $as_nop
  3465. if test -n "$ac_ct_CC"; then
  3466. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3467. else
  3468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3469. for as_dir in $PATH
  3470. do
  3471. IFS=$as_save_IFS
  3472. case $as_dir in #(((
  3473. '') as_dir=./ ;;
  3474. */) ;;
  3475. *) as_dir=$as_dir/ ;;
  3476. esac
  3477. for ac_exec_ext in '' $ac_executable_extensions; do
  3478. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3479. ac_cv_prog_ac_ct_CC="$ac_prog"
  3480. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3481. break 2
  3482. fi
  3483. done
  3484. done
  3485. IFS=$as_save_IFS
  3486. fi
  3487. fi
  3488. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3489. if test -n "$ac_ct_CC"; then
  3490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3491. printf "%s\n" "$ac_ct_CC" >&6; }
  3492. else
  3493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3494. printf "%s\n" "no" >&6; }
  3495. fi
  3496. test -n "$ac_ct_CC" && break
  3497. done
  3498. if test "x$ac_ct_CC" = x; then
  3499. CC=""
  3500. else
  3501. case $cross_compiling:$ac_tool_warned in
  3502. yes:)
  3503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3504. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3505. ac_tool_warned=yes ;;
  3506. esac
  3507. CC=$ac_ct_CC
  3508. fi
  3509. fi
  3510. fi
  3511. if test -z "$CC"; then
  3512. if test -n "$ac_tool_prefix"; then
  3513. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3514. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3516. printf %s "checking for $ac_word... " >&6; }
  3517. if test ${ac_cv_prog_CC+y}
  3518. then :
  3519. printf %s "(cached) " >&6
  3520. else $as_nop
  3521. if test -n "$CC"; then
  3522. ac_cv_prog_CC="$CC" # Let the user override the test.
  3523. else
  3524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3525. for as_dir in $PATH
  3526. do
  3527. IFS=$as_save_IFS
  3528. case $as_dir in #(((
  3529. '') as_dir=./ ;;
  3530. */) ;;
  3531. *) as_dir=$as_dir/ ;;
  3532. esac
  3533. for ac_exec_ext in '' $ac_executable_extensions; do
  3534. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3535. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3536. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3537. break 2
  3538. fi
  3539. done
  3540. done
  3541. IFS=$as_save_IFS
  3542. fi
  3543. fi
  3544. CC=$ac_cv_prog_CC
  3545. if test -n "$CC"; then
  3546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3547. printf "%s\n" "$CC" >&6; }
  3548. else
  3549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3550. printf "%s\n" "no" >&6; }
  3551. fi
  3552. fi
  3553. if test -z "$ac_cv_prog_CC"; then
  3554. ac_ct_CC=$CC
  3555. # Extract the first word of "clang", so it can be a program name with args.
  3556. set dummy clang; ac_word=$2
  3557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3558. printf %s "checking for $ac_word... " >&6; }
  3559. if test ${ac_cv_prog_ac_ct_CC+y}
  3560. then :
  3561. printf %s "(cached) " >&6
  3562. else $as_nop
  3563. if test -n "$ac_ct_CC"; then
  3564. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3565. else
  3566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3567. for as_dir in $PATH
  3568. do
  3569. IFS=$as_save_IFS
  3570. case $as_dir in #(((
  3571. '') as_dir=./ ;;
  3572. */) ;;
  3573. *) as_dir=$as_dir/ ;;
  3574. esac
  3575. for ac_exec_ext in '' $ac_executable_extensions; do
  3576. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3577. ac_cv_prog_ac_ct_CC="clang"
  3578. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3579. break 2
  3580. fi
  3581. done
  3582. done
  3583. IFS=$as_save_IFS
  3584. fi
  3585. fi
  3586. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3587. if test -n "$ac_ct_CC"; then
  3588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3589. printf "%s\n" "$ac_ct_CC" >&6; }
  3590. else
  3591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3592. printf "%s\n" "no" >&6; }
  3593. fi
  3594. if test "x$ac_ct_CC" = x; then
  3595. CC=""
  3596. else
  3597. case $cross_compiling:$ac_tool_warned in
  3598. yes:)
  3599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3600. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3601. ac_tool_warned=yes ;;
  3602. esac
  3603. CC=$ac_ct_CC
  3604. fi
  3605. else
  3606. CC="$ac_cv_prog_CC"
  3607. fi
  3608. fi
  3609. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3610. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3611. as_fn_error $? "no acceptable C compiler found in \$PATH
  3612. See \`config.log' for more details" "$LINENO" 5; }
  3613. # Provide some information about the compiler.
  3614. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3615. set X $ac_compile
  3616. ac_compiler=$2
  3617. for ac_option in --version -v -V -qversion -version; do
  3618. { { ac_try="$ac_compiler $ac_option >&5"
  3619. case "(($ac_try" in
  3620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3621. *) ac_try_echo=$ac_try;;
  3622. esac
  3623. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3624. printf "%s\n" "$ac_try_echo"; } >&5
  3625. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3626. ac_status=$?
  3627. if test -s conftest.err; then
  3628. sed '10a\
  3629. ... rest of stderr output deleted ...
  3630. 10q' conftest.err >conftest.er1
  3631. cat conftest.er1 >&5
  3632. fi
  3633. rm -f conftest.er1 conftest.err
  3634. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3635. test $ac_status = 0; }
  3636. done
  3637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3638. /* end confdefs.h. */
  3639. int
  3640. main (void)
  3641. {
  3642. ;
  3643. return 0;
  3644. }
  3645. _ACEOF
  3646. ac_clean_files_save=$ac_clean_files
  3647. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3648. # Try to create an executable without -o first, disregard a.out.
  3649. # It will help us diagnose broken compilers, and finding out an intuition
  3650. # of exeext.
  3651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3652. printf %s "checking whether the C compiler works... " >&6; }
  3653. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3654. # The possible output files:
  3655. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3656. ac_rmfiles=
  3657. for ac_file in $ac_files
  3658. do
  3659. case $ac_file in
  3660. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3661. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3662. esac
  3663. done
  3664. rm -f $ac_rmfiles
  3665. if { { ac_try="$ac_link_default"
  3666. case "(($ac_try" in
  3667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3668. *) ac_try_echo=$ac_try;;
  3669. esac
  3670. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3671. printf "%s\n" "$ac_try_echo"; } >&5
  3672. (eval "$ac_link_default") 2>&5
  3673. ac_status=$?
  3674. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3675. test $ac_status = 0; }
  3676. then :
  3677. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3678. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3679. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3680. # so that the user can short-circuit this test for compilers unknown to
  3681. # Autoconf.
  3682. for ac_file in $ac_files ''
  3683. do
  3684. test -f "$ac_file" || continue
  3685. case $ac_file in
  3686. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3687. ;;
  3688. [ab].out )
  3689. # We found the default executable, but exeext='' is most
  3690. # certainly right.
  3691. break;;
  3692. *.* )
  3693. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3694. then :; else
  3695. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3696. fi
  3697. # We set ac_cv_exeext here because the later test for it is not
  3698. # safe: cross compilers may not add the suffix if given an `-o'
  3699. # argument, so we may need to know it at that point already.
  3700. # Even if this section looks crufty: it has the advantage of
  3701. # actually working.
  3702. break;;
  3703. * )
  3704. break;;
  3705. esac
  3706. done
  3707. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3708. else $as_nop
  3709. ac_file=''
  3710. fi
  3711. if test -z "$ac_file"
  3712. then :
  3713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3714. printf "%s\n" "no" >&6; }
  3715. printf "%s\n" "$as_me: failed program was:" >&5
  3716. sed 's/^/| /' conftest.$ac_ext >&5
  3717. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3718. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3719. as_fn_error 77 "C compiler cannot create executables
  3720. See \`config.log' for more details" "$LINENO" 5; }
  3721. else $as_nop
  3722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3723. printf "%s\n" "yes" >&6; }
  3724. fi
  3725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3726. printf %s "checking for C compiler default output file name... " >&6; }
  3727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3728. printf "%s\n" "$ac_file" >&6; }
  3729. ac_exeext=$ac_cv_exeext
  3730. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3731. ac_clean_files=$ac_clean_files_save
  3732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3733. printf %s "checking for suffix of executables... " >&6; }
  3734. if { { ac_try="$ac_link"
  3735. case "(($ac_try" in
  3736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3737. *) ac_try_echo=$ac_try;;
  3738. esac
  3739. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3740. printf "%s\n" "$ac_try_echo"; } >&5
  3741. (eval "$ac_link") 2>&5
  3742. ac_status=$?
  3743. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3744. test $ac_status = 0; }
  3745. then :
  3746. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3747. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3748. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3749. # `rm'.
  3750. for ac_file in conftest.exe conftest conftest.*; do
  3751. test -f "$ac_file" || continue
  3752. case $ac_file in
  3753. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3754. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3755. break;;
  3756. * ) break;;
  3757. esac
  3758. done
  3759. else $as_nop
  3760. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3761. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3762. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3763. See \`config.log' for more details" "$LINENO" 5; }
  3764. fi
  3765. rm -f conftest conftest$ac_cv_exeext
  3766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3767. printf "%s\n" "$ac_cv_exeext" >&6; }
  3768. rm -f conftest.$ac_ext
  3769. EXEEXT=$ac_cv_exeext
  3770. ac_exeext=$EXEEXT
  3771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3772. /* end confdefs.h. */
  3773. #include <stdio.h>
  3774. int
  3775. main (void)
  3776. {
  3777. FILE *f = fopen ("conftest.out", "w");
  3778. return ferror (f) || fclose (f) != 0;
  3779. ;
  3780. return 0;
  3781. }
  3782. _ACEOF
  3783. ac_clean_files="$ac_clean_files conftest.out"
  3784. # Check that the compiler produces executables we can run. If not, either
  3785. # the compiler is broken, or we cross compile.
  3786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3787. printf %s "checking whether we are cross compiling... " >&6; }
  3788. if test "$cross_compiling" != yes; then
  3789. { { ac_try="$ac_link"
  3790. case "(($ac_try" in
  3791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3792. *) ac_try_echo=$ac_try;;
  3793. esac
  3794. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3795. printf "%s\n" "$ac_try_echo"; } >&5
  3796. (eval "$ac_link") 2>&5
  3797. ac_status=$?
  3798. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3799. test $ac_status = 0; }
  3800. if { ac_try='./conftest$ac_cv_exeext'
  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_try") 2>&5
  3808. ac_status=$?
  3809. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3810. test $ac_status = 0; }; }; then
  3811. cross_compiling=no
  3812. else
  3813. if test "$cross_compiling" = maybe; then
  3814. cross_compiling=yes
  3815. else
  3816. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3817. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3818. as_fn_error 77 "cannot run C compiled programs.
  3819. If you meant to cross compile, use \`--host'.
  3820. See \`config.log' for more details" "$LINENO" 5; }
  3821. fi
  3822. fi
  3823. fi
  3824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3825. printf "%s\n" "$cross_compiling" >&6; }
  3826. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3827. ac_clean_files=$ac_clean_files_save
  3828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3829. printf %s "checking for suffix of object files... " >&6; }
  3830. if test ${ac_cv_objext+y}
  3831. then :
  3832. printf %s "(cached) " >&6
  3833. else $as_nop
  3834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3835. /* end confdefs.h. */
  3836. int
  3837. main (void)
  3838. {
  3839. ;
  3840. return 0;
  3841. }
  3842. _ACEOF
  3843. rm -f conftest.o conftest.obj
  3844. if { { ac_try="$ac_compile"
  3845. case "(($ac_try" in
  3846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3847. *) ac_try_echo=$ac_try;;
  3848. esac
  3849. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3850. printf "%s\n" "$ac_try_echo"; } >&5
  3851. (eval "$ac_compile") 2>&5
  3852. ac_status=$?
  3853. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3854. test $ac_status = 0; }
  3855. then :
  3856. for ac_file in conftest.o conftest.obj conftest.*; do
  3857. test -f "$ac_file" || continue;
  3858. case $ac_file in
  3859. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3860. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3861. break;;
  3862. esac
  3863. done
  3864. else $as_nop
  3865. printf "%s\n" "$as_me: failed program was:" >&5
  3866. sed 's/^/| /' conftest.$ac_ext >&5
  3867. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3868. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3869. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3870. See \`config.log' for more details" "$LINENO" 5; }
  3871. fi
  3872. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3873. fi
  3874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3875. printf "%s\n" "$ac_cv_objext" >&6; }
  3876. OBJEXT=$ac_cv_objext
  3877. ac_objext=$OBJEXT
  3878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3879. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3880. if test ${ac_cv_c_compiler_gnu+y}
  3881. then :
  3882. printf %s "(cached) " >&6
  3883. else $as_nop
  3884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3885. /* end confdefs.h. */
  3886. int
  3887. main (void)
  3888. {
  3889. #ifndef __GNUC__
  3890. choke me
  3891. #endif
  3892. ;
  3893. return 0;
  3894. }
  3895. _ACEOF
  3896. if ac_fn_c_try_compile "$LINENO"
  3897. then :
  3898. ac_compiler_gnu=yes
  3899. else $as_nop
  3900. ac_compiler_gnu=no
  3901. fi
  3902. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3903. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3904. fi
  3905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3906. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3907. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3908. if test $ac_compiler_gnu = yes; then
  3909. GCC=yes
  3910. else
  3911. GCC=
  3912. fi
  3913. ac_test_CFLAGS=${CFLAGS+y}
  3914. ac_save_CFLAGS=$CFLAGS
  3915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3916. printf %s "checking whether $CC accepts -g... " >&6; }
  3917. if test ${ac_cv_prog_cc_g+y}
  3918. then :
  3919. printf %s "(cached) " >&6
  3920. else $as_nop
  3921. ac_save_c_werror_flag=$ac_c_werror_flag
  3922. ac_c_werror_flag=yes
  3923. ac_cv_prog_cc_g=no
  3924. CFLAGS="-g"
  3925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3926. /* end confdefs.h. */
  3927. int
  3928. main (void)
  3929. {
  3930. ;
  3931. return 0;
  3932. }
  3933. _ACEOF
  3934. if ac_fn_c_try_compile "$LINENO"
  3935. then :
  3936. ac_cv_prog_cc_g=yes
  3937. else $as_nop
  3938. CFLAGS=""
  3939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3940. /* end confdefs.h. */
  3941. int
  3942. main (void)
  3943. {
  3944. ;
  3945. return 0;
  3946. }
  3947. _ACEOF
  3948. if ac_fn_c_try_compile "$LINENO"
  3949. then :
  3950. else $as_nop
  3951. ac_c_werror_flag=$ac_save_c_werror_flag
  3952. CFLAGS="-g"
  3953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3954. /* end confdefs.h. */
  3955. int
  3956. main (void)
  3957. {
  3958. ;
  3959. return 0;
  3960. }
  3961. _ACEOF
  3962. if ac_fn_c_try_compile "$LINENO"
  3963. then :
  3964. ac_cv_prog_cc_g=yes
  3965. fi
  3966. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3967. fi
  3968. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3969. fi
  3970. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3971. ac_c_werror_flag=$ac_save_c_werror_flag
  3972. fi
  3973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3974. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3975. if test $ac_test_CFLAGS; then
  3976. CFLAGS=$ac_save_CFLAGS
  3977. elif test $ac_cv_prog_cc_g = yes; then
  3978. if test "$GCC" = yes; then
  3979. CFLAGS="-g -O2"
  3980. else
  3981. CFLAGS="-g"
  3982. fi
  3983. else
  3984. if test "$GCC" = yes; then
  3985. CFLAGS="-O2"
  3986. else
  3987. CFLAGS=
  3988. fi
  3989. fi
  3990. ac_prog_cc_stdc=no
  3991. if test x$ac_prog_cc_stdc = xno
  3992. then :
  3993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  3994. printf %s "checking for $CC option to enable C11 features... " >&6; }
  3995. if test ${ac_cv_prog_cc_c11+y}
  3996. then :
  3997. printf %s "(cached) " >&6
  3998. else $as_nop
  3999. ac_cv_prog_cc_c11=no
  4000. ac_save_CC=$CC
  4001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4002. /* end confdefs.h. */
  4003. $ac_c_conftest_c11_program
  4004. _ACEOF
  4005. for ac_arg in '' -std=gnu11
  4006. do
  4007. CC="$ac_save_CC $ac_arg"
  4008. if ac_fn_c_try_compile "$LINENO"
  4009. then :
  4010. ac_cv_prog_cc_c11=$ac_arg
  4011. fi
  4012. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4013. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4014. done
  4015. rm -f conftest.$ac_ext
  4016. CC=$ac_save_CC
  4017. fi
  4018. if test "x$ac_cv_prog_cc_c11" = xno
  4019. then :
  4020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4021. printf "%s\n" "unsupported" >&6; }
  4022. else $as_nop
  4023. if test "x$ac_cv_prog_cc_c11" = x
  4024. then :
  4025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4026. printf "%s\n" "none needed" >&6; }
  4027. else $as_nop
  4028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4029. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4030. CC="$CC $ac_cv_prog_cc_c11"
  4031. fi
  4032. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4033. ac_prog_cc_stdc=c11
  4034. fi
  4035. fi
  4036. if test x$ac_prog_cc_stdc = xno
  4037. then :
  4038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4039. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4040. if test ${ac_cv_prog_cc_c99+y}
  4041. then :
  4042. printf %s "(cached) " >&6
  4043. else $as_nop
  4044. ac_cv_prog_cc_c99=no
  4045. ac_save_CC=$CC
  4046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4047. /* end confdefs.h. */
  4048. $ac_c_conftest_c99_program
  4049. _ACEOF
  4050. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4051. do
  4052. CC="$ac_save_CC $ac_arg"
  4053. if ac_fn_c_try_compile "$LINENO"
  4054. then :
  4055. ac_cv_prog_cc_c99=$ac_arg
  4056. fi
  4057. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4058. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4059. done
  4060. rm -f conftest.$ac_ext
  4061. CC=$ac_save_CC
  4062. fi
  4063. if test "x$ac_cv_prog_cc_c99" = xno
  4064. then :
  4065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4066. printf "%s\n" "unsupported" >&6; }
  4067. else $as_nop
  4068. if test "x$ac_cv_prog_cc_c99" = x
  4069. then :
  4070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4071. printf "%s\n" "none needed" >&6; }
  4072. else $as_nop
  4073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4074. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4075. CC="$CC $ac_cv_prog_cc_c99"
  4076. fi
  4077. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4078. ac_prog_cc_stdc=c99
  4079. fi
  4080. fi
  4081. if test x$ac_prog_cc_stdc = xno
  4082. then :
  4083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4084. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4085. if test ${ac_cv_prog_cc_c89+y}
  4086. then :
  4087. printf %s "(cached) " >&6
  4088. else $as_nop
  4089. ac_cv_prog_cc_c89=no
  4090. ac_save_CC=$CC
  4091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4092. /* end confdefs.h. */
  4093. $ac_c_conftest_c89_program
  4094. _ACEOF
  4095. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4096. do
  4097. CC="$ac_save_CC $ac_arg"
  4098. if ac_fn_c_try_compile "$LINENO"
  4099. then :
  4100. ac_cv_prog_cc_c89=$ac_arg
  4101. fi
  4102. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4103. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4104. done
  4105. rm -f conftest.$ac_ext
  4106. CC=$ac_save_CC
  4107. fi
  4108. if test "x$ac_cv_prog_cc_c89" = xno
  4109. then :
  4110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4111. printf "%s\n" "unsupported" >&6; }
  4112. else $as_nop
  4113. if test "x$ac_cv_prog_cc_c89" = x
  4114. then :
  4115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4116. printf "%s\n" "none needed" >&6; }
  4117. else $as_nop
  4118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4119. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4120. CC="$CC $ac_cv_prog_cc_c89"
  4121. fi
  4122. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4123. ac_prog_cc_stdc=c89
  4124. fi
  4125. fi
  4126. ac_ext=c
  4127. ac_cpp='$CPP $CPPFLAGS'
  4128. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4129. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4130. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4132. printf %s "checking for a sed that does not truncate output... " >&6; }
  4133. if test ${ac_cv_path_SED+y}
  4134. then :
  4135. printf %s "(cached) " >&6
  4136. else $as_nop
  4137. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4138. for ac_i in 1 2 3 4 5 6 7; do
  4139. ac_script="$ac_script$as_nl$ac_script"
  4140. done
  4141. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4142. { ac_script=; unset ac_script;}
  4143. if test -z "$SED"; then
  4144. ac_path_SED_found=false
  4145. # Loop through the user's path and test for each of PROGNAME-LIST
  4146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4147. for as_dir in $PATH
  4148. do
  4149. IFS=$as_save_IFS
  4150. case $as_dir in #(((
  4151. '') as_dir=./ ;;
  4152. */) ;;
  4153. *) as_dir=$as_dir/ ;;
  4154. esac
  4155. for ac_prog in sed gsed
  4156. do
  4157. for ac_exec_ext in '' $ac_executable_extensions; do
  4158. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4159. as_fn_executable_p "$ac_path_SED" || continue
  4160. # Check for GNU ac_path_SED and select it if it is found.
  4161. # Check for GNU $ac_path_SED
  4162. case `"$ac_path_SED" --version 2>&1` in
  4163. *GNU*)
  4164. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4165. *)
  4166. ac_count=0
  4167. printf %s 0123456789 >"conftest.in"
  4168. while :
  4169. do
  4170. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4171. mv "conftest.tmp" "conftest.in"
  4172. cp "conftest.in" "conftest.nl"
  4173. printf "%s\n" '' >> "conftest.nl"
  4174. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4175. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4176. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4177. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4178. # Best one so far, save it but keep looking for a better one
  4179. ac_cv_path_SED="$ac_path_SED"
  4180. ac_path_SED_max=$ac_count
  4181. fi
  4182. # 10*(2^10) chars as input seems more than enough
  4183. test $ac_count -gt 10 && break
  4184. done
  4185. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4186. esac
  4187. $ac_path_SED_found && break 3
  4188. done
  4189. done
  4190. done
  4191. IFS=$as_save_IFS
  4192. if test -z "$ac_cv_path_SED"; then
  4193. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4194. fi
  4195. else
  4196. ac_cv_path_SED=$SED
  4197. fi
  4198. fi
  4199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4200. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4201. SED="$ac_cv_path_SED"
  4202. rm -f conftest.sed
  4203. test -z "$SED" && SED=sed
  4204. Xsed="$SED -e 1s/^X//"
  4205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4206. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4207. if test ${ac_cv_path_GREP+y}
  4208. then :
  4209. printf %s "(cached) " >&6
  4210. else $as_nop
  4211. if test -z "$GREP"; then
  4212. ac_path_GREP_found=false
  4213. # Loop through the user's path and test for each of PROGNAME-LIST
  4214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4215. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4216. do
  4217. IFS=$as_save_IFS
  4218. case $as_dir in #(((
  4219. '') as_dir=./ ;;
  4220. */) ;;
  4221. *) as_dir=$as_dir/ ;;
  4222. esac
  4223. for ac_prog in grep ggrep
  4224. do
  4225. for ac_exec_ext in '' $ac_executable_extensions; do
  4226. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4227. as_fn_executable_p "$ac_path_GREP" || continue
  4228. # Check for GNU ac_path_GREP and select it if it is found.
  4229. # Check for GNU $ac_path_GREP
  4230. case `"$ac_path_GREP" --version 2>&1` in
  4231. *GNU*)
  4232. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4233. *)
  4234. ac_count=0
  4235. printf %s 0123456789 >"conftest.in"
  4236. while :
  4237. do
  4238. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4239. mv "conftest.tmp" "conftest.in"
  4240. cp "conftest.in" "conftest.nl"
  4241. printf "%s\n" 'GREP' >> "conftest.nl"
  4242. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4243. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4244. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4245. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4246. # Best one so far, save it but keep looking for a better one
  4247. ac_cv_path_GREP="$ac_path_GREP"
  4248. ac_path_GREP_max=$ac_count
  4249. fi
  4250. # 10*(2^10) chars as input seems more than enough
  4251. test $ac_count -gt 10 && break
  4252. done
  4253. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4254. esac
  4255. $ac_path_GREP_found && break 3
  4256. done
  4257. done
  4258. done
  4259. IFS=$as_save_IFS
  4260. if test -z "$ac_cv_path_GREP"; then
  4261. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4262. fi
  4263. else
  4264. ac_cv_path_GREP=$GREP
  4265. fi
  4266. fi
  4267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4268. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4269. GREP="$ac_cv_path_GREP"
  4270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4271. printf %s "checking for egrep... " >&6; }
  4272. if test ${ac_cv_path_EGREP+y}
  4273. then :
  4274. printf %s "(cached) " >&6
  4275. else $as_nop
  4276. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4277. then ac_cv_path_EGREP="$GREP -E"
  4278. else
  4279. if test -z "$EGREP"; then
  4280. ac_path_EGREP_found=false
  4281. # Loop through the user's path and test for each of PROGNAME-LIST
  4282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4283. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4284. do
  4285. IFS=$as_save_IFS
  4286. case $as_dir in #(((
  4287. '') as_dir=./ ;;
  4288. */) ;;
  4289. *) as_dir=$as_dir/ ;;
  4290. esac
  4291. for ac_prog in egrep
  4292. do
  4293. for ac_exec_ext in '' $ac_executable_extensions; do
  4294. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4295. as_fn_executable_p "$ac_path_EGREP" || continue
  4296. # Check for GNU ac_path_EGREP and select it if it is found.
  4297. # Check for GNU $ac_path_EGREP
  4298. case `"$ac_path_EGREP" --version 2>&1` in
  4299. *GNU*)
  4300. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4301. *)
  4302. ac_count=0
  4303. printf %s 0123456789 >"conftest.in"
  4304. while :
  4305. do
  4306. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4307. mv "conftest.tmp" "conftest.in"
  4308. cp "conftest.in" "conftest.nl"
  4309. printf "%s\n" 'EGREP' >> "conftest.nl"
  4310. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4311. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4312. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4313. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4314. # Best one so far, save it but keep looking for a better one
  4315. ac_cv_path_EGREP="$ac_path_EGREP"
  4316. ac_path_EGREP_max=$ac_count
  4317. fi
  4318. # 10*(2^10) chars as input seems more than enough
  4319. test $ac_count -gt 10 && break
  4320. done
  4321. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4322. esac
  4323. $ac_path_EGREP_found && break 3
  4324. done
  4325. done
  4326. done
  4327. IFS=$as_save_IFS
  4328. if test -z "$ac_cv_path_EGREP"; then
  4329. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4330. fi
  4331. else
  4332. ac_cv_path_EGREP=$EGREP
  4333. fi
  4334. fi
  4335. fi
  4336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4337. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4338. EGREP="$ac_cv_path_EGREP"
  4339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4340. printf %s "checking for fgrep... " >&6; }
  4341. if test ${ac_cv_path_FGREP+y}
  4342. then :
  4343. printf %s "(cached) " >&6
  4344. else $as_nop
  4345. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4346. then ac_cv_path_FGREP="$GREP -F"
  4347. else
  4348. if test -z "$FGREP"; then
  4349. ac_path_FGREP_found=false
  4350. # Loop through the user's path and test for each of PROGNAME-LIST
  4351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4352. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4353. do
  4354. IFS=$as_save_IFS
  4355. case $as_dir in #(((
  4356. '') as_dir=./ ;;
  4357. */) ;;
  4358. *) as_dir=$as_dir/ ;;
  4359. esac
  4360. for ac_prog in fgrep
  4361. do
  4362. for ac_exec_ext in '' $ac_executable_extensions; do
  4363. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4364. as_fn_executable_p "$ac_path_FGREP" || continue
  4365. # Check for GNU ac_path_FGREP and select it if it is found.
  4366. # Check for GNU $ac_path_FGREP
  4367. case `"$ac_path_FGREP" --version 2>&1` in
  4368. *GNU*)
  4369. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4370. *)
  4371. ac_count=0
  4372. printf %s 0123456789 >"conftest.in"
  4373. while :
  4374. do
  4375. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4376. mv "conftest.tmp" "conftest.in"
  4377. cp "conftest.in" "conftest.nl"
  4378. printf "%s\n" 'FGREP' >> "conftest.nl"
  4379. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4380. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4381. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4382. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4383. # Best one so far, save it but keep looking for a better one
  4384. ac_cv_path_FGREP="$ac_path_FGREP"
  4385. ac_path_FGREP_max=$ac_count
  4386. fi
  4387. # 10*(2^10) chars as input seems more than enough
  4388. test $ac_count -gt 10 && break
  4389. done
  4390. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4391. esac
  4392. $ac_path_FGREP_found && break 3
  4393. done
  4394. done
  4395. done
  4396. IFS=$as_save_IFS
  4397. if test -z "$ac_cv_path_FGREP"; then
  4398. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4399. fi
  4400. else
  4401. ac_cv_path_FGREP=$FGREP
  4402. fi
  4403. fi
  4404. fi
  4405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4406. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4407. FGREP="$ac_cv_path_FGREP"
  4408. test -z "$GREP" && GREP=grep
  4409. # Check whether --with-gnu-ld was given.
  4410. if test ${with_gnu_ld+y}
  4411. then :
  4412. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4413. else $as_nop
  4414. with_gnu_ld=no
  4415. fi
  4416. ac_prog=ld
  4417. if test yes = "$GCC"; then
  4418. # Check if gcc -print-prog-name=ld gives a path.
  4419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4420. printf %s "checking for ld used by $CC... " >&6; }
  4421. case $host in
  4422. *-*-mingw*)
  4423. # gcc leaves a trailing carriage return, which upsets mingw
  4424. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4425. *)
  4426. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4427. esac
  4428. case $ac_prog in
  4429. # Accept absolute paths.
  4430. [\\/]* | ?:[\\/]*)
  4431. re_direlt='/[^/][^/]*/\.\./'
  4432. # Canonicalize the pathname of ld
  4433. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4434. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4435. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4436. done
  4437. test -z "$LD" && LD=$ac_prog
  4438. ;;
  4439. "")
  4440. # If it fails, then pretend we aren't using GCC.
  4441. ac_prog=ld
  4442. ;;
  4443. *)
  4444. # If it is relative, then search for the first ld in PATH.
  4445. with_gnu_ld=unknown
  4446. ;;
  4447. esac
  4448. elif test yes = "$with_gnu_ld"; then
  4449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4450. printf %s "checking for GNU ld... " >&6; }
  4451. else
  4452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4453. printf %s "checking for non-GNU ld... " >&6; }
  4454. fi
  4455. if test ${lt_cv_path_LD+y}
  4456. then :
  4457. printf %s "(cached) " >&6
  4458. else $as_nop
  4459. if test -z "$LD"; then
  4460. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4461. for ac_dir in $PATH; do
  4462. IFS=$lt_save_ifs
  4463. test -z "$ac_dir" && ac_dir=.
  4464. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4465. lt_cv_path_LD=$ac_dir/$ac_prog
  4466. # Check to see if the program is GNU ld. I'd rather use --version,
  4467. # but apparently some variants of GNU ld only accept -v.
  4468. # Break only if it was the GNU/non-GNU ld that we prefer.
  4469. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4470. *GNU* | *'with BFD'*)
  4471. test no != "$with_gnu_ld" && break
  4472. ;;
  4473. *)
  4474. test yes != "$with_gnu_ld" && break
  4475. ;;
  4476. esac
  4477. fi
  4478. done
  4479. IFS=$lt_save_ifs
  4480. else
  4481. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4482. fi
  4483. fi
  4484. LD=$lt_cv_path_LD
  4485. if test -n "$LD"; then
  4486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4487. printf "%s\n" "$LD" >&6; }
  4488. else
  4489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4490. printf "%s\n" "no" >&6; }
  4491. fi
  4492. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4494. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4495. if test ${lt_cv_prog_gnu_ld+y}
  4496. then :
  4497. printf %s "(cached) " >&6
  4498. else $as_nop
  4499. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4500. case `$LD -v 2>&1 </dev/null` in
  4501. *GNU* | *'with BFD'*)
  4502. lt_cv_prog_gnu_ld=yes
  4503. ;;
  4504. *)
  4505. lt_cv_prog_gnu_ld=no
  4506. ;;
  4507. esac
  4508. fi
  4509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4510. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4511. with_gnu_ld=$lt_cv_prog_gnu_ld
  4512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4513. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4514. if test ${lt_cv_path_NM+y}
  4515. then :
  4516. printf %s "(cached) " >&6
  4517. else $as_nop
  4518. if test -n "$NM"; then
  4519. # Let the user override the test.
  4520. lt_cv_path_NM=$NM
  4521. else
  4522. lt_nm_to_check=${ac_tool_prefix}nm
  4523. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4524. lt_nm_to_check="$lt_nm_to_check nm"
  4525. fi
  4526. for lt_tmp_nm in $lt_nm_to_check; do
  4527. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4528. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4529. IFS=$lt_save_ifs
  4530. test -z "$ac_dir" && ac_dir=.
  4531. tmp_nm=$ac_dir/$lt_tmp_nm
  4532. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4533. # Check to see if the nm accepts a BSD-compat flag.
  4534. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4535. # nm: unknown option "B" ignored
  4536. # Tru64's nm complains that /dev/null is an invalid object file
  4537. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4538. case $build_os in
  4539. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4540. *) lt_bad_file=/dev/null ;;
  4541. esac
  4542. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4543. *$lt_bad_file* | *'Invalid file or object type'*)
  4544. lt_cv_path_NM="$tmp_nm -B"
  4545. break 2
  4546. ;;
  4547. *)
  4548. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4549. */dev/null*)
  4550. lt_cv_path_NM="$tmp_nm -p"
  4551. break 2
  4552. ;;
  4553. *)
  4554. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4555. continue # so that we can try to find one that supports BSD flags
  4556. ;;
  4557. esac
  4558. ;;
  4559. esac
  4560. fi
  4561. done
  4562. IFS=$lt_save_ifs
  4563. done
  4564. : ${lt_cv_path_NM=no}
  4565. fi
  4566. fi
  4567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4568. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4569. if test no != "$lt_cv_path_NM"; then
  4570. NM=$lt_cv_path_NM
  4571. else
  4572. # Didn't find any BSD compatible name lister, look for dumpbin.
  4573. if test -n "$DUMPBIN"; then :
  4574. # Let the user override the test.
  4575. else
  4576. if test -n "$ac_tool_prefix"; then
  4577. for ac_prog in dumpbin "link -dump"
  4578. do
  4579. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4580. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4582. printf %s "checking for $ac_word... " >&6; }
  4583. if test ${ac_cv_prog_DUMPBIN+y}
  4584. then :
  4585. printf %s "(cached) " >&6
  4586. else $as_nop
  4587. if test -n "$DUMPBIN"; then
  4588. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4589. else
  4590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4591. for as_dir in $PATH
  4592. do
  4593. IFS=$as_save_IFS
  4594. case $as_dir in #(((
  4595. '') as_dir=./ ;;
  4596. */) ;;
  4597. *) as_dir=$as_dir/ ;;
  4598. esac
  4599. for ac_exec_ext in '' $ac_executable_extensions; do
  4600. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4601. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4602. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4603. break 2
  4604. fi
  4605. done
  4606. done
  4607. IFS=$as_save_IFS
  4608. fi
  4609. fi
  4610. DUMPBIN=$ac_cv_prog_DUMPBIN
  4611. if test -n "$DUMPBIN"; then
  4612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4613. printf "%s\n" "$DUMPBIN" >&6; }
  4614. else
  4615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4616. printf "%s\n" "no" >&6; }
  4617. fi
  4618. test -n "$DUMPBIN" && break
  4619. done
  4620. fi
  4621. if test -z "$DUMPBIN"; then
  4622. ac_ct_DUMPBIN=$DUMPBIN
  4623. for ac_prog in dumpbin "link -dump"
  4624. do
  4625. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4626. set dummy $ac_prog; ac_word=$2
  4627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4628. printf %s "checking for $ac_word... " >&6; }
  4629. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4630. then :
  4631. printf %s "(cached) " >&6
  4632. else $as_nop
  4633. if test -n "$ac_ct_DUMPBIN"; then
  4634. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4635. else
  4636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4637. for as_dir in $PATH
  4638. do
  4639. IFS=$as_save_IFS
  4640. case $as_dir in #(((
  4641. '') as_dir=./ ;;
  4642. */) ;;
  4643. *) as_dir=$as_dir/ ;;
  4644. esac
  4645. for ac_exec_ext in '' $ac_executable_extensions; do
  4646. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4647. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4648. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4649. break 2
  4650. fi
  4651. done
  4652. done
  4653. IFS=$as_save_IFS
  4654. fi
  4655. fi
  4656. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4657. if test -n "$ac_ct_DUMPBIN"; then
  4658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4659. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4660. else
  4661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4662. printf "%s\n" "no" >&6; }
  4663. fi
  4664. test -n "$ac_ct_DUMPBIN" && break
  4665. done
  4666. if test "x$ac_ct_DUMPBIN" = x; then
  4667. DUMPBIN=":"
  4668. else
  4669. case $cross_compiling:$ac_tool_warned in
  4670. yes:)
  4671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4672. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4673. ac_tool_warned=yes ;;
  4674. esac
  4675. DUMPBIN=$ac_ct_DUMPBIN
  4676. fi
  4677. fi
  4678. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4679. *COFF*)
  4680. DUMPBIN="$DUMPBIN -symbols -headers"
  4681. ;;
  4682. *)
  4683. DUMPBIN=:
  4684. ;;
  4685. esac
  4686. fi
  4687. if test : != "$DUMPBIN"; then
  4688. NM=$DUMPBIN
  4689. fi
  4690. fi
  4691. test -z "$NM" && NM=nm
  4692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4693. printf %s "checking the name lister ($NM) interface... " >&6; }
  4694. if test ${lt_cv_nm_interface+y}
  4695. then :
  4696. printf %s "(cached) " >&6
  4697. else $as_nop
  4698. lt_cv_nm_interface="BSD nm"
  4699. echo "int some_variable = 0;" > conftest.$ac_ext
  4700. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4701. (eval "$ac_compile" 2>conftest.err)
  4702. cat conftest.err >&5
  4703. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4704. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4705. cat conftest.err >&5
  4706. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4707. cat conftest.out >&5
  4708. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4709. lt_cv_nm_interface="MS dumpbin"
  4710. fi
  4711. rm -f conftest*
  4712. fi
  4713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4714. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4716. printf %s "checking whether ln -s works... " >&6; }
  4717. LN_S=$as_ln_s
  4718. if test "$LN_S" = "ln -s"; then
  4719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4720. printf "%s\n" "yes" >&6; }
  4721. else
  4722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4723. printf "%s\n" "no, using $LN_S" >&6; }
  4724. fi
  4725. # find the maximum length of command line arguments
  4726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4727. printf %s "checking the maximum length of command line arguments... " >&6; }
  4728. if test ${lt_cv_sys_max_cmd_len+y}
  4729. then :
  4730. printf %s "(cached) " >&6
  4731. else $as_nop
  4732. i=0
  4733. teststring=ABCD
  4734. case $build_os in
  4735. msdosdjgpp*)
  4736. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4737. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4738. # during glob expansion). Even if it were fixed, the result of this
  4739. # check would be larger than it should be.
  4740. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4741. ;;
  4742. gnu*)
  4743. # Under GNU Hurd, this test is not required because there is
  4744. # no limit to the length of command line arguments.
  4745. # Libtool will interpret -1 as no limit whatsoever
  4746. lt_cv_sys_max_cmd_len=-1;
  4747. ;;
  4748. cygwin* | mingw* | cegcc*)
  4749. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4750. # about 5 minutes as the teststring grows exponentially.
  4751. # Worse, since 9x/ME are not pre-emptively multitasking,
  4752. # you end up with a "frozen" computer, even though with patience
  4753. # the test eventually succeeds (with a max line length of 256k).
  4754. # Instead, let's just punt: use the minimum linelength reported by
  4755. # all of the supported platforms: 8192 (on NT/2K/XP).
  4756. lt_cv_sys_max_cmd_len=8192;
  4757. ;;
  4758. mint*)
  4759. # On MiNT this can take a long time and run out of memory.
  4760. lt_cv_sys_max_cmd_len=8192;
  4761. ;;
  4762. amigaos*)
  4763. # On AmigaOS with pdksh, this test takes hours, literally.
  4764. # So we just punt and use a minimum line length of 8192.
  4765. lt_cv_sys_max_cmd_len=8192;
  4766. ;;
  4767. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4768. # This has been around since 386BSD, at least. Likely further.
  4769. if test -x /sbin/sysctl; then
  4770. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4771. elif test -x /usr/sbin/sysctl; then
  4772. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4773. else
  4774. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4775. fi
  4776. # And add a safety zone
  4777. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4778. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4779. ;;
  4780. interix*)
  4781. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4782. lt_cv_sys_max_cmd_len=196608
  4783. ;;
  4784. os2*)
  4785. # The test takes a long time on OS/2.
  4786. lt_cv_sys_max_cmd_len=8192
  4787. ;;
  4788. osf*)
  4789. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4790. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4791. # nice to cause kernel panics so lets avoid the loop below.
  4792. # First set a reasonable default.
  4793. lt_cv_sys_max_cmd_len=16384
  4794. #
  4795. if test -x /sbin/sysconfig; then
  4796. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4797. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4798. esac
  4799. fi
  4800. ;;
  4801. sco3.2v5*)
  4802. lt_cv_sys_max_cmd_len=102400
  4803. ;;
  4804. sysv5* | sco5v6* | sysv4.2uw2*)
  4805. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4806. if test -n "$kargmax"; then
  4807. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4808. else
  4809. lt_cv_sys_max_cmd_len=32768
  4810. fi
  4811. ;;
  4812. *)
  4813. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4814. if test -n "$lt_cv_sys_max_cmd_len" && \
  4815. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4816. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4817. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4818. else
  4819. # Make teststring a little bigger before we do anything with it.
  4820. # a 1K string should be a reasonable start.
  4821. for i in 1 2 3 4 5 6 7 8; do
  4822. teststring=$teststring$teststring
  4823. done
  4824. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4825. # If test is not a shell built-in, we'll probably end up computing a
  4826. # maximum length that is only half of the actual maximum length, but
  4827. # we can't tell.
  4828. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4829. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4830. test 17 != "$i" # 1/2 MB should be enough
  4831. do
  4832. i=`expr $i + 1`
  4833. teststring=$teststring$teststring
  4834. done
  4835. # Only check the string length outside the loop.
  4836. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4837. teststring=
  4838. # Add a significant safety factor because C++ compilers can tack on
  4839. # massive amounts of additional arguments before passing them to the
  4840. # linker. It appears as though 1/2 is a usable value.
  4841. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4842. fi
  4843. ;;
  4844. esac
  4845. fi
  4846. if test -n "$lt_cv_sys_max_cmd_len"; then
  4847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4848. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4849. else
  4850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4851. printf "%s\n" "none" >&6; }
  4852. fi
  4853. max_cmd_len=$lt_cv_sys_max_cmd_len
  4854. : ${CP="cp -f"}
  4855. : ${MV="mv -f"}
  4856. : ${RM="rm -f"}
  4857. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4858. lt_unset=unset
  4859. else
  4860. lt_unset=false
  4861. fi
  4862. # test EBCDIC or ASCII
  4863. case `echo X|tr X '\101'` in
  4864. A) # ASCII based system
  4865. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4866. lt_SP2NL='tr \040 \012'
  4867. lt_NL2SP='tr \015\012 \040\040'
  4868. ;;
  4869. *) # EBCDIC based system
  4870. lt_SP2NL='tr \100 \n'
  4871. lt_NL2SP='tr \r\n \100\100'
  4872. ;;
  4873. esac
  4874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4875. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4876. if test ${lt_cv_to_host_file_cmd+y}
  4877. then :
  4878. printf %s "(cached) " >&6
  4879. else $as_nop
  4880. case $host in
  4881. *-*-mingw* )
  4882. case $build in
  4883. *-*-mingw* ) # actually msys
  4884. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4885. ;;
  4886. *-*-cygwin* )
  4887. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4888. ;;
  4889. * ) # otherwise, assume *nix
  4890. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4891. ;;
  4892. esac
  4893. ;;
  4894. *-*-cygwin* )
  4895. case $build in
  4896. *-*-mingw* ) # actually msys
  4897. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4898. ;;
  4899. *-*-cygwin* )
  4900. lt_cv_to_host_file_cmd=func_convert_file_noop
  4901. ;;
  4902. * ) # otherwise, assume *nix
  4903. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4904. ;;
  4905. esac
  4906. ;;
  4907. * ) # unhandled hosts (and "normal" native builds)
  4908. lt_cv_to_host_file_cmd=func_convert_file_noop
  4909. ;;
  4910. esac
  4911. fi
  4912. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4914. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4916. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4917. if test ${lt_cv_to_tool_file_cmd+y}
  4918. then :
  4919. printf %s "(cached) " >&6
  4920. else $as_nop
  4921. #assume ordinary cross tools, or native build.
  4922. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4923. case $host in
  4924. *-*-mingw* )
  4925. case $build in
  4926. *-*-mingw* ) # actually msys
  4927. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4928. ;;
  4929. esac
  4930. ;;
  4931. esac
  4932. fi
  4933. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4935. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  4936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4937. printf %s "checking for $LD option to reload object files... " >&6; }
  4938. if test ${lt_cv_ld_reload_flag+y}
  4939. then :
  4940. printf %s "(cached) " >&6
  4941. else $as_nop
  4942. lt_cv_ld_reload_flag='-r'
  4943. fi
  4944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4945. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  4946. reload_flag=$lt_cv_ld_reload_flag
  4947. case $reload_flag in
  4948. "" | " "*) ;;
  4949. *) reload_flag=" $reload_flag" ;;
  4950. esac
  4951. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4952. case $host_os in
  4953. cygwin* | mingw* | pw32* | cegcc*)
  4954. if test yes != "$GCC"; then
  4955. reload_cmds=false
  4956. fi
  4957. ;;
  4958. darwin*)
  4959. if test yes = "$GCC"; then
  4960. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4961. else
  4962. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4963. fi
  4964. ;;
  4965. esac
  4966. if test -n "$ac_tool_prefix"; then
  4967. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4968. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4970. printf %s "checking for $ac_word... " >&6; }
  4971. if test ${ac_cv_prog_OBJDUMP+y}
  4972. then :
  4973. printf %s "(cached) " >&6
  4974. else $as_nop
  4975. if test -n "$OBJDUMP"; then
  4976. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4977. else
  4978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4979. for as_dir in $PATH
  4980. do
  4981. IFS=$as_save_IFS
  4982. case $as_dir in #(((
  4983. '') as_dir=./ ;;
  4984. */) ;;
  4985. *) as_dir=$as_dir/ ;;
  4986. esac
  4987. for ac_exec_ext in '' $ac_executable_extensions; do
  4988. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4989. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4990. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4991. break 2
  4992. fi
  4993. done
  4994. done
  4995. IFS=$as_save_IFS
  4996. fi
  4997. fi
  4998. OBJDUMP=$ac_cv_prog_OBJDUMP
  4999. if test -n "$OBJDUMP"; then
  5000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5001. printf "%s\n" "$OBJDUMP" >&6; }
  5002. else
  5003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5004. printf "%s\n" "no" >&6; }
  5005. fi
  5006. fi
  5007. if test -z "$ac_cv_prog_OBJDUMP"; then
  5008. ac_ct_OBJDUMP=$OBJDUMP
  5009. # Extract the first word of "objdump", so it can be a program name with args.
  5010. set dummy objdump; ac_word=$2
  5011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5012. printf %s "checking for $ac_word... " >&6; }
  5013. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5014. then :
  5015. printf %s "(cached) " >&6
  5016. else $as_nop
  5017. if test -n "$ac_ct_OBJDUMP"; then
  5018. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5019. else
  5020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5021. for as_dir in $PATH
  5022. do
  5023. IFS=$as_save_IFS
  5024. case $as_dir in #(((
  5025. '') as_dir=./ ;;
  5026. */) ;;
  5027. *) as_dir=$as_dir/ ;;
  5028. esac
  5029. for ac_exec_ext in '' $ac_executable_extensions; do
  5030. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5031. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5032. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5033. break 2
  5034. fi
  5035. done
  5036. done
  5037. IFS=$as_save_IFS
  5038. fi
  5039. fi
  5040. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5041. if test -n "$ac_ct_OBJDUMP"; then
  5042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5043. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5044. else
  5045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5046. printf "%s\n" "no" >&6; }
  5047. fi
  5048. if test "x$ac_ct_OBJDUMP" = x; then
  5049. OBJDUMP="false"
  5050. else
  5051. case $cross_compiling:$ac_tool_warned in
  5052. yes:)
  5053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5054. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5055. ac_tool_warned=yes ;;
  5056. esac
  5057. OBJDUMP=$ac_ct_OBJDUMP
  5058. fi
  5059. else
  5060. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5061. fi
  5062. test -z "$OBJDUMP" && OBJDUMP=objdump
  5063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5064. printf %s "checking how to recognize dependent libraries... " >&6; }
  5065. if test ${lt_cv_deplibs_check_method+y}
  5066. then :
  5067. printf %s "(cached) " >&6
  5068. else $as_nop
  5069. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5070. lt_cv_file_magic_test_file=
  5071. lt_cv_deplibs_check_method='unknown'
  5072. # Need to set the preceding variable on all platforms that support
  5073. # interlibrary dependencies.
  5074. # 'none' -- dependencies not supported.
  5075. # 'unknown' -- same as none, but documents that we really don't know.
  5076. # 'pass_all' -- all dependencies passed with no checks.
  5077. # 'test_compile' -- check by making test program.
  5078. # 'file_magic [[regex]]' -- check by looking for files in library path
  5079. # that responds to the $file_magic_cmd with a given extended regex.
  5080. # If you have 'file' or equivalent on your system and you're not sure
  5081. # whether 'pass_all' will *always* work, you probably want this one.
  5082. case $host_os in
  5083. aix[4-9]*)
  5084. lt_cv_deplibs_check_method=pass_all
  5085. ;;
  5086. beos*)
  5087. lt_cv_deplibs_check_method=pass_all
  5088. ;;
  5089. bsdi[45]*)
  5090. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5091. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5092. lt_cv_file_magic_test_file=/shlib/libc.so
  5093. ;;
  5094. cygwin*)
  5095. # func_win32_libid is a shell function defined in ltmain.sh
  5096. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5097. lt_cv_file_magic_cmd='func_win32_libid'
  5098. lt_cv_deplibs_check_method=pass_all # SDL customization
  5099. ;;
  5100. mingw* | pw32*)
  5101. # Base MSYS/MinGW do not provide the 'file' command needed by
  5102. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5103. # unless we find 'file', for example because we are cross-compiling.
  5104. if ( file / ) >/dev/null 2>&1; then
  5105. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5106. lt_cv_file_magic_cmd='func_win32_libid'
  5107. else
  5108. # Keep this pattern in sync with the one in func_win32_libid.
  5109. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5110. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5111. fi
  5112. lt_cv_deplibs_check_method=pass_all # SDL customization
  5113. ;;
  5114. cegcc*)
  5115. # use the weaker test based on 'objdump'. See mingw*.
  5116. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5117. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5118. ;;
  5119. darwin* | rhapsody*)
  5120. lt_cv_deplibs_check_method=pass_all
  5121. ;;
  5122. freebsd* | dragonfly* | midnightbsd*)
  5123. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5124. case $host_cpu in
  5125. i*86 )
  5126. # Not sure whether the presence of OpenBSD here was a mistake.
  5127. # Let's accept both of them until this is cleared up.
  5128. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5129. lt_cv_file_magic_cmd=/usr/bin/file
  5130. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5131. ;;
  5132. esac
  5133. else
  5134. lt_cv_deplibs_check_method=pass_all
  5135. fi
  5136. ;;
  5137. haiku*)
  5138. lt_cv_deplibs_check_method=pass_all
  5139. ;;
  5140. hpux10.20* | hpux11*)
  5141. lt_cv_file_magic_cmd=/usr/bin/file
  5142. case $host_cpu in
  5143. ia64*)
  5144. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5145. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5146. ;;
  5147. hppa*64*)
  5148. 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]'
  5149. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5150. ;;
  5151. *)
  5152. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5153. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5154. ;;
  5155. esac
  5156. ;;
  5157. interix[3-9]*)
  5158. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5159. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5160. ;;
  5161. irix5* | irix6* | nonstopux*)
  5162. case $LD in
  5163. *-32|*"-32 ") libmagic=32-bit;;
  5164. *-n32|*"-n32 ") libmagic=N32;;
  5165. *-64|*"-64 ") libmagic=64-bit;;
  5166. *) libmagic=never-match;;
  5167. esac
  5168. lt_cv_deplibs_check_method=pass_all
  5169. ;;
  5170. # This must be glibc/ELF.
  5171. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5172. lt_cv_deplibs_check_method=pass_all
  5173. ;;
  5174. netbsd*)
  5175. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5176. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5177. else
  5178. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5179. fi
  5180. ;;
  5181. newos6*)
  5182. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5183. lt_cv_file_magic_cmd=/usr/bin/file
  5184. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5185. ;;
  5186. *nto* | *qnx*)
  5187. lt_cv_deplibs_check_method=pass_all
  5188. ;;
  5189. openbsd* | bitrig*)
  5190. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5191. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5192. else
  5193. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5194. fi
  5195. ;;
  5196. osf3* | osf4* | osf5*)
  5197. lt_cv_deplibs_check_method=pass_all
  5198. ;;
  5199. rdos*)
  5200. lt_cv_deplibs_check_method=pass_all
  5201. ;;
  5202. solaris*)
  5203. lt_cv_deplibs_check_method=pass_all
  5204. ;;
  5205. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5206. lt_cv_deplibs_check_method=pass_all
  5207. ;;
  5208. sysv4 | sysv4.3*)
  5209. case $host_vendor in
  5210. motorola)
  5211. 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]'
  5212. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5213. ;;
  5214. ncr)
  5215. lt_cv_deplibs_check_method=pass_all
  5216. ;;
  5217. sequent)
  5218. lt_cv_file_magic_cmd='/bin/file'
  5219. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5220. ;;
  5221. sni)
  5222. lt_cv_file_magic_cmd='/bin/file'
  5223. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5224. lt_cv_file_magic_test_file=/lib/libc.so
  5225. ;;
  5226. siemens)
  5227. lt_cv_deplibs_check_method=pass_all
  5228. ;;
  5229. pc)
  5230. lt_cv_deplibs_check_method=pass_all
  5231. ;;
  5232. esac
  5233. ;;
  5234. tpf*)
  5235. lt_cv_deplibs_check_method=pass_all
  5236. ;;
  5237. os2*)
  5238. lt_cv_deplibs_check_method=pass_all
  5239. ;;
  5240. esac
  5241. fi
  5242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5243. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5244. file_magic_glob=
  5245. want_nocaseglob=no
  5246. if test "$build" = "$host"; then
  5247. case $host_os in
  5248. mingw* | pw32*)
  5249. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5250. want_nocaseglob=yes
  5251. else
  5252. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5253. fi
  5254. ;;
  5255. esac
  5256. fi
  5257. file_magic_cmd=$lt_cv_file_magic_cmd
  5258. deplibs_check_method=$lt_cv_deplibs_check_method
  5259. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5260. if test -n "$ac_tool_prefix"; then
  5261. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5262. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5264. printf %s "checking for $ac_word... " >&6; }
  5265. if test ${ac_cv_prog_DLLTOOL+y}
  5266. then :
  5267. printf %s "(cached) " >&6
  5268. else $as_nop
  5269. if test -n "$DLLTOOL"; then
  5270. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5271. else
  5272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5273. for as_dir in $PATH
  5274. do
  5275. IFS=$as_save_IFS
  5276. case $as_dir in #(((
  5277. '') as_dir=./ ;;
  5278. */) ;;
  5279. *) as_dir=$as_dir/ ;;
  5280. esac
  5281. for ac_exec_ext in '' $ac_executable_extensions; do
  5282. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5283. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5284. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5285. break 2
  5286. fi
  5287. done
  5288. done
  5289. IFS=$as_save_IFS
  5290. fi
  5291. fi
  5292. DLLTOOL=$ac_cv_prog_DLLTOOL
  5293. if test -n "$DLLTOOL"; then
  5294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5295. printf "%s\n" "$DLLTOOL" >&6; }
  5296. else
  5297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5298. printf "%s\n" "no" >&6; }
  5299. fi
  5300. fi
  5301. if test -z "$ac_cv_prog_DLLTOOL"; then
  5302. ac_ct_DLLTOOL=$DLLTOOL
  5303. # Extract the first word of "dlltool", so it can be a program name with args.
  5304. set dummy dlltool; ac_word=$2
  5305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5306. printf %s "checking for $ac_word... " >&6; }
  5307. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5308. then :
  5309. printf %s "(cached) " >&6
  5310. else $as_nop
  5311. if test -n "$ac_ct_DLLTOOL"; then
  5312. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5313. else
  5314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5315. for as_dir in $PATH
  5316. do
  5317. IFS=$as_save_IFS
  5318. case $as_dir in #(((
  5319. '') as_dir=./ ;;
  5320. */) ;;
  5321. *) as_dir=$as_dir/ ;;
  5322. esac
  5323. for ac_exec_ext in '' $ac_executable_extensions; do
  5324. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5325. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5326. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5327. break 2
  5328. fi
  5329. done
  5330. done
  5331. IFS=$as_save_IFS
  5332. fi
  5333. fi
  5334. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5335. if test -n "$ac_ct_DLLTOOL"; then
  5336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5337. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5338. else
  5339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5340. printf "%s\n" "no" >&6; }
  5341. fi
  5342. if test "x$ac_ct_DLLTOOL" = x; then
  5343. DLLTOOL="false"
  5344. else
  5345. case $cross_compiling:$ac_tool_warned in
  5346. yes:)
  5347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5348. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5349. ac_tool_warned=yes ;;
  5350. esac
  5351. DLLTOOL=$ac_ct_DLLTOOL
  5352. fi
  5353. else
  5354. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5355. fi
  5356. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5358. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5359. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5360. then :
  5361. printf %s "(cached) " >&6
  5362. else $as_nop
  5363. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5364. case $host_os in
  5365. cygwin* | mingw* | pw32* | cegcc*)
  5366. # two different shell functions defined in ltmain.sh;
  5367. # decide which one to use based on capabilities of $DLLTOOL
  5368. case `$DLLTOOL --help 2>&1` in
  5369. *--identify-strict*)
  5370. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5371. ;;
  5372. *)
  5373. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5374. ;;
  5375. esac
  5376. ;;
  5377. *)
  5378. # fallback: assume linklib IS sharedlib
  5379. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5380. ;;
  5381. esac
  5382. fi
  5383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5384. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5385. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5386. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5387. if test -n "$ac_tool_prefix"; then
  5388. for ac_prog in ar
  5389. do
  5390. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5391. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5393. printf %s "checking for $ac_word... " >&6; }
  5394. if test ${ac_cv_prog_AR+y}
  5395. then :
  5396. printf %s "(cached) " >&6
  5397. else $as_nop
  5398. if test -n "$AR"; then
  5399. ac_cv_prog_AR="$AR" # Let the user override the test.
  5400. else
  5401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5402. for as_dir in $PATH
  5403. do
  5404. IFS=$as_save_IFS
  5405. case $as_dir in #(((
  5406. '') as_dir=./ ;;
  5407. */) ;;
  5408. *) as_dir=$as_dir/ ;;
  5409. esac
  5410. for ac_exec_ext in '' $ac_executable_extensions; do
  5411. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5412. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5413. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5414. break 2
  5415. fi
  5416. done
  5417. done
  5418. IFS=$as_save_IFS
  5419. fi
  5420. fi
  5421. AR=$ac_cv_prog_AR
  5422. if test -n "$AR"; then
  5423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5424. printf "%s\n" "$AR" >&6; }
  5425. else
  5426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5427. printf "%s\n" "no" >&6; }
  5428. fi
  5429. test -n "$AR" && break
  5430. done
  5431. fi
  5432. if test -z "$AR"; then
  5433. ac_ct_AR=$AR
  5434. for ac_prog in ar
  5435. do
  5436. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5437. set dummy $ac_prog; ac_word=$2
  5438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5439. printf %s "checking for $ac_word... " >&6; }
  5440. if test ${ac_cv_prog_ac_ct_AR+y}
  5441. then :
  5442. printf %s "(cached) " >&6
  5443. else $as_nop
  5444. if test -n "$ac_ct_AR"; then
  5445. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5446. else
  5447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5448. for as_dir in $PATH
  5449. do
  5450. IFS=$as_save_IFS
  5451. case $as_dir in #(((
  5452. '') as_dir=./ ;;
  5453. */) ;;
  5454. *) as_dir=$as_dir/ ;;
  5455. esac
  5456. for ac_exec_ext in '' $ac_executable_extensions; do
  5457. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5458. ac_cv_prog_ac_ct_AR="$ac_prog"
  5459. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5460. break 2
  5461. fi
  5462. done
  5463. done
  5464. IFS=$as_save_IFS
  5465. fi
  5466. fi
  5467. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5468. if test -n "$ac_ct_AR"; then
  5469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5470. printf "%s\n" "$ac_ct_AR" >&6; }
  5471. else
  5472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5473. printf "%s\n" "no" >&6; }
  5474. fi
  5475. test -n "$ac_ct_AR" && break
  5476. done
  5477. if test "x$ac_ct_AR" = x; then
  5478. AR="false"
  5479. else
  5480. case $cross_compiling:$ac_tool_warned in
  5481. yes:)
  5482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5483. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5484. ac_tool_warned=yes ;;
  5485. esac
  5486. AR=$ac_ct_AR
  5487. fi
  5488. fi
  5489. : ${AR=ar}
  5490. : ${AR_FLAGS=cru}
  5491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5492. printf %s "checking for archiver @FILE support... " >&6; }
  5493. if test ${lt_cv_ar_at_file+y}
  5494. then :
  5495. printf %s "(cached) " >&6
  5496. else $as_nop
  5497. lt_cv_ar_at_file=no
  5498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5499. /* end confdefs.h. */
  5500. int
  5501. main (void)
  5502. {
  5503. ;
  5504. return 0;
  5505. }
  5506. _ACEOF
  5507. if ac_fn_c_try_compile "$LINENO"
  5508. then :
  5509. echo conftest.$ac_objext > conftest.lst
  5510. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5511. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5512. (eval $lt_ar_try) 2>&5
  5513. ac_status=$?
  5514. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5515. test $ac_status = 0; }
  5516. if test 0 -eq "$ac_status"; then
  5517. # Ensure the archiver fails upon bogus file names.
  5518. rm -f conftest.$ac_objext libconftest.a
  5519. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5520. (eval $lt_ar_try) 2>&5
  5521. ac_status=$?
  5522. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5523. test $ac_status = 0; }
  5524. if test 0 -ne "$ac_status"; then
  5525. lt_cv_ar_at_file=@
  5526. fi
  5527. fi
  5528. rm -f conftest.* libconftest.a
  5529. fi
  5530. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5531. fi
  5532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5533. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5534. if test no = "$lt_cv_ar_at_file"; then
  5535. archiver_list_spec=
  5536. else
  5537. archiver_list_spec=$lt_cv_ar_at_file
  5538. fi
  5539. if test -n "$ac_tool_prefix"; then
  5540. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5541. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5543. printf %s "checking for $ac_word... " >&6; }
  5544. if test ${ac_cv_prog_STRIP+y}
  5545. then :
  5546. printf %s "(cached) " >&6
  5547. else $as_nop
  5548. if test -n "$STRIP"; then
  5549. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5550. else
  5551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5552. for as_dir in $PATH
  5553. do
  5554. IFS=$as_save_IFS
  5555. case $as_dir in #(((
  5556. '') as_dir=./ ;;
  5557. */) ;;
  5558. *) as_dir=$as_dir/ ;;
  5559. esac
  5560. for ac_exec_ext in '' $ac_executable_extensions; do
  5561. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5562. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5563. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5564. break 2
  5565. fi
  5566. done
  5567. done
  5568. IFS=$as_save_IFS
  5569. fi
  5570. fi
  5571. STRIP=$ac_cv_prog_STRIP
  5572. if test -n "$STRIP"; then
  5573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5574. printf "%s\n" "$STRIP" >&6; }
  5575. else
  5576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5577. printf "%s\n" "no" >&6; }
  5578. fi
  5579. fi
  5580. if test -z "$ac_cv_prog_STRIP"; then
  5581. ac_ct_STRIP=$STRIP
  5582. # Extract the first word of "strip", so it can be a program name with args.
  5583. set dummy strip; ac_word=$2
  5584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5585. printf %s "checking for $ac_word... " >&6; }
  5586. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5587. then :
  5588. printf %s "(cached) " >&6
  5589. else $as_nop
  5590. if test -n "$ac_ct_STRIP"; then
  5591. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5592. else
  5593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5594. for as_dir in $PATH
  5595. do
  5596. IFS=$as_save_IFS
  5597. case $as_dir in #(((
  5598. '') as_dir=./ ;;
  5599. */) ;;
  5600. *) as_dir=$as_dir/ ;;
  5601. esac
  5602. for ac_exec_ext in '' $ac_executable_extensions; do
  5603. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5604. ac_cv_prog_ac_ct_STRIP="strip"
  5605. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5606. break 2
  5607. fi
  5608. done
  5609. done
  5610. IFS=$as_save_IFS
  5611. fi
  5612. fi
  5613. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5614. if test -n "$ac_ct_STRIP"; then
  5615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5616. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5617. else
  5618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5619. printf "%s\n" "no" >&6; }
  5620. fi
  5621. if test "x$ac_ct_STRIP" = x; then
  5622. STRIP=":"
  5623. else
  5624. case $cross_compiling:$ac_tool_warned in
  5625. yes:)
  5626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5627. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5628. ac_tool_warned=yes ;;
  5629. esac
  5630. STRIP=$ac_ct_STRIP
  5631. fi
  5632. else
  5633. STRIP="$ac_cv_prog_STRIP"
  5634. fi
  5635. test -z "$STRIP" && STRIP=:
  5636. if test -n "$ac_tool_prefix"; then
  5637. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5638. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5640. printf %s "checking for $ac_word... " >&6; }
  5641. if test ${ac_cv_prog_RANLIB+y}
  5642. then :
  5643. printf %s "(cached) " >&6
  5644. else $as_nop
  5645. if test -n "$RANLIB"; then
  5646. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5647. else
  5648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5649. for as_dir in $PATH
  5650. do
  5651. IFS=$as_save_IFS
  5652. case $as_dir in #(((
  5653. '') as_dir=./ ;;
  5654. */) ;;
  5655. *) as_dir=$as_dir/ ;;
  5656. esac
  5657. for ac_exec_ext in '' $ac_executable_extensions; do
  5658. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5659. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5660. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5661. break 2
  5662. fi
  5663. done
  5664. done
  5665. IFS=$as_save_IFS
  5666. fi
  5667. fi
  5668. RANLIB=$ac_cv_prog_RANLIB
  5669. if test -n "$RANLIB"; then
  5670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5671. printf "%s\n" "$RANLIB" >&6; }
  5672. else
  5673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5674. printf "%s\n" "no" >&6; }
  5675. fi
  5676. fi
  5677. if test -z "$ac_cv_prog_RANLIB"; then
  5678. ac_ct_RANLIB=$RANLIB
  5679. # Extract the first word of "ranlib", so it can be a program name with args.
  5680. set dummy ranlib; ac_word=$2
  5681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5682. printf %s "checking for $ac_word... " >&6; }
  5683. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5684. then :
  5685. printf %s "(cached) " >&6
  5686. else $as_nop
  5687. if test -n "$ac_ct_RANLIB"; then
  5688. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5689. else
  5690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5691. for as_dir in $PATH
  5692. do
  5693. IFS=$as_save_IFS
  5694. case $as_dir in #(((
  5695. '') as_dir=./ ;;
  5696. */) ;;
  5697. *) as_dir=$as_dir/ ;;
  5698. esac
  5699. for ac_exec_ext in '' $ac_executable_extensions; do
  5700. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5701. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5702. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5703. break 2
  5704. fi
  5705. done
  5706. done
  5707. IFS=$as_save_IFS
  5708. fi
  5709. fi
  5710. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5711. if test -n "$ac_ct_RANLIB"; then
  5712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5713. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5714. else
  5715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5716. printf "%s\n" "no" >&6; }
  5717. fi
  5718. if test "x$ac_ct_RANLIB" = x; then
  5719. RANLIB=":"
  5720. else
  5721. case $cross_compiling:$ac_tool_warned in
  5722. yes:)
  5723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5724. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5725. ac_tool_warned=yes ;;
  5726. esac
  5727. RANLIB=$ac_ct_RANLIB
  5728. fi
  5729. else
  5730. RANLIB="$ac_cv_prog_RANLIB"
  5731. fi
  5732. test -z "$RANLIB" && RANLIB=:
  5733. # Determine commands to create old-style static archives.
  5734. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5735. old_postinstall_cmds='chmod 644 $oldlib'
  5736. old_postuninstall_cmds=
  5737. if test -n "$RANLIB"; then
  5738. case $host_os in
  5739. bitrig* | openbsd*)
  5740. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5741. ;;
  5742. *)
  5743. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5744. ;;
  5745. esac
  5746. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5747. fi
  5748. case $host_os in
  5749. darwin*)
  5750. lock_old_archive_extraction=yes ;;
  5751. *)
  5752. lock_old_archive_extraction=no ;;
  5753. esac
  5754. for ac_prog in gawk mawk nawk awk
  5755. do
  5756. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5757. set dummy $ac_prog; ac_word=$2
  5758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5759. printf %s "checking for $ac_word... " >&6; }
  5760. if test ${ac_cv_prog_AWK+y}
  5761. then :
  5762. printf %s "(cached) " >&6
  5763. else $as_nop
  5764. if test -n "$AWK"; then
  5765. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5766. else
  5767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5768. for as_dir in $PATH
  5769. do
  5770. IFS=$as_save_IFS
  5771. case $as_dir in #(((
  5772. '') as_dir=./ ;;
  5773. */) ;;
  5774. *) as_dir=$as_dir/ ;;
  5775. esac
  5776. for ac_exec_ext in '' $ac_executable_extensions; do
  5777. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5778. ac_cv_prog_AWK="$ac_prog"
  5779. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5780. break 2
  5781. fi
  5782. done
  5783. done
  5784. IFS=$as_save_IFS
  5785. fi
  5786. fi
  5787. AWK=$ac_cv_prog_AWK
  5788. if test -n "$AWK"; then
  5789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5790. printf "%s\n" "$AWK" >&6; }
  5791. else
  5792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5793. printf "%s\n" "no" >&6; }
  5794. fi
  5795. test -n "$AWK" && break
  5796. done
  5797. # If no C compiler was specified, use CC.
  5798. LTCC=${LTCC-"$CC"}
  5799. # If no C compiler flags were specified, use CFLAGS.
  5800. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5801. # Allow CC to be a program name with arguments.
  5802. compiler=$CC
  5803. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5805. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5806. if test ${lt_cv_sys_global_symbol_pipe+y}
  5807. then :
  5808. printf %s "(cached) " >&6
  5809. else $as_nop
  5810. # These are sane defaults that work on at least a few old systems.
  5811. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5812. # Character class describing NM global symbol codes.
  5813. symcode='[BCDEGRST]'
  5814. # Regexp to match symbols that can be accessed directly from C.
  5815. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5816. # Define system-specific variables.
  5817. case $host_os in
  5818. aix*)
  5819. symcode='[BCDT]'
  5820. ;;
  5821. cygwin* | mingw* | pw32* | cegcc*)
  5822. symcode='[ABCDGISTW]'
  5823. ;;
  5824. hpux*)
  5825. if test ia64 = "$host_cpu"; then
  5826. symcode='[ABCDEGRST]'
  5827. fi
  5828. ;;
  5829. irix* | nonstopux*)
  5830. symcode='[BCDEGRST]'
  5831. ;;
  5832. osf*)
  5833. symcode='[BCDEGQRST]'
  5834. ;;
  5835. solaris*)
  5836. symcode='[BCDRT]'
  5837. ;;
  5838. sco3.2v5*)
  5839. symcode='[DT]'
  5840. ;;
  5841. sysv4.2uw2*)
  5842. symcode='[DT]'
  5843. ;;
  5844. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5845. symcode='[ABDT]'
  5846. ;;
  5847. sysv4)
  5848. symcode='[DFNSTU]'
  5849. ;;
  5850. esac
  5851. # If we're using GNU nm, then use its standard symbol codes.
  5852. case `$NM -V 2>&1` in
  5853. *GNU* | *'with BFD'*)
  5854. symcode='[ABCDGIRSTW]' ;;
  5855. esac
  5856. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5857. # Gets list of data symbols to import.
  5858. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5859. # Adjust the below global symbol transforms to fixup imported variables.
  5860. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5861. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5862. lt_c_name_lib_hook="\
  5863. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5864. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5865. else
  5866. # Disable hooks by default.
  5867. lt_cv_sys_global_symbol_to_import=
  5868. lt_cdecl_hook=
  5869. lt_c_name_hook=
  5870. lt_c_name_lib_hook=
  5871. fi
  5872. # Transform an extracted symbol line into a proper C declaration.
  5873. # Some systems (esp. on ia64) link data and code symbols differently,
  5874. # so use this general approach.
  5875. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5876. $lt_cdecl_hook\
  5877. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5878. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5879. # Transform an extracted symbol line into symbol name and symbol address
  5880. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5881. $lt_c_name_hook\
  5882. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5883. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5884. # Transform an extracted symbol line into symbol name with lib prefix and
  5885. # symbol address.
  5886. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5887. $lt_c_name_lib_hook\
  5888. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5889. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5890. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5891. # Handle CRLF in mingw tool chain
  5892. opt_cr=
  5893. case $build_os in
  5894. mingw*)
  5895. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5896. ;;
  5897. esac
  5898. # Try without a prefix underscore, then with it.
  5899. for ac_symprfx in "" "_"; do
  5900. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5901. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5902. # Write the raw and C identifiers.
  5903. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5904. # Fake it for dumpbin and say T for any non-static function,
  5905. # D for any global variable and I for any imported variable.
  5906. # Also find C++ and __fastcall symbols from MSVC++,
  5907. # which start with @ or ?.
  5908. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5909. " {last_section=section; section=\$ 3};"\
  5910. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5911. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5912. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5913. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5914. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5915. " \$ 0!~/External *\|/{next};"\
  5916. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5917. " {if(hide[section]) next};"\
  5918. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5919. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5920. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5921. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5922. " ' prfx=^$ac_symprfx"
  5923. else
  5924. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5925. fi
  5926. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5927. # Check to see that the pipe works correctly.
  5928. pipe_works=no
  5929. rm -f conftest*
  5930. cat > conftest.$ac_ext <<_LT_EOF
  5931. #ifdef __cplusplus
  5932. extern "C" {
  5933. #endif
  5934. char nm_test_var;
  5935. void nm_test_func(void);
  5936. void nm_test_func(void){}
  5937. #ifdef __cplusplus
  5938. }
  5939. #endif
  5940. int main(){nm_test_var='a';nm_test_func();return(0);}
  5941. _LT_EOF
  5942. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5943. (eval $ac_compile) 2>&5
  5944. ac_status=$?
  5945. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5946. test $ac_status = 0; }; then
  5947. # Now try to grab the symbols.
  5948. nlist=conftest.nm
  5949. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5950. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5951. ac_status=$?
  5952. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5953. test $ac_status = 0; } && test -s "$nlist"; then
  5954. # Try sorting and uniquifying the output.
  5955. if sort "$nlist" | uniq > "$nlist"T; then
  5956. mv -f "$nlist"T "$nlist"
  5957. else
  5958. rm -f "$nlist"T
  5959. fi
  5960. # Make sure that we snagged all the symbols we need.
  5961. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5962. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5963. cat <<_LT_EOF > conftest.$ac_ext
  5964. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5965. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5966. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5967. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5968. # define LT_DLSYM_CONST
  5969. #elif defined __osf__
  5970. /* This system does not cope well with relocations in const data. */
  5971. # define LT_DLSYM_CONST
  5972. #else
  5973. # define LT_DLSYM_CONST const
  5974. #endif
  5975. #ifdef __cplusplus
  5976. extern "C" {
  5977. #endif
  5978. _LT_EOF
  5979. # Now generate the symbol file.
  5980. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5981. cat <<_LT_EOF >> conftest.$ac_ext
  5982. /* The mapping between symbol names and symbols. */
  5983. LT_DLSYM_CONST struct {
  5984. const char *name;
  5985. void *address;
  5986. }
  5987. lt__PROGRAM__LTX_preloaded_symbols[] =
  5988. {
  5989. { "@PROGRAM@", (void *) 0 },
  5990. _LT_EOF
  5991. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5992. cat <<\_LT_EOF >> conftest.$ac_ext
  5993. {0, (void *) 0}
  5994. };
  5995. /* This works around a problem in FreeBSD linker */
  5996. #ifdef FREEBSD_WORKAROUND
  5997. static const void *lt_preloaded_setup() {
  5998. return lt__PROGRAM__LTX_preloaded_symbols;
  5999. }
  6000. #endif
  6001. #ifdef __cplusplus
  6002. }
  6003. #endif
  6004. _LT_EOF
  6005. # Now try linking the two files.
  6006. mv conftest.$ac_objext conftstm.$ac_objext
  6007. lt_globsym_save_LIBS=$LIBS
  6008. lt_globsym_save_CFLAGS=$CFLAGS
  6009. LIBS=conftstm.$ac_objext
  6010. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6011. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6012. (eval $ac_link) 2>&5
  6013. ac_status=$?
  6014. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6015. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6016. pipe_works=yes
  6017. fi
  6018. LIBS=$lt_globsym_save_LIBS
  6019. CFLAGS=$lt_globsym_save_CFLAGS
  6020. else
  6021. echo "cannot find nm_test_func in $nlist" >&5
  6022. fi
  6023. else
  6024. echo "cannot find nm_test_var in $nlist" >&5
  6025. fi
  6026. else
  6027. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6028. fi
  6029. else
  6030. echo "$progname: failed program was:" >&5
  6031. cat conftest.$ac_ext >&5
  6032. fi
  6033. rm -rf conftest* conftst*
  6034. # Do not use the global_symbol_pipe unless it works.
  6035. if test yes = "$pipe_works"; then
  6036. break
  6037. else
  6038. lt_cv_sys_global_symbol_pipe=
  6039. fi
  6040. done
  6041. fi
  6042. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6043. lt_cv_sys_global_symbol_to_cdecl=
  6044. fi
  6045. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6047. printf "%s\n" "failed" >&6; }
  6048. else
  6049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6050. printf "%s\n" "ok" >&6; }
  6051. fi
  6052. # Response file support.
  6053. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6054. nm_file_list_spec='@'
  6055. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6056. nm_file_list_spec='@'
  6057. fi
  6058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6059. printf %s "checking for sysroot... " >&6; }
  6060. # Check whether --with-sysroot was given.
  6061. if test ${with_sysroot+y}
  6062. then :
  6063. withval=$with_sysroot;
  6064. else $as_nop
  6065. with_sysroot=no
  6066. fi
  6067. lt_sysroot=
  6068. case $with_sysroot in #(
  6069. yes)
  6070. if test yes = "$GCC"; then
  6071. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6072. fi
  6073. ;; #(
  6074. /*)
  6075. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6076. ;; #(
  6077. no|'')
  6078. ;; #(
  6079. *)
  6080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6081. printf "%s\n" "$with_sysroot" >&6; }
  6082. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6083. ;;
  6084. esac
  6085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6086. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6088. printf %s "checking for a working dd... " >&6; }
  6089. if test ${ac_cv_path_lt_DD+y}
  6090. then :
  6091. printf %s "(cached) " >&6
  6092. else $as_nop
  6093. printf 0123456789abcdef0123456789abcdef >conftest.i
  6094. cat conftest.i conftest.i >conftest2.i
  6095. : ${lt_DD:=$DD}
  6096. if test -z "$lt_DD"; then
  6097. ac_path_lt_DD_found=false
  6098. # Loop through the user's path and test for each of PROGNAME-LIST
  6099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6100. for as_dir in $PATH
  6101. do
  6102. IFS=$as_save_IFS
  6103. case $as_dir in #(((
  6104. '') as_dir=./ ;;
  6105. */) ;;
  6106. *) as_dir=$as_dir/ ;;
  6107. esac
  6108. for ac_prog in dd
  6109. do
  6110. for ac_exec_ext in '' $ac_executable_extensions; do
  6111. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6112. as_fn_executable_p "$ac_path_lt_DD" || continue
  6113. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6114. cmp -s conftest.i conftest.out \
  6115. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6116. fi
  6117. $ac_path_lt_DD_found && break 3
  6118. done
  6119. done
  6120. done
  6121. IFS=$as_save_IFS
  6122. if test -z "$ac_cv_path_lt_DD"; then
  6123. :
  6124. fi
  6125. else
  6126. ac_cv_path_lt_DD=$lt_DD
  6127. fi
  6128. rm -f conftest.i conftest2.i conftest.out
  6129. fi
  6130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6131. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6133. printf %s "checking how to truncate binary pipes... " >&6; }
  6134. if test ${lt_cv_truncate_bin+y}
  6135. then :
  6136. printf %s "(cached) " >&6
  6137. else $as_nop
  6138. printf 0123456789abcdef0123456789abcdef >conftest.i
  6139. cat conftest.i conftest.i >conftest2.i
  6140. lt_cv_truncate_bin=
  6141. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6142. cmp -s conftest.i conftest.out \
  6143. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6144. fi
  6145. rm -f conftest.i conftest2.i conftest.out
  6146. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6147. fi
  6148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6149. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6150. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6151. func_cc_basename ()
  6152. {
  6153. for cc_temp in $*""; do
  6154. case $cc_temp in
  6155. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6156. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6157. \-*) ;;
  6158. *) break;;
  6159. esac
  6160. done
  6161. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6162. }
  6163. # Check whether --enable-libtool-lock was given.
  6164. if test ${enable_libtool_lock+y}
  6165. then :
  6166. enableval=$enable_libtool_lock;
  6167. fi
  6168. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6169. # Some flags need to be propagated to the compiler or linker for good
  6170. # libtool support.
  6171. case $host in
  6172. ia64-*-hpux*)
  6173. # Find out what ABI is being produced by ac_compile, and set mode
  6174. # options accordingly.
  6175. echo 'int i;' > conftest.$ac_ext
  6176. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6177. (eval $ac_compile) 2>&5
  6178. ac_status=$?
  6179. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6180. test $ac_status = 0; }; then
  6181. case `/usr/bin/file conftest.$ac_objext` in
  6182. *ELF-32*)
  6183. HPUX_IA64_MODE=32
  6184. ;;
  6185. *ELF-64*)
  6186. HPUX_IA64_MODE=64
  6187. ;;
  6188. esac
  6189. fi
  6190. rm -rf conftest*
  6191. ;;
  6192. *-*-irix6*)
  6193. # Find out what ABI is being produced by ac_compile, and set linker
  6194. # options accordingly.
  6195. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6196. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6197. (eval $ac_compile) 2>&5
  6198. ac_status=$?
  6199. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6200. test $ac_status = 0; }; then
  6201. if test yes = "$lt_cv_prog_gnu_ld"; then
  6202. case `/usr/bin/file conftest.$ac_objext` in
  6203. *32-bit*)
  6204. LD="${LD-ld} -melf32bsmip"
  6205. ;;
  6206. *N32*)
  6207. LD="${LD-ld} -melf32bmipn32"
  6208. ;;
  6209. *64-bit*)
  6210. LD="${LD-ld} -melf64bmip"
  6211. ;;
  6212. esac
  6213. else
  6214. case `/usr/bin/file conftest.$ac_objext` in
  6215. *32-bit*)
  6216. LD="${LD-ld} -32"
  6217. ;;
  6218. *N32*)
  6219. LD="${LD-ld} -n32"
  6220. ;;
  6221. *64-bit*)
  6222. LD="${LD-ld} -64"
  6223. ;;
  6224. esac
  6225. fi
  6226. fi
  6227. rm -rf conftest*
  6228. ;;
  6229. mips64*-*linux*)
  6230. # Find out what ABI is being produced by ac_compile, and set linker
  6231. # options accordingly.
  6232. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6233. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6234. (eval $ac_compile) 2>&5
  6235. ac_status=$?
  6236. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6237. test $ac_status = 0; }; then
  6238. emul=elf
  6239. case `/usr/bin/file conftest.$ac_objext` in
  6240. *32-bit*)
  6241. emul="${emul}32"
  6242. ;;
  6243. *64-bit*)
  6244. emul="${emul}64"
  6245. ;;
  6246. esac
  6247. case `/usr/bin/file conftest.$ac_objext` in
  6248. *MSB*)
  6249. emul="${emul}btsmip"
  6250. ;;
  6251. *LSB*)
  6252. emul="${emul}ltsmip"
  6253. ;;
  6254. esac
  6255. case `/usr/bin/file conftest.$ac_objext` in
  6256. *N32*)
  6257. emul="${emul}n32"
  6258. ;;
  6259. esac
  6260. LD="${LD-ld} -m $emul"
  6261. fi
  6262. rm -rf conftest*
  6263. ;;
  6264. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6265. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6266. # Find out what ABI is being produced by ac_compile, and set linker
  6267. # options accordingly. Note that the listed cases only cover the
  6268. # situations where additional linker options are needed (such as when
  6269. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6270. # vice versa); the common cases where no linker options are needed do
  6271. # not appear in the list.
  6272. echo 'int i;' > conftest.$ac_ext
  6273. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6274. (eval $ac_compile) 2>&5
  6275. ac_status=$?
  6276. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6277. test $ac_status = 0; }; then
  6278. case `/usr/bin/file conftest.o` in
  6279. *32-bit*)
  6280. case $host in
  6281. x86_64-*kfreebsd*-gnu)
  6282. LD="${LD-ld} -m elf_i386_fbsd"
  6283. ;;
  6284. x86_64-*linux*)
  6285. case `/usr/bin/file conftest.o` in
  6286. *x86-64*)
  6287. LD="${LD-ld} -m elf32_x86_64"
  6288. ;;
  6289. *)
  6290. LD="${LD-ld} -m elf_i386"
  6291. ;;
  6292. esac
  6293. ;;
  6294. powerpc64le-*linux*)
  6295. LD="${LD-ld} -m elf32lppclinux"
  6296. ;;
  6297. powerpc64-*linux*)
  6298. LD="${LD-ld} -m elf32ppclinux"
  6299. ;;
  6300. s390x-*linux*)
  6301. LD="${LD-ld} -m elf_s390"
  6302. ;;
  6303. sparc64-*linux*)
  6304. LD="${LD-ld} -m elf32_sparc"
  6305. ;;
  6306. esac
  6307. ;;
  6308. *64-bit*)
  6309. case $host in
  6310. x86_64-*kfreebsd*-gnu)
  6311. LD="${LD-ld} -m elf_x86_64_fbsd"
  6312. ;;
  6313. x86_64-*linux*)
  6314. LD="${LD-ld} -m elf_x86_64"
  6315. ;;
  6316. powerpcle-*linux*|powerpc64le-*linux*)
  6317. LD="${LD-ld} -m elf64lppc"
  6318. ;;
  6319. powerpc-*linux*|powerpc64-*linux*)
  6320. LD="${LD-ld} -m elf64ppc"
  6321. ;;
  6322. s390*-*linux*|s390*-*tpf*)
  6323. LD="${LD-ld} -m elf64_s390"
  6324. ;;
  6325. sparc*-*linux*)
  6326. LD="${LD-ld} -m elf64_sparc"
  6327. ;;
  6328. esac
  6329. ;;
  6330. esac
  6331. fi
  6332. rm -rf conftest*
  6333. ;;
  6334. *-*-sco3.2v5*)
  6335. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6336. SAVE_CFLAGS=$CFLAGS
  6337. CFLAGS="$CFLAGS -belf"
  6338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6339. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6340. if test ${lt_cv_cc_needs_belf+y}
  6341. then :
  6342. printf %s "(cached) " >&6
  6343. else $as_nop
  6344. ac_ext=c
  6345. ac_cpp='$CPP $CPPFLAGS'
  6346. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6347. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6348. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6350. /* end confdefs.h. */
  6351. int
  6352. main (void)
  6353. {
  6354. ;
  6355. return 0;
  6356. }
  6357. _ACEOF
  6358. if ac_fn_c_try_link "$LINENO"
  6359. then :
  6360. lt_cv_cc_needs_belf=yes
  6361. else $as_nop
  6362. lt_cv_cc_needs_belf=no
  6363. fi
  6364. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6365. conftest$ac_exeext conftest.$ac_ext
  6366. ac_ext=c
  6367. ac_cpp='$CPP $CPPFLAGS'
  6368. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6369. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6370. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6371. fi
  6372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6373. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6374. if test yes != "$lt_cv_cc_needs_belf"; then
  6375. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6376. CFLAGS=$SAVE_CFLAGS
  6377. fi
  6378. ;;
  6379. *-*solaris*)
  6380. # Find out what ABI is being produced by ac_compile, and set linker
  6381. # options accordingly.
  6382. echo 'int i;' > conftest.$ac_ext
  6383. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6384. (eval $ac_compile) 2>&5
  6385. ac_status=$?
  6386. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6387. test $ac_status = 0; }; then
  6388. case `/usr/bin/file conftest.o` in
  6389. *64-bit*)
  6390. case $lt_cv_prog_gnu_ld in
  6391. yes*)
  6392. case $host in
  6393. i?86-*-solaris*|x86_64-*-solaris*)
  6394. LD="${LD-ld} -m elf_x86_64"
  6395. ;;
  6396. sparc*-*-solaris*)
  6397. LD="${LD-ld} -m elf64_sparc"
  6398. ;;
  6399. esac
  6400. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6401. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6402. LD=${LD-ld}_sol2
  6403. fi
  6404. ;;
  6405. *)
  6406. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6407. LD="${LD-ld} -64"
  6408. fi
  6409. ;;
  6410. esac
  6411. ;;
  6412. esac
  6413. fi
  6414. rm -rf conftest*
  6415. ;;
  6416. esac
  6417. need_locks=$enable_libtool_lock
  6418. if test -n "$ac_tool_prefix"; then
  6419. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6420. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6422. printf %s "checking for $ac_word... " >&6; }
  6423. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6424. then :
  6425. printf %s "(cached) " >&6
  6426. else $as_nop
  6427. if test -n "$MANIFEST_TOOL"; then
  6428. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6429. else
  6430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6431. for as_dir in $PATH
  6432. do
  6433. IFS=$as_save_IFS
  6434. case $as_dir in #(((
  6435. '') as_dir=./ ;;
  6436. */) ;;
  6437. *) as_dir=$as_dir/ ;;
  6438. esac
  6439. for ac_exec_ext in '' $ac_executable_extensions; do
  6440. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6441. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6442. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6443. break 2
  6444. fi
  6445. done
  6446. done
  6447. IFS=$as_save_IFS
  6448. fi
  6449. fi
  6450. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6451. if test -n "$MANIFEST_TOOL"; then
  6452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6453. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6454. else
  6455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6456. printf "%s\n" "no" >&6; }
  6457. fi
  6458. fi
  6459. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6460. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6461. # Extract the first word of "mt", so it can be a program name with args.
  6462. set dummy mt; ac_word=$2
  6463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6464. printf %s "checking for $ac_word... " >&6; }
  6465. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6466. then :
  6467. printf %s "(cached) " >&6
  6468. else $as_nop
  6469. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6470. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6471. else
  6472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6473. for as_dir in $PATH
  6474. do
  6475. IFS=$as_save_IFS
  6476. case $as_dir in #(((
  6477. '') as_dir=./ ;;
  6478. */) ;;
  6479. *) as_dir=$as_dir/ ;;
  6480. esac
  6481. for ac_exec_ext in '' $ac_executable_extensions; do
  6482. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6483. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6484. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6485. break 2
  6486. fi
  6487. done
  6488. done
  6489. IFS=$as_save_IFS
  6490. fi
  6491. fi
  6492. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6493. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6495. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6496. else
  6497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6498. printf "%s\n" "no" >&6; }
  6499. fi
  6500. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6501. MANIFEST_TOOL=":"
  6502. else
  6503. case $cross_compiling:$ac_tool_warned in
  6504. yes:)
  6505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6506. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6507. ac_tool_warned=yes ;;
  6508. esac
  6509. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6510. fi
  6511. else
  6512. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6513. fi
  6514. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6516. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6517. if test ${lt_cv_path_mainfest_tool+y}
  6518. then :
  6519. printf %s "(cached) " >&6
  6520. else $as_nop
  6521. lt_cv_path_mainfest_tool=no
  6522. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6523. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6524. cat conftest.err >&5
  6525. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6526. lt_cv_path_mainfest_tool=yes
  6527. fi
  6528. rm -f conftest*
  6529. fi
  6530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6531. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6532. if test yes != "$lt_cv_path_mainfest_tool"; then
  6533. MANIFEST_TOOL=:
  6534. fi
  6535. case $host_os in
  6536. rhapsody* | darwin*)
  6537. if test -n "$ac_tool_prefix"; then
  6538. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6539. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6541. printf %s "checking for $ac_word... " >&6; }
  6542. if test ${ac_cv_prog_DSYMUTIL+y}
  6543. then :
  6544. printf %s "(cached) " >&6
  6545. else $as_nop
  6546. if test -n "$DSYMUTIL"; then
  6547. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6548. else
  6549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6550. for as_dir in $PATH
  6551. do
  6552. IFS=$as_save_IFS
  6553. case $as_dir in #(((
  6554. '') as_dir=./ ;;
  6555. */) ;;
  6556. *) as_dir=$as_dir/ ;;
  6557. esac
  6558. for ac_exec_ext in '' $ac_executable_extensions; do
  6559. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6560. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6561. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6562. break 2
  6563. fi
  6564. done
  6565. done
  6566. IFS=$as_save_IFS
  6567. fi
  6568. fi
  6569. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6570. if test -n "$DSYMUTIL"; then
  6571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6572. printf "%s\n" "$DSYMUTIL" >&6; }
  6573. else
  6574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6575. printf "%s\n" "no" >&6; }
  6576. fi
  6577. fi
  6578. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6579. ac_ct_DSYMUTIL=$DSYMUTIL
  6580. # Extract the first word of "dsymutil", so it can be a program name with args.
  6581. set dummy dsymutil; ac_word=$2
  6582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6583. printf %s "checking for $ac_word... " >&6; }
  6584. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6585. then :
  6586. printf %s "(cached) " >&6
  6587. else $as_nop
  6588. if test -n "$ac_ct_DSYMUTIL"; then
  6589. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6590. else
  6591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6592. for as_dir in $PATH
  6593. do
  6594. IFS=$as_save_IFS
  6595. case $as_dir in #(((
  6596. '') as_dir=./ ;;
  6597. */) ;;
  6598. *) as_dir=$as_dir/ ;;
  6599. esac
  6600. for ac_exec_ext in '' $ac_executable_extensions; do
  6601. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6602. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6603. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6604. break 2
  6605. fi
  6606. done
  6607. done
  6608. IFS=$as_save_IFS
  6609. fi
  6610. fi
  6611. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6612. if test -n "$ac_ct_DSYMUTIL"; then
  6613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6614. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6615. else
  6616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6617. printf "%s\n" "no" >&6; }
  6618. fi
  6619. if test "x$ac_ct_DSYMUTIL" = x; then
  6620. DSYMUTIL=":"
  6621. else
  6622. case $cross_compiling:$ac_tool_warned in
  6623. yes:)
  6624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6625. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6626. ac_tool_warned=yes ;;
  6627. esac
  6628. DSYMUTIL=$ac_ct_DSYMUTIL
  6629. fi
  6630. else
  6631. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6632. fi
  6633. if test -n "$ac_tool_prefix"; then
  6634. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6635. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6637. printf %s "checking for $ac_word... " >&6; }
  6638. if test ${ac_cv_prog_NMEDIT+y}
  6639. then :
  6640. printf %s "(cached) " >&6
  6641. else $as_nop
  6642. if test -n "$NMEDIT"; then
  6643. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6644. else
  6645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6646. for as_dir in $PATH
  6647. do
  6648. IFS=$as_save_IFS
  6649. case $as_dir in #(((
  6650. '') as_dir=./ ;;
  6651. */) ;;
  6652. *) as_dir=$as_dir/ ;;
  6653. esac
  6654. for ac_exec_ext in '' $ac_executable_extensions; do
  6655. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6656. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6657. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6658. break 2
  6659. fi
  6660. done
  6661. done
  6662. IFS=$as_save_IFS
  6663. fi
  6664. fi
  6665. NMEDIT=$ac_cv_prog_NMEDIT
  6666. if test -n "$NMEDIT"; then
  6667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6668. printf "%s\n" "$NMEDIT" >&6; }
  6669. else
  6670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6671. printf "%s\n" "no" >&6; }
  6672. fi
  6673. fi
  6674. if test -z "$ac_cv_prog_NMEDIT"; then
  6675. ac_ct_NMEDIT=$NMEDIT
  6676. # Extract the first word of "nmedit", so it can be a program name with args.
  6677. set dummy nmedit; ac_word=$2
  6678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6679. printf %s "checking for $ac_word... " >&6; }
  6680. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6681. then :
  6682. printf %s "(cached) " >&6
  6683. else $as_nop
  6684. if test -n "$ac_ct_NMEDIT"; then
  6685. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6686. else
  6687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6688. for as_dir in $PATH
  6689. do
  6690. IFS=$as_save_IFS
  6691. case $as_dir in #(((
  6692. '') as_dir=./ ;;
  6693. */) ;;
  6694. *) as_dir=$as_dir/ ;;
  6695. esac
  6696. for ac_exec_ext in '' $ac_executable_extensions; do
  6697. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6698. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6699. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6700. break 2
  6701. fi
  6702. done
  6703. done
  6704. IFS=$as_save_IFS
  6705. fi
  6706. fi
  6707. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6708. if test -n "$ac_ct_NMEDIT"; then
  6709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6710. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6711. else
  6712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6713. printf "%s\n" "no" >&6; }
  6714. fi
  6715. if test "x$ac_ct_NMEDIT" = x; then
  6716. NMEDIT=":"
  6717. else
  6718. case $cross_compiling:$ac_tool_warned in
  6719. yes:)
  6720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6721. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6722. ac_tool_warned=yes ;;
  6723. esac
  6724. NMEDIT=$ac_ct_NMEDIT
  6725. fi
  6726. else
  6727. NMEDIT="$ac_cv_prog_NMEDIT"
  6728. fi
  6729. if test -n "$ac_tool_prefix"; then
  6730. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6731. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6733. printf %s "checking for $ac_word... " >&6; }
  6734. if test ${ac_cv_prog_LIPO+y}
  6735. then :
  6736. printf %s "(cached) " >&6
  6737. else $as_nop
  6738. if test -n "$LIPO"; then
  6739. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6740. else
  6741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6742. for as_dir in $PATH
  6743. do
  6744. IFS=$as_save_IFS
  6745. case $as_dir in #(((
  6746. '') as_dir=./ ;;
  6747. */) ;;
  6748. *) as_dir=$as_dir/ ;;
  6749. esac
  6750. for ac_exec_ext in '' $ac_executable_extensions; do
  6751. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6752. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6753. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6754. break 2
  6755. fi
  6756. done
  6757. done
  6758. IFS=$as_save_IFS
  6759. fi
  6760. fi
  6761. LIPO=$ac_cv_prog_LIPO
  6762. if test -n "$LIPO"; then
  6763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6764. printf "%s\n" "$LIPO" >&6; }
  6765. else
  6766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6767. printf "%s\n" "no" >&6; }
  6768. fi
  6769. fi
  6770. if test -z "$ac_cv_prog_LIPO"; then
  6771. ac_ct_LIPO=$LIPO
  6772. # Extract the first word of "lipo", so it can be a program name with args.
  6773. set dummy lipo; ac_word=$2
  6774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6775. printf %s "checking for $ac_word... " >&6; }
  6776. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6777. then :
  6778. printf %s "(cached) " >&6
  6779. else $as_nop
  6780. if test -n "$ac_ct_LIPO"; then
  6781. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6782. else
  6783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6784. for as_dir in $PATH
  6785. do
  6786. IFS=$as_save_IFS
  6787. case $as_dir in #(((
  6788. '') as_dir=./ ;;
  6789. */) ;;
  6790. *) as_dir=$as_dir/ ;;
  6791. esac
  6792. for ac_exec_ext in '' $ac_executable_extensions; do
  6793. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6794. ac_cv_prog_ac_ct_LIPO="lipo"
  6795. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6796. break 2
  6797. fi
  6798. done
  6799. done
  6800. IFS=$as_save_IFS
  6801. fi
  6802. fi
  6803. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6804. if test -n "$ac_ct_LIPO"; then
  6805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6806. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6807. else
  6808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6809. printf "%s\n" "no" >&6; }
  6810. fi
  6811. if test "x$ac_ct_LIPO" = x; then
  6812. LIPO=":"
  6813. else
  6814. case $cross_compiling:$ac_tool_warned in
  6815. yes:)
  6816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6817. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6818. ac_tool_warned=yes ;;
  6819. esac
  6820. LIPO=$ac_ct_LIPO
  6821. fi
  6822. else
  6823. LIPO="$ac_cv_prog_LIPO"
  6824. fi
  6825. if test -n "$ac_tool_prefix"; then
  6826. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6827. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6829. printf %s "checking for $ac_word... " >&6; }
  6830. if test ${ac_cv_prog_OTOOL+y}
  6831. then :
  6832. printf %s "(cached) " >&6
  6833. else $as_nop
  6834. if test -n "$OTOOL"; then
  6835. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6836. else
  6837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6838. for as_dir in $PATH
  6839. do
  6840. IFS=$as_save_IFS
  6841. case $as_dir in #(((
  6842. '') as_dir=./ ;;
  6843. */) ;;
  6844. *) as_dir=$as_dir/ ;;
  6845. esac
  6846. for ac_exec_ext in '' $ac_executable_extensions; do
  6847. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6848. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6849. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6850. break 2
  6851. fi
  6852. done
  6853. done
  6854. IFS=$as_save_IFS
  6855. fi
  6856. fi
  6857. OTOOL=$ac_cv_prog_OTOOL
  6858. if test -n "$OTOOL"; then
  6859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6860. printf "%s\n" "$OTOOL" >&6; }
  6861. else
  6862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6863. printf "%s\n" "no" >&6; }
  6864. fi
  6865. fi
  6866. if test -z "$ac_cv_prog_OTOOL"; then
  6867. ac_ct_OTOOL=$OTOOL
  6868. # Extract the first word of "otool", so it can be a program name with args.
  6869. set dummy otool; ac_word=$2
  6870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6871. printf %s "checking for $ac_word... " >&6; }
  6872. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6873. then :
  6874. printf %s "(cached) " >&6
  6875. else $as_nop
  6876. if test -n "$ac_ct_OTOOL"; then
  6877. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6878. else
  6879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6880. for as_dir in $PATH
  6881. do
  6882. IFS=$as_save_IFS
  6883. case $as_dir in #(((
  6884. '') as_dir=./ ;;
  6885. */) ;;
  6886. *) as_dir=$as_dir/ ;;
  6887. esac
  6888. for ac_exec_ext in '' $ac_executable_extensions; do
  6889. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6890. ac_cv_prog_ac_ct_OTOOL="otool"
  6891. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6892. break 2
  6893. fi
  6894. done
  6895. done
  6896. IFS=$as_save_IFS
  6897. fi
  6898. fi
  6899. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6900. if test -n "$ac_ct_OTOOL"; then
  6901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6902. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6903. else
  6904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6905. printf "%s\n" "no" >&6; }
  6906. fi
  6907. if test "x$ac_ct_OTOOL" = x; then
  6908. OTOOL=":"
  6909. else
  6910. case $cross_compiling:$ac_tool_warned in
  6911. yes:)
  6912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6913. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6914. ac_tool_warned=yes ;;
  6915. esac
  6916. OTOOL=$ac_ct_OTOOL
  6917. fi
  6918. else
  6919. OTOOL="$ac_cv_prog_OTOOL"
  6920. fi
  6921. if test -n "$ac_tool_prefix"; then
  6922. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6923. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6925. printf %s "checking for $ac_word... " >&6; }
  6926. if test ${ac_cv_prog_OTOOL64+y}
  6927. then :
  6928. printf %s "(cached) " >&6
  6929. else $as_nop
  6930. if test -n "$OTOOL64"; then
  6931. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6932. else
  6933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6934. for as_dir in $PATH
  6935. do
  6936. IFS=$as_save_IFS
  6937. case $as_dir in #(((
  6938. '') as_dir=./ ;;
  6939. */) ;;
  6940. *) as_dir=$as_dir/ ;;
  6941. esac
  6942. for ac_exec_ext in '' $ac_executable_extensions; do
  6943. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6944. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6945. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6946. break 2
  6947. fi
  6948. done
  6949. done
  6950. IFS=$as_save_IFS
  6951. fi
  6952. fi
  6953. OTOOL64=$ac_cv_prog_OTOOL64
  6954. if test -n "$OTOOL64"; then
  6955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6956. printf "%s\n" "$OTOOL64" >&6; }
  6957. else
  6958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6959. printf "%s\n" "no" >&6; }
  6960. fi
  6961. fi
  6962. if test -z "$ac_cv_prog_OTOOL64"; then
  6963. ac_ct_OTOOL64=$OTOOL64
  6964. # Extract the first word of "otool64", so it can be a program name with args.
  6965. set dummy otool64; ac_word=$2
  6966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6967. printf %s "checking for $ac_word... " >&6; }
  6968. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  6969. then :
  6970. printf %s "(cached) " >&6
  6971. else $as_nop
  6972. if test -n "$ac_ct_OTOOL64"; then
  6973. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6974. else
  6975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6976. for as_dir in $PATH
  6977. do
  6978. IFS=$as_save_IFS
  6979. case $as_dir in #(((
  6980. '') as_dir=./ ;;
  6981. */) ;;
  6982. *) as_dir=$as_dir/ ;;
  6983. esac
  6984. for ac_exec_ext in '' $ac_executable_extensions; do
  6985. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6986. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6987. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6988. break 2
  6989. fi
  6990. done
  6991. done
  6992. IFS=$as_save_IFS
  6993. fi
  6994. fi
  6995. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6996. if test -n "$ac_ct_OTOOL64"; then
  6997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6998. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  6999. else
  7000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7001. printf "%s\n" "no" >&6; }
  7002. fi
  7003. if test "x$ac_ct_OTOOL64" = x; then
  7004. OTOOL64=":"
  7005. else
  7006. case $cross_compiling:$ac_tool_warned in
  7007. yes:)
  7008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7009. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7010. ac_tool_warned=yes ;;
  7011. esac
  7012. OTOOL64=$ac_ct_OTOOL64
  7013. fi
  7014. else
  7015. OTOOL64="$ac_cv_prog_OTOOL64"
  7016. fi
  7017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7018. printf %s "checking for -single_module linker flag... " >&6; }
  7019. if test ${lt_cv_apple_cc_single_mod+y}
  7020. then :
  7021. printf %s "(cached) " >&6
  7022. else $as_nop
  7023. lt_cv_apple_cc_single_mod=no
  7024. if test -z "$LT_MULTI_MODULE"; then
  7025. # By default we will add the -single_module flag. You can override
  7026. # by either setting the environment variable LT_MULTI_MODULE
  7027. # non-empty at configure time, or by adding -multi_module to the
  7028. # link flags.
  7029. rm -rf libconftest.dylib*
  7030. echo "int foo(void){return 1;}" > conftest.c
  7031. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7032. -dynamiclib -Wl,-single_module conftest.c" >&5
  7033. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7034. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7035. _lt_result=$?
  7036. # If there is a non-empty error log, and "single_module"
  7037. # appears in it, assume the flag caused a linker warning
  7038. if test -s conftest.err && $GREP single_module conftest.err; then
  7039. cat conftest.err >&5
  7040. # Otherwise, if the output was created with a 0 exit code from
  7041. # the compiler, it worked.
  7042. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7043. lt_cv_apple_cc_single_mod=yes
  7044. else
  7045. cat conftest.err >&5
  7046. fi
  7047. rm -rf libconftest.dylib*
  7048. rm -f conftest.*
  7049. fi
  7050. fi
  7051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7052. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7054. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7055. if test ${lt_cv_ld_exported_symbols_list+y}
  7056. then :
  7057. printf %s "(cached) " >&6
  7058. else $as_nop
  7059. lt_cv_ld_exported_symbols_list=no
  7060. save_LDFLAGS=$LDFLAGS
  7061. echo "_main" > conftest.sym
  7062. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7064. /* end confdefs.h. */
  7065. int
  7066. main (void)
  7067. {
  7068. ;
  7069. return 0;
  7070. }
  7071. _ACEOF
  7072. if ac_fn_c_try_link "$LINENO"
  7073. then :
  7074. lt_cv_ld_exported_symbols_list=yes
  7075. else $as_nop
  7076. lt_cv_ld_exported_symbols_list=no
  7077. fi
  7078. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7079. conftest$ac_exeext conftest.$ac_ext
  7080. LDFLAGS=$save_LDFLAGS
  7081. fi
  7082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7083. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7085. printf %s "checking for -force_load linker flag... " >&6; }
  7086. if test ${lt_cv_ld_force_load+y}
  7087. then :
  7088. printf %s "(cached) " >&6
  7089. else $as_nop
  7090. lt_cv_ld_force_load=no
  7091. cat > conftest.c << _LT_EOF
  7092. int forced_loaded() { return 2;}
  7093. _LT_EOF
  7094. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7095. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7096. echo "$AR cru libconftest.a conftest.o" >&5
  7097. $AR cru libconftest.a conftest.o 2>&5
  7098. echo "$RANLIB libconftest.a" >&5
  7099. $RANLIB libconftest.a 2>&5
  7100. cat > conftest.c << _LT_EOF
  7101. int main() { return 0;}
  7102. _LT_EOF
  7103. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7104. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7105. _lt_result=$?
  7106. if test -s conftest.err && $GREP force_load conftest.err; then
  7107. cat conftest.err >&5
  7108. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7109. lt_cv_ld_force_load=yes
  7110. else
  7111. cat conftest.err >&5
  7112. fi
  7113. rm -f conftest.err libconftest.a conftest conftest.c
  7114. rm -rf conftest.dSYM
  7115. fi
  7116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7117. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7118. case $host_os in
  7119. rhapsody* | darwin1.[012])
  7120. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7121. darwin1.*)
  7122. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7123. darwin*)
  7124. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7125. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7126. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7127. *)
  7128. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7129. esac
  7130. ;;
  7131. esac
  7132. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7133. _lt_dar_single_mod='$single_module'
  7134. fi
  7135. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7136. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7137. else
  7138. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7139. fi
  7140. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7141. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7142. else
  7143. _lt_dsymutil=
  7144. fi
  7145. ;;
  7146. esac
  7147. # func_munge_path_list VARIABLE PATH
  7148. # -----------------------------------
  7149. # VARIABLE is name of variable containing _space_ separated list of
  7150. # directories to be munged by the contents of PATH, which is string
  7151. # having a format:
  7152. # "DIR[:DIR]:"
  7153. # string "DIR[ DIR]" will be prepended to VARIABLE
  7154. # ":DIR[:DIR]"
  7155. # string "DIR[ DIR]" will be appended to VARIABLE
  7156. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7157. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7158. # "DIRA[ DIRA]" will be appended to VARIABLE
  7159. # "DIR[:DIR]"
  7160. # VARIABLE will be replaced by "DIR[ DIR]"
  7161. func_munge_path_list ()
  7162. {
  7163. case x$2 in
  7164. x)
  7165. ;;
  7166. *:)
  7167. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7168. ;;
  7169. x:*)
  7170. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7171. ;;
  7172. *::*)
  7173. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7174. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7175. ;;
  7176. *)
  7177. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7178. ;;
  7179. esac
  7180. }
  7181. ac_header= ac_cache=
  7182. for ac_item in $ac_header_c_list
  7183. do
  7184. if test $ac_cache; then
  7185. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7186. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7187. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7188. fi
  7189. ac_header= ac_cache=
  7190. elif test $ac_header; then
  7191. ac_cache=$ac_item
  7192. else
  7193. ac_header=$ac_item
  7194. fi
  7195. done
  7196. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7197. then :
  7198. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7199. fi
  7200. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7201. "
  7202. if test "x$ac_cv_header_dlfcn_h" = xyes
  7203. then :
  7204. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7205. fi
  7206. # Set options
  7207. enable_win32_dll=yes
  7208. case $host in
  7209. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7210. if test -n "$ac_tool_prefix"; then
  7211. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7212. set dummy ${ac_tool_prefix}as; ac_word=$2
  7213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7214. printf %s "checking for $ac_word... " >&6; }
  7215. if test ${ac_cv_prog_AS+y}
  7216. then :
  7217. printf %s "(cached) " >&6
  7218. else $as_nop
  7219. if test -n "$AS"; then
  7220. ac_cv_prog_AS="$AS" # Let the user override the test.
  7221. else
  7222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7223. for as_dir in $PATH
  7224. do
  7225. IFS=$as_save_IFS
  7226. case $as_dir in #(((
  7227. '') as_dir=./ ;;
  7228. */) ;;
  7229. *) as_dir=$as_dir/ ;;
  7230. esac
  7231. for ac_exec_ext in '' $ac_executable_extensions; do
  7232. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7233. ac_cv_prog_AS="${ac_tool_prefix}as"
  7234. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7235. break 2
  7236. fi
  7237. done
  7238. done
  7239. IFS=$as_save_IFS
  7240. fi
  7241. fi
  7242. AS=$ac_cv_prog_AS
  7243. if test -n "$AS"; then
  7244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7245. printf "%s\n" "$AS" >&6; }
  7246. else
  7247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7248. printf "%s\n" "no" >&6; }
  7249. fi
  7250. fi
  7251. if test -z "$ac_cv_prog_AS"; then
  7252. ac_ct_AS=$AS
  7253. # Extract the first word of "as", so it can be a program name with args.
  7254. set dummy as; ac_word=$2
  7255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7256. printf %s "checking for $ac_word... " >&6; }
  7257. if test ${ac_cv_prog_ac_ct_AS+y}
  7258. then :
  7259. printf %s "(cached) " >&6
  7260. else $as_nop
  7261. if test -n "$ac_ct_AS"; then
  7262. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7263. else
  7264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7265. for as_dir in $PATH
  7266. do
  7267. IFS=$as_save_IFS
  7268. case $as_dir in #(((
  7269. '') as_dir=./ ;;
  7270. */) ;;
  7271. *) as_dir=$as_dir/ ;;
  7272. esac
  7273. for ac_exec_ext in '' $ac_executable_extensions; do
  7274. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7275. ac_cv_prog_ac_ct_AS="as"
  7276. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7277. break 2
  7278. fi
  7279. done
  7280. done
  7281. IFS=$as_save_IFS
  7282. fi
  7283. fi
  7284. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7285. if test -n "$ac_ct_AS"; then
  7286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7287. printf "%s\n" "$ac_ct_AS" >&6; }
  7288. else
  7289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7290. printf "%s\n" "no" >&6; }
  7291. fi
  7292. if test "x$ac_ct_AS" = x; then
  7293. AS="false"
  7294. else
  7295. case $cross_compiling:$ac_tool_warned in
  7296. yes:)
  7297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7298. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7299. ac_tool_warned=yes ;;
  7300. esac
  7301. AS=$ac_ct_AS
  7302. fi
  7303. else
  7304. AS="$ac_cv_prog_AS"
  7305. fi
  7306. if test -n "$ac_tool_prefix"; then
  7307. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7308. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7310. printf %s "checking for $ac_word... " >&6; }
  7311. if test ${ac_cv_prog_DLLTOOL+y}
  7312. then :
  7313. printf %s "(cached) " >&6
  7314. else $as_nop
  7315. if test -n "$DLLTOOL"; then
  7316. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7317. else
  7318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7319. for as_dir in $PATH
  7320. do
  7321. IFS=$as_save_IFS
  7322. case $as_dir in #(((
  7323. '') as_dir=./ ;;
  7324. */) ;;
  7325. *) as_dir=$as_dir/ ;;
  7326. esac
  7327. for ac_exec_ext in '' $ac_executable_extensions; do
  7328. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7329. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7330. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7331. break 2
  7332. fi
  7333. done
  7334. done
  7335. IFS=$as_save_IFS
  7336. fi
  7337. fi
  7338. DLLTOOL=$ac_cv_prog_DLLTOOL
  7339. if test -n "$DLLTOOL"; then
  7340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7341. printf "%s\n" "$DLLTOOL" >&6; }
  7342. else
  7343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7344. printf "%s\n" "no" >&6; }
  7345. fi
  7346. fi
  7347. if test -z "$ac_cv_prog_DLLTOOL"; then
  7348. ac_ct_DLLTOOL=$DLLTOOL
  7349. # Extract the first word of "dlltool", so it can be a program name with args.
  7350. set dummy dlltool; ac_word=$2
  7351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7352. printf %s "checking for $ac_word... " >&6; }
  7353. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7354. then :
  7355. printf %s "(cached) " >&6
  7356. else $as_nop
  7357. if test -n "$ac_ct_DLLTOOL"; then
  7358. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7359. else
  7360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7361. for as_dir in $PATH
  7362. do
  7363. IFS=$as_save_IFS
  7364. case $as_dir in #(((
  7365. '') as_dir=./ ;;
  7366. */) ;;
  7367. *) as_dir=$as_dir/ ;;
  7368. esac
  7369. for ac_exec_ext in '' $ac_executable_extensions; do
  7370. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7371. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7372. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7373. break 2
  7374. fi
  7375. done
  7376. done
  7377. IFS=$as_save_IFS
  7378. fi
  7379. fi
  7380. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7381. if test -n "$ac_ct_DLLTOOL"; then
  7382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7383. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7384. else
  7385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7386. printf "%s\n" "no" >&6; }
  7387. fi
  7388. if test "x$ac_ct_DLLTOOL" = x; then
  7389. DLLTOOL="false"
  7390. else
  7391. case $cross_compiling:$ac_tool_warned in
  7392. yes:)
  7393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7394. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7395. ac_tool_warned=yes ;;
  7396. esac
  7397. DLLTOOL=$ac_ct_DLLTOOL
  7398. fi
  7399. else
  7400. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7401. fi
  7402. if test -n "$ac_tool_prefix"; then
  7403. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7404. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7406. printf %s "checking for $ac_word... " >&6; }
  7407. if test ${ac_cv_prog_OBJDUMP+y}
  7408. then :
  7409. printf %s "(cached) " >&6
  7410. else $as_nop
  7411. if test -n "$OBJDUMP"; then
  7412. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7413. else
  7414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7415. for as_dir in $PATH
  7416. do
  7417. IFS=$as_save_IFS
  7418. case $as_dir in #(((
  7419. '') as_dir=./ ;;
  7420. */) ;;
  7421. *) as_dir=$as_dir/ ;;
  7422. esac
  7423. for ac_exec_ext in '' $ac_executable_extensions; do
  7424. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7425. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7426. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7427. break 2
  7428. fi
  7429. done
  7430. done
  7431. IFS=$as_save_IFS
  7432. fi
  7433. fi
  7434. OBJDUMP=$ac_cv_prog_OBJDUMP
  7435. if test -n "$OBJDUMP"; then
  7436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7437. printf "%s\n" "$OBJDUMP" >&6; }
  7438. else
  7439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7440. printf "%s\n" "no" >&6; }
  7441. fi
  7442. fi
  7443. if test -z "$ac_cv_prog_OBJDUMP"; then
  7444. ac_ct_OBJDUMP=$OBJDUMP
  7445. # Extract the first word of "objdump", so it can be a program name with args.
  7446. set dummy objdump; ac_word=$2
  7447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7448. printf %s "checking for $ac_word... " >&6; }
  7449. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7450. then :
  7451. printf %s "(cached) " >&6
  7452. else $as_nop
  7453. if test -n "$ac_ct_OBJDUMP"; then
  7454. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7455. else
  7456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7457. for as_dir in $PATH
  7458. do
  7459. IFS=$as_save_IFS
  7460. case $as_dir in #(((
  7461. '') as_dir=./ ;;
  7462. */) ;;
  7463. *) as_dir=$as_dir/ ;;
  7464. esac
  7465. for ac_exec_ext in '' $ac_executable_extensions; do
  7466. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7467. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7468. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7469. break 2
  7470. fi
  7471. done
  7472. done
  7473. IFS=$as_save_IFS
  7474. fi
  7475. fi
  7476. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7477. if test -n "$ac_ct_OBJDUMP"; then
  7478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7479. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7480. else
  7481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7482. printf "%s\n" "no" >&6; }
  7483. fi
  7484. if test "x$ac_ct_OBJDUMP" = x; then
  7485. OBJDUMP="false"
  7486. else
  7487. case $cross_compiling:$ac_tool_warned in
  7488. yes:)
  7489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7490. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7491. ac_tool_warned=yes ;;
  7492. esac
  7493. OBJDUMP=$ac_ct_OBJDUMP
  7494. fi
  7495. else
  7496. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7497. fi
  7498. ;;
  7499. esac
  7500. test -z "$AS" && AS=as
  7501. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7502. test -z "$OBJDUMP" && OBJDUMP=objdump
  7503. enable_dlopen=no
  7504. # Check whether --enable-shared was given.
  7505. if test ${enable_shared+y}
  7506. then :
  7507. enableval=$enable_shared; p=${PACKAGE-default}
  7508. case $enableval in
  7509. yes) enable_shared=yes ;;
  7510. no) enable_shared=no ;;
  7511. *)
  7512. enable_shared=no
  7513. # Look at the argument we got. We use all the common list separators.
  7514. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7515. for pkg in $enableval; do
  7516. IFS=$lt_save_ifs
  7517. if test "X$pkg" = "X$p"; then
  7518. enable_shared=yes
  7519. fi
  7520. done
  7521. IFS=$lt_save_ifs
  7522. ;;
  7523. esac
  7524. else $as_nop
  7525. enable_shared=yes
  7526. fi
  7527. # Check whether --enable-static was given.
  7528. if test ${enable_static+y}
  7529. then :
  7530. enableval=$enable_static; p=${PACKAGE-default}
  7531. case $enableval in
  7532. yes) enable_static=yes ;;
  7533. no) enable_static=no ;;
  7534. *)
  7535. enable_static=no
  7536. # Look at the argument we got. We use all the common list separators.
  7537. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7538. for pkg in $enableval; do
  7539. IFS=$lt_save_ifs
  7540. if test "X$pkg" = "X$p"; then
  7541. enable_static=yes
  7542. fi
  7543. done
  7544. IFS=$lt_save_ifs
  7545. ;;
  7546. esac
  7547. else $as_nop
  7548. enable_static=yes
  7549. fi
  7550. # Check whether --with-pic was given.
  7551. if test ${with_pic+y}
  7552. then :
  7553. withval=$with_pic; lt_p=${PACKAGE-default}
  7554. case $withval in
  7555. yes|no) pic_mode=$withval ;;
  7556. *)
  7557. pic_mode=default
  7558. # Look at the argument we got. We use all the common list separators.
  7559. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7560. for lt_pkg in $withval; do
  7561. IFS=$lt_save_ifs
  7562. if test "X$lt_pkg" = "X$lt_p"; then
  7563. pic_mode=yes
  7564. fi
  7565. done
  7566. IFS=$lt_save_ifs
  7567. ;;
  7568. esac
  7569. else $as_nop
  7570. pic_mode=default
  7571. fi
  7572. # Check whether --enable-fast-install was given.
  7573. if test ${enable_fast_install+y}
  7574. then :
  7575. enableval=$enable_fast_install; p=${PACKAGE-default}
  7576. case $enableval in
  7577. yes) enable_fast_install=yes ;;
  7578. no) enable_fast_install=no ;;
  7579. *)
  7580. enable_fast_install=no
  7581. # Look at the argument we got. We use all the common list separators.
  7582. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7583. for pkg in $enableval; do
  7584. IFS=$lt_save_ifs
  7585. if test "X$pkg" = "X$p"; then
  7586. enable_fast_install=yes
  7587. fi
  7588. done
  7589. IFS=$lt_save_ifs
  7590. ;;
  7591. esac
  7592. else $as_nop
  7593. enable_fast_install=yes
  7594. fi
  7595. shared_archive_member_spec=
  7596. case $host,$enable_shared in
  7597. power*-*-aix[5-9]*,yes)
  7598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7599. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7600. # Check whether --with-aix-soname was given.
  7601. if test ${with_aix_soname+y}
  7602. then :
  7603. withval=$with_aix_soname; case $withval in
  7604. aix|svr4|both)
  7605. ;;
  7606. *)
  7607. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7608. ;;
  7609. esac
  7610. lt_cv_with_aix_soname=$with_aix_soname
  7611. else $as_nop
  7612. if test ${lt_cv_with_aix_soname+y}
  7613. then :
  7614. printf %s "(cached) " >&6
  7615. else $as_nop
  7616. lt_cv_with_aix_soname=aix
  7617. fi
  7618. with_aix_soname=$lt_cv_with_aix_soname
  7619. fi
  7620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7621. printf "%s\n" "$with_aix_soname" >&6; }
  7622. if test aix != "$with_aix_soname"; then
  7623. # For the AIX way of multilib, we name the shared archive member
  7624. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7625. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7626. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7627. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7628. if test 64 = "${OBJECT_MODE-32}"; then
  7629. shared_archive_member_spec=shr_64
  7630. else
  7631. shared_archive_member_spec=shr
  7632. fi
  7633. fi
  7634. ;;
  7635. *)
  7636. with_aix_soname=aix
  7637. ;;
  7638. esac
  7639. # This can be used to rebuild libtool when needed
  7640. LIBTOOL_DEPS=$ltmain
  7641. # Always use our own libtool.
  7642. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7643. test -z "$LN_S" && LN_S="ln -s"
  7644. if test -n "${ZSH_VERSION+set}"; then
  7645. setopt NO_GLOB_SUBST
  7646. fi
  7647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7648. printf %s "checking for objdir... " >&6; }
  7649. if test ${lt_cv_objdir+y}
  7650. then :
  7651. printf %s "(cached) " >&6
  7652. else $as_nop
  7653. rm -f .libs 2>/dev/null
  7654. mkdir .libs 2>/dev/null
  7655. if test -d .libs; then
  7656. lt_cv_objdir=.libs
  7657. else
  7658. # MS-DOS does not allow filenames that begin with a dot.
  7659. lt_cv_objdir=_libs
  7660. fi
  7661. rmdir .libs 2>/dev/null
  7662. fi
  7663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7664. printf "%s\n" "$lt_cv_objdir" >&6; }
  7665. objdir=$lt_cv_objdir
  7666. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7667. case $host_os in
  7668. aix3*)
  7669. # AIX sometimes has problems with the GCC collect2 program. For some
  7670. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7671. # vanish in a puff of smoke.
  7672. if test set != "${COLLECT_NAMES+set}"; then
  7673. COLLECT_NAMES=
  7674. export COLLECT_NAMES
  7675. fi
  7676. ;;
  7677. esac
  7678. # Global variables:
  7679. ofile=libtool
  7680. can_build_shared=yes
  7681. # All known linkers require a '.a' archive for static linking (except MSVC,
  7682. # which needs '.lib').
  7683. libext=a
  7684. with_gnu_ld=$lt_cv_prog_gnu_ld
  7685. old_CC=$CC
  7686. old_CFLAGS=$CFLAGS
  7687. # Set sane defaults for various variables
  7688. test -z "$CC" && CC=cc
  7689. test -z "$LTCC" && LTCC=$CC
  7690. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7691. test -z "$LD" && LD=ld
  7692. test -z "$ac_objext" && ac_objext=o
  7693. func_cc_basename $compiler
  7694. cc_basename=$func_cc_basename_result
  7695. # Only perform the check for file, if the check method requires it
  7696. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7697. case $deplibs_check_method in
  7698. file_magic*)
  7699. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7701. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7702. if test ${lt_cv_path_MAGIC_CMD+y}
  7703. then :
  7704. printf %s "(cached) " >&6
  7705. else $as_nop
  7706. case $MAGIC_CMD in
  7707. [\\/*] | ?:[\\/]*)
  7708. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7709. ;;
  7710. *)
  7711. lt_save_MAGIC_CMD=$MAGIC_CMD
  7712. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7713. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7714. for ac_dir in $ac_dummy; do
  7715. IFS=$lt_save_ifs
  7716. test -z "$ac_dir" && ac_dir=.
  7717. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7718. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7719. if test -n "$file_magic_test_file"; then
  7720. case $deplibs_check_method in
  7721. "file_magic "*)
  7722. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7723. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7724. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7725. $EGREP "$file_magic_regex" > /dev/null; then
  7726. :
  7727. else
  7728. cat <<_LT_EOF 1>&2
  7729. *** Warning: the command libtool uses to detect shared libraries,
  7730. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7731. *** The result is that libtool may fail to recognize shared libraries
  7732. *** as such. This will affect the creation of libtool libraries that
  7733. *** depend on shared libraries, but programs linked with such libtool
  7734. *** libraries will work regardless of this problem. Nevertheless, you
  7735. *** may want to report the problem to your system manager and/or to
  7736. *** bug-libtool@gnu.org
  7737. _LT_EOF
  7738. fi ;;
  7739. esac
  7740. fi
  7741. break
  7742. fi
  7743. done
  7744. IFS=$lt_save_ifs
  7745. MAGIC_CMD=$lt_save_MAGIC_CMD
  7746. ;;
  7747. esac
  7748. fi
  7749. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7750. if test -n "$MAGIC_CMD"; then
  7751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7752. printf "%s\n" "$MAGIC_CMD" >&6; }
  7753. else
  7754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7755. printf "%s\n" "no" >&6; }
  7756. fi
  7757. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7758. if test -n "$ac_tool_prefix"; then
  7759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7760. printf %s "checking for file... " >&6; }
  7761. if test ${lt_cv_path_MAGIC_CMD+y}
  7762. then :
  7763. printf %s "(cached) " >&6
  7764. else $as_nop
  7765. case $MAGIC_CMD in
  7766. [\\/*] | ?:[\\/]*)
  7767. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7768. ;;
  7769. *)
  7770. lt_save_MAGIC_CMD=$MAGIC_CMD
  7771. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7772. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7773. for ac_dir in $ac_dummy; do
  7774. IFS=$lt_save_ifs
  7775. test -z "$ac_dir" && ac_dir=.
  7776. if test -f "$ac_dir/file"; then
  7777. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7778. if test -n "$file_magic_test_file"; then
  7779. case $deplibs_check_method in
  7780. "file_magic "*)
  7781. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7782. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7783. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7784. $EGREP "$file_magic_regex" > /dev/null; then
  7785. :
  7786. else
  7787. cat <<_LT_EOF 1>&2
  7788. *** Warning: the command libtool uses to detect shared libraries,
  7789. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7790. *** The result is that libtool may fail to recognize shared libraries
  7791. *** as such. This will affect the creation of libtool libraries that
  7792. *** depend on shared libraries, but programs linked with such libtool
  7793. *** libraries will work regardless of this problem. Nevertheless, you
  7794. *** may want to report the problem to your system manager and/or to
  7795. *** bug-libtool@gnu.org
  7796. _LT_EOF
  7797. fi ;;
  7798. esac
  7799. fi
  7800. break
  7801. fi
  7802. done
  7803. IFS=$lt_save_ifs
  7804. MAGIC_CMD=$lt_save_MAGIC_CMD
  7805. ;;
  7806. esac
  7807. fi
  7808. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7809. if test -n "$MAGIC_CMD"; then
  7810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7811. printf "%s\n" "$MAGIC_CMD" >&6; }
  7812. else
  7813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7814. printf "%s\n" "no" >&6; }
  7815. fi
  7816. else
  7817. MAGIC_CMD=:
  7818. fi
  7819. fi
  7820. fi
  7821. ;;
  7822. esac
  7823. # Use C for the default configuration in the libtool script
  7824. lt_save_CC=$CC
  7825. ac_ext=c
  7826. ac_cpp='$CPP $CPPFLAGS'
  7827. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7828. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7829. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7830. # Source file extension for C test sources.
  7831. ac_ext=c
  7832. # Object file extension for compiled C test sources.
  7833. objext=o
  7834. objext=$objext
  7835. # Code to be used in simple compile tests
  7836. lt_simple_compile_test_code="int some_variable = 0;"
  7837. # Code to be used in simple link tests
  7838. lt_simple_link_test_code='int main(){return(0);}'
  7839. # If no C compiler was specified, use CC.
  7840. LTCC=${LTCC-"$CC"}
  7841. # If no C compiler flags were specified, use CFLAGS.
  7842. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7843. # Allow CC to be a program name with arguments.
  7844. compiler=$CC
  7845. # Save the default compiler, since it gets overwritten when the other
  7846. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7847. compiler_DEFAULT=$CC
  7848. # save warnings/boilerplate of simple test code
  7849. ac_outfile=conftest.$ac_objext
  7850. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7851. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7852. _lt_compiler_boilerplate=`cat conftest.err`
  7853. $RM conftest*
  7854. ac_outfile=conftest.$ac_objext
  7855. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7856. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7857. _lt_linker_boilerplate=`cat conftest.err`
  7858. $RM -r conftest*
  7859. ## CAVEAT EMPTOR:
  7860. ## There is no encapsulation within the following macros, do not change
  7861. ## the running order or otherwise move them around unless you know exactly
  7862. ## what you are doing...
  7863. if test -n "$compiler"; then
  7864. lt_prog_compiler_no_builtin_flag=
  7865. if test yes = "$GCC"; then
  7866. case $cc_basename in
  7867. nvcc*)
  7868. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7869. *)
  7870. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7871. esac
  7872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7873. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7874. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7875. then :
  7876. printf %s "(cached) " >&6
  7877. else $as_nop
  7878. lt_cv_prog_compiler_rtti_exceptions=no
  7879. ac_outfile=conftest.$ac_objext
  7880. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7881. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7882. # Insert the option either (1) after the last *FLAGS variable, or
  7883. # (2) before a word containing "conftest.", or (3) at the end.
  7884. # Note that $ac_compile itself does not contain backslashes and begins
  7885. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7886. # The option is referenced via a variable to avoid confusing sed.
  7887. lt_compile=`echo "$ac_compile" | $SED \
  7888. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7889. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7890. -e 's:$: $lt_compiler_flag:'`
  7891. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7892. (eval "$lt_compile" 2>conftest.err)
  7893. ac_status=$?
  7894. cat conftest.err >&5
  7895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7896. if (exit $ac_status) && test -s "$ac_outfile"; then
  7897. # The compiler can only warn and ignore the option if not recognized
  7898. # So say no if there are warnings other than the usual output.
  7899. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7900. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7901. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7902. lt_cv_prog_compiler_rtti_exceptions=yes
  7903. fi
  7904. fi
  7905. $RM conftest*
  7906. fi
  7907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7908. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7909. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7910. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7911. else
  7912. :
  7913. fi
  7914. fi
  7915. lt_prog_compiler_wl=
  7916. lt_prog_compiler_pic=
  7917. lt_prog_compiler_static=
  7918. if test yes = "$GCC"; then
  7919. lt_prog_compiler_wl='-Wl,'
  7920. lt_prog_compiler_static='-static'
  7921. case $host_os in
  7922. aix*)
  7923. # All AIX code is PIC.
  7924. if test ia64 = "$host_cpu"; then
  7925. # AIX 5 now supports IA64 processor
  7926. lt_prog_compiler_static='-Bstatic'
  7927. fi
  7928. lt_prog_compiler_pic='-fPIC'
  7929. ;;
  7930. amigaos*)
  7931. case $host_cpu in
  7932. powerpc)
  7933. # see comment about AmigaOS4 .so support
  7934. lt_prog_compiler_pic='-fPIC'
  7935. ;;
  7936. m68k)
  7937. # FIXME: we need at least 68020 code to build shared libraries, but
  7938. # adding the '-m68020' flag to GCC prevents building anything better,
  7939. # like '-m68040'.
  7940. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7941. ;;
  7942. esac
  7943. ;;
  7944. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7945. # PIC is the default for these OSes.
  7946. ;;
  7947. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7948. # This hack is so that the source file can tell whether it is being
  7949. # built for inclusion in a dll (and should export symbols for example).
  7950. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7951. # (--disable-auto-import) libraries
  7952. lt_prog_compiler_pic='-DDLL_EXPORT'
  7953. case $host_os in
  7954. os2*)
  7955. lt_prog_compiler_static='$wl-static'
  7956. ;;
  7957. esac
  7958. ;;
  7959. darwin* | rhapsody*)
  7960. # PIC is the default on this platform
  7961. # Common symbols not allowed in MH_DYLIB files
  7962. lt_prog_compiler_pic='-fno-common'
  7963. ;;
  7964. haiku*)
  7965. # PIC is the default for Haiku.
  7966. # The "-static" flag exists, but is broken.
  7967. lt_prog_compiler_static=
  7968. ;;
  7969. hpux*)
  7970. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7971. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7972. # sets the default TLS model and affects inlining.
  7973. case $host_cpu in
  7974. hppa*64*)
  7975. # +Z the default
  7976. ;;
  7977. *)
  7978. lt_prog_compiler_pic='-fPIC'
  7979. ;;
  7980. esac
  7981. ;;
  7982. interix[3-9]*)
  7983. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7984. # Instead, we relocate shared libraries at runtime.
  7985. ;;
  7986. msdosdjgpp*)
  7987. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7988. # on systems that don't support them.
  7989. lt_prog_compiler_can_build_shared=no
  7990. enable_shared=no
  7991. ;;
  7992. *nto* | *qnx*)
  7993. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7994. # it will coredump.
  7995. lt_prog_compiler_pic='-fPIC -shared'
  7996. ;;
  7997. sysv4*MP*)
  7998. if test -d /usr/nec; then
  7999. lt_prog_compiler_pic=-Kconform_pic
  8000. fi
  8001. ;;
  8002. *)
  8003. lt_prog_compiler_pic='-fPIC'
  8004. ;;
  8005. esac
  8006. case $cc_basename in
  8007. nvcc*) # Cuda Compiler Driver 2.2
  8008. lt_prog_compiler_wl='-Xlinker '
  8009. if test -n "$lt_prog_compiler_pic"; then
  8010. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8011. fi
  8012. ;;
  8013. esac
  8014. else
  8015. # PORTME Check for flag to pass linker flags through the system compiler.
  8016. case $host_os in
  8017. aix*)
  8018. lt_prog_compiler_wl='-Wl,'
  8019. if test ia64 = "$host_cpu"; then
  8020. # AIX 5 now supports IA64 processor
  8021. lt_prog_compiler_static='-Bstatic'
  8022. else
  8023. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8024. fi
  8025. ;;
  8026. darwin* | rhapsody*)
  8027. # PIC is the default on this platform
  8028. # Common symbols not allowed in MH_DYLIB files
  8029. lt_prog_compiler_pic='-fno-common'
  8030. case $cc_basename in
  8031. nagfor*)
  8032. # NAG Fortran compiler
  8033. lt_prog_compiler_wl='-Wl,-Wl,,'
  8034. lt_prog_compiler_pic='-PIC'
  8035. lt_prog_compiler_static='-Bstatic'
  8036. ;;
  8037. esac
  8038. ;;
  8039. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8040. # This hack is so that the source file can tell whether it is being
  8041. # built for inclusion in a dll (and should export symbols for example).
  8042. lt_prog_compiler_pic='-DDLL_EXPORT'
  8043. case $host_os in
  8044. os2*)
  8045. lt_prog_compiler_static='$wl-static'
  8046. ;;
  8047. esac
  8048. ;;
  8049. hpux9* | hpux10* | hpux11*)
  8050. lt_prog_compiler_wl='-Wl,'
  8051. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8052. # not for PA HP-UX.
  8053. case $host_cpu in
  8054. hppa*64*|ia64*)
  8055. # +Z the default
  8056. ;;
  8057. *)
  8058. lt_prog_compiler_pic='+Z'
  8059. ;;
  8060. esac
  8061. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8062. lt_prog_compiler_static='$wl-a ${wl}archive'
  8063. ;;
  8064. irix5* | irix6* | nonstopux*)
  8065. lt_prog_compiler_wl='-Wl,'
  8066. # PIC (with -KPIC) is the default.
  8067. lt_prog_compiler_static='-non_shared'
  8068. ;;
  8069. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8070. case $cc_basename in
  8071. # old Intel for x86_64, which still supported -KPIC.
  8072. ecc*)
  8073. lt_prog_compiler_wl='-Wl,'
  8074. lt_prog_compiler_pic='-KPIC'
  8075. lt_prog_compiler_static='-static'
  8076. ;;
  8077. # icc used to be incompatible with GCC.
  8078. # ICC 10 doesn't accept -KPIC any more.
  8079. icc* | ifort*)
  8080. lt_prog_compiler_wl='-Wl,'
  8081. lt_prog_compiler_pic='-fPIC'
  8082. lt_prog_compiler_static='-static'
  8083. ;;
  8084. # Lahey Fortran 8.1.
  8085. lf95*)
  8086. lt_prog_compiler_wl='-Wl,'
  8087. lt_prog_compiler_pic='--shared'
  8088. lt_prog_compiler_static='--static'
  8089. ;;
  8090. nagfor*)
  8091. # NAG Fortran compiler
  8092. lt_prog_compiler_wl='-Wl,-Wl,,'
  8093. lt_prog_compiler_pic='-PIC'
  8094. lt_prog_compiler_static='-Bstatic'
  8095. ;;
  8096. tcc*)
  8097. # Fabrice Bellard et al's Tiny C Compiler
  8098. lt_prog_compiler_wl='-Wl,'
  8099. lt_prog_compiler_pic='-fPIC'
  8100. lt_prog_compiler_static='-static'
  8101. ;;
  8102. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8103. # Portland Group compilers (*not* the Pentium gcc compiler,
  8104. # which looks to be a dead project)
  8105. lt_prog_compiler_wl='-Wl,'
  8106. lt_prog_compiler_pic='-fpic'
  8107. lt_prog_compiler_static='-Bstatic'
  8108. ;;
  8109. ccc*)
  8110. lt_prog_compiler_wl='-Wl,'
  8111. # All Alpha code is PIC.
  8112. lt_prog_compiler_static='-non_shared'
  8113. ;;
  8114. xl* | bgxl* | bgf* | mpixl*)
  8115. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8116. lt_prog_compiler_wl='-Wl,'
  8117. lt_prog_compiler_pic='-qpic'
  8118. lt_prog_compiler_static='-qstaticlink'
  8119. ;;
  8120. *)
  8121. case `$CC -V 2>&1 | sed 5q` in
  8122. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8123. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8124. lt_prog_compiler_pic='-KPIC'
  8125. lt_prog_compiler_static='-Bstatic'
  8126. lt_prog_compiler_wl=''
  8127. ;;
  8128. *Sun\ F* | *Sun*Fortran*)
  8129. lt_prog_compiler_pic='-KPIC'
  8130. lt_prog_compiler_static='-Bstatic'
  8131. lt_prog_compiler_wl='-Qoption ld '
  8132. ;;
  8133. *Sun\ C*)
  8134. # Sun C 5.9
  8135. lt_prog_compiler_pic='-KPIC'
  8136. lt_prog_compiler_static='-Bstatic'
  8137. lt_prog_compiler_wl='-Wl,'
  8138. ;;
  8139. *Intel*\ [CF]*Compiler*)
  8140. lt_prog_compiler_wl='-Wl,'
  8141. lt_prog_compiler_pic='-fPIC'
  8142. lt_prog_compiler_static='-static'
  8143. ;;
  8144. *Portland\ Group*)
  8145. lt_prog_compiler_wl='-Wl,'
  8146. lt_prog_compiler_pic='-fpic'
  8147. lt_prog_compiler_static='-Bstatic'
  8148. ;;
  8149. esac
  8150. ;;
  8151. esac
  8152. ;;
  8153. newsos6)
  8154. lt_prog_compiler_pic='-KPIC'
  8155. lt_prog_compiler_static='-Bstatic'
  8156. ;;
  8157. *nto* | *qnx*)
  8158. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8159. # it will coredump.
  8160. lt_prog_compiler_pic='-fPIC -shared'
  8161. ;;
  8162. osf3* | osf4* | osf5*)
  8163. lt_prog_compiler_wl='-Wl,'
  8164. # All OSF/1 code is PIC.
  8165. lt_prog_compiler_static='-non_shared'
  8166. ;;
  8167. rdos*)
  8168. lt_prog_compiler_static='-non_shared'
  8169. ;;
  8170. solaris*)
  8171. lt_prog_compiler_pic='-KPIC'
  8172. lt_prog_compiler_static='-Bstatic'
  8173. case $cc_basename in
  8174. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8175. lt_prog_compiler_wl='-Qoption ld ';;
  8176. *)
  8177. lt_prog_compiler_wl='-Wl,';;
  8178. esac
  8179. ;;
  8180. sunos4*)
  8181. lt_prog_compiler_wl='-Qoption ld '
  8182. lt_prog_compiler_pic='-PIC'
  8183. lt_prog_compiler_static='-Bstatic'
  8184. ;;
  8185. sysv4 | sysv4.2uw2* | sysv4.3*)
  8186. lt_prog_compiler_wl='-Wl,'
  8187. lt_prog_compiler_pic='-KPIC'
  8188. lt_prog_compiler_static='-Bstatic'
  8189. ;;
  8190. sysv4*MP*)
  8191. if test -d /usr/nec; then
  8192. lt_prog_compiler_pic='-Kconform_pic'
  8193. lt_prog_compiler_static='-Bstatic'
  8194. fi
  8195. ;;
  8196. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8197. lt_prog_compiler_wl='-Wl,'
  8198. lt_prog_compiler_pic='-KPIC'
  8199. lt_prog_compiler_static='-Bstatic'
  8200. ;;
  8201. unicos*)
  8202. lt_prog_compiler_wl='-Wl,'
  8203. lt_prog_compiler_can_build_shared=no
  8204. ;;
  8205. uts4*)
  8206. lt_prog_compiler_pic='-pic'
  8207. lt_prog_compiler_static='-Bstatic'
  8208. ;;
  8209. *)
  8210. lt_prog_compiler_can_build_shared=no
  8211. ;;
  8212. esac
  8213. fi
  8214. case $host_os in
  8215. # For platforms that do not support PIC, -DPIC is meaningless:
  8216. *djgpp*)
  8217. lt_prog_compiler_pic=
  8218. ;;
  8219. *)
  8220. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8221. ;;
  8222. esac
  8223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8224. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8225. if test ${lt_cv_prog_compiler_pic+y}
  8226. then :
  8227. printf %s "(cached) " >&6
  8228. else $as_nop
  8229. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8230. fi
  8231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8232. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8233. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8234. #
  8235. # Check to make sure the PIC flag actually works.
  8236. #
  8237. if test -n "$lt_prog_compiler_pic"; then
  8238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8239. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8240. if test ${lt_cv_prog_compiler_pic_works+y}
  8241. then :
  8242. printf %s "(cached) " >&6
  8243. else $as_nop
  8244. lt_cv_prog_compiler_pic_works=no
  8245. ac_outfile=conftest.$ac_objext
  8246. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8247. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8248. # Insert the option either (1) after the last *FLAGS variable, or
  8249. # (2) before a word containing "conftest.", or (3) at the end.
  8250. # Note that $ac_compile itself does not contain backslashes and begins
  8251. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8252. # The option is referenced via a variable to avoid confusing sed.
  8253. lt_compile=`echo "$ac_compile" | $SED \
  8254. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8255. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8256. -e 's:$: $lt_compiler_flag:'`
  8257. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8258. (eval "$lt_compile" 2>conftest.err)
  8259. ac_status=$?
  8260. cat conftest.err >&5
  8261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8262. if (exit $ac_status) && test -s "$ac_outfile"; then
  8263. # The compiler can only warn and ignore the option if not recognized
  8264. # So say no if there are warnings other than the usual output.
  8265. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8266. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8267. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8268. lt_cv_prog_compiler_pic_works=yes
  8269. fi
  8270. fi
  8271. $RM conftest*
  8272. fi
  8273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8274. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8275. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8276. case $lt_prog_compiler_pic in
  8277. "" | " "*) ;;
  8278. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8279. esac
  8280. else
  8281. lt_prog_compiler_pic=
  8282. lt_prog_compiler_can_build_shared=no
  8283. fi
  8284. fi
  8285. #
  8286. # Check to make sure the static flag actually works.
  8287. #
  8288. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8290. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8291. if test ${lt_cv_prog_compiler_static_works+y}
  8292. then :
  8293. printf %s "(cached) " >&6
  8294. else $as_nop
  8295. lt_cv_prog_compiler_static_works=no
  8296. save_LDFLAGS=$LDFLAGS
  8297. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8298. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8299. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8300. # The linker can only warn and ignore the option if not recognized
  8301. # So say no if there are warnings
  8302. if test -s conftest.err; then
  8303. # Append any errors to the config.log.
  8304. cat conftest.err 1>&5
  8305. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8306. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8307. if diff conftest.exp conftest.er2 >/dev/null; then
  8308. lt_cv_prog_compiler_static_works=yes
  8309. fi
  8310. else
  8311. lt_cv_prog_compiler_static_works=yes
  8312. fi
  8313. fi
  8314. $RM -r conftest*
  8315. LDFLAGS=$save_LDFLAGS
  8316. fi
  8317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8318. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8319. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8320. :
  8321. else
  8322. lt_prog_compiler_static=
  8323. fi
  8324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8325. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8326. if test ${lt_cv_prog_compiler_c_o+y}
  8327. then :
  8328. printf %s "(cached) " >&6
  8329. else $as_nop
  8330. lt_cv_prog_compiler_c_o=no
  8331. $RM -r conftest 2>/dev/null
  8332. mkdir conftest
  8333. cd conftest
  8334. mkdir out
  8335. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8336. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8337. # Insert the option either (1) after the last *FLAGS variable, or
  8338. # (2) before a word containing "conftest.", or (3) at the end.
  8339. # Note that $ac_compile itself does not contain backslashes and begins
  8340. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8341. lt_compile=`echo "$ac_compile" | $SED \
  8342. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8343. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8344. -e 's:$: $lt_compiler_flag:'`
  8345. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8346. (eval "$lt_compile" 2>out/conftest.err)
  8347. ac_status=$?
  8348. cat out/conftest.err >&5
  8349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8350. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8351. then
  8352. # The compiler can only warn and ignore the option if not recognized
  8353. # So say no if there are warnings
  8354. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8355. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8356. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8357. lt_cv_prog_compiler_c_o=yes
  8358. fi
  8359. fi
  8360. chmod u+w . 2>&5
  8361. $RM conftest*
  8362. # SGI C++ compiler will create directory out/ii_files/ for
  8363. # template instantiation
  8364. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8365. $RM out/* && rmdir out
  8366. cd ..
  8367. $RM -r conftest
  8368. $RM conftest*
  8369. fi
  8370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8371. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8373. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8374. if test ${lt_cv_prog_compiler_c_o+y}
  8375. then :
  8376. printf %s "(cached) " >&6
  8377. else $as_nop
  8378. lt_cv_prog_compiler_c_o=no
  8379. $RM -r conftest 2>/dev/null
  8380. mkdir conftest
  8381. cd conftest
  8382. mkdir out
  8383. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8384. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8385. # Insert the option either (1) after the last *FLAGS variable, or
  8386. # (2) before a word containing "conftest.", or (3) at the end.
  8387. # Note that $ac_compile itself does not contain backslashes and begins
  8388. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8389. lt_compile=`echo "$ac_compile" | $SED \
  8390. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8391. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8392. -e 's:$: $lt_compiler_flag:'`
  8393. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8394. (eval "$lt_compile" 2>out/conftest.err)
  8395. ac_status=$?
  8396. cat out/conftest.err >&5
  8397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8398. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8399. then
  8400. # The compiler can only warn and ignore the option if not recognized
  8401. # So say no if there are warnings
  8402. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8403. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8404. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8405. lt_cv_prog_compiler_c_o=yes
  8406. fi
  8407. fi
  8408. chmod u+w . 2>&5
  8409. $RM conftest*
  8410. # SGI C++ compiler will create directory out/ii_files/ for
  8411. # template instantiation
  8412. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8413. $RM out/* && rmdir out
  8414. cd ..
  8415. $RM -r conftest
  8416. $RM conftest*
  8417. fi
  8418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8419. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8420. hard_links=nottested
  8421. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8422. # do not overwrite the value of need_locks provided by the user
  8423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8424. printf %s "checking if we can lock with hard links... " >&6; }
  8425. hard_links=yes
  8426. $RM conftest*
  8427. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8428. touch conftest.a
  8429. ln conftest.a conftest.b 2>&5 || hard_links=no
  8430. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8432. printf "%s\n" "$hard_links" >&6; }
  8433. if test no = "$hard_links"; then
  8434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8435. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8436. need_locks=warn
  8437. fi
  8438. else
  8439. need_locks=no
  8440. fi
  8441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8442. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8443. runpath_var=
  8444. allow_undefined_flag=
  8445. always_export_symbols=no
  8446. archive_cmds=
  8447. archive_expsym_cmds=
  8448. compiler_needs_object=no
  8449. enable_shared_with_static_runtimes=no
  8450. export_dynamic_flag_spec=
  8451. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8452. hardcode_automatic=no
  8453. hardcode_direct=no
  8454. hardcode_direct_absolute=no
  8455. hardcode_libdir_flag_spec=
  8456. hardcode_libdir_separator=
  8457. hardcode_minus_L=no
  8458. hardcode_shlibpath_var=unsupported
  8459. inherit_rpath=no
  8460. link_all_deplibs=unknown
  8461. module_cmds=
  8462. module_expsym_cmds=
  8463. old_archive_from_new_cmds=
  8464. old_archive_from_expsyms_cmds=
  8465. thread_safe_flag_spec=
  8466. whole_archive_flag_spec=
  8467. # include_expsyms should be a list of space-separated symbols to be *always*
  8468. # included in the symbol list
  8469. include_expsyms=
  8470. # exclude_expsyms can be an extended regexp of symbols to exclude
  8471. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8472. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8473. # as well as any symbol that contains 'd'.
  8474. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8475. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8476. # platforms (ab)use it in PIC code, but their linkers get confused if
  8477. # the symbol is explicitly referenced. Since portable code cannot
  8478. # rely on this symbol name, it's probably fine to never include it in
  8479. # preloaded symbol tables.
  8480. # Exclude shared library initialization/finalization symbols.
  8481. extract_expsyms_cmds=
  8482. case $host_os in
  8483. cygwin* | mingw* | pw32* | cegcc*)
  8484. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8485. # When not using gcc, we currently assume that we are using
  8486. # Microsoft Visual C++.
  8487. if test yes != "$GCC"; then
  8488. with_gnu_ld=no
  8489. fi
  8490. ;;
  8491. interix*)
  8492. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8493. with_gnu_ld=yes
  8494. ;;
  8495. openbsd* | bitrig*)
  8496. with_gnu_ld=no
  8497. ;;
  8498. esac
  8499. ld_shlibs=yes
  8500. # On some targets, GNU ld is compatible enough with the native linker
  8501. # that we're better off using the native interface for both.
  8502. lt_use_gnu_ld_interface=no
  8503. if test yes = "$with_gnu_ld"; then
  8504. case $host_os in
  8505. aix*)
  8506. # The AIX port of GNU ld has always aspired to compatibility
  8507. # with the native linker. However, as the warning in the GNU ld
  8508. # block says, versions before 2.19.5* couldn't really create working
  8509. # shared libraries, regardless of the interface used.
  8510. case `$LD -v 2>&1` in
  8511. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8512. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8513. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8514. *)
  8515. lt_use_gnu_ld_interface=yes
  8516. ;;
  8517. esac
  8518. ;;
  8519. *)
  8520. lt_use_gnu_ld_interface=yes
  8521. ;;
  8522. esac
  8523. fi
  8524. if test yes = "$lt_use_gnu_ld_interface"; then
  8525. # If archive_cmds runs LD, not CC, wlarc should be empty
  8526. wlarc='$wl'
  8527. # Set some defaults for GNU ld with shared library support. These
  8528. # are reset later if shared libraries are not supported. Putting them
  8529. # here allows them to be overridden if necessary.
  8530. runpath_var=LD_RUN_PATH
  8531. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8532. export_dynamic_flag_spec='$wl--export-dynamic'
  8533. # ancient GNU ld didn't support --whole-archive et. al.
  8534. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8535. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8536. else
  8537. whole_archive_flag_spec=
  8538. fi
  8539. supports_anon_versioning=no
  8540. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8541. *GNU\ gold*) supports_anon_versioning=yes ;;
  8542. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8543. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8544. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8545. *\ 2.11.*) ;; # other 2.11 versions
  8546. *) supports_anon_versioning=yes ;;
  8547. esac
  8548. # See if GNU ld supports shared libraries.
  8549. case $host_os in
  8550. aix[3-9]*)
  8551. # On AIX/PPC, the GNU linker is very broken
  8552. if test ia64 != "$host_cpu"; then
  8553. ld_shlibs=no
  8554. cat <<_LT_EOF 1>&2
  8555. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8556. *** to be unable to reliably create shared libraries on AIX.
  8557. *** Therefore, libtool is disabling shared libraries support. If you
  8558. *** really care for shared libraries, you may want to install binutils
  8559. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8560. *** You will then need to restart the configuration process.
  8561. _LT_EOF
  8562. fi
  8563. ;;
  8564. amigaos*)
  8565. case $host_cpu in
  8566. powerpc)
  8567. # see comment about AmigaOS4 .so support
  8568. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8569. archive_expsym_cmds=''
  8570. ;;
  8571. m68k)
  8572. 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)'
  8573. hardcode_libdir_flag_spec='-L$libdir'
  8574. hardcode_minus_L=yes
  8575. ;;
  8576. esac
  8577. ;;
  8578. beos*)
  8579. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8580. allow_undefined_flag=unsupported
  8581. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8582. # support --undefined. This deserves some investigation. FIXME
  8583. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8584. else
  8585. ld_shlibs=no
  8586. fi
  8587. ;;
  8588. cygwin* | mingw* | pw32* | cegcc*)
  8589. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8590. # as there is no search path for DLLs.
  8591. hardcode_libdir_flag_spec='-L$libdir'
  8592. export_dynamic_flag_spec='$wl--export-all-symbols'
  8593. allow_undefined_flag=unsupported
  8594. always_export_symbols=no
  8595. enable_shared_with_static_runtimes=yes
  8596. 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'
  8597. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8598. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8599. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8600. # If the export-symbols file already is a .def file, use it as
  8601. # is; otherwise, prepend EXPORTS...
  8602. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8603. cp $export_symbols $output_objdir/$soname.def;
  8604. else
  8605. echo EXPORTS > $output_objdir/$soname.def;
  8606. cat $export_symbols >> $output_objdir/$soname.def;
  8607. fi~
  8608. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8609. else
  8610. ld_shlibs=no
  8611. fi
  8612. ;;
  8613. haiku*)
  8614. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8615. link_all_deplibs=yes
  8616. ;;
  8617. os2*)
  8618. hardcode_libdir_flag_spec='-L$libdir'
  8619. hardcode_minus_L=yes
  8620. allow_undefined_flag=unsupported
  8621. shrext_cmds=.dll
  8622. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8623. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8624. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8625. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8626. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8627. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8628. emximp -o $lib $output_objdir/$libname.def'
  8629. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8630. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8631. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8632. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8633. prefix_cmds="$SED"~
  8634. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8635. prefix_cmds="$prefix_cmds -e 1d";
  8636. fi~
  8637. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8638. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8639. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8640. emximp -o $lib $output_objdir/$libname.def'
  8641. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8642. enable_shared_with_static_runtimes=yes
  8643. file_list_spec='@'
  8644. ;;
  8645. interix[3-9]*)
  8646. hardcode_direct=no
  8647. hardcode_shlibpath_var=no
  8648. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8649. export_dynamic_flag_spec='$wl-E'
  8650. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8651. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8652. # default) and relocated if they conflict, which is a slow very memory
  8653. # consuming and fragmenting process. To avoid this, we pick a random,
  8654. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8655. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8656. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8657. 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'
  8658. ;;
  8659. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8660. tmp_diet=no
  8661. if test linux-dietlibc = "$host_os"; then
  8662. case $cc_basename in
  8663. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8664. esac
  8665. fi
  8666. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8667. && test no = "$tmp_diet"
  8668. then
  8669. tmp_addflag=' $pic_flag'
  8670. tmp_sharedflag='-shared'
  8671. case $cc_basename,$host_cpu in
  8672. pgcc*) # Portland Group C compiler
  8673. 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'
  8674. tmp_addflag=' $pic_flag'
  8675. ;;
  8676. pgf77* | pgf90* | pgf95* | pgfortran*)
  8677. # Portland Group f77 and f90 compilers
  8678. 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'
  8679. tmp_addflag=' $pic_flag -Mnomain' ;;
  8680. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8681. tmp_addflag=' -i_dynamic' ;;
  8682. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8683. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8684. ifc* | ifort*) # Intel Fortran compiler
  8685. tmp_addflag=' -nofor_main' ;;
  8686. lf95*) # Lahey Fortran 8.1
  8687. whole_archive_flag_spec=
  8688. tmp_sharedflag='--shared' ;;
  8689. nagfor*) # NAGFOR 5.3
  8690. tmp_sharedflag='-Wl,-shared' ;;
  8691. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8692. tmp_sharedflag='-qmkshrobj'
  8693. tmp_addflag= ;;
  8694. nvcc*) # Cuda Compiler Driver 2.2
  8695. 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'
  8696. compiler_needs_object=yes
  8697. ;;
  8698. esac
  8699. case `$CC -V 2>&1 | sed 5q` in
  8700. *Sun\ C*) # Sun C 5.9
  8701. 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'
  8702. compiler_needs_object=yes
  8703. tmp_sharedflag='-G' ;;
  8704. *Sun\ F*) # Sun Fortran 8.3
  8705. tmp_sharedflag='-G' ;;
  8706. esac
  8707. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8708. if test yes = "$supports_anon_versioning"; then
  8709. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8710. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8711. echo "local: *; };" >> $output_objdir/$libname.ver~
  8712. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8713. fi
  8714. case $cc_basename in
  8715. tcc*)
  8716. export_dynamic_flag_spec='-rdynamic'
  8717. ;;
  8718. xlf* | bgf* | bgxlf* | mpixlf*)
  8719. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8720. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8721. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8722. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8723. if test yes = "$supports_anon_versioning"; then
  8724. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8725. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8726. echo "local: *; };" >> $output_objdir/$libname.ver~
  8727. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8728. fi
  8729. ;;
  8730. esac
  8731. else
  8732. ld_shlibs=no
  8733. fi
  8734. ;;
  8735. netbsd*)
  8736. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8737. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8738. wlarc=
  8739. else
  8740. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8741. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8742. fi
  8743. ;;
  8744. solaris*)
  8745. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8746. ld_shlibs=no
  8747. cat <<_LT_EOF 1>&2
  8748. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8749. *** create shared libraries on Solaris systems. Therefore, libtool
  8750. *** is disabling shared libraries support. We urge you to upgrade GNU
  8751. *** binutils to release 2.9.1 or newer. Another option is to modify
  8752. *** your PATH or compiler configuration so that the native linker is
  8753. *** used, and then restart.
  8754. _LT_EOF
  8755. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8756. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8757. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8758. else
  8759. ld_shlibs=no
  8760. fi
  8761. ;;
  8762. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8763. case `$LD -v 2>&1` in
  8764. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8765. ld_shlibs=no
  8766. cat <<_LT_EOF 1>&2
  8767. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8768. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8769. *** is disabling shared libraries support. We urge you to upgrade GNU
  8770. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8771. *** your PATH or compiler configuration so that the native linker is
  8772. *** used, and then restart.
  8773. _LT_EOF
  8774. ;;
  8775. *)
  8776. # For security reasons, it is highly recommended that you always
  8777. # use absolute paths for naming shared libraries, and exclude the
  8778. # DT_RUNPATH tag from executables and libraries. But doing so
  8779. # requires that you compile everything twice, which is a pain.
  8780. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8781. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8782. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8783. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8784. else
  8785. ld_shlibs=no
  8786. fi
  8787. ;;
  8788. esac
  8789. ;;
  8790. sunos4*)
  8791. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8792. wlarc=
  8793. hardcode_direct=yes
  8794. hardcode_shlibpath_var=no
  8795. ;;
  8796. *)
  8797. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8798. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8799. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8800. else
  8801. ld_shlibs=no
  8802. fi
  8803. ;;
  8804. esac
  8805. if test no = "$ld_shlibs"; then
  8806. runpath_var=
  8807. hardcode_libdir_flag_spec=
  8808. export_dynamic_flag_spec=
  8809. whole_archive_flag_spec=
  8810. fi
  8811. else
  8812. # PORTME fill in a description of your system's linker (not GNU ld)
  8813. case $host_os in
  8814. aix3*)
  8815. allow_undefined_flag=unsupported
  8816. always_export_symbols=yes
  8817. 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'
  8818. # Note: this linker hardcodes the directories in LIBPATH if there
  8819. # are no directories specified by -L.
  8820. hardcode_minus_L=yes
  8821. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8822. # Neither direct hardcoding nor static linking is supported with a
  8823. # broken collect2.
  8824. hardcode_direct=unsupported
  8825. fi
  8826. ;;
  8827. aix[4-9]*)
  8828. if test ia64 = "$host_cpu"; then
  8829. # On IA64, the linker does run time linking by default, so we don't
  8830. # have to do anything special.
  8831. aix_use_runtimelinking=no
  8832. exp_sym_flag='-Bexport'
  8833. no_entry_flag=
  8834. else
  8835. # If we're using GNU nm, then we don't want the "-C" option.
  8836. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8837. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8838. # weak defined symbols like other global defined symbols, whereas
  8839. # GNU nm marks them as "W".
  8840. # While the 'weak' keyword is ignored in the Export File, we need
  8841. # it in the Import File for the 'aix-soname' feature, so we have
  8842. # to replace the "-B" option with "-P" for AIX nm.
  8843. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8844. 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'
  8845. else
  8846. 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'
  8847. fi
  8848. aix_use_runtimelinking=no
  8849. # Test if we are trying to use run time linking or normal
  8850. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8851. # have runtime linking enabled, and use it for executables.
  8852. # For shared libraries, we enable/disable runtime linking
  8853. # depending on the kind of the shared library created -
  8854. # when "with_aix_soname,aix_use_runtimelinking" is:
  8855. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8856. # "aix,yes" lib.so shared, rtl:yes, for executables
  8857. # lib.a static archive
  8858. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8859. # lib.a(lib.so.V) shared, rtl:no, for executables
  8860. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8861. # lib.a(lib.so.V) shared, rtl:no
  8862. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8863. # lib.a static archive
  8864. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8865. for ld_flag in $LDFLAGS; do
  8866. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8867. aix_use_runtimelinking=yes
  8868. break
  8869. fi
  8870. done
  8871. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8872. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8873. # so we don't have lib.a shared libs to link our executables.
  8874. # We have to force runtime linking in this case.
  8875. aix_use_runtimelinking=yes
  8876. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8877. fi
  8878. ;;
  8879. esac
  8880. exp_sym_flag='-bexport'
  8881. no_entry_flag='-bnoentry'
  8882. fi
  8883. # When large executables or shared objects are built, AIX ld can
  8884. # have problems creating the table of contents. If linking a library
  8885. # or program results in "error TOC overflow" add -mminimal-toc to
  8886. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8887. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8888. archive_cmds=''
  8889. hardcode_direct=yes
  8890. hardcode_direct_absolute=yes
  8891. hardcode_libdir_separator=':'
  8892. link_all_deplibs=yes
  8893. file_list_spec='$wl-f,'
  8894. case $with_aix_soname,$aix_use_runtimelinking in
  8895. aix,*) ;; # traditional, no import file
  8896. svr4,* | *,yes) # use import file
  8897. # The Import File defines what to hardcode.
  8898. hardcode_direct=no
  8899. hardcode_direct_absolute=no
  8900. ;;
  8901. esac
  8902. if test yes = "$GCC"; then
  8903. case $host_os in aix4.[012]|aix4.[012].*)
  8904. # We only want to do this on AIX 4.2 and lower, the check
  8905. # below for broken collect2 doesn't work under 4.3+
  8906. collect2name=`$CC -print-prog-name=collect2`
  8907. if test -f "$collect2name" &&
  8908. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8909. then
  8910. # We have reworked collect2
  8911. :
  8912. else
  8913. # We have old collect2
  8914. hardcode_direct=unsupported
  8915. # It fails to find uninstalled libraries when the uninstalled
  8916. # path is not listed in the libpath. Setting hardcode_minus_L
  8917. # to unsupported forces relinking
  8918. hardcode_minus_L=yes
  8919. hardcode_libdir_flag_spec='-L$libdir'
  8920. hardcode_libdir_separator=
  8921. fi
  8922. ;;
  8923. esac
  8924. shared_flag='-shared'
  8925. if test yes = "$aix_use_runtimelinking"; then
  8926. shared_flag="$shared_flag "'$wl-G'
  8927. fi
  8928. # Need to ensure runtime linking is disabled for the traditional
  8929. # shared library, or the linker may eventually find shared libraries
  8930. # /with/ Import File - we do not want to mix them.
  8931. shared_flag_aix='-shared'
  8932. shared_flag_svr4='-shared $wl-G'
  8933. else
  8934. # not using gcc
  8935. if test ia64 = "$host_cpu"; then
  8936. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8937. # chokes on -Wl,-G. The following line is correct:
  8938. shared_flag='-G'
  8939. else
  8940. if test yes = "$aix_use_runtimelinking"; then
  8941. shared_flag='$wl-G'
  8942. else
  8943. shared_flag='$wl-bM:SRE'
  8944. fi
  8945. shared_flag_aix='$wl-bM:SRE'
  8946. shared_flag_svr4='$wl-G'
  8947. fi
  8948. fi
  8949. export_dynamic_flag_spec='$wl-bexpall'
  8950. # It seems that -bexpall does not export symbols beginning with
  8951. # underscore (_), so it is better to generate a list of symbols to export.
  8952. always_export_symbols=yes
  8953. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8954. # Warning - without using the other runtime loading flags (-brtl),
  8955. # -berok will link without error, but may produce a broken library.
  8956. allow_undefined_flag='-berok'
  8957. # Determine the default libpath from the value encoded in an
  8958. # empty executable.
  8959. if test set = "${lt_cv_aix_libpath+set}"; then
  8960. aix_libpath=$lt_cv_aix_libpath
  8961. else
  8962. if test ${lt_cv_aix_libpath_+y}
  8963. then :
  8964. printf %s "(cached) " >&6
  8965. else $as_nop
  8966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8967. /* end confdefs.h. */
  8968. int
  8969. main (void)
  8970. {
  8971. ;
  8972. return 0;
  8973. }
  8974. _ACEOF
  8975. if ac_fn_c_try_link "$LINENO"
  8976. then :
  8977. lt_aix_libpath_sed='
  8978. /Import File Strings/,/^$/ {
  8979. /^0/ {
  8980. s/^0 *\([^ ]*\) *$/\1/
  8981. p
  8982. }
  8983. }'
  8984. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8985. # Check for a 64-bit object if we didn't find anything.
  8986. if test -z "$lt_cv_aix_libpath_"; then
  8987. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8988. fi
  8989. fi
  8990. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8991. conftest$ac_exeext conftest.$ac_ext
  8992. if test -z "$lt_cv_aix_libpath_"; then
  8993. lt_cv_aix_libpath_=/usr/lib:/lib
  8994. fi
  8995. fi
  8996. aix_libpath=$lt_cv_aix_libpath_
  8997. fi
  8998. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8999. 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
  9000. else
  9001. if test ia64 = "$host_cpu"; then
  9002. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9003. allow_undefined_flag="-z nodefs"
  9004. 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"
  9005. else
  9006. # Determine the default libpath from the value encoded in an
  9007. # empty executable.
  9008. if test set = "${lt_cv_aix_libpath+set}"; then
  9009. aix_libpath=$lt_cv_aix_libpath
  9010. else
  9011. if test ${lt_cv_aix_libpath_+y}
  9012. then :
  9013. printf %s "(cached) " >&6
  9014. else $as_nop
  9015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9016. /* end confdefs.h. */
  9017. int
  9018. main (void)
  9019. {
  9020. ;
  9021. return 0;
  9022. }
  9023. _ACEOF
  9024. if ac_fn_c_try_link "$LINENO"
  9025. then :
  9026. lt_aix_libpath_sed='
  9027. /Import File Strings/,/^$/ {
  9028. /^0/ {
  9029. s/^0 *\([^ ]*\) *$/\1/
  9030. p
  9031. }
  9032. }'
  9033. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9034. # Check for a 64-bit object if we didn't find anything.
  9035. if test -z "$lt_cv_aix_libpath_"; then
  9036. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9037. fi
  9038. fi
  9039. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9040. conftest$ac_exeext conftest.$ac_ext
  9041. if test -z "$lt_cv_aix_libpath_"; then
  9042. lt_cv_aix_libpath_=/usr/lib:/lib
  9043. fi
  9044. fi
  9045. aix_libpath=$lt_cv_aix_libpath_
  9046. fi
  9047. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9048. # Warning - without using the other run time loading flags,
  9049. # -berok will link without error, but may produce a broken library.
  9050. no_undefined_flag=' $wl-bernotok'
  9051. allow_undefined_flag=' $wl-berok'
  9052. if test yes = "$with_gnu_ld"; then
  9053. # We only use this code for GNU lds that support --whole-archive.
  9054. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9055. else
  9056. # Exported symbols can be pulled into shared objects from archives
  9057. whole_archive_flag_spec='$convenience'
  9058. fi
  9059. archive_cmds_need_lc=yes
  9060. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9061. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9062. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9063. if test svr4 != "$with_aix_soname"; then
  9064. # This is similar to how AIX traditionally builds its shared libraries.
  9065. 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'
  9066. fi
  9067. if test aix != "$with_aix_soname"; then
  9068. 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'
  9069. else
  9070. # used by -dlpreopen to get the symbols
  9071. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9072. fi
  9073. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9074. fi
  9075. fi
  9076. ;;
  9077. amigaos*)
  9078. case $host_cpu in
  9079. powerpc)
  9080. # see comment about AmigaOS4 .so support
  9081. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9082. archive_expsym_cmds=''
  9083. ;;
  9084. m68k)
  9085. 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)'
  9086. hardcode_libdir_flag_spec='-L$libdir'
  9087. hardcode_minus_L=yes
  9088. ;;
  9089. esac
  9090. ;;
  9091. bsdi[45]*)
  9092. export_dynamic_flag_spec=-rdynamic
  9093. ;;
  9094. cygwin* | mingw* | pw32* | cegcc*)
  9095. # When not using gcc, we currently assume that we are using
  9096. # Microsoft Visual C++.
  9097. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9098. # no search path for DLLs.
  9099. case $cc_basename in
  9100. cl*)
  9101. # Native MSVC
  9102. hardcode_libdir_flag_spec=' '
  9103. allow_undefined_flag=unsupported
  9104. always_export_symbols=yes
  9105. file_list_spec='@'
  9106. # Tell ltmain to make .lib files, not .a files.
  9107. libext=lib
  9108. # Tell ltmain to make .dll files, not .so files.
  9109. shrext_cmds=.dll
  9110. # FIXME: Setting linknames here is a bad hack.
  9111. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9112. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9113. cp "$export_symbols" "$output_objdir/$soname.def";
  9114. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9115. else
  9116. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9117. fi~
  9118. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9119. linknames='
  9120. # The linker will not automatically build a static lib if we build a DLL.
  9121. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9122. enable_shared_with_static_runtimes=yes
  9123. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9124. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9125. # Don't use ranlib
  9126. old_postinstall_cmds='chmod 644 $oldlib'
  9127. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9128. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9129. case $lt_outputfile in
  9130. *.exe|*.EXE) ;;
  9131. *)
  9132. lt_outputfile=$lt_outputfile.exe
  9133. lt_tool_outputfile=$lt_tool_outputfile.exe
  9134. ;;
  9135. esac~
  9136. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9137. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9138. $RM "$lt_outputfile.manifest";
  9139. fi'
  9140. ;;
  9141. *)
  9142. # Assume MSVC wrapper
  9143. hardcode_libdir_flag_spec=' '
  9144. allow_undefined_flag=unsupported
  9145. # Tell ltmain to make .lib files, not .a files.
  9146. libext=lib
  9147. # Tell ltmain to make .dll files, not .so files.
  9148. shrext_cmds=.dll
  9149. # FIXME: Setting linknames here is a bad hack.
  9150. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9151. # The linker will automatically build a .lib file if we build a DLL.
  9152. old_archive_from_new_cmds='true'
  9153. # FIXME: Should let the user specify the lib program.
  9154. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9155. enable_shared_with_static_runtimes=yes
  9156. ;;
  9157. esac
  9158. ;;
  9159. darwin* | rhapsody*)
  9160. archive_cmds_need_lc=no
  9161. hardcode_direct=no
  9162. hardcode_automatic=yes
  9163. hardcode_shlibpath_var=unsupported
  9164. if test yes = "$lt_cv_ld_force_load"; then
  9165. 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\"`'
  9166. else
  9167. whole_archive_flag_spec=''
  9168. fi
  9169. link_all_deplibs=yes
  9170. allow_undefined_flag=$_lt_dar_allow_undefined
  9171. case $cc_basename in
  9172. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9173. *) _lt_dar_can_shared=$GCC ;;
  9174. esac
  9175. if test yes = "$_lt_dar_can_shared"; then
  9176. output_verbose_link_cmd=func_echo_all
  9177. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9178. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9179. 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"
  9180. 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"
  9181. else
  9182. ld_shlibs=no
  9183. fi
  9184. ;;
  9185. dgux*)
  9186. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9187. hardcode_libdir_flag_spec='-L$libdir'
  9188. hardcode_shlibpath_var=no
  9189. ;;
  9190. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9191. # support. Future versions do this automatically, but an explicit c++rt0.o
  9192. # does not break anything, and helps significantly (at the cost of a little
  9193. # extra space).
  9194. freebsd2.2*)
  9195. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9196. hardcode_libdir_flag_spec='-R$libdir'
  9197. hardcode_direct=yes
  9198. hardcode_shlibpath_var=no
  9199. ;;
  9200. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9201. freebsd2.*)
  9202. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9203. hardcode_direct=yes
  9204. hardcode_minus_L=yes
  9205. hardcode_shlibpath_var=no
  9206. ;;
  9207. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9208. freebsd* | dragonfly* | midnightbsd*)
  9209. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9210. hardcode_libdir_flag_spec='-R$libdir'
  9211. hardcode_direct=yes
  9212. hardcode_shlibpath_var=no
  9213. ;;
  9214. hpux9*)
  9215. if test yes = "$GCC"; then
  9216. 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'
  9217. else
  9218. 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'
  9219. fi
  9220. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9221. hardcode_libdir_separator=:
  9222. hardcode_direct=yes
  9223. # hardcode_minus_L: Not really in the search PATH,
  9224. # but as the default location of the library.
  9225. hardcode_minus_L=yes
  9226. export_dynamic_flag_spec='$wl-E'
  9227. ;;
  9228. hpux10*)
  9229. if test yes,no = "$GCC,$with_gnu_ld"; then
  9230. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9231. else
  9232. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9233. fi
  9234. if test no = "$with_gnu_ld"; then
  9235. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9236. hardcode_libdir_separator=:
  9237. hardcode_direct=yes
  9238. hardcode_direct_absolute=yes
  9239. export_dynamic_flag_spec='$wl-E'
  9240. # hardcode_minus_L: Not really in the search PATH,
  9241. # but as the default location of the library.
  9242. hardcode_minus_L=yes
  9243. fi
  9244. ;;
  9245. hpux11*)
  9246. if test yes,no = "$GCC,$with_gnu_ld"; then
  9247. case $host_cpu in
  9248. hppa*64*)
  9249. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9250. ;;
  9251. ia64*)
  9252. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9253. ;;
  9254. *)
  9255. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9256. ;;
  9257. esac
  9258. else
  9259. case $host_cpu in
  9260. hppa*64*)
  9261. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9262. ;;
  9263. ia64*)
  9264. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9265. ;;
  9266. *)
  9267. # Older versions of the 11.00 compiler do not understand -b yet
  9268. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9270. printf %s "checking if $CC understands -b... " >&6; }
  9271. if test ${lt_cv_prog_compiler__b+y}
  9272. then :
  9273. printf %s "(cached) " >&6
  9274. else $as_nop
  9275. lt_cv_prog_compiler__b=no
  9276. save_LDFLAGS=$LDFLAGS
  9277. LDFLAGS="$LDFLAGS -b"
  9278. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9279. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9280. # The linker can only warn and ignore the option if not recognized
  9281. # So say no if there are warnings
  9282. if test -s conftest.err; then
  9283. # Append any errors to the config.log.
  9284. cat conftest.err 1>&5
  9285. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9286. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9287. if diff conftest.exp conftest.er2 >/dev/null; then
  9288. lt_cv_prog_compiler__b=yes
  9289. fi
  9290. else
  9291. lt_cv_prog_compiler__b=yes
  9292. fi
  9293. fi
  9294. $RM -r conftest*
  9295. LDFLAGS=$save_LDFLAGS
  9296. fi
  9297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9298. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9299. if test yes = "$lt_cv_prog_compiler__b"; then
  9300. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9301. else
  9302. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9303. fi
  9304. ;;
  9305. esac
  9306. fi
  9307. if test no = "$with_gnu_ld"; then
  9308. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9309. hardcode_libdir_separator=:
  9310. case $host_cpu in
  9311. hppa*64*|ia64*)
  9312. hardcode_direct=no
  9313. hardcode_shlibpath_var=no
  9314. ;;
  9315. *)
  9316. hardcode_direct=yes
  9317. hardcode_direct_absolute=yes
  9318. export_dynamic_flag_spec='$wl-E'
  9319. # hardcode_minus_L: Not really in the search PATH,
  9320. # but as the default location of the library.
  9321. hardcode_minus_L=yes
  9322. ;;
  9323. esac
  9324. fi
  9325. ;;
  9326. irix5* | irix6* | nonstopux*)
  9327. if test yes = "$GCC"; then
  9328. 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'
  9329. # Try to use the -exported_symbol ld option, if it does not
  9330. # work, assume that -exports_file does not work either and
  9331. # implicitly export all symbols.
  9332. # This should be the same for all languages, so no per-tag cache variable.
  9333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9334. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9335. if test ${lt_cv_irix_exported_symbol+y}
  9336. then :
  9337. printf %s "(cached) " >&6
  9338. else $as_nop
  9339. save_LDFLAGS=$LDFLAGS
  9340. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9342. /* end confdefs.h. */
  9343. int foo (void) { return 0; }
  9344. _ACEOF
  9345. if ac_fn_c_try_link "$LINENO"
  9346. then :
  9347. lt_cv_irix_exported_symbol=yes
  9348. else $as_nop
  9349. lt_cv_irix_exported_symbol=no
  9350. fi
  9351. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9352. conftest$ac_exeext conftest.$ac_ext
  9353. LDFLAGS=$save_LDFLAGS
  9354. fi
  9355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9356. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9357. if test yes = "$lt_cv_irix_exported_symbol"; then
  9358. 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'
  9359. fi
  9360. else
  9361. 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'
  9362. 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'
  9363. fi
  9364. archive_cmds_need_lc='no'
  9365. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9366. hardcode_libdir_separator=:
  9367. inherit_rpath=yes
  9368. link_all_deplibs=yes
  9369. ;;
  9370. linux*)
  9371. case $cc_basename in
  9372. tcc*)
  9373. # Fabrice Bellard et al's Tiny C Compiler
  9374. ld_shlibs=yes
  9375. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9376. ;;
  9377. esac
  9378. ;;
  9379. netbsd*)
  9380. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9381. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9382. else
  9383. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9384. fi
  9385. hardcode_libdir_flag_spec='-R$libdir'
  9386. hardcode_direct=yes
  9387. hardcode_shlibpath_var=no
  9388. ;;
  9389. newsos6)
  9390. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9391. hardcode_direct=yes
  9392. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9393. hardcode_libdir_separator=:
  9394. hardcode_shlibpath_var=no
  9395. ;;
  9396. *nto* | *qnx*)
  9397. ;;
  9398. openbsd* | bitrig*)
  9399. if test -f /usr/libexec/ld.so; then
  9400. hardcode_direct=yes
  9401. hardcode_shlibpath_var=no
  9402. hardcode_direct_absolute=yes
  9403. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9404. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9405. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9406. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9407. export_dynamic_flag_spec='$wl-E'
  9408. else
  9409. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9410. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9411. fi
  9412. else
  9413. ld_shlibs=no
  9414. fi
  9415. ;;
  9416. os2*)
  9417. hardcode_libdir_flag_spec='-L$libdir'
  9418. hardcode_minus_L=yes
  9419. allow_undefined_flag=unsupported
  9420. shrext_cmds=.dll
  9421. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9422. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9423. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9424. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9425. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9426. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9427. emximp -o $lib $output_objdir/$libname.def'
  9428. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9429. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9430. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9431. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9432. prefix_cmds="$SED"~
  9433. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9434. prefix_cmds="$prefix_cmds -e 1d";
  9435. fi~
  9436. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9437. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9438. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9439. emximp -o $lib $output_objdir/$libname.def'
  9440. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9441. enable_shared_with_static_runtimes=yes
  9442. file_list_spec='@'
  9443. ;;
  9444. osf3*)
  9445. if test yes = "$GCC"; then
  9446. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9447. 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'
  9448. else
  9449. allow_undefined_flag=' -expect_unresolved \*'
  9450. 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'
  9451. fi
  9452. archive_cmds_need_lc='no'
  9453. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9454. hardcode_libdir_separator=:
  9455. ;;
  9456. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9457. if test yes = "$GCC"; then
  9458. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9459. 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'
  9460. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9461. else
  9462. allow_undefined_flag=' -expect_unresolved \*'
  9463. 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'
  9464. 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~
  9465. $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'
  9466. # Both c and cxx compiler support -rpath directly
  9467. hardcode_libdir_flag_spec='-rpath $libdir'
  9468. fi
  9469. archive_cmds_need_lc='no'
  9470. hardcode_libdir_separator=:
  9471. ;;
  9472. solaris*)
  9473. no_undefined_flag=' -z defs'
  9474. if test yes = "$GCC"; then
  9475. wlarc='$wl'
  9476. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9477. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9478. $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'
  9479. else
  9480. case `$CC -V 2>&1` in
  9481. *"Compilers 5.0"*)
  9482. wlarc=''
  9483. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9484. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9485. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9486. ;;
  9487. *)
  9488. wlarc='$wl'
  9489. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9490. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9491. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9492. ;;
  9493. esac
  9494. fi
  9495. hardcode_libdir_flag_spec='-R$libdir'
  9496. hardcode_shlibpath_var=no
  9497. case $host_os in
  9498. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9499. *)
  9500. # The compiler driver will combine and reorder linker options,
  9501. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9502. # but is careful enough not to reorder.
  9503. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9504. if test yes = "$GCC"; then
  9505. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9506. else
  9507. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9508. fi
  9509. ;;
  9510. esac
  9511. link_all_deplibs=yes
  9512. ;;
  9513. sunos4*)
  9514. if test sequent = "$host_vendor"; then
  9515. # Use $CC to link under sequent, because it throws in some extra .o
  9516. # files that make .init and .fini sections work.
  9517. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9518. else
  9519. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9520. fi
  9521. hardcode_libdir_flag_spec='-L$libdir'
  9522. hardcode_direct=yes
  9523. hardcode_minus_L=yes
  9524. hardcode_shlibpath_var=no
  9525. ;;
  9526. sysv4)
  9527. case $host_vendor in
  9528. sni)
  9529. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9530. hardcode_direct=yes # is this really true???
  9531. ;;
  9532. siemens)
  9533. ## LD is ld it makes a PLAMLIB
  9534. ## CC just makes a GrossModule.
  9535. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9536. reload_cmds='$CC -r -o $output$reload_objs'
  9537. hardcode_direct=no
  9538. ;;
  9539. motorola)
  9540. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9541. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9542. ;;
  9543. esac
  9544. runpath_var='LD_RUN_PATH'
  9545. hardcode_shlibpath_var=no
  9546. ;;
  9547. sysv4.3*)
  9548. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9549. hardcode_shlibpath_var=no
  9550. export_dynamic_flag_spec='-Bexport'
  9551. ;;
  9552. sysv4*MP*)
  9553. if test -d /usr/nec; then
  9554. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9555. hardcode_shlibpath_var=no
  9556. runpath_var=LD_RUN_PATH
  9557. hardcode_runpath_var=yes
  9558. ld_shlibs=yes
  9559. fi
  9560. ;;
  9561. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9562. no_undefined_flag='$wl-z,text'
  9563. archive_cmds_need_lc=no
  9564. hardcode_shlibpath_var=no
  9565. runpath_var='LD_RUN_PATH'
  9566. if test yes = "$GCC"; then
  9567. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9568. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9569. else
  9570. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9571. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9572. fi
  9573. ;;
  9574. sysv5* | sco3.2v5* | sco5v6*)
  9575. # Note: We CANNOT use -z defs as we might desire, because we do not
  9576. # link with -lc, and that would cause any symbols used from libc to
  9577. # always be unresolved, which means just about no library would
  9578. # ever link correctly. If we're not using GNU ld we use -z text
  9579. # though, which does catch some bad symbols but isn't as heavy-handed
  9580. # as -z defs.
  9581. no_undefined_flag='$wl-z,text'
  9582. allow_undefined_flag='$wl-z,nodefs'
  9583. archive_cmds_need_lc=no
  9584. hardcode_shlibpath_var=no
  9585. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9586. hardcode_libdir_separator=':'
  9587. link_all_deplibs=yes
  9588. export_dynamic_flag_spec='$wl-Bexport'
  9589. runpath_var='LD_RUN_PATH'
  9590. if test yes = "$GCC"; then
  9591. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9592. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9593. else
  9594. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9595. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9596. fi
  9597. ;;
  9598. uts4*)
  9599. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9600. hardcode_libdir_flag_spec='-L$libdir'
  9601. hardcode_shlibpath_var=no
  9602. ;;
  9603. *)
  9604. ld_shlibs=no
  9605. ;;
  9606. esac
  9607. if test sni = "$host_vendor"; then
  9608. case $host in
  9609. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9610. export_dynamic_flag_spec='$wl-Blargedynsym'
  9611. ;;
  9612. esac
  9613. fi
  9614. fi
  9615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9616. printf "%s\n" "$ld_shlibs" >&6; }
  9617. test no = "$ld_shlibs" && can_build_shared=no
  9618. with_gnu_ld=$with_gnu_ld
  9619. #
  9620. # Do we need to explicitly link libc?
  9621. #
  9622. case "x$archive_cmds_need_lc" in
  9623. x|xyes)
  9624. # Assume -lc should be added
  9625. archive_cmds_need_lc=yes
  9626. if test yes,yes = "$GCC,$enable_shared"; then
  9627. case $archive_cmds in
  9628. *'~'*)
  9629. # FIXME: we may have to deal with multi-command sequences.
  9630. ;;
  9631. '$CC '*)
  9632. # Test whether the compiler implicitly links with -lc since on some
  9633. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9634. # to ld, don't add -lc before -lgcc.
  9635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9636. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9637. if test ${lt_cv_archive_cmds_need_lc+y}
  9638. then :
  9639. printf %s "(cached) " >&6
  9640. else $as_nop
  9641. $RM conftest*
  9642. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9643. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9644. (eval $ac_compile) 2>&5
  9645. ac_status=$?
  9646. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9647. test $ac_status = 0; } 2>conftest.err; then
  9648. soname=conftest
  9649. lib=conftest
  9650. libobjs=conftest.$ac_objext
  9651. deplibs=
  9652. wl=$lt_prog_compiler_wl
  9653. pic_flag=$lt_prog_compiler_pic
  9654. compiler_flags=-v
  9655. linker_flags=-v
  9656. verstring=
  9657. output_objdir=.
  9658. libname=conftest
  9659. lt_save_allow_undefined_flag=$allow_undefined_flag
  9660. allow_undefined_flag=
  9661. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9662. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9663. ac_status=$?
  9664. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9665. test $ac_status = 0; }
  9666. then
  9667. lt_cv_archive_cmds_need_lc=no
  9668. else
  9669. lt_cv_archive_cmds_need_lc=yes
  9670. fi
  9671. allow_undefined_flag=$lt_save_allow_undefined_flag
  9672. else
  9673. cat conftest.err 1>&5
  9674. fi
  9675. $RM conftest*
  9676. fi
  9677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9678. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9679. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9680. ;;
  9681. esac
  9682. fi
  9683. ;;
  9684. esac
  9685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9686. printf %s "checking dynamic linker characteristics... " >&6; }
  9687. if test yes = "$GCC"; then
  9688. case $host_os in
  9689. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9690. *) lt_awk_arg='/^libraries:/' ;;
  9691. esac
  9692. case $host_os in
  9693. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9694. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9695. esac
  9696. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9697. case $lt_search_path_spec in
  9698. *\;*)
  9699. # if the path contains ";" then we assume it to be the separator
  9700. # otherwise default to the standard path separator (i.e. ":") - it is
  9701. # assumed that no part of a normal pathname contains ";" but that should
  9702. # okay in the real world where ";" in dirpaths is itself problematic.
  9703. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9704. ;;
  9705. *)
  9706. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9707. ;;
  9708. esac
  9709. # Ok, now we have the path, separated by spaces, we can step through it
  9710. # and add multilib dir if necessary...
  9711. lt_tmp_lt_search_path_spec=
  9712. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9713. # ...but if some path component already ends with the multilib dir we assume
  9714. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9715. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9716. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9717. lt_multi_os_dir=
  9718. ;;
  9719. esac
  9720. for lt_sys_path in $lt_search_path_spec; do
  9721. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9722. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9723. elif test -n "$lt_multi_os_dir"; then
  9724. test -d "$lt_sys_path" && \
  9725. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9726. fi
  9727. done
  9728. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9729. BEGIN {RS = " "; FS = "/|\n";} {
  9730. lt_foo = "";
  9731. lt_count = 0;
  9732. for (lt_i = NF; lt_i > 0; lt_i--) {
  9733. if ($lt_i != "" && $lt_i != ".") {
  9734. if ($lt_i == "..") {
  9735. lt_count++;
  9736. } else {
  9737. if (lt_count == 0) {
  9738. lt_foo = "/" $lt_i lt_foo;
  9739. } else {
  9740. lt_count--;
  9741. }
  9742. }
  9743. }
  9744. }
  9745. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9746. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9747. }'`
  9748. # AWK program above erroneously prepends '/' to C:/dos/paths
  9749. # for these hosts.
  9750. case $host_os in
  9751. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9752. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9753. esac
  9754. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9755. else
  9756. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9757. fi
  9758. library_names_spec=
  9759. libname_spec='lib$name'
  9760. soname_spec=
  9761. shrext_cmds=.so
  9762. postinstall_cmds=
  9763. postuninstall_cmds=
  9764. finish_cmds=
  9765. finish_eval=
  9766. shlibpath_var=
  9767. shlibpath_overrides_runpath=unknown
  9768. version_type=none
  9769. dynamic_linker="$host_os ld.so"
  9770. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9771. need_lib_prefix=unknown
  9772. hardcode_into_libs=no
  9773. # when you set need_version to no, make sure it does not cause -set_version
  9774. # flags to be left without arguments
  9775. need_version=unknown
  9776. case $host_os in
  9777. aix3*)
  9778. version_type=linux # correct to gnu/linux during the next big refactor
  9779. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9780. shlibpath_var=LIBPATH
  9781. # AIX 3 has no versioning support, so we append a major version to the name.
  9782. soname_spec='$libname$release$shared_ext$major'
  9783. ;;
  9784. aix[4-9]*)
  9785. version_type=linux # correct to gnu/linux during the next big refactor
  9786. need_lib_prefix=no
  9787. need_version=no
  9788. hardcode_into_libs=yes
  9789. if test ia64 = "$host_cpu"; then
  9790. # AIX 5 supports IA64
  9791. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9792. shlibpath_var=LD_LIBRARY_PATH
  9793. else
  9794. # With GCC up to 2.95.x, collect2 would create an import file
  9795. # for dependence libraries. The import file would start with
  9796. # the line '#! .'. This would cause the generated library to
  9797. # depend on '.', always an invalid library. This was fixed in
  9798. # development snapshots of GCC prior to 3.0.
  9799. case $host_os in
  9800. aix4 | aix4.[01] | aix4.[01].*)
  9801. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9802. echo ' yes '
  9803. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9804. :
  9805. else
  9806. can_build_shared=no
  9807. fi
  9808. ;;
  9809. esac
  9810. # Using Import Files as archive members, it is possible to support
  9811. # filename-based versioning of shared library archives on AIX. While
  9812. # this would work for both with and without runtime linking, it will
  9813. # prevent static linking of such archives. So we do filename-based
  9814. # shared library versioning with .so extension only, which is used
  9815. # when both runtime linking and shared linking is enabled.
  9816. # Unfortunately, runtime linking may impact performance, so we do
  9817. # not want this to be the default eventually. Also, we use the
  9818. # versioned .so libs for executables only if there is the -brtl
  9819. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9820. # To allow for filename-based versioning support, we need to create
  9821. # libNAME.so.V as an archive file, containing:
  9822. # *) an Import File, referring to the versioned filename of the
  9823. # archive as well as the shared archive member, telling the
  9824. # bitwidth (32 or 64) of that shared object, and providing the
  9825. # list of exported symbols of that shared object, eventually
  9826. # decorated with the 'weak' keyword
  9827. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9828. # it being seen by the linker.
  9829. # At run time we better use the real file rather than another symlink,
  9830. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9831. case $with_aix_soname,$aix_use_runtimelinking in
  9832. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9833. # soname into executable. Probably we can add versioning support to
  9834. # collect2, so additional links can be useful in future.
  9835. aix,yes) # traditional libtool
  9836. dynamic_linker='AIX unversionable lib.so'
  9837. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9838. # instead of lib<name>.a to let people know that these are not
  9839. # typical AIX shared libraries.
  9840. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9841. ;;
  9842. aix,no) # traditional AIX only
  9843. dynamic_linker='AIX lib.a(lib.so.V)'
  9844. # We preserve .a as extension for shared libraries through AIX4.2
  9845. # and later when we are not doing run time linking.
  9846. library_names_spec='$libname$release.a $libname.a'
  9847. soname_spec='$libname$release$shared_ext$major'
  9848. ;;
  9849. svr4,*) # full svr4 only
  9850. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9851. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9852. # We do not specify a path in Import Files, so LIBPATH fires.
  9853. shlibpath_overrides_runpath=yes
  9854. ;;
  9855. *,yes) # both, prefer svr4
  9856. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9857. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9858. # unpreferred sharedlib libNAME.a needs extra handling
  9859. 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"'
  9860. 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"'
  9861. # We do not specify a path in Import Files, so LIBPATH fires.
  9862. shlibpath_overrides_runpath=yes
  9863. ;;
  9864. *,no) # both, prefer aix
  9865. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9866. library_names_spec='$libname$release.a $libname.a'
  9867. soname_spec='$libname$release$shared_ext$major'
  9868. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9869. 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)'
  9870. 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"'
  9871. ;;
  9872. esac
  9873. shlibpath_var=LIBPATH
  9874. fi
  9875. ;;
  9876. amigaos*)
  9877. case $host_cpu in
  9878. powerpc)
  9879. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9880. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9881. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9882. ;;
  9883. m68k)
  9884. library_names_spec='$libname.ixlibrary $libname.a'
  9885. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9886. 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'
  9887. ;;
  9888. esac
  9889. ;;
  9890. beos*)
  9891. library_names_spec='$libname$shared_ext'
  9892. dynamic_linker="$host_os ld.so"
  9893. shlibpath_var=LIBRARY_PATH
  9894. ;;
  9895. bsdi[45]*)
  9896. version_type=linux # correct to gnu/linux during the next big refactor
  9897. need_version=no
  9898. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9899. soname_spec='$libname$release$shared_ext$major'
  9900. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9901. shlibpath_var=LD_LIBRARY_PATH
  9902. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9903. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9904. # the default ld.so.conf also contains /usr/contrib/lib and
  9905. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9906. # libtool to hard-code these into programs
  9907. ;;
  9908. cygwin* | mingw* | pw32* | cegcc*)
  9909. version_type=windows
  9910. shrext_cmds=.dll
  9911. need_version=no
  9912. need_lib_prefix=no
  9913. case $GCC,$cc_basename in
  9914. yes,*)
  9915. # gcc
  9916. library_names_spec='$libname.dll.a'
  9917. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9918. postinstall_cmds='base_file=`basename \$file`~
  9919. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9920. dldir=$destdir/`dirname \$dlpath`~
  9921. test -d \$dldir || mkdir -p \$dldir~
  9922. $install_prog $dir/$dlname \$dldir/$dlname~
  9923. chmod a+x \$dldir/$dlname~
  9924. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9925. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9926. fi'
  9927. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9928. dlpath=$dir/\$dldll~
  9929. $RM \$dlpath'
  9930. shlibpath_overrides_runpath=yes
  9931. case $host_os in
  9932. cygwin*)
  9933. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9934. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9935. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9936. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9937. ;;
  9938. mingw* | cegcc*)
  9939. # MinGW DLLs use traditional 'lib' prefix
  9940. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9941. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9942. ;;
  9943. pw32*)
  9944. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9945. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9946. ;;
  9947. esac
  9948. dynamic_linker='Win32 ld.exe'
  9949. ;;
  9950. *,cl*)
  9951. # Native MSVC
  9952. libname_spec='$name'
  9953. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9954. library_names_spec='$libname.dll.lib'
  9955. case $build_os in
  9956. mingw*)
  9957. sys_lib_search_path_spec=
  9958. lt_save_ifs=$IFS
  9959. IFS=';'
  9960. for lt_path in $LIB
  9961. do
  9962. IFS=$lt_save_ifs
  9963. # Let DOS variable expansion print the short 8.3 style file name.
  9964. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9965. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9966. done
  9967. IFS=$lt_save_ifs
  9968. # Convert to MSYS style.
  9969. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9970. ;;
  9971. cygwin*)
  9972. # Convert to unix form, then to dos form, then back to unix form
  9973. # but this time dos style (no spaces!) so that the unix form looks
  9974. # like /cygdrive/c/PROGRA~1:/cygdr...
  9975. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9976. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9977. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9978. ;;
  9979. *)
  9980. sys_lib_search_path_spec=$LIB
  9981. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9982. # It is most probably a Windows format PATH.
  9983. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9984. else
  9985. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9986. fi
  9987. # FIXME: find the short name or the path components, as spaces are
  9988. # common. (e.g. "Program Files" -> "PROGRA~1")
  9989. ;;
  9990. esac
  9991. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9992. postinstall_cmds='base_file=`basename \$file`~
  9993. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9994. dldir=$destdir/`dirname \$dlpath`~
  9995. test -d \$dldir || mkdir -p \$dldir~
  9996. $install_prog $dir/$dlname \$dldir/$dlname'
  9997. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9998. dlpath=$dir/\$dldll~
  9999. $RM \$dlpath'
  10000. shlibpath_overrides_runpath=yes
  10001. dynamic_linker='Win32 link.exe'
  10002. ;;
  10003. *)
  10004. # Assume MSVC wrapper
  10005. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10006. dynamic_linker='Win32 ld.exe'
  10007. ;;
  10008. esac
  10009. # FIXME: first we should search . and the directory the executable is in
  10010. shlibpath_var=PATH
  10011. ;;
  10012. darwin* | rhapsody*)
  10013. dynamic_linker="$host_os dyld"
  10014. version_type=darwin
  10015. need_lib_prefix=no
  10016. need_version=no
  10017. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10018. soname_spec='$libname$release$major$shared_ext'
  10019. shlibpath_overrides_runpath=yes
  10020. shlibpath_var=DYLD_LIBRARY_PATH
  10021. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10022. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10023. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10024. ;;
  10025. dgux*)
  10026. version_type=linux # correct to gnu/linux during the next big refactor
  10027. need_lib_prefix=no
  10028. need_version=no
  10029. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10030. soname_spec='$libname$release$shared_ext$major'
  10031. shlibpath_var=LD_LIBRARY_PATH
  10032. ;;
  10033. freebsd* | dragonfly* | midnightbsd*)
  10034. # DragonFly does not have aout. When/if they implement a new
  10035. # versioning mechanism, adjust this.
  10036. if test -x /usr/bin/objformat; then
  10037. objformat=`/usr/bin/objformat`
  10038. else
  10039. case $host_os in
  10040. freebsd[23].*) objformat=aout ;;
  10041. *) objformat=elf ;;
  10042. esac
  10043. fi
  10044. version_type=freebsd-$objformat
  10045. case $version_type in
  10046. freebsd-elf*)
  10047. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10048. soname_spec='$libname$release$shared_ext$major'
  10049. need_version=no
  10050. need_lib_prefix=no
  10051. ;;
  10052. freebsd-*)
  10053. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10054. need_version=yes
  10055. ;;
  10056. esac
  10057. shlibpath_var=LD_LIBRARY_PATH
  10058. case $host_os in
  10059. freebsd2.*)
  10060. shlibpath_overrides_runpath=yes
  10061. ;;
  10062. freebsd3.[01]* | freebsdelf3.[01]*)
  10063. shlibpath_overrides_runpath=yes
  10064. hardcode_into_libs=yes
  10065. ;;
  10066. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10067. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10068. shlibpath_overrides_runpath=no
  10069. hardcode_into_libs=yes
  10070. ;;
  10071. *) # from 4.6 on, and DragonFly
  10072. shlibpath_overrides_runpath=yes
  10073. hardcode_into_libs=yes
  10074. ;;
  10075. esac
  10076. ;;
  10077. haiku*)
  10078. version_type=linux # correct to gnu/linux during the next big refactor
  10079. need_lib_prefix=no
  10080. need_version=no
  10081. dynamic_linker="$host_os runtime_loader"
  10082. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10083. soname_spec='$libname$release$shared_ext$major'
  10084. shlibpath_var=LIBRARY_PATH
  10085. shlibpath_overrides_runpath=no
  10086. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10087. hardcode_into_libs=yes
  10088. ;;
  10089. hpux9* | hpux10* | hpux11*)
  10090. # Give a soname corresponding to the major version so that dld.sl refuses to
  10091. # link against other versions.
  10092. version_type=sunos
  10093. need_lib_prefix=no
  10094. need_version=no
  10095. case $host_cpu in
  10096. ia64*)
  10097. shrext_cmds='.so'
  10098. hardcode_into_libs=yes
  10099. dynamic_linker="$host_os dld.so"
  10100. shlibpath_var=LD_LIBRARY_PATH
  10101. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10102. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10103. soname_spec='$libname$release$shared_ext$major'
  10104. if test 32 = "$HPUX_IA64_MODE"; then
  10105. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10106. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10107. else
  10108. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10109. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10110. fi
  10111. ;;
  10112. hppa*64*)
  10113. shrext_cmds='.sl'
  10114. hardcode_into_libs=yes
  10115. dynamic_linker="$host_os dld.sl"
  10116. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10117. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10118. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10119. soname_spec='$libname$release$shared_ext$major'
  10120. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10121. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10122. ;;
  10123. *)
  10124. shrext_cmds='.sl'
  10125. dynamic_linker="$host_os dld.sl"
  10126. shlibpath_var=SHLIB_PATH
  10127. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10128. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10129. soname_spec='$libname$release$shared_ext$major'
  10130. ;;
  10131. esac
  10132. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10133. postinstall_cmds='chmod 555 $lib'
  10134. # or fails outright, so override atomically:
  10135. install_override_mode=555
  10136. ;;
  10137. interix[3-9]*)
  10138. version_type=linux # correct to gnu/linux during the next big refactor
  10139. need_lib_prefix=no
  10140. need_version=no
  10141. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10142. soname_spec='$libname$release$shared_ext$major'
  10143. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10144. shlibpath_var=LD_LIBRARY_PATH
  10145. shlibpath_overrides_runpath=no
  10146. hardcode_into_libs=yes
  10147. ;;
  10148. irix5* | irix6* | nonstopux*)
  10149. case $host_os in
  10150. nonstopux*) version_type=nonstopux ;;
  10151. *)
  10152. if test yes = "$lt_cv_prog_gnu_ld"; then
  10153. version_type=linux # correct to gnu/linux during the next big refactor
  10154. else
  10155. version_type=irix
  10156. fi ;;
  10157. esac
  10158. need_lib_prefix=no
  10159. need_version=no
  10160. soname_spec='$libname$release$shared_ext$major'
  10161. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10162. case $host_os in
  10163. irix5* | nonstopux*)
  10164. libsuff= shlibsuff=
  10165. ;;
  10166. *)
  10167. case $LD in # libtool.m4 will add one of these switches to LD
  10168. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10169. libsuff= shlibsuff= libmagic=32-bit;;
  10170. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10171. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10172. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10173. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10174. *) libsuff= shlibsuff= libmagic=never-match;;
  10175. esac
  10176. ;;
  10177. esac
  10178. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10179. shlibpath_overrides_runpath=no
  10180. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10181. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10182. hardcode_into_libs=yes
  10183. ;;
  10184. # No shared lib support for Linux oldld, aout, or coff.
  10185. linux*oldld* | linux*aout* | linux*coff*)
  10186. dynamic_linker=no
  10187. ;;
  10188. linux*android*)
  10189. version_type=none # Android doesn't support versioned libraries.
  10190. need_lib_prefix=no
  10191. need_version=no
  10192. library_names_spec='$libname$release$shared_ext'
  10193. soname_spec='$libname$release$shared_ext'
  10194. finish_cmds=
  10195. shlibpath_var=LD_LIBRARY_PATH
  10196. shlibpath_overrides_runpath=yes
  10197. # This implies no fast_install, which is unacceptable.
  10198. # Some rework will be needed to allow for fast_install
  10199. # before this can be enabled.
  10200. hardcode_into_libs=yes
  10201. dynamic_linker='Android linker'
  10202. # Don't embed -rpath directories since the linker doesn't support them.
  10203. hardcode_libdir_flag_spec='-L$libdir'
  10204. ;;
  10205. # This must be glibc/ELF.
  10206. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10207. version_type=linux # correct to gnu/linux during the next big refactor
  10208. need_lib_prefix=no
  10209. need_version=no
  10210. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10211. soname_spec='$libname$release$shared_ext$major'
  10212. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10213. shlibpath_var=LD_LIBRARY_PATH
  10214. shlibpath_overrides_runpath=no
  10215. # Some binutils ld are patched to set DT_RUNPATH
  10216. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10217. then :
  10218. printf %s "(cached) " >&6
  10219. else $as_nop
  10220. lt_cv_shlibpath_overrides_runpath=no
  10221. save_LDFLAGS=$LDFLAGS
  10222. save_libdir=$libdir
  10223. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10224. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10226. /* end confdefs.h. */
  10227. int
  10228. main (void)
  10229. {
  10230. ;
  10231. return 0;
  10232. }
  10233. _ACEOF
  10234. if ac_fn_c_try_link "$LINENO"
  10235. then :
  10236. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10237. then :
  10238. lt_cv_shlibpath_overrides_runpath=yes
  10239. fi
  10240. fi
  10241. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10242. conftest$ac_exeext conftest.$ac_ext
  10243. LDFLAGS=$save_LDFLAGS
  10244. libdir=$save_libdir
  10245. fi
  10246. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10247. # This implies no fast_install, which is unacceptable.
  10248. # Some rework will be needed to allow for fast_install
  10249. # before this can be enabled.
  10250. hardcode_into_libs=yes
  10251. # Add ABI-specific directories to the system library path.
  10252. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10253. # Ideally, we could use ldconfig to report *all* directores which are
  10254. # searched for libraries, however this is still not possible. Aside from not
  10255. # being certain /sbin/ldconfig is available, command
  10256. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10257. # even though it is searched at run-time. Try to do the best guess by
  10258. # appending ld.so.conf contents (and includes) to the search path.
  10259. if test -f /etc/ld.so.conf; then
  10260. 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' ' '`
  10261. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10262. fi
  10263. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10264. # powerpc, because MkLinux only supported shared libraries with the
  10265. # GNU dynamic linker. Since this was broken with cross compilers,
  10266. # most powerpc-linux boxes support dynamic linking these days and
  10267. # people can always --disable-shared, the test was removed, and we
  10268. # assume the GNU/Linux dynamic linker is in use.
  10269. dynamic_linker='GNU/Linux ld.so'
  10270. ;;
  10271. netbsd*)
  10272. version_type=sunos
  10273. need_lib_prefix=no
  10274. need_version=no
  10275. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10276. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10277. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10278. dynamic_linker='NetBSD (a.out) ld.so'
  10279. else
  10280. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10281. soname_spec='$libname$release$shared_ext$major'
  10282. dynamic_linker='NetBSD ld.elf_so'
  10283. fi
  10284. shlibpath_var=LD_LIBRARY_PATH
  10285. shlibpath_overrides_runpath=yes
  10286. hardcode_into_libs=yes
  10287. ;;
  10288. newsos6)
  10289. version_type=linux # correct to gnu/linux during the next big refactor
  10290. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10291. shlibpath_var=LD_LIBRARY_PATH
  10292. shlibpath_overrides_runpath=yes
  10293. ;;
  10294. *nto* | *qnx*)
  10295. version_type=qnx
  10296. need_lib_prefix=no
  10297. need_version=no
  10298. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10299. soname_spec='$libname$release$shared_ext$major'
  10300. shlibpath_var=LD_LIBRARY_PATH
  10301. shlibpath_overrides_runpath=no
  10302. hardcode_into_libs=yes
  10303. dynamic_linker='ldqnx.so'
  10304. ;;
  10305. openbsd* | bitrig*)
  10306. version_type=sunos
  10307. sys_lib_dlsearch_path_spec=/usr/lib
  10308. need_lib_prefix=no
  10309. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10310. need_version=no
  10311. else
  10312. need_version=yes
  10313. fi
  10314. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10315. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10316. shlibpath_var=LD_LIBRARY_PATH
  10317. shlibpath_overrides_runpath=yes
  10318. ;;
  10319. os2*)
  10320. libname_spec='$name'
  10321. shrext_cmds=.dll
  10322. need_lib_prefix=no
  10323. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10324. # SDL customization: removed versioning support.
  10325. # version_type=windows
  10326. # need_version=no
  10327. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10328. # v=$($ECHO $release$versuffix | tr -d .-);
  10329. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10330. # $ECHO $n$v`$shared_ext'
  10331. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10332. library_names_spec='${libname}_dll.$libext'
  10333. dynamic_linker='OS/2 ld.exe'
  10334. shlibpath_var=BEGINLIBPATH
  10335. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10336. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10337. postinstall_cmds='base_file=`basename \$file`~
  10338. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10339. dldir=$destdir/`dirname \$dlpath`~
  10340. test -d \$dldir || mkdir -p \$dldir~
  10341. $install_prog $dir/$dlname \$dldir/$dlname~
  10342. chmod a+x \$dldir/$dlname~
  10343. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10344. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10345. fi'
  10346. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10347. dlpath=$dir/\$dldll~
  10348. $RM \$dlpath'
  10349. ;;
  10350. osf3* | osf4* | osf5*)
  10351. version_type=osf
  10352. need_lib_prefix=no
  10353. need_version=no
  10354. soname_spec='$libname$release$shared_ext$major'
  10355. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10356. shlibpath_var=LD_LIBRARY_PATH
  10357. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10358. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10359. ;;
  10360. rdos*)
  10361. dynamic_linker=no
  10362. ;;
  10363. solaris*)
  10364. version_type=linux # correct to gnu/linux during the next big refactor
  10365. need_lib_prefix=no
  10366. need_version=no
  10367. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10368. soname_spec='$libname$release$shared_ext$major'
  10369. shlibpath_var=LD_LIBRARY_PATH
  10370. shlibpath_overrides_runpath=yes
  10371. hardcode_into_libs=yes
  10372. # ldd complains unless libraries are executable
  10373. postinstall_cmds='chmod +x $lib'
  10374. ;;
  10375. sunos4*)
  10376. version_type=sunos
  10377. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10378. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10379. shlibpath_var=LD_LIBRARY_PATH
  10380. shlibpath_overrides_runpath=yes
  10381. if test yes = "$with_gnu_ld"; then
  10382. need_lib_prefix=no
  10383. fi
  10384. need_version=yes
  10385. ;;
  10386. sysv4 | sysv4.3*)
  10387. version_type=linux # correct to gnu/linux during the next big refactor
  10388. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10389. soname_spec='$libname$release$shared_ext$major'
  10390. shlibpath_var=LD_LIBRARY_PATH
  10391. case $host_vendor in
  10392. sni)
  10393. shlibpath_overrides_runpath=no
  10394. need_lib_prefix=no
  10395. runpath_var=LD_RUN_PATH
  10396. ;;
  10397. siemens)
  10398. need_lib_prefix=no
  10399. ;;
  10400. motorola)
  10401. need_lib_prefix=no
  10402. need_version=no
  10403. shlibpath_overrides_runpath=no
  10404. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10405. ;;
  10406. esac
  10407. ;;
  10408. sysv4*MP*)
  10409. if test -d /usr/nec; then
  10410. version_type=linux # correct to gnu/linux during the next big refactor
  10411. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10412. soname_spec='$libname$shared_ext.$major'
  10413. shlibpath_var=LD_LIBRARY_PATH
  10414. fi
  10415. ;;
  10416. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10417. version_type=sco
  10418. need_lib_prefix=no
  10419. need_version=no
  10420. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10421. soname_spec='$libname$release$shared_ext$major'
  10422. shlibpath_var=LD_LIBRARY_PATH
  10423. shlibpath_overrides_runpath=yes
  10424. hardcode_into_libs=yes
  10425. if test yes = "$with_gnu_ld"; then
  10426. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10427. else
  10428. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10429. case $host_os in
  10430. sco3.2v5*)
  10431. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10432. ;;
  10433. esac
  10434. fi
  10435. sys_lib_dlsearch_path_spec='/usr/lib'
  10436. ;;
  10437. tpf*)
  10438. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10439. version_type=linux # correct to gnu/linux during the next big refactor
  10440. need_lib_prefix=no
  10441. need_version=no
  10442. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10443. shlibpath_var=LD_LIBRARY_PATH
  10444. shlibpath_overrides_runpath=no
  10445. hardcode_into_libs=yes
  10446. ;;
  10447. uts4*)
  10448. version_type=linux # correct to gnu/linux during the next big refactor
  10449. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10450. soname_spec='$libname$release$shared_ext$major'
  10451. shlibpath_var=LD_LIBRARY_PATH
  10452. ;;
  10453. *)
  10454. dynamic_linker=no
  10455. ;;
  10456. esac
  10457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10458. printf "%s\n" "$dynamic_linker" >&6; }
  10459. test no = "$dynamic_linker" && can_build_shared=no
  10460. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10461. if test yes = "$GCC"; then
  10462. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10463. fi
  10464. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10465. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10466. fi
  10467. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10468. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10469. fi
  10470. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10471. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10472. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10473. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10474. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10475. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10477. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10478. hardcode_action=
  10479. if test -n "$hardcode_libdir_flag_spec" ||
  10480. test -n "$runpath_var" ||
  10481. test yes = "$hardcode_automatic"; then
  10482. # We can hardcode non-existent directories.
  10483. if test no != "$hardcode_direct" &&
  10484. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10485. # have to relink, otherwise we might link with an installed library
  10486. # when we should be linking with a yet-to-be-installed one
  10487. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10488. test no != "$hardcode_minus_L"; then
  10489. # Linking always hardcodes the temporary library directory.
  10490. hardcode_action=relink
  10491. else
  10492. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10493. hardcode_action=immediate
  10494. fi
  10495. else
  10496. # We cannot hardcode anything, or else we can only hardcode existing
  10497. # directories.
  10498. hardcode_action=unsupported
  10499. fi
  10500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10501. printf "%s\n" "$hardcode_action" >&6; }
  10502. if test relink = "$hardcode_action" ||
  10503. test yes = "$inherit_rpath"; then
  10504. # Fast installation is not supported
  10505. enable_fast_install=no
  10506. elif test yes = "$shlibpath_overrides_runpath" ||
  10507. test no = "$enable_shared"; then
  10508. # Fast installation is not necessary
  10509. enable_fast_install=needless
  10510. fi
  10511. if test yes != "$enable_dlopen"; then
  10512. enable_dlopen=unknown
  10513. enable_dlopen_self=unknown
  10514. enable_dlopen_self_static=unknown
  10515. else
  10516. lt_cv_dlopen=no
  10517. lt_cv_dlopen_libs=
  10518. case $host_os in
  10519. beos*)
  10520. lt_cv_dlopen=load_add_on
  10521. lt_cv_dlopen_libs=
  10522. lt_cv_dlopen_self=yes
  10523. ;;
  10524. mingw* | pw32* | cegcc*)
  10525. lt_cv_dlopen=LoadLibrary
  10526. lt_cv_dlopen_libs=
  10527. ;;
  10528. cygwin*)
  10529. lt_cv_dlopen=dlopen
  10530. lt_cv_dlopen_libs=
  10531. ;;
  10532. darwin*)
  10533. # if libdl is installed we need to link against it
  10534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10535. printf %s "checking for dlopen in -ldl... " >&6; }
  10536. if test ${ac_cv_lib_dl_dlopen+y}
  10537. then :
  10538. printf %s "(cached) " >&6
  10539. else $as_nop
  10540. ac_check_lib_save_LIBS=$LIBS
  10541. LIBS="-ldl $LIBS"
  10542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10543. /* end confdefs.h. */
  10544. /* Override any GCC internal prototype to avoid an error.
  10545. Use char because int might match the return type of a GCC
  10546. builtin and then its argument prototype would still apply. */
  10547. char dlopen ();
  10548. int
  10549. main (void)
  10550. {
  10551. return dlopen ();
  10552. ;
  10553. return 0;
  10554. }
  10555. _ACEOF
  10556. if ac_fn_c_try_link "$LINENO"
  10557. then :
  10558. ac_cv_lib_dl_dlopen=yes
  10559. else $as_nop
  10560. ac_cv_lib_dl_dlopen=no
  10561. fi
  10562. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10563. conftest$ac_exeext conftest.$ac_ext
  10564. LIBS=$ac_check_lib_save_LIBS
  10565. fi
  10566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10567. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10568. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10569. then :
  10570. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10571. else $as_nop
  10572. lt_cv_dlopen=dyld
  10573. lt_cv_dlopen_libs=
  10574. lt_cv_dlopen_self=yes
  10575. fi
  10576. ;;
  10577. tpf*)
  10578. # Don't try to run any link tests for TPF. We know it's impossible
  10579. # because TPF is a cross-compiler, and we know how we open DSOs.
  10580. lt_cv_dlopen=dlopen
  10581. lt_cv_dlopen_libs=
  10582. lt_cv_dlopen_self=no
  10583. ;;
  10584. *)
  10585. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10586. if test "x$ac_cv_func_shl_load" = xyes
  10587. then :
  10588. lt_cv_dlopen=shl_load
  10589. else $as_nop
  10590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10591. printf %s "checking for shl_load in -ldld... " >&6; }
  10592. if test ${ac_cv_lib_dld_shl_load+y}
  10593. then :
  10594. printf %s "(cached) " >&6
  10595. else $as_nop
  10596. ac_check_lib_save_LIBS=$LIBS
  10597. LIBS="-ldld $LIBS"
  10598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10599. /* end confdefs.h. */
  10600. /* Override any GCC internal prototype to avoid an error.
  10601. Use char because int might match the return type of a GCC
  10602. builtin and then its argument prototype would still apply. */
  10603. char shl_load ();
  10604. int
  10605. main (void)
  10606. {
  10607. return shl_load ();
  10608. ;
  10609. return 0;
  10610. }
  10611. _ACEOF
  10612. if ac_fn_c_try_link "$LINENO"
  10613. then :
  10614. ac_cv_lib_dld_shl_load=yes
  10615. else $as_nop
  10616. ac_cv_lib_dld_shl_load=no
  10617. fi
  10618. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10619. conftest$ac_exeext conftest.$ac_ext
  10620. LIBS=$ac_check_lib_save_LIBS
  10621. fi
  10622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10623. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10624. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10625. then :
  10626. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10627. else $as_nop
  10628. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10629. if test "x$ac_cv_func_dlopen" = xyes
  10630. then :
  10631. lt_cv_dlopen=dlopen
  10632. else $as_nop
  10633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10634. printf %s "checking for dlopen in -ldl... " >&6; }
  10635. if test ${ac_cv_lib_dl_dlopen+y}
  10636. then :
  10637. printf %s "(cached) " >&6
  10638. else $as_nop
  10639. ac_check_lib_save_LIBS=$LIBS
  10640. LIBS="-ldl $LIBS"
  10641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10642. /* end confdefs.h. */
  10643. /* Override any GCC internal prototype to avoid an error.
  10644. Use char because int might match the return type of a GCC
  10645. builtin and then its argument prototype would still apply. */
  10646. char dlopen ();
  10647. int
  10648. main (void)
  10649. {
  10650. return dlopen ();
  10651. ;
  10652. return 0;
  10653. }
  10654. _ACEOF
  10655. if ac_fn_c_try_link "$LINENO"
  10656. then :
  10657. ac_cv_lib_dl_dlopen=yes
  10658. else $as_nop
  10659. ac_cv_lib_dl_dlopen=no
  10660. fi
  10661. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10662. conftest$ac_exeext conftest.$ac_ext
  10663. LIBS=$ac_check_lib_save_LIBS
  10664. fi
  10665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10666. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10667. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10668. then :
  10669. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10670. else $as_nop
  10671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10672. printf %s "checking for dlopen in -lsvld... " >&6; }
  10673. if test ${ac_cv_lib_svld_dlopen+y}
  10674. then :
  10675. printf %s "(cached) " >&6
  10676. else $as_nop
  10677. ac_check_lib_save_LIBS=$LIBS
  10678. LIBS="-lsvld $LIBS"
  10679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10680. /* end confdefs.h. */
  10681. /* Override any GCC internal prototype to avoid an error.
  10682. Use char because int might match the return type of a GCC
  10683. builtin and then its argument prototype would still apply. */
  10684. char dlopen ();
  10685. int
  10686. main (void)
  10687. {
  10688. return dlopen ();
  10689. ;
  10690. return 0;
  10691. }
  10692. _ACEOF
  10693. if ac_fn_c_try_link "$LINENO"
  10694. then :
  10695. ac_cv_lib_svld_dlopen=yes
  10696. else $as_nop
  10697. ac_cv_lib_svld_dlopen=no
  10698. fi
  10699. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10700. conftest$ac_exeext conftest.$ac_ext
  10701. LIBS=$ac_check_lib_save_LIBS
  10702. fi
  10703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10704. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10705. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10706. then :
  10707. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10708. else $as_nop
  10709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10710. printf %s "checking for dld_link in -ldld... " >&6; }
  10711. if test ${ac_cv_lib_dld_dld_link+y}
  10712. then :
  10713. printf %s "(cached) " >&6
  10714. else $as_nop
  10715. ac_check_lib_save_LIBS=$LIBS
  10716. LIBS="-ldld $LIBS"
  10717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10718. /* end confdefs.h. */
  10719. /* Override any GCC internal prototype to avoid an error.
  10720. Use char because int might match the return type of a GCC
  10721. builtin and then its argument prototype would still apply. */
  10722. char dld_link ();
  10723. int
  10724. main (void)
  10725. {
  10726. return dld_link ();
  10727. ;
  10728. return 0;
  10729. }
  10730. _ACEOF
  10731. if ac_fn_c_try_link "$LINENO"
  10732. then :
  10733. ac_cv_lib_dld_dld_link=yes
  10734. else $as_nop
  10735. ac_cv_lib_dld_dld_link=no
  10736. fi
  10737. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10738. conftest$ac_exeext conftest.$ac_ext
  10739. LIBS=$ac_check_lib_save_LIBS
  10740. fi
  10741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10742. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10743. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10744. then :
  10745. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10746. fi
  10747. fi
  10748. fi
  10749. fi
  10750. fi
  10751. fi
  10752. ;;
  10753. esac
  10754. if test no = "$lt_cv_dlopen"; then
  10755. enable_dlopen=no
  10756. else
  10757. enable_dlopen=yes
  10758. fi
  10759. case $lt_cv_dlopen in
  10760. dlopen)
  10761. save_CPPFLAGS=$CPPFLAGS
  10762. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10763. save_LDFLAGS=$LDFLAGS
  10764. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10765. save_LIBS=$LIBS
  10766. LIBS="$lt_cv_dlopen_libs $LIBS"
  10767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10768. printf %s "checking whether a program can dlopen itself... " >&6; }
  10769. if test ${lt_cv_dlopen_self+y}
  10770. then :
  10771. printf %s "(cached) " >&6
  10772. else $as_nop
  10773. if test yes = "$cross_compiling"; then :
  10774. lt_cv_dlopen_self=cross
  10775. else
  10776. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10777. lt_status=$lt_dlunknown
  10778. cat > conftest.$ac_ext <<_LT_EOF
  10779. #line $LINENO "configure"
  10780. #include "confdefs.h"
  10781. #if HAVE_DLFCN_H
  10782. #include <dlfcn.h>
  10783. #endif
  10784. #include <stdio.h>
  10785. #ifdef RTLD_GLOBAL
  10786. # define LT_DLGLOBAL RTLD_GLOBAL
  10787. #else
  10788. # ifdef DL_GLOBAL
  10789. # define LT_DLGLOBAL DL_GLOBAL
  10790. # else
  10791. # define LT_DLGLOBAL 0
  10792. # endif
  10793. #endif
  10794. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10795. find out it does not work in some platform. */
  10796. #ifndef LT_DLLAZY_OR_NOW
  10797. # ifdef RTLD_LAZY
  10798. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10799. # else
  10800. # ifdef DL_LAZY
  10801. # define LT_DLLAZY_OR_NOW DL_LAZY
  10802. # else
  10803. # ifdef RTLD_NOW
  10804. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10805. # else
  10806. # ifdef DL_NOW
  10807. # define LT_DLLAZY_OR_NOW DL_NOW
  10808. # else
  10809. # define LT_DLLAZY_OR_NOW 0
  10810. # endif
  10811. # endif
  10812. # endif
  10813. # endif
  10814. #endif
  10815. /* When -fvisibility=hidden is used, assume the code has been annotated
  10816. correspondingly for the symbols needed. */
  10817. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10818. int fnord () __attribute__((visibility("default")));
  10819. #endif
  10820. int fnord () { return 42; }
  10821. int main ()
  10822. {
  10823. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10824. int status = $lt_dlunknown;
  10825. if (self)
  10826. {
  10827. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10828. else
  10829. {
  10830. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10831. else puts (dlerror ());
  10832. }
  10833. /* dlclose (self); */
  10834. }
  10835. else
  10836. puts (dlerror ());
  10837. return status;
  10838. }
  10839. _LT_EOF
  10840. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10841. (eval $ac_link) 2>&5
  10842. ac_status=$?
  10843. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10844. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10845. (./conftest; exit; ) >&5 2>/dev/null
  10846. lt_status=$?
  10847. case x$lt_status in
  10848. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10849. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10850. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10851. esac
  10852. else :
  10853. # compilation failed
  10854. lt_cv_dlopen_self=no
  10855. fi
  10856. fi
  10857. rm -fr conftest*
  10858. fi
  10859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10860. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10861. if test yes = "$lt_cv_dlopen_self"; then
  10862. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10864. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10865. if test ${lt_cv_dlopen_self_static+y}
  10866. then :
  10867. printf %s "(cached) " >&6
  10868. else $as_nop
  10869. if test yes = "$cross_compiling"; then :
  10870. lt_cv_dlopen_self_static=cross
  10871. else
  10872. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10873. lt_status=$lt_dlunknown
  10874. cat > conftest.$ac_ext <<_LT_EOF
  10875. #line $LINENO "configure"
  10876. #include "confdefs.h"
  10877. #if HAVE_DLFCN_H
  10878. #include <dlfcn.h>
  10879. #endif
  10880. #include <stdio.h>
  10881. #ifdef RTLD_GLOBAL
  10882. # define LT_DLGLOBAL RTLD_GLOBAL
  10883. #else
  10884. # ifdef DL_GLOBAL
  10885. # define LT_DLGLOBAL DL_GLOBAL
  10886. # else
  10887. # define LT_DLGLOBAL 0
  10888. # endif
  10889. #endif
  10890. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10891. find out it does not work in some platform. */
  10892. #ifndef LT_DLLAZY_OR_NOW
  10893. # ifdef RTLD_LAZY
  10894. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10895. # else
  10896. # ifdef DL_LAZY
  10897. # define LT_DLLAZY_OR_NOW DL_LAZY
  10898. # else
  10899. # ifdef RTLD_NOW
  10900. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10901. # else
  10902. # ifdef DL_NOW
  10903. # define LT_DLLAZY_OR_NOW DL_NOW
  10904. # else
  10905. # define LT_DLLAZY_OR_NOW 0
  10906. # endif
  10907. # endif
  10908. # endif
  10909. # endif
  10910. #endif
  10911. /* When -fvisibility=hidden is used, assume the code has been annotated
  10912. correspondingly for the symbols needed. */
  10913. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10914. int fnord () __attribute__((visibility("default")));
  10915. #endif
  10916. int fnord () { return 42; }
  10917. int main ()
  10918. {
  10919. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10920. int status = $lt_dlunknown;
  10921. if (self)
  10922. {
  10923. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10924. else
  10925. {
  10926. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10927. else puts (dlerror ());
  10928. }
  10929. /* dlclose (self); */
  10930. }
  10931. else
  10932. puts (dlerror ());
  10933. return status;
  10934. }
  10935. _LT_EOF
  10936. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10937. (eval $ac_link) 2>&5
  10938. ac_status=$?
  10939. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10940. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10941. (./conftest; exit; ) >&5 2>/dev/null
  10942. lt_status=$?
  10943. case x$lt_status in
  10944. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10945. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10946. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10947. esac
  10948. else :
  10949. # compilation failed
  10950. lt_cv_dlopen_self_static=no
  10951. fi
  10952. fi
  10953. rm -fr conftest*
  10954. fi
  10955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10956. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  10957. fi
  10958. CPPFLAGS=$save_CPPFLAGS
  10959. LDFLAGS=$save_LDFLAGS
  10960. LIBS=$save_LIBS
  10961. ;;
  10962. esac
  10963. case $lt_cv_dlopen_self in
  10964. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10965. *) enable_dlopen_self=unknown ;;
  10966. esac
  10967. case $lt_cv_dlopen_self_static in
  10968. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10969. *) enable_dlopen_self_static=unknown ;;
  10970. esac
  10971. fi
  10972. striplib=
  10973. old_striplib=
  10974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10975. printf %s "checking whether stripping libraries is possible... " >&6; }
  10976. if test -z "$STRIP"; then
  10977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10978. printf "%s\n" "no" >&6; }
  10979. else
  10980. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10981. old_striplib="$STRIP --strip-debug"
  10982. striplib="$STRIP --strip-unneeded"
  10983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10984. printf "%s\n" "yes" >&6; }
  10985. else
  10986. case $host_os in
  10987. darwin*)
  10988. # FIXME - insert some real tests, host_os isn't really good enough
  10989. striplib="$STRIP -x"
  10990. old_striplib="$STRIP -S"
  10991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10992. printf "%s\n" "yes" >&6; }
  10993. ;;
  10994. freebsd*)
  10995. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  10996. old_striplib="$STRIP --strip-debug"
  10997. striplib="$STRIP --strip-unneeded"
  10998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10999. printf "%s\n" "yes" >&6; }
  11000. else
  11001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11002. printf "%s\n" "no" >&6; }
  11003. fi
  11004. ;;
  11005. *)
  11006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11007. printf "%s\n" "no" >&6; }
  11008. ;;
  11009. esac
  11010. fi
  11011. fi
  11012. # Report what library types will actually be built
  11013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11014. printf %s "checking if libtool supports shared libraries... " >&6; }
  11015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11016. printf "%s\n" "$can_build_shared" >&6; }
  11017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11018. printf %s "checking whether to build shared libraries... " >&6; }
  11019. test no = "$can_build_shared" && enable_shared=no
  11020. # On AIX, shared libraries and static libraries use the same namespace, and
  11021. # are all built from PIC.
  11022. case $host_os in
  11023. aix3*)
  11024. test yes = "$enable_shared" && enable_static=no
  11025. if test -n "$RANLIB"; then
  11026. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11027. postinstall_cmds='$RANLIB $lib'
  11028. fi
  11029. ;;
  11030. aix[4-9]*)
  11031. if test ia64 != "$host_cpu"; then
  11032. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11033. yes,aix,yes) ;; # shared object as lib.so file only
  11034. yes,svr4,*) ;; # shared object as lib.so archive member only
  11035. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11036. esac
  11037. fi
  11038. ;;
  11039. esac
  11040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11041. printf "%s\n" "$enable_shared" >&6; }
  11042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11043. printf %s "checking whether to build static libraries... " >&6; }
  11044. # Make sure either enable_shared or enable_static is yes.
  11045. test yes = "$enable_shared" || enable_static=yes
  11046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11047. printf "%s\n" "$enable_static" >&6; }
  11048. fi
  11049. ac_ext=c
  11050. ac_cpp='$CPP $CPPFLAGS'
  11051. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11052. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11053. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11054. CC=$lt_save_CC
  11055. ac_config_commands="$ac_config_commands libtool"
  11056. # Only expand once:
  11057. if test -n "$ac_tool_prefix"; then
  11058. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11059. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11061. printf %s "checking for $ac_word... " >&6; }
  11062. if test ${ac_cv_prog_RC+y}
  11063. then :
  11064. printf %s "(cached) " >&6
  11065. else $as_nop
  11066. if test -n "$RC"; then
  11067. ac_cv_prog_RC="$RC" # Let the user override the test.
  11068. else
  11069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11070. for as_dir in $PATH
  11071. do
  11072. IFS=$as_save_IFS
  11073. case $as_dir in #(((
  11074. '') as_dir=./ ;;
  11075. */) ;;
  11076. *) as_dir=$as_dir/ ;;
  11077. esac
  11078. for ac_exec_ext in '' $ac_executable_extensions; do
  11079. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11080. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11081. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11082. break 2
  11083. fi
  11084. done
  11085. done
  11086. IFS=$as_save_IFS
  11087. fi
  11088. fi
  11089. RC=$ac_cv_prog_RC
  11090. if test -n "$RC"; then
  11091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11092. printf "%s\n" "$RC" >&6; }
  11093. else
  11094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11095. printf "%s\n" "no" >&6; }
  11096. fi
  11097. fi
  11098. if test -z "$ac_cv_prog_RC"; then
  11099. ac_ct_RC=$RC
  11100. # Extract the first word of "windres", so it can be a program name with args.
  11101. set dummy windres; ac_word=$2
  11102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11103. printf %s "checking for $ac_word... " >&6; }
  11104. if test ${ac_cv_prog_ac_ct_RC+y}
  11105. then :
  11106. printf %s "(cached) " >&6
  11107. else $as_nop
  11108. if test -n "$ac_ct_RC"; then
  11109. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11110. else
  11111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11112. for as_dir in $PATH
  11113. do
  11114. IFS=$as_save_IFS
  11115. case $as_dir in #(((
  11116. '') as_dir=./ ;;
  11117. */) ;;
  11118. *) as_dir=$as_dir/ ;;
  11119. esac
  11120. for ac_exec_ext in '' $ac_executable_extensions; do
  11121. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11122. ac_cv_prog_ac_ct_RC="windres"
  11123. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11124. break 2
  11125. fi
  11126. done
  11127. done
  11128. IFS=$as_save_IFS
  11129. fi
  11130. fi
  11131. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11132. if test -n "$ac_ct_RC"; then
  11133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11134. printf "%s\n" "$ac_ct_RC" >&6; }
  11135. else
  11136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11137. printf "%s\n" "no" >&6; }
  11138. fi
  11139. if test "x$ac_ct_RC" = x; then
  11140. RC=""
  11141. else
  11142. case $cross_compiling:$ac_tool_warned in
  11143. yes:)
  11144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11145. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11146. ac_tool_warned=yes ;;
  11147. esac
  11148. RC=$ac_ct_RC
  11149. fi
  11150. else
  11151. RC="$ac_cv_prog_RC"
  11152. fi
  11153. # Source file extension for RC test sources.
  11154. ac_ext=rc
  11155. # Object file extension for compiled RC test sources.
  11156. objext=o
  11157. objext_RC=$objext
  11158. # Code to be used in simple compile tests
  11159. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11160. # Code to be used in simple link tests
  11161. lt_simple_link_test_code=$lt_simple_compile_test_code
  11162. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11163. # If no C compiler was specified, use CC.
  11164. LTCC=${LTCC-"$CC"}
  11165. # If no C compiler flags were specified, use CFLAGS.
  11166. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11167. # Allow CC to be a program name with arguments.
  11168. compiler=$CC
  11169. # save warnings/boilerplate of simple test code
  11170. ac_outfile=conftest.$ac_objext
  11171. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11172. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11173. _lt_compiler_boilerplate=`cat conftest.err`
  11174. $RM conftest*
  11175. ac_outfile=conftest.$ac_objext
  11176. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11177. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11178. _lt_linker_boilerplate=`cat conftest.err`
  11179. $RM -r conftest*
  11180. # Allow CC to be a program name with arguments.
  11181. lt_save_CC=$CC
  11182. lt_save_CFLAGS=$CFLAGS
  11183. lt_save_GCC=$GCC
  11184. GCC=
  11185. CC=${RC-"windres"}
  11186. CFLAGS=
  11187. compiler=$CC
  11188. compiler_RC=$CC
  11189. func_cc_basename $compiler
  11190. cc_basename=$func_cc_basename_result
  11191. lt_cv_prog_compiler_c_o_RC=yes
  11192. if test -n "$compiler"; then
  11193. :
  11194. fi
  11195. GCC=$lt_save_GCC
  11196. ac_ext=c
  11197. ac_cpp='$CPP $CPPFLAGS'
  11198. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11199. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11200. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11201. CC=$lt_save_CC
  11202. CFLAGS=$lt_save_CFLAGS
  11203. # For historical reasons, the library name redundantly includes the major
  11204. # version twice: libSDL3-3.0.so.0.
  11205. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11206. LT_RELEASE=3.0
  11207. # Increment this if there is an incompatible change - but if that happens,
  11208. # we should rename the library from SDL2 to SDL3, at which point this would
  11209. # reset to 0 anyway.
  11210. LT_MAJOR=0
  11211. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11212. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11213. LT_REVISION=$SDL_INTERFACE_AGE
  11214. for ac_prog in gawk mawk nawk awk
  11215. do
  11216. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11217. set dummy $ac_prog; ac_word=$2
  11218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11219. printf %s "checking for $ac_word... " >&6; }
  11220. if test ${ac_cv_prog_AWK+y}
  11221. then :
  11222. printf %s "(cached) " >&6
  11223. else $as_nop
  11224. if test -n "$AWK"; then
  11225. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11226. else
  11227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11228. for as_dir in $PATH
  11229. do
  11230. IFS=$as_save_IFS
  11231. case $as_dir in #(((
  11232. '') as_dir=./ ;;
  11233. */) ;;
  11234. *) as_dir=$as_dir/ ;;
  11235. esac
  11236. for ac_exec_ext in '' $ac_executable_extensions; do
  11237. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11238. ac_cv_prog_AWK="$ac_prog"
  11239. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11240. break 2
  11241. fi
  11242. done
  11243. done
  11244. IFS=$as_save_IFS
  11245. fi
  11246. fi
  11247. AWK=$ac_cv_prog_AWK
  11248. if test -n "$AWK"; then
  11249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11250. printf "%s\n" "$AWK" >&6; }
  11251. else
  11252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11253. printf "%s\n" "no" >&6; }
  11254. fi
  11255. test -n "$AWK" && break
  11256. done
  11257. ac_ext=c
  11258. ac_cpp='$CPP $CPPFLAGS'
  11259. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11260. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11261. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11262. if test -n "$ac_tool_prefix"; then
  11263. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11264. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11266. printf %s "checking for $ac_word... " >&6; }
  11267. if test ${ac_cv_prog_CC+y}
  11268. then :
  11269. printf %s "(cached) " >&6
  11270. else $as_nop
  11271. if test -n "$CC"; then
  11272. ac_cv_prog_CC="$CC" # Let the user override the test.
  11273. else
  11274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11275. for as_dir in $PATH
  11276. do
  11277. IFS=$as_save_IFS
  11278. case $as_dir in #(((
  11279. '') as_dir=./ ;;
  11280. */) ;;
  11281. *) as_dir=$as_dir/ ;;
  11282. esac
  11283. for ac_exec_ext in '' $ac_executable_extensions; do
  11284. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11285. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11286. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11287. break 2
  11288. fi
  11289. done
  11290. done
  11291. IFS=$as_save_IFS
  11292. fi
  11293. fi
  11294. CC=$ac_cv_prog_CC
  11295. if test -n "$CC"; then
  11296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11297. printf "%s\n" "$CC" >&6; }
  11298. else
  11299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11300. printf "%s\n" "no" >&6; }
  11301. fi
  11302. fi
  11303. if test -z "$ac_cv_prog_CC"; then
  11304. ac_ct_CC=$CC
  11305. # Extract the first word of "gcc", so it can be a program name with args.
  11306. set dummy gcc; ac_word=$2
  11307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11308. printf %s "checking for $ac_word... " >&6; }
  11309. if test ${ac_cv_prog_ac_ct_CC+y}
  11310. then :
  11311. printf %s "(cached) " >&6
  11312. else $as_nop
  11313. if test -n "$ac_ct_CC"; then
  11314. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11315. else
  11316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11317. for as_dir in $PATH
  11318. do
  11319. IFS=$as_save_IFS
  11320. case $as_dir in #(((
  11321. '') as_dir=./ ;;
  11322. */) ;;
  11323. *) as_dir=$as_dir/ ;;
  11324. esac
  11325. for ac_exec_ext in '' $ac_executable_extensions; do
  11326. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11327. ac_cv_prog_ac_ct_CC="gcc"
  11328. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11329. break 2
  11330. fi
  11331. done
  11332. done
  11333. IFS=$as_save_IFS
  11334. fi
  11335. fi
  11336. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11337. if test -n "$ac_ct_CC"; then
  11338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11339. printf "%s\n" "$ac_ct_CC" >&6; }
  11340. else
  11341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11342. printf "%s\n" "no" >&6; }
  11343. fi
  11344. if test "x$ac_ct_CC" = x; then
  11345. CC=""
  11346. else
  11347. case $cross_compiling:$ac_tool_warned in
  11348. yes:)
  11349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11350. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11351. ac_tool_warned=yes ;;
  11352. esac
  11353. CC=$ac_ct_CC
  11354. fi
  11355. else
  11356. CC="$ac_cv_prog_CC"
  11357. fi
  11358. if test -z "$CC"; then
  11359. if test -n "$ac_tool_prefix"; then
  11360. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11361. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11363. printf %s "checking for $ac_word... " >&6; }
  11364. if test ${ac_cv_prog_CC+y}
  11365. then :
  11366. printf %s "(cached) " >&6
  11367. else $as_nop
  11368. if test -n "$CC"; then
  11369. ac_cv_prog_CC="$CC" # Let the user override the test.
  11370. else
  11371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11372. for as_dir in $PATH
  11373. do
  11374. IFS=$as_save_IFS
  11375. case $as_dir in #(((
  11376. '') as_dir=./ ;;
  11377. */) ;;
  11378. *) as_dir=$as_dir/ ;;
  11379. esac
  11380. for ac_exec_ext in '' $ac_executable_extensions; do
  11381. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11382. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11383. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11384. break 2
  11385. fi
  11386. done
  11387. done
  11388. IFS=$as_save_IFS
  11389. fi
  11390. fi
  11391. CC=$ac_cv_prog_CC
  11392. if test -n "$CC"; then
  11393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11394. printf "%s\n" "$CC" >&6; }
  11395. else
  11396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11397. printf "%s\n" "no" >&6; }
  11398. fi
  11399. fi
  11400. fi
  11401. if test -z "$CC"; then
  11402. # Extract the first word of "cc", so it can be a program name with args.
  11403. set dummy cc; ac_word=$2
  11404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11405. printf %s "checking for $ac_word... " >&6; }
  11406. if test ${ac_cv_prog_CC+y}
  11407. then :
  11408. printf %s "(cached) " >&6
  11409. else $as_nop
  11410. if test -n "$CC"; then
  11411. ac_cv_prog_CC="$CC" # Let the user override the test.
  11412. else
  11413. ac_prog_rejected=no
  11414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11415. for as_dir in $PATH
  11416. do
  11417. IFS=$as_save_IFS
  11418. case $as_dir in #(((
  11419. '') as_dir=./ ;;
  11420. */) ;;
  11421. *) as_dir=$as_dir/ ;;
  11422. esac
  11423. for ac_exec_ext in '' $ac_executable_extensions; do
  11424. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11425. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11426. ac_prog_rejected=yes
  11427. continue
  11428. fi
  11429. ac_cv_prog_CC="cc"
  11430. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11431. break 2
  11432. fi
  11433. done
  11434. done
  11435. IFS=$as_save_IFS
  11436. if test $ac_prog_rejected = yes; then
  11437. # We found a bogon in the path, so make sure we never use it.
  11438. set dummy $ac_cv_prog_CC
  11439. shift
  11440. if test $# != 0; then
  11441. # We chose a different compiler from the bogus one.
  11442. # However, it has the same basename, so the bogon will be chosen
  11443. # first if we set CC to just the basename; use the full file name.
  11444. shift
  11445. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11446. fi
  11447. fi
  11448. fi
  11449. fi
  11450. CC=$ac_cv_prog_CC
  11451. if test -n "$CC"; then
  11452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11453. printf "%s\n" "$CC" >&6; }
  11454. else
  11455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11456. printf "%s\n" "no" >&6; }
  11457. fi
  11458. fi
  11459. if test -z "$CC"; then
  11460. if test -n "$ac_tool_prefix"; then
  11461. for ac_prog in cl.exe
  11462. do
  11463. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11464. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11466. printf %s "checking for $ac_word... " >&6; }
  11467. if test ${ac_cv_prog_CC+y}
  11468. then :
  11469. printf %s "(cached) " >&6
  11470. else $as_nop
  11471. if test -n "$CC"; then
  11472. ac_cv_prog_CC="$CC" # Let the user override the test.
  11473. else
  11474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11475. for as_dir in $PATH
  11476. do
  11477. IFS=$as_save_IFS
  11478. case $as_dir in #(((
  11479. '') as_dir=./ ;;
  11480. */) ;;
  11481. *) as_dir=$as_dir/ ;;
  11482. esac
  11483. for ac_exec_ext in '' $ac_executable_extensions; do
  11484. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11485. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11486. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11487. break 2
  11488. fi
  11489. done
  11490. done
  11491. IFS=$as_save_IFS
  11492. fi
  11493. fi
  11494. CC=$ac_cv_prog_CC
  11495. if test -n "$CC"; then
  11496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11497. printf "%s\n" "$CC" >&6; }
  11498. else
  11499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11500. printf "%s\n" "no" >&6; }
  11501. fi
  11502. test -n "$CC" && break
  11503. done
  11504. fi
  11505. if test -z "$CC"; then
  11506. ac_ct_CC=$CC
  11507. for ac_prog in cl.exe
  11508. do
  11509. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11510. set dummy $ac_prog; ac_word=$2
  11511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11512. printf %s "checking for $ac_word... " >&6; }
  11513. if test ${ac_cv_prog_ac_ct_CC+y}
  11514. then :
  11515. printf %s "(cached) " >&6
  11516. else $as_nop
  11517. if test -n "$ac_ct_CC"; then
  11518. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11519. else
  11520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11521. for as_dir in $PATH
  11522. do
  11523. IFS=$as_save_IFS
  11524. case $as_dir in #(((
  11525. '') as_dir=./ ;;
  11526. */) ;;
  11527. *) as_dir=$as_dir/ ;;
  11528. esac
  11529. for ac_exec_ext in '' $ac_executable_extensions; do
  11530. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11531. ac_cv_prog_ac_ct_CC="$ac_prog"
  11532. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11533. break 2
  11534. fi
  11535. done
  11536. done
  11537. IFS=$as_save_IFS
  11538. fi
  11539. fi
  11540. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11541. if test -n "$ac_ct_CC"; then
  11542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11543. printf "%s\n" "$ac_ct_CC" >&6; }
  11544. else
  11545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11546. printf "%s\n" "no" >&6; }
  11547. fi
  11548. test -n "$ac_ct_CC" && break
  11549. done
  11550. if test "x$ac_ct_CC" = x; then
  11551. CC=""
  11552. else
  11553. case $cross_compiling:$ac_tool_warned in
  11554. yes:)
  11555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11556. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11557. ac_tool_warned=yes ;;
  11558. esac
  11559. CC=$ac_ct_CC
  11560. fi
  11561. fi
  11562. fi
  11563. if test -z "$CC"; then
  11564. if test -n "$ac_tool_prefix"; then
  11565. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11566. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11568. printf %s "checking for $ac_word... " >&6; }
  11569. if test ${ac_cv_prog_CC+y}
  11570. then :
  11571. printf %s "(cached) " >&6
  11572. else $as_nop
  11573. if test -n "$CC"; then
  11574. ac_cv_prog_CC="$CC" # Let the user override the test.
  11575. else
  11576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11577. for as_dir in $PATH
  11578. do
  11579. IFS=$as_save_IFS
  11580. case $as_dir in #(((
  11581. '') as_dir=./ ;;
  11582. */) ;;
  11583. *) as_dir=$as_dir/ ;;
  11584. esac
  11585. for ac_exec_ext in '' $ac_executable_extensions; do
  11586. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11587. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11588. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11589. break 2
  11590. fi
  11591. done
  11592. done
  11593. IFS=$as_save_IFS
  11594. fi
  11595. fi
  11596. CC=$ac_cv_prog_CC
  11597. if test -n "$CC"; then
  11598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11599. printf "%s\n" "$CC" >&6; }
  11600. else
  11601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11602. printf "%s\n" "no" >&6; }
  11603. fi
  11604. fi
  11605. if test -z "$ac_cv_prog_CC"; then
  11606. ac_ct_CC=$CC
  11607. # Extract the first word of "clang", so it can be a program name with args.
  11608. set dummy clang; ac_word=$2
  11609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11610. printf %s "checking for $ac_word... " >&6; }
  11611. if test ${ac_cv_prog_ac_ct_CC+y}
  11612. then :
  11613. printf %s "(cached) " >&6
  11614. else $as_nop
  11615. if test -n "$ac_ct_CC"; then
  11616. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11617. else
  11618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11619. for as_dir in $PATH
  11620. do
  11621. IFS=$as_save_IFS
  11622. case $as_dir in #(((
  11623. '') as_dir=./ ;;
  11624. */) ;;
  11625. *) as_dir=$as_dir/ ;;
  11626. esac
  11627. for ac_exec_ext in '' $ac_executable_extensions; do
  11628. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11629. ac_cv_prog_ac_ct_CC="clang"
  11630. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11631. break 2
  11632. fi
  11633. done
  11634. done
  11635. IFS=$as_save_IFS
  11636. fi
  11637. fi
  11638. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11639. if test -n "$ac_ct_CC"; then
  11640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11641. printf "%s\n" "$ac_ct_CC" >&6; }
  11642. else
  11643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11644. printf "%s\n" "no" >&6; }
  11645. fi
  11646. if test "x$ac_ct_CC" = x; then
  11647. CC=""
  11648. else
  11649. case $cross_compiling:$ac_tool_warned in
  11650. yes:)
  11651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11652. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11653. ac_tool_warned=yes ;;
  11654. esac
  11655. CC=$ac_ct_CC
  11656. fi
  11657. else
  11658. CC="$ac_cv_prog_CC"
  11659. fi
  11660. fi
  11661. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11662. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11663. as_fn_error $? "no acceptable C compiler found in \$PATH
  11664. See \`config.log' for more details" "$LINENO" 5; }
  11665. # Provide some information about the compiler.
  11666. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11667. set X $ac_compile
  11668. ac_compiler=$2
  11669. for ac_option in --version -v -V -qversion -version; do
  11670. { { ac_try="$ac_compiler $ac_option >&5"
  11671. case "(($ac_try" in
  11672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11673. *) ac_try_echo=$ac_try;;
  11674. esac
  11675. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11676. printf "%s\n" "$ac_try_echo"; } >&5
  11677. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11678. ac_status=$?
  11679. if test -s conftest.err; then
  11680. sed '10a\
  11681. ... rest of stderr output deleted ...
  11682. 10q' conftest.err >conftest.er1
  11683. cat conftest.er1 >&5
  11684. fi
  11685. rm -f conftest.er1 conftest.err
  11686. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11687. test $ac_status = 0; }
  11688. done
  11689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11690. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11691. if test ${ac_cv_c_compiler_gnu+y}
  11692. then :
  11693. printf %s "(cached) " >&6
  11694. else $as_nop
  11695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11696. /* end confdefs.h. */
  11697. int
  11698. main (void)
  11699. {
  11700. #ifndef __GNUC__
  11701. choke me
  11702. #endif
  11703. ;
  11704. return 0;
  11705. }
  11706. _ACEOF
  11707. if ac_fn_c_try_compile "$LINENO"
  11708. then :
  11709. ac_compiler_gnu=yes
  11710. else $as_nop
  11711. ac_compiler_gnu=no
  11712. fi
  11713. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11714. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11715. fi
  11716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11717. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11718. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11719. if test $ac_compiler_gnu = yes; then
  11720. GCC=yes
  11721. else
  11722. GCC=
  11723. fi
  11724. ac_test_CFLAGS=${CFLAGS+y}
  11725. ac_save_CFLAGS=$CFLAGS
  11726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11727. printf %s "checking whether $CC accepts -g... " >&6; }
  11728. if test ${ac_cv_prog_cc_g+y}
  11729. then :
  11730. printf %s "(cached) " >&6
  11731. else $as_nop
  11732. ac_save_c_werror_flag=$ac_c_werror_flag
  11733. ac_c_werror_flag=yes
  11734. ac_cv_prog_cc_g=no
  11735. CFLAGS="-g"
  11736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11737. /* end confdefs.h. */
  11738. int
  11739. main (void)
  11740. {
  11741. ;
  11742. return 0;
  11743. }
  11744. _ACEOF
  11745. if ac_fn_c_try_compile "$LINENO"
  11746. then :
  11747. ac_cv_prog_cc_g=yes
  11748. else $as_nop
  11749. CFLAGS=""
  11750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11751. /* end confdefs.h. */
  11752. int
  11753. main (void)
  11754. {
  11755. ;
  11756. return 0;
  11757. }
  11758. _ACEOF
  11759. if ac_fn_c_try_compile "$LINENO"
  11760. then :
  11761. else $as_nop
  11762. ac_c_werror_flag=$ac_save_c_werror_flag
  11763. CFLAGS="-g"
  11764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11765. /* end confdefs.h. */
  11766. int
  11767. main (void)
  11768. {
  11769. ;
  11770. return 0;
  11771. }
  11772. _ACEOF
  11773. if ac_fn_c_try_compile "$LINENO"
  11774. then :
  11775. ac_cv_prog_cc_g=yes
  11776. fi
  11777. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11778. fi
  11779. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11780. fi
  11781. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11782. ac_c_werror_flag=$ac_save_c_werror_flag
  11783. fi
  11784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11785. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11786. if test $ac_test_CFLAGS; then
  11787. CFLAGS=$ac_save_CFLAGS
  11788. elif test $ac_cv_prog_cc_g = yes; then
  11789. if test "$GCC" = yes; then
  11790. CFLAGS="-g -O2"
  11791. else
  11792. CFLAGS="-g"
  11793. fi
  11794. else
  11795. if test "$GCC" = yes; then
  11796. CFLAGS="-O2"
  11797. else
  11798. CFLAGS=
  11799. fi
  11800. fi
  11801. ac_prog_cc_stdc=no
  11802. if test x$ac_prog_cc_stdc = xno
  11803. then :
  11804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11805. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11806. if test ${ac_cv_prog_cc_c11+y}
  11807. then :
  11808. printf %s "(cached) " >&6
  11809. else $as_nop
  11810. ac_cv_prog_cc_c11=no
  11811. ac_save_CC=$CC
  11812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11813. /* end confdefs.h. */
  11814. $ac_c_conftest_c11_program
  11815. _ACEOF
  11816. for ac_arg in '' -std=gnu11
  11817. do
  11818. CC="$ac_save_CC $ac_arg"
  11819. if ac_fn_c_try_compile "$LINENO"
  11820. then :
  11821. ac_cv_prog_cc_c11=$ac_arg
  11822. fi
  11823. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11824. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11825. done
  11826. rm -f conftest.$ac_ext
  11827. CC=$ac_save_CC
  11828. fi
  11829. if test "x$ac_cv_prog_cc_c11" = xno
  11830. then :
  11831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11832. printf "%s\n" "unsupported" >&6; }
  11833. else $as_nop
  11834. if test "x$ac_cv_prog_cc_c11" = x
  11835. then :
  11836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11837. printf "%s\n" "none needed" >&6; }
  11838. else $as_nop
  11839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11840. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11841. CC="$CC $ac_cv_prog_cc_c11"
  11842. fi
  11843. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11844. ac_prog_cc_stdc=c11
  11845. fi
  11846. fi
  11847. if test x$ac_prog_cc_stdc = xno
  11848. then :
  11849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11850. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11851. if test ${ac_cv_prog_cc_c99+y}
  11852. then :
  11853. printf %s "(cached) " >&6
  11854. else $as_nop
  11855. ac_cv_prog_cc_c99=no
  11856. ac_save_CC=$CC
  11857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11858. /* end confdefs.h. */
  11859. $ac_c_conftest_c99_program
  11860. _ACEOF
  11861. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11862. do
  11863. CC="$ac_save_CC $ac_arg"
  11864. if ac_fn_c_try_compile "$LINENO"
  11865. then :
  11866. ac_cv_prog_cc_c99=$ac_arg
  11867. fi
  11868. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11869. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11870. done
  11871. rm -f conftest.$ac_ext
  11872. CC=$ac_save_CC
  11873. fi
  11874. if test "x$ac_cv_prog_cc_c99" = xno
  11875. then :
  11876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11877. printf "%s\n" "unsupported" >&6; }
  11878. else $as_nop
  11879. if test "x$ac_cv_prog_cc_c99" = x
  11880. then :
  11881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11882. printf "%s\n" "none needed" >&6; }
  11883. else $as_nop
  11884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11885. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11886. CC="$CC $ac_cv_prog_cc_c99"
  11887. fi
  11888. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11889. ac_prog_cc_stdc=c99
  11890. fi
  11891. fi
  11892. if test x$ac_prog_cc_stdc = xno
  11893. then :
  11894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11895. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11896. if test ${ac_cv_prog_cc_c89+y}
  11897. then :
  11898. printf %s "(cached) " >&6
  11899. else $as_nop
  11900. ac_cv_prog_cc_c89=no
  11901. ac_save_CC=$CC
  11902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11903. /* end confdefs.h. */
  11904. $ac_c_conftest_c89_program
  11905. _ACEOF
  11906. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11907. do
  11908. CC="$ac_save_CC $ac_arg"
  11909. if ac_fn_c_try_compile "$LINENO"
  11910. then :
  11911. ac_cv_prog_cc_c89=$ac_arg
  11912. fi
  11913. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11914. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11915. done
  11916. rm -f conftest.$ac_ext
  11917. CC=$ac_save_CC
  11918. fi
  11919. if test "x$ac_cv_prog_cc_c89" = xno
  11920. then :
  11921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11922. printf "%s\n" "unsupported" >&6; }
  11923. else $as_nop
  11924. if test "x$ac_cv_prog_cc_c89" = x
  11925. then :
  11926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11927. printf "%s\n" "none needed" >&6; }
  11928. else $as_nop
  11929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11930. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  11931. CC="$CC $ac_cv_prog_cc_c89"
  11932. fi
  11933. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  11934. ac_prog_cc_stdc=c89
  11935. fi
  11936. fi
  11937. ac_ext=c
  11938. ac_cpp='$CPP $CPPFLAGS'
  11939. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11940. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11941. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11942. ac_ext=cpp
  11943. ac_cpp='$CXXCPP $CPPFLAGS'
  11944. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11945. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11946. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11947. if test -z "$CXX"; then
  11948. if test -n "$CCC"; then
  11949. CXX=$CCC
  11950. else
  11951. if test -n "$ac_tool_prefix"; then
  11952. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  11953. do
  11954. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11955. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11957. printf %s "checking for $ac_word... " >&6; }
  11958. if test ${ac_cv_prog_CXX+y}
  11959. then :
  11960. printf %s "(cached) " >&6
  11961. else $as_nop
  11962. if test -n "$CXX"; then
  11963. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11964. else
  11965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11966. for as_dir in $PATH
  11967. do
  11968. IFS=$as_save_IFS
  11969. case $as_dir in #(((
  11970. '') as_dir=./ ;;
  11971. */) ;;
  11972. *) as_dir=$as_dir/ ;;
  11973. esac
  11974. for ac_exec_ext in '' $ac_executable_extensions; do
  11975. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11976. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11977. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11978. break 2
  11979. fi
  11980. done
  11981. done
  11982. IFS=$as_save_IFS
  11983. fi
  11984. fi
  11985. CXX=$ac_cv_prog_CXX
  11986. if test -n "$CXX"; then
  11987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11988. printf "%s\n" "$CXX" >&6; }
  11989. else
  11990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11991. printf "%s\n" "no" >&6; }
  11992. fi
  11993. test -n "$CXX" && break
  11994. done
  11995. fi
  11996. if test -z "$CXX"; then
  11997. ac_ct_CXX=$CXX
  11998. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  11999. do
  12000. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12001. set dummy $ac_prog; ac_word=$2
  12002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12003. printf %s "checking for $ac_word... " >&6; }
  12004. if test ${ac_cv_prog_ac_ct_CXX+y}
  12005. then :
  12006. printf %s "(cached) " >&6
  12007. else $as_nop
  12008. if test -n "$ac_ct_CXX"; then
  12009. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12010. else
  12011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12012. for as_dir in $PATH
  12013. do
  12014. IFS=$as_save_IFS
  12015. case $as_dir in #(((
  12016. '') as_dir=./ ;;
  12017. */) ;;
  12018. *) as_dir=$as_dir/ ;;
  12019. esac
  12020. for ac_exec_ext in '' $ac_executable_extensions; do
  12021. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12022. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12023. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12024. break 2
  12025. fi
  12026. done
  12027. done
  12028. IFS=$as_save_IFS
  12029. fi
  12030. fi
  12031. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12032. if test -n "$ac_ct_CXX"; then
  12033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12034. printf "%s\n" "$ac_ct_CXX" >&6; }
  12035. else
  12036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12037. printf "%s\n" "no" >&6; }
  12038. fi
  12039. test -n "$ac_ct_CXX" && break
  12040. done
  12041. if test "x$ac_ct_CXX" = x; then
  12042. CXX="g++"
  12043. else
  12044. case $cross_compiling:$ac_tool_warned in
  12045. yes:)
  12046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12047. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12048. ac_tool_warned=yes ;;
  12049. esac
  12050. CXX=$ac_ct_CXX
  12051. fi
  12052. fi
  12053. fi
  12054. fi
  12055. # Provide some information about the compiler.
  12056. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12057. set X $ac_compile
  12058. ac_compiler=$2
  12059. for ac_option in --version -v -V -qversion; do
  12060. { { ac_try="$ac_compiler $ac_option >&5"
  12061. case "(($ac_try" in
  12062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12063. *) ac_try_echo=$ac_try;;
  12064. esac
  12065. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12066. printf "%s\n" "$ac_try_echo"; } >&5
  12067. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12068. ac_status=$?
  12069. if test -s conftest.err; then
  12070. sed '10a\
  12071. ... rest of stderr output deleted ...
  12072. 10q' conftest.err >conftest.er1
  12073. cat conftest.er1 >&5
  12074. fi
  12075. rm -f conftest.er1 conftest.err
  12076. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12077. test $ac_status = 0; }
  12078. done
  12079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12080. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12081. if test ${ac_cv_cxx_compiler_gnu+y}
  12082. then :
  12083. printf %s "(cached) " >&6
  12084. else $as_nop
  12085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12086. /* end confdefs.h. */
  12087. int
  12088. main (void)
  12089. {
  12090. #ifndef __GNUC__
  12091. choke me
  12092. #endif
  12093. ;
  12094. return 0;
  12095. }
  12096. _ACEOF
  12097. if ac_fn_cxx_try_compile "$LINENO"
  12098. then :
  12099. ac_compiler_gnu=yes
  12100. else $as_nop
  12101. ac_compiler_gnu=no
  12102. fi
  12103. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12104. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12105. fi
  12106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12107. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12108. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12109. if test $ac_compiler_gnu = yes; then
  12110. GXX=yes
  12111. else
  12112. GXX=
  12113. fi
  12114. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12115. ac_save_CXXFLAGS=$CXXFLAGS
  12116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12117. printf %s "checking whether $CXX accepts -g... " >&6; }
  12118. if test ${ac_cv_prog_cxx_g+y}
  12119. then :
  12120. printf %s "(cached) " >&6
  12121. else $as_nop
  12122. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12123. ac_cxx_werror_flag=yes
  12124. ac_cv_prog_cxx_g=no
  12125. CXXFLAGS="-g"
  12126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12127. /* end confdefs.h. */
  12128. int
  12129. main (void)
  12130. {
  12131. ;
  12132. return 0;
  12133. }
  12134. _ACEOF
  12135. if ac_fn_cxx_try_compile "$LINENO"
  12136. then :
  12137. ac_cv_prog_cxx_g=yes
  12138. else $as_nop
  12139. CXXFLAGS=""
  12140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12141. /* end confdefs.h. */
  12142. int
  12143. main (void)
  12144. {
  12145. ;
  12146. return 0;
  12147. }
  12148. _ACEOF
  12149. if ac_fn_cxx_try_compile "$LINENO"
  12150. then :
  12151. else $as_nop
  12152. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12153. CXXFLAGS="-g"
  12154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12155. /* end confdefs.h. */
  12156. int
  12157. main (void)
  12158. {
  12159. ;
  12160. return 0;
  12161. }
  12162. _ACEOF
  12163. if ac_fn_cxx_try_compile "$LINENO"
  12164. then :
  12165. ac_cv_prog_cxx_g=yes
  12166. fi
  12167. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12168. fi
  12169. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12170. fi
  12171. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12172. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12173. fi
  12174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12175. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12176. if test $ac_test_CXXFLAGS; then
  12177. CXXFLAGS=$ac_save_CXXFLAGS
  12178. elif test $ac_cv_prog_cxx_g = yes; then
  12179. if test "$GXX" = yes; then
  12180. CXXFLAGS="-g -O2"
  12181. else
  12182. CXXFLAGS="-g"
  12183. fi
  12184. else
  12185. if test "$GXX" = yes; then
  12186. CXXFLAGS="-O2"
  12187. else
  12188. CXXFLAGS=
  12189. fi
  12190. fi
  12191. ac_prog_cxx_stdcxx=no
  12192. if test x$ac_prog_cxx_stdcxx = xno
  12193. then :
  12194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12195. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12196. if test ${ac_cv_prog_cxx_11+y}
  12197. then :
  12198. printf %s "(cached) " >&6
  12199. else $as_nop
  12200. ac_cv_prog_cxx_11=no
  12201. ac_save_CXX=$CXX
  12202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12203. /* end confdefs.h. */
  12204. $ac_cxx_conftest_cxx11_program
  12205. _ACEOF
  12206. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12207. do
  12208. CXX="$ac_save_CXX $ac_arg"
  12209. if ac_fn_cxx_try_compile "$LINENO"
  12210. then :
  12211. ac_cv_prog_cxx_cxx11=$ac_arg
  12212. fi
  12213. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12214. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12215. done
  12216. rm -f conftest.$ac_ext
  12217. CXX=$ac_save_CXX
  12218. fi
  12219. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12220. then :
  12221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12222. printf "%s\n" "unsupported" >&6; }
  12223. else $as_nop
  12224. if test "x$ac_cv_prog_cxx_cxx11" = x
  12225. then :
  12226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12227. printf "%s\n" "none needed" >&6; }
  12228. else $as_nop
  12229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12230. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12231. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12232. fi
  12233. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12234. ac_prog_cxx_stdcxx=cxx11
  12235. fi
  12236. fi
  12237. if test x$ac_prog_cxx_stdcxx = xno
  12238. then :
  12239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12240. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12241. if test ${ac_cv_prog_cxx_98+y}
  12242. then :
  12243. printf %s "(cached) " >&6
  12244. else $as_nop
  12245. ac_cv_prog_cxx_98=no
  12246. ac_save_CXX=$CXX
  12247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12248. /* end confdefs.h. */
  12249. $ac_cxx_conftest_cxx98_program
  12250. _ACEOF
  12251. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12252. do
  12253. CXX="$ac_save_CXX $ac_arg"
  12254. if ac_fn_cxx_try_compile "$LINENO"
  12255. then :
  12256. ac_cv_prog_cxx_cxx98=$ac_arg
  12257. fi
  12258. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12259. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12260. done
  12261. rm -f conftest.$ac_ext
  12262. CXX=$ac_save_CXX
  12263. fi
  12264. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12265. then :
  12266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12267. printf "%s\n" "unsupported" >&6; }
  12268. else $as_nop
  12269. if test "x$ac_cv_prog_cxx_cxx98" = x
  12270. then :
  12271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12272. printf "%s\n" "none needed" >&6; }
  12273. else $as_nop
  12274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12275. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12276. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12277. fi
  12278. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12279. ac_prog_cxx_stdcxx=cxx98
  12280. fi
  12281. fi
  12282. ac_ext=c
  12283. ac_cpp='$CPP $CPPFLAGS'
  12284. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12285. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12286. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12287. func_stripname_cnf ()
  12288. {
  12289. case $2 in
  12290. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12291. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12292. esac
  12293. } # func_stripname_cnf
  12294. if test -n "$CXX" && ( test no != "$CXX" &&
  12295. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12296. (test g++ != "$CXX"))); then
  12297. ac_ext=cpp
  12298. ac_cpp='$CXXCPP $CPPFLAGS'
  12299. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12300. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12301. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12303. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12304. if test -z "$CXXCPP"; then
  12305. if test ${ac_cv_prog_CXXCPP+y}
  12306. then :
  12307. printf %s "(cached) " >&6
  12308. else $as_nop
  12309. # Double quotes because $CXX needs to be expanded
  12310. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12311. do
  12312. ac_preproc_ok=false
  12313. for ac_cxx_preproc_warn_flag in '' yes
  12314. do
  12315. # Use a header file that comes with gcc, so configuring glibc
  12316. # with a fresh cross-compiler works.
  12317. # On the NeXT, cc -E runs the code through the compiler's parser,
  12318. # not just through cpp. "Syntax error" is here to catch this case.
  12319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12320. /* end confdefs.h. */
  12321. #include <limits.h>
  12322. Syntax error
  12323. _ACEOF
  12324. if ac_fn_cxx_try_cpp "$LINENO"
  12325. then :
  12326. else $as_nop
  12327. # Broken: fails on valid input.
  12328. continue
  12329. fi
  12330. rm -f conftest.err conftest.i conftest.$ac_ext
  12331. # OK, works on sane cases. Now check whether nonexistent headers
  12332. # can be detected and how.
  12333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12334. /* end confdefs.h. */
  12335. #include <ac_nonexistent.h>
  12336. _ACEOF
  12337. if ac_fn_cxx_try_cpp "$LINENO"
  12338. then :
  12339. # Broken: success on invalid input.
  12340. continue
  12341. else $as_nop
  12342. # Passes both tests.
  12343. ac_preproc_ok=:
  12344. break
  12345. fi
  12346. rm -f conftest.err conftest.i conftest.$ac_ext
  12347. done
  12348. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12349. rm -f conftest.i conftest.err conftest.$ac_ext
  12350. if $ac_preproc_ok
  12351. then :
  12352. break
  12353. fi
  12354. done
  12355. ac_cv_prog_CXXCPP=$CXXCPP
  12356. fi
  12357. CXXCPP=$ac_cv_prog_CXXCPP
  12358. else
  12359. ac_cv_prog_CXXCPP=$CXXCPP
  12360. fi
  12361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12362. printf "%s\n" "$CXXCPP" >&6; }
  12363. ac_preproc_ok=false
  12364. for ac_cxx_preproc_warn_flag in '' yes
  12365. do
  12366. # Use a header file that comes with gcc, so configuring glibc
  12367. # with a fresh cross-compiler works.
  12368. # On the NeXT, cc -E runs the code through the compiler's parser,
  12369. # not just through cpp. "Syntax error" is here to catch this case.
  12370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12371. /* end confdefs.h. */
  12372. #include <limits.h>
  12373. Syntax error
  12374. _ACEOF
  12375. if ac_fn_cxx_try_cpp "$LINENO"
  12376. then :
  12377. else $as_nop
  12378. # Broken: fails on valid input.
  12379. continue
  12380. fi
  12381. rm -f conftest.err conftest.i conftest.$ac_ext
  12382. # OK, works on sane cases. Now check whether nonexistent headers
  12383. # can be detected and how.
  12384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12385. /* end confdefs.h. */
  12386. #include <ac_nonexistent.h>
  12387. _ACEOF
  12388. if ac_fn_cxx_try_cpp "$LINENO"
  12389. then :
  12390. # Broken: success on invalid input.
  12391. continue
  12392. else $as_nop
  12393. # Passes both tests.
  12394. ac_preproc_ok=:
  12395. break
  12396. fi
  12397. rm -f conftest.err conftest.i conftest.$ac_ext
  12398. done
  12399. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12400. rm -f conftest.i conftest.err conftest.$ac_ext
  12401. if $ac_preproc_ok
  12402. then :
  12403. else $as_nop
  12404. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12405. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12406. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12407. See \`config.log' for more details" "$LINENO" 5; }
  12408. fi
  12409. ac_ext=c
  12410. ac_cpp='$CPP $CPPFLAGS'
  12411. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12412. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12413. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12414. else
  12415. _lt_caught_CXX_error=yes
  12416. fi
  12417. ac_ext=cpp
  12418. ac_cpp='$CXXCPP $CPPFLAGS'
  12419. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12420. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12421. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12422. archive_cmds_need_lc_CXX=no
  12423. allow_undefined_flag_CXX=
  12424. always_export_symbols_CXX=no
  12425. archive_expsym_cmds_CXX=
  12426. compiler_needs_object_CXX=no
  12427. export_dynamic_flag_spec_CXX=
  12428. hardcode_direct_CXX=no
  12429. hardcode_direct_absolute_CXX=no
  12430. hardcode_libdir_flag_spec_CXX=
  12431. hardcode_libdir_separator_CXX=
  12432. hardcode_minus_L_CXX=no
  12433. hardcode_shlibpath_var_CXX=unsupported
  12434. hardcode_automatic_CXX=no
  12435. inherit_rpath_CXX=no
  12436. module_cmds_CXX=
  12437. module_expsym_cmds_CXX=
  12438. link_all_deplibs_CXX=unknown
  12439. old_archive_cmds_CXX=$old_archive_cmds
  12440. reload_flag_CXX=$reload_flag
  12441. reload_cmds_CXX=$reload_cmds
  12442. no_undefined_flag_CXX=
  12443. whole_archive_flag_spec_CXX=
  12444. enable_shared_with_static_runtimes_CXX=no
  12445. # Source file extension for C++ test sources.
  12446. ac_ext=cpp
  12447. # Object file extension for compiled C++ test sources.
  12448. objext=o
  12449. objext_CXX=$objext
  12450. # No sense in running all these tests if we already determined that
  12451. # the CXX compiler isn't working. Some variables (like enable_shared)
  12452. # are currently assumed to apply to all compilers on this platform,
  12453. # and will be corrupted by setting them based on a non-working compiler.
  12454. if test yes != "$_lt_caught_CXX_error"; then
  12455. # Code to be used in simple compile tests
  12456. lt_simple_compile_test_code="int some_variable = 0;"
  12457. # Code to be used in simple link tests
  12458. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12459. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12460. # If no C compiler was specified, use CC.
  12461. LTCC=${LTCC-"$CC"}
  12462. # If no C compiler flags were specified, use CFLAGS.
  12463. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12464. # Allow CC to be a program name with arguments.
  12465. compiler=$CC
  12466. # save warnings/boilerplate of simple test code
  12467. ac_outfile=conftest.$ac_objext
  12468. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12469. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12470. _lt_compiler_boilerplate=`cat conftest.err`
  12471. $RM conftest*
  12472. ac_outfile=conftest.$ac_objext
  12473. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12474. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12475. _lt_linker_boilerplate=`cat conftest.err`
  12476. $RM -r conftest*
  12477. # Allow CC to be a program name with arguments.
  12478. lt_save_CC=$CC
  12479. lt_save_CFLAGS=$CFLAGS
  12480. lt_save_LD=$LD
  12481. lt_save_GCC=$GCC
  12482. GCC=$GXX
  12483. lt_save_with_gnu_ld=$with_gnu_ld
  12484. lt_save_path_LD=$lt_cv_path_LD
  12485. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12486. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12487. else
  12488. $as_unset lt_cv_prog_gnu_ld
  12489. fi
  12490. if test -n "${lt_cv_path_LDCXX+set}"; then
  12491. lt_cv_path_LD=$lt_cv_path_LDCXX
  12492. else
  12493. $as_unset lt_cv_path_LD
  12494. fi
  12495. test -z "${LDCXX+set}" || LD=$LDCXX
  12496. CC=${CXX-"c++"}
  12497. CFLAGS=$CXXFLAGS
  12498. compiler=$CC
  12499. compiler_CXX=$CC
  12500. func_cc_basename $compiler
  12501. cc_basename=$func_cc_basename_result
  12502. if test -n "$compiler"; then
  12503. # We don't want -fno-exception when compiling C++ code, so set the
  12504. # no_builtin_flag separately
  12505. if test yes = "$GXX"; then
  12506. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12507. else
  12508. lt_prog_compiler_no_builtin_flag_CXX=
  12509. fi
  12510. if test yes = "$GXX"; then
  12511. # Set up default GNU C++ configuration
  12512. # Check whether --with-gnu-ld was given.
  12513. if test ${with_gnu_ld+y}
  12514. then :
  12515. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12516. else $as_nop
  12517. with_gnu_ld=no
  12518. fi
  12519. ac_prog=ld
  12520. if test yes = "$GCC"; then
  12521. # Check if gcc -print-prog-name=ld gives a path.
  12522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12523. printf %s "checking for ld used by $CC... " >&6; }
  12524. case $host in
  12525. *-*-mingw*)
  12526. # gcc leaves a trailing carriage return, which upsets mingw
  12527. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12528. *)
  12529. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12530. esac
  12531. case $ac_prog in
  12532. # Accept absolute paths.
  12533. [\\/]* | ?:[\\/]*)
  12534. re_direlt='/[^/][^/]*/\.\./'
  12535. # Canonicalize the pathname of ld
  12536. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12537. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12538. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12539. done
  12540. test -z "$LD" && LD=$ac_prog
  12541. ;;
  12542. "")
  12543. # If it fails, then pretend we aren't using GCC.
  12544. ac_prog=ld
  12545. ;;
  12546. *)
  12547. # If it is relative, then search for the first ld in PATH.
  12548. with_gnu_ld=unknown
  12549. ;;
  12550. esac
  12551. elif test yes = "$with_gnu_ld"; then
  12552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12553. printf %s "checking for GNU ld... " >&6; }
  12554. else
  12555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12556. printf %s "checking for non-GNU ld... " >&6; }
  12557. fi
  12558. if test ${lt_cv_path_LD+y}
  12559. then :
  12560. printf %s "(cached) " >&6
  12561. else $as_nop
  12562. if test -z "$LD"; then
  12563. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12564. for ac_dir in $PATH; do
  12565. IFS=$lt_save_ifs
  12566. test -z "$ac_dir" && ac_dir=.
  12567. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12568. lt_cv_path_LD=$ac_dir/$ac_prog
  12569. # Check to see if the program is GNU ld. I'd rather use --version,
  12570. # but apparently some variants of GNU ld only accept -v.
  12571. # Break only if it was the GNU/non-GNU ld that we prefer.
  12572. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12573. *GNU* | *'with BFD'*)
  12574. test no != "$with_gnu_ld" && break
  12575. ;;
  12576. *)
  12577. test yes != "$with_gnu_ld" && break
  12578. ;;
  12579. esac
  12580. fi
  12581. done
  12582. IFS=$lt_save_ifs
  12583. else
  12584. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12585. fi
  12586. fi
  12587. LD=$lt_cv_path_LD
  12588. if test -n "$LD"; then
  12589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12590. printf "%s\n" "$LD" >&6; }
  12591. else
  12592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12593. printf "%s\n" "no" >&6; }
  12594. fi
  12595. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12597. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12598. if test ${lt_cv_prog_gnu_ld+y}
  12599. then :
  12600. printf %s "(cached) " >&6
  12601. else $as_nop
  12602. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12603. case `$LD -v 2>&1 </dev/null` in
  12604. *GNU* | *'with BFD'*)
  12605. lt_cv_prog_gnu_ld=yes
  12606. ;;
  12607. *)
  12608. lt_cv_prog_gnu_ld=no
  12609. ;;
  12610. esac
  12611. fi
  12612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12613. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12614. with_gnu_ld=$lt_cv_prog_gnu_ld
  12615. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12616. # archiving commands below assume that GNU ld is being used.
  12617. if test yes = "$with_gnu_ld"; then
  12618. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12619. 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'
  12620. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12621. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12622. # If archive_cmds runs LD, not CC, wlarc should be empty
  12623. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12624. # investigate it a little bit more. (MM)
  12625. wlarc='$wl'
  12626. # ancient GNU ld didn't support --whole-archive et. al.
  12627. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12628. $GREP 'no-whole-archive' > /dev/null; then
  12629. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12630. else
  12631. whole_archive_flag_spec_CXX=
  12632. fi
  12633. else
  12634. with_gnu_ld=no
  12635. wlarc=
  12636. # A generic and very simple default shared library creation
  12637. # command for GNU C++ for the case where it uses the native
  12638. # linker, instead of GNU ld. If possible, this setting should
  12639. # overridden to take advantage of the native linker features on
  12640. # the platform it is being used on.
  12641. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12642. fi
  12643. # Commands to make compiler produce verbose output that lists
  12644. # what "hidden" libraries, object files and flags are used when
  12645. # linking a shared library.
  12646. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12647. else
  12648. GXX=no
  12649. with_gnu_ld=no
  12650. wlarc=
  12651. fi
  12652. # PORTME: fill in a description of your system's C++ link characteristics
  12653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12654. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12655. ld_shlibs_CXX=yes
  12656. case $host_os in
  12657. aix3*)
  12658. # FIXME: insert proper C++ library support
  12659. ld_shlibs_CXX=no
  12660. ;;
  12661. aix[4-9]*)
  12662. if test ia64 = "$host_cpu"; then
  12663. # On IA64, the linker does run time linking by default, so we don't
  12664. # have to do anything special.
  12665. aix_use_runtimelinking=no
  12666. exp_sym_flag='-Bexport'
  12667. no_entry_flag=
  12668. else
  12669. aix_use_runtimelinking=no
  12670. # Test if we are trying to use run time linking or normal
  12671. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12672. # have runtime linking enabled, and use it for executables.
  12673. # For shared libraries, we enable/disable runtime linking
  12674. # depending on the kind of the shared library created -
  12675. # when "with_aix_soname,aix_use_runtimelinking" is:
  12676. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12677. # "aix,yes" lib.so shared, rtl:yes, for executables
  12678. # lib.a static archive
  12679. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12680. # lib.a(lib.so.V) shared, rtl:no, for executables
  12681. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12682. # lib.a(lib.so.V) shared, rtl:no
  12683. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12684. # lib.a static archive
  12685. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12686. for ld_flag in $LDFLAGS; do
  12687. case $ld_flag in
  12688. *-brtl*)
  12689. aix_use_runtimelinking=yes
  12690. break
  12691. ;;
  12692. esac
  12693. done
  12694. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12695. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12696. # so we don't have lib.a shared libs to link our executables.
  12697. # We have to force runtime linking in this case.
  12698. aix_use_runtimelinking=yes
  12699. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12700. fi
  12701. ;;
  12702. esac
  12703. exp_sym_flag='-bexport'
  12704. no_entry_flag='-bnoentry'
  12705. fi
  12706. # When large executables or shared objects are built, AIX ld can
  12707. # have problems creating the table of contents. If linking a library
  12708. # or program results in "error TOC overflow" add -mminimal-toc to
  12709. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12710. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12711. archive_cmds_CXX=''
  12712. hardcode_direct_CXX=yes
  12713. hardcode_direct_absolute_CXX=yes
  12714. hardcode_libdir_separator_CXX=':'
  12715. link_all_deplibs_CXX=yes
  12716. file_list_spec_CXX='$wl-f,'
  12717. case $with_aix_soname,$aix_use_runtimelinking in
  12718. aix,*) ;; # no import file
  12719. svr4,* | *,yes) # use import file
  12720. # The Import File defines what to hardcode.
  12721. hardcode_direct_CXX=no
  12722. hardcode_direct_absolute_CXX=no
  12723. ;;
  12724. esac
  12725. if test yes = "$GXX"; then
  12726. case $host_os in aix4.[012]|aix4.[012].*)
  12727. # We only want to do this on AIX 4.2 and lower, the check
  12728. # below for broken collect2 doesn't work under 4.3+
  12729. collect2name=`$CC -print-prog-name=collect2`
  12730. if test -f "$collect2name" &&
  12731. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12732. then
  12733. # We have reworked collect2
  12734. :
  12735. else
  12736. # We have old collect2
  12737. hardcode_direct_CXX=unsupported
  12738. # It fails to find uninstalled libraries when the uninstalled
  12739. # path is not listed in the libpath. Setting hardcode_minus_L
  12740. # to unsupported forces relinking
  12741. hardcode_minus_L_CXX=yes
  12742. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12743. hardcode_libdir_separator_CXX=
  12744. fi
  12745. esac
  12746. shared_flag='-shared'
  12747. if test yes = "$aix_use_runtimelinking"; then
  12748. shared_flag=$shared_flag' $wl-G'
  12749. fi
  12750. # Need to ensure runtime linking is disabled for the traditional
  12751. # shared library, or the linker may eventually find shared libraries
  12752. # /with/ Import File - we do not want to mix them.
  12753. shared_flag_aix='-shared'
  12754. shared_flag_svr4='-shared $wl-G'
  12755. else
  12756. # not using gcc
  12757. if test ia64 = "$host_cpu"; then
  12758. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12759. # chokes on -Wl,-G. The following line is correct:
  12760. shared_flag='-G'
  12761. else
  12762. if test yes = "$aix_use_runtimelinking"; then
  12763. shared_flag='$wl-G'
  12764. else
  12765. shared_flag='$wl-bM:SRE'
  12766. fi
  12767. shared_flag_aix='$wl-bM:SRE'
  12768. shared_flag_svr4='$wl-G'
  12769. fi
  12770. fi
  12771. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12772. # It seems that -bexpall does not export symbols beginning with
  12773. # underscore (_), so it is better to generate a list of symbols to
  12774. # export.
  12775. always_export_symbols_CXX=yes
  12776. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12777. # Warning - without using the other runtime loading flags (-brtl),
  12778. # -berok will link without error, but may produce a broken library.
  12779. # The "-G" linker flag allows undefined symbols.
  12780. no_undefined_flag_CXX='-bernotok'
  12781. # Determine the default libpath from the value encoded in an empty
  12782. # executable.
  12783. if test set = "${lt_cv_aix_libpath+set}"; then
  12784. aix_libpath=$lt_cv_aix_libpath
  12785. else
  12786. if test ${lt_cv_aix_libpath__CXX+y}
  12787. then :
  12788. printf %s "(cached) " >&6
  12789. else $as_nop
  12790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12791. /* end confdefs.h. */
  12792. int
  12793. main (void)
  12794. {
  12795. ;
  12796. return 0;
  12797. }
  12798. _ACEOF
  12799. if ac_fn_cxx_try_link "$LINENO"
  12800. then :
  12801. lt_aix_libpath_sed='
  12802. /Import File Strings/,/^$/ {
  12803. /^0/ {
  12804. s/^0 *\([^ ]*\) *$/\1/
  12805. p
  12806. }
  12807. }'
  12808. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12809. # Check for a 64-bit object if we didn't find anything.
  12810. if test -z "$lt_cv_aix_libpath__CXX"; then
  12811. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12812. fi
  12813. fi
  12814. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12815. conftest$ac_exeext conftest.$ac_ext
  12816. if test -z "$lt_cv_aix_libpath__CXX"; then
  12817. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12818. fi
  12819. fi
  12820. aix_libpath=$lt_cv_aix_libpath__CXX
  12821. fi
  12822. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12823. 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
  12824. else
  12825. if test ia64 = "$host_cpu"; then
  12826. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12827. allow_undefined_flag_CXX="-z nodefs"
  12828. 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"
  12829. else
  12830. # Determine the default libpath from the value encoded in an
  12831. # empty executable.
  12832. if test set = "${lt_cv_aix_libpath+set}"; then
  12833. aix_libpath=$lt_cv_aix_libpath
  12834. else
  12835. if test ${lt_cv_aix_libpath__CXX+y}
  12836. then :
  12837. printf %s "(cached) " >&6
  12838. else $as_nop
  12839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12840. /* end confdefs.h. */
  12841. int
  12842. main (void)
  12843. {
  12844. ;
  12845. return 0;
  12846. }
  12847. _ACEOF
  12848. if ac_fn_cxx_try_link "$LINENO"
  12849. then :
  12850. lt_aix_libpath_sed='
  12851. /Import File Strings/,/^$/ {
  12852. /^0/ {
  12853. s/^0 *\([^ ]*\) *$/\1/
  12854. p
  12855. }
  12856. }'
  12857. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12858. # Check for a 64-bit object if we didn't find anything.
  12859. if test -z "$lt_cv_aix_libpath__CXX"; then
  12860. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12861. fi
  12862. fi
  12863. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12864. conftest$ac_exeext conftest.$ac_ext
  12865. if test -z "$lt_cv_aix_libpath__CXX"; then
  12866. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12867. fi
  12868. fi
  12869. aix_libpath=$lt_cv_aix_libpath__CXX
  12870. fi
  12871. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12872. # Warning - without using the other run time loading flags,
  12873. # -berok will link without error, but may produce a broken library.
  12874. no_undefined_flag_CXX=' $wl-bernotok'
  12875. allow_undefined_flag_CXX=' $wl-berok'
  12876. if test yes = "$with_gnu_ld"; then
  12877. # We only use this code for GNU lds that support --whole-archive.
  12878. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12879. else
  12880. # Exported symbols can be pulled into shared objects from archives
  12881. whole_archive_flag_spec_CXX='$convenience'
  12882. fi
  12883. archive_cmds_need_lc_CXX=yes
  12884. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12885. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12886. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12887. if test svr4 != "$with_aix_soname"; then
  12888. # This is similar to how AIX traditionally builds its shared
  12889. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12890. 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'
  12891. fi
  12892. if test aix != "$with_aix_soname"; then
  12893. 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'
  12894. else
  12895. # used by -dlpreopen to get the symbols
  12896. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12897. fi
  12898. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12899. fi
  12900. fi
  12901. ;;
  12902. beos*)
  12903. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12904. allow_undefined_flag_CXX=unsupported
  12905. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12906. # support --undefined. This deserves some investigation. FIXME
  12907. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12908. else
  12909. ld_shlibs_CXX=no
  12910. fi
  12911. ;;
  12912. chorus*)
  12913. case $cc_basename in
  12914. *)
  12915. # FIXME: insert proper C++ library support
  12916. ld_shlibs_CXX=no
  12917. ;;
  12918. esac
  12919. ;;
  12920. cygwin* | mingw* | pw32* | cegcc*)
  12921. case $GXX,$cc_basename in
  12922. ,cl* | no,cl*)
  12923. # Native MSVC
  12924. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12925. # no search path for DLLs.
  12926. hardcode_libdir_flag_spec_CXX=' '
  12927. allow_undefined_flag_CXX=unsupported
  12928. always_export_symbols_CXX=yes
  12929. file_list_spec_CXX='@'
  12930. # Tell ltmain to make .lib files, not .a files.
  12931. libext=lib
  12932. # Tell ltmain to make .dll files, not .so files.
  12933. shrext_cmds=.dll
  12934. # FIXME: Setting linknames here is a bad hack.
  12935. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12936. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12937. cp "$export_symbols" "$output_objdir/$soname.def";
  12938. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12939. else
  12940. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12941. fi~
  12942. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12943. linknames='
  12944. # The linker will not automatically build a static lib if we build a DLL.
  12945. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12946. enable_shared_with_static_runtimes_CXX=yes
  12947. # Don't use ranlib
  12948. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12949. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12950. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12951. case $lt_outputfile in
  12952. *.exe|*.EXE) ;;
  12953. *)
  12954. lt_outputfile=$lt_outputfile.exe
  12955. lt_tool_outputfile=$lt_tool_outputfile.exe
  12956. ;;
  12957. esac~
  12958. func_to_tool_file "$lt_outputfile"~
  12959. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12960. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12961. $RM "$lt_outputfile.manifest";
  12962. fi'
  12963. ;;
  12964. *)
  12965. # g++
  12966. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12967. # as there is no search path for DLLs.
  12968. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12969. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12970. allow_undefined_flag_CXX=unsupported
  12971. always_export_symbols_CXX=no
  12972. enable_shared_with_static_runtimes_CXX=yes
  12973. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12974. 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'
  12975. # If the export-symbols file already is a .def file, use it as
  12976. # is; otherwise, prepend EXPORTS...
  12977. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12978. cp $export_symbols $output_objdir/$soname.def;
  12979. else
  12980. echo EXPORTS > $output_objdir/$soname.def;
  12981. cat $export_symbols >> $output_objdir/$soname.def;
  12982. fi~
  12983. $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'
  12984. else
  12985. ld_shlibs_CXX=no
  12986. fi
  12987. ;;
  12988. esac
  12989. ;;
  12990. darwin* | rhapsody*)
  12991. archive_cmds_need_lc_CXX=no
  12992. hardcode_direct_CXX=no
  12993. hardcode_automatic_CXX=yes
  12994. hardcode_shlibpath_var_CXX=unsupported
  12995. if test yes = "$lt_cv_ld_force_load"; then
  12996. 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\"`'
  12997. else
  12998. whole_archive_flag_spec_CXX=''
  12999. fi
  13000. link_all_deplibs_CXX=yes
  13001. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13002. case $cc_basename in
  13003. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13004. *) _lt_dar_can_shared=$GCC ;;
  13005. esac
  13006. if test yes = "$_lt_dar_can_shared"; then
  13007. output_verbose_link_cmd=func_echo_all
  13008. 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"
  13009. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13010. 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"
  13011. 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"
  13012. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13013. 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"
  13014. 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"
  13015. fi
  13016. else
  13017. ld_shlibs_CXX=no
  13018. fi
  13019. ;;
  13020. os2*)
  13021. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13022. hardcode_minus_L_CXX=yes
  13023. allow_undefined_flag_CXX=unsupported
  13024. shrext_cmds=.dll
  13025. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13026. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13027. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13028. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13029. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13030. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13031. emximp -o $lib $output_objdir/$libname.def'
  13032. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13033. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13034. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13035. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13036. prefix_cmds="$SED"~
  13037. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13038. prefix_cmds="$prefix_cmds -e 1d";
  13039. fi~
  13040. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13041. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13042. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13043. emximp -o $lib $output_objdir/$libname.def'
  13044. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13045. enable_shared_with_static_runtimes_CXX=yes
  13046. file_list_spec_CXX='@'
  13047. ;;
  13048. dgux*)
  13049. case $cc_basename in
  13050. ec++*)
  13051. # FIXME: insert proper C++ library support
  13052. ld_shlibs_CXX=no
  13053. ;;
  13054. ghcx*)
  13055. # Green Hills C++ Compiler
  13056. # FIXME: insert proper C++ library support
  13057. ld_shlibs_CXX=no
  13058. ;;
  13059. *)
  13060. # FIXME: insert proper C++ library support
  13061. ld_shlibs_CXX=no
  13062. ;;
  13063. esac
  13064. ;;
  13065. freebsd2.*)
  13066. # C++ shared libraries reported to be fairly broken before
  13067. # switch to ELF
  13068. ld_shlibs_CXX=no
  13069. ;;
  13070. freebsd-elf*)
  13071. archive_cmds_need_lc_CXX=no
  13072. ;;
  13073. freebsd* | dragonfly* | midnightbsd*)
  13074. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13075. # conventions
  13076. ld_shlibs_CXX=yes
  13077. ;;
  13078. haiku*)
  13079. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13080. link_all_deplibs_CXX=yes
  13081. ;;
  13082. hpux9*)
  13083. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13084. hardcode_libdir_separator_CXX=:
  13085. export_dynamic_flag_spec_CXX='$wl-E'
  13086. hardcode_direct_CXX=yes
  13087. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13088. # but as the default
  13089. # location of the library.
  13090. case $cc_basename in
  13091. CC*)
  13092. # FIXME: insert proper C++ library support
  13093. ld_shlibs_CXX=no
  13094. ;;
  13095. aCC*)
  13096. 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'
  13097. # Commands to make compiler produce verbose output that lists
  13098. # what "hidden" libraries, object files and flags are used when
  13099. # linking a shared library.
  13100. #
  13101. # There doesn't appear to be a way to prevent this compiler from
  13102. # explicitly linking system object files so we need to strip them
  13103. # from the output so that they don't get included in the library
  13104. # dependencies.
  13105. 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"'
  13106. ;;
  13107. *)
  13108. if test yes = "$GXX"; then
  13109. 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'
  13110. else
  13111. # FIXME: insert proper C++ library support
  13112. ld_shlibs_CXX=no
  13113. fi
  13114. ;;
  13115. esac
  13116. ;;
  13117. hpux10*|hpux11*)
  13118. if test no = "$with_gnu_ld"; then
  13119. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13120. hardcode_libdir_separator_CXX=:
  13121. case $host_cpu in
  13122. hppa*64*|ia64*)
  13123. ;;
  13124. *)
  13125. export_dynamic_flag_spec_CXX='$wl-E'
  13126. ;;
  13127. esac
  13128. fi
  13129. case $host_cpu in
  13130. hppa*64*|ia64*)
  13131. hardcode_direct_CXX=no
  13132. hardcode_shlibpath_var_CXX=no
  13133. ;;
  13134. *)
  13135. hardcode_direct_CXX=yes
  13136. hardcode_direct_absolute_CXX=yes
  13137. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13138. # but as the default
  13139. # location of the library.
  13140. ;;
  13141. esac
  13142. case $cc_basename in
  13143. CC*)
  13144. # FIXME: insert proper C++ library support
  13145. ld_shlibs_CXX=no
  13146. ;;
  13147. aCC*)
  13148. case $host_cpu in
  13149. hppa*64*)
  13150. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13151. ;;
  13152. ia64*)
  13153. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13154. ;;
  13155. *)
  13156. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13157. ;;
  13158. esac
  13159. # Commands to make compiler produce verbose output that lists
  13160. # what "hidden" libraries, object files and flags are used when
  13161. # linking a shared library.
  13162. #
  13163. # There doesn't appear to be a way to prevent this compiler from
  13164. # explicitly linking system object files so we need to strip them
  13165. # from the output so that they don't get included in the library
  13166. # dependencies.
  13167. 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"'
  13168. ;;
  13169. *)
  13170. if test yes = "$GXX"; then
  13171. if test no = "$with_gnu_ld"; then
  13172. case $host_cpu in
  13173. hppa*64*)
  13174. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13175. ;;
  13176. ia64*)
  13177. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13178. ;;
  13179. *)
  13180. 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'
  13181. ;;
  13182. esac
  13183. fi
  13184. else
  13185. # FIXME: insert proper C++ library support
  13186. ld_shlibs_CXX=no
  13187. fi
  13188. ;;
  13189. esac
  13190. ;;
  13191. interix[3-9]*)
  13192. hardcode_direct_CXX=no
  13193. hardcode_shlibpath_var_CXX=no
  13194. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13195. export_dynamic_flag_spec_CXX='$wl-E'
  13196. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13197. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13198. # default) and relocated if they conflict, which is a slow very memory
  13199. # consuming and fragmenting process. To avoid this, we pick a random,
  13200. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13201. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13202. 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'
  13203. 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'
  13204. ;;
  13205. irix5* | irix6*)
  13206. case $cc_basename in
  13207. CC*)
  13208. # SGI C++
  13209. 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'
  13210. # Archives containing C++ object files must be created using
  13211. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13212. # necessary to make sure instantiated templates are included
  13213. # in the archive.
  13214. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13215. ;;
  13216. *)
  13217. if test yes = "$GXX"; then
  13218. if test no = "$with_gnu_ld"; then
  13219. 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'
  13220. else
  13221. 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'
  13222. fi
  13223. fi
  13224. link_all_deplibs_CXX=yes
  13225. ;;
  13226. esac
  13227. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13228. hardcode_libdir_separator_CXX=:
  13229. inherit_rpath_CXX=yes
  13230. ;;
  13231. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13232. case $cc_basename in
  13233. KCC*)
  13234. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13235. # KCC will only create a shared library if the output file
  13236. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13237. # to its proper name (with version) after linking.
  13238. 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'
  13239. 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'
  13240. # Commands to make compiler produce verbose output that lists
  13241. # what "hidden" libraries, object files and flags are used when
  13242. # linking a shared library.
  13243. #
  13244. # There doesn't appear to be a way to prevent this compiler from
  13245. # explicitly linking system object files so we need to strip them
  13246. # from the output so that they don't get included in the library
  13247. # dependencies.
  13248. 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"'
  13249. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13250. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13251. # Archives containing C++ object files must be created using
  13252. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13253. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13254. ;;
  13255. icpc* | ecpc* )
  13256. # Intel C++
  13257. with_gnu_ld=yes
  13258. # version 8.0 and above of icpc choke on multiply defined symbols
  13259. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13260. # earlier do not add the objects themselves.
  13261. case `$CC -V 2>&1` in
  13262. *"Version 7."*)
  13263. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13264. 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'
  13265. ;;
  13266. *) # Version 8.0 or newer
  13267. tmp_idyn=
  13268. case $host_cpu in
  13269. ia64*) tmp_idyn=' -i_dynamic';;
  13270. esac
  13271. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13272. 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'
  13273. ;;
  13274. esac
  13275. archive_cmds_need_lc_CXX=no
  13276. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13277. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13278. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13279. ;;
  13280. pgCC* | pgcpp*)
  13281. # Portland Group C++ compiler
  13282. case `$CC -V` in
  13283. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13284. prelink_cmds_CXX='tpldir=Template.dir~
  13285. rm -rf $tpldir~
  13286. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13287. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13288. old_archive_cmds_CXX='tpldir=Template.dir~
  13289. rm -rf $tpldir~
  13290. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13291. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13292. $RANLIB $oldlib'
  13293. archive_cmds_CXX='tpldir=Template.dir~
  13294. rm -rf $tpldir~
  13295. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13296. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13297. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13298. rm -rf $tpldir~
  13299. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13300. $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'
  13301. ;;
  13302. *) # Version 6 and above use weak symbols
  13303. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13304. 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'
  13305. ;;
  13306. esac
  13307. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13308. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13309. 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'
  13310. ;;
  13311. cxx*)
  13312. # Compaq C++
  13313. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13314. 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'
  13315. runpath_var=LD_RUN_PATH
  13316. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13317. hardcode_libdir_separator_CXX=:
  13318. # Commands to make compiler produce verbose output that lists
  13319. # what "hidden" libraries, object files and flags are used when
  13320. # linking a shared library.
  13321. #
  13322. # There doesn't appear to be a way to prevent this compiler from
  13323. # explicitly linking system object files so we need to strip them
  13324. # from the output so that they don't get included in the library
  13325. # dependencies.
  13326. 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'
  13327. ;;
  13328. xl* | mpixl* | bgxl*)
  13329. # IBM XL 8.0 on PPC, with GNU ld
  13330. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13331. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13332. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13333. if test yes = "$supports_anon_versioning"; then
  13334. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13335. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13336. echo "local: *; };" >> $output_objdir/$libname.ver~
  13337. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13338. fi
  13339. ;;
  13340. *)
  13341. case `$CC -V 2>&1 | sed 5q` in
  13342. *Sun\ C*)
  13343. # Sun C++ 5.9
  13344. no_undefined_flag_CXX=' -zdefs'
  13345. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13346. 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'
  13347. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13348. 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'
  13349. compiler_needs_object_CXX=yes
  13350. # Not sure whether something based on
  13351. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13352. # would be better.
  13353. output_verbose_link_cmd='func_echo_all'
  13354. # Archives containing C++ object files must be created using
  13355. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13356. # necessary to make sure instantiated templates are included
  13357. # in the archive.
  13358. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13359. ;;
  13360. esac
  13361. ;;
  13362. esac
  13363. ;;
  13364. lynxos*)
  13365. # FIXME: insert proper C++ library support
  13366. ld_shlibs_CXX=no
  13367. ;;
  13368. m88k*)
  13369. # FIXME: insert proper C++ library support
  13370. ld_shlibs_CXX=no
  13371. ;;
  13372. mvs*)
  13373. case $cc_basename in
  13374. cxx*)
  13375. # FIXME: insert proper C++ library support
  13376. ld_shlibs_CXX=no
  13377. ;;
  13378. *)
  13379. # FIXME: insert proper C++ library support
  13380. ld_shlibs_CXX=no
  13381. ;;
  13382. esac
  13383. ;;
  13384. netbsd*)
  13385. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13386. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13387. wlarc=
  13388. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13389. hardcode_direct_CXX=yes
  13390. hardcode_shlibpath_var_CXX=no
  13391. fi
  13392. # Workaround some broken pre-1.5 toolchains
  13393. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13394. ;;
  13395. *nto* | *qnx*)
  13396. ld_shlibs_CXX=yes
  13397. ;;
  13398. openbsd* | bitrig*)
  13399. if test -f /usr/libexec/ld.so; then
  13400. hardcode_direct_CXX=yes
  13401. hardcode_shlibpath_var_CXX=no
  13402. hardcode_direct_absolute_CXX=yes
  13403. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13404. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13405. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13406. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13407. export_dynamic_flag_spec_CXX='$wl-E'
  13408. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13409. fi
  13410. output_verbose_link_cmd=func_echo_all
  13411. else
  13412. ld_shlibs_CXX=no
  13413. fi
  13414. ;;
  13415. osf3* | osf4* | osf5*)
  13416. case $cc_basename in
  13417. KCC*)
  13418. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13419. # KCC will only create a shared library if the output file
  13420. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13421. # to its proper name (with version) after linking.
  13422. 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'
  13423. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13424. hardcode_libdir_separator_CXX=:
  13425. # Archives containing C++ object files must be created using
  13426. # the KAI C++ compiler.
  13427. case $host in
  13428. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13429. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13430. esac
  13431. ;;
  13432. RCC*)
  13433. # Rational C++ 2.4.1
  13434. # FIXME: insert proper C++ library support
  13435. ld_shlibs_CXX=no
  13436. ;;
  13437. cxx*)
  13438. case $host in
  13439. osf3*)
  13440. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13441. 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'
  13442. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13443. ;;
  13444. *)
  13445. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13446. 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'
  13447. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13448. echo "-hidden">> $lib.exp~
  13449. $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~
  13450. $RM $lib.exp'
  13451. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13452. ;;
  13453. esac
  13454. hardcode_libdir_separator_CXX=:
  13455. # Commands to make compiler produce verbose output that lists
  13456. # what "hidden" libraries, object files and flags are used when
  13457. # linking a shared library.
  13458. #
  13459. # There doesn't appear to be a way to prevent this compiler from
  13460. # explicitly linking system object files so we need to strip them
  13461. # from the output so that they don't get included in the library
  13462. # dependencies.
  13463. 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"'
  13464. ;;
  13465. *)
  13466. if test yes,no = "$GXX,$with_gnu_ld"; then
  13467. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13468. case $host in
  13469. osf3*)
  13470. 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'
  13471. ;;
  13472. *)
  13473. 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'
  13474. ;;
  13475. esac
  13476. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13477. hardcode_libdir_separator_CXX=:
  13478. # Commands to make compiler produce verbose output that lists
  13479. # what "hidden" libraries, object files and flags are used when
  13480. # linking a shared library.
  13481. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13482. else
  13483. # FIXME: insert proper C++ library support
  13484. ld_shlibs_CXX=no
  13485. fi
  13486. ;;
  13487. esac
  13488. ;;
  13489. psos*)
  13490. # FIXME: insert proper C++ library support
  13491. ld_shlibs_CXX=no
  13492. ;;
  13493. sunos4*)
  13494. case $cc_basename in
  13495. CC*)
  13496. # Sun C++ 4.x
  13497. # FIXME: insert proper C++ library support
  13498. ld_shlibs_CXX=no
  13499. ;;
  13500. lcc*)
  13501. # Lucid
  13502. # FIXME: insert proper C++ library support
  13503. ld_shlibs_CXX=no
  13504. ;;
  13505. *)
  13506. # FIXME: insert proper C++ library support
  13507. ld_shlibs_CXX=no
  13508. ;;
  13509. esac
  13510. ;;
  13511. solaris*)
  13512. case $cc_basename in
  13513. CC* | sunCC*)
  13514. # Sun C++ 4.2, 5.x and Centerline C++
  13515. archive_cmds_need_lc_CXX=yes
  13516. no_undefined_flag_CXX=' -zdefs'
  13517. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13518. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13519. $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'
  13520. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13521. hardcode_shlibpath_var_CXX=no
  13522. case $host_os in
  13523. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13524. *)
  13525. # The compiler driver will combine and reorder linker options,
  13526. # but understands '-z linker_flag'.
  13527. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13528. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13529. ;;
  13530. esac
  13531. link_all_deplibs_CXX=yes
  13532. output_verbose_link_cmd='func_echo_all'
  13533. # Archives containing C++ object files must be created using
  13534. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13535. # necessary to make sure instantiated templates are included
  13536. # in the archive.
  13537. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13538. ;;
  13539. gcx*)
  13540. # Green Hills C++ Compiler
  13541. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13542. # The C++ compiler must be used to create the archive.
  13543. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13544. ;;
  13545. *)
  13546. # GNU C++ compiler with Solaris linker
  13547. if test yes,no = "$GXX,$with_gnu_ld"; then
  13548. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13549. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13550. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13551. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13552. $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'
  13553. # Commands to make compiler produce verbose output that lists
  13554. # what "hidden" libraries, object files and flags are used when
  13555. # linking a shared library.
  13556. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13557. else
  13558. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13559. # platform.
  13560. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13561. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13562. $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'
  13563. # Commands to make compiler produce verbose output that lists
  13564. # what "hidden" libraries, object files and flags are used when
  13565. # linking a shared library.
  13566. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13567. fi
  13568. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13569. case $host_os in
  13570. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13571. *)
  13572. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13573. ;;
  13574. esac
  13575. fi
  13576. ;;
  13577. esac
  13578. ;;
  13579. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13580. no_undefined_flag_CXX='$wl-z,text'
  13581. archive_cmds_need_lc_CXX=no
  13582. hardcode_shlibpath_var_CXX=no
  13583. runpath_var='LD_RUN_PATH'
  13584. case $cc_basename in
  13585. CC*)
  13586. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13587. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13588. ;;
  13589. *)
  13590. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13591. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13592. ;;
  13593. esac
  13594. ;;
  13595. sysv5* | sco3.2v5* | sco5v6*)
  13596. # Note: We CANNOT use -z defs as we might desire, because we do not
  13597. # link with -lc, and that would cause any symbols used from libc to
  13598. # always be unresolved, which means just about no library would
  13599. # ever link correctly. If we're not using GNU ld we use -z text
  13600. # though, which does catch some bad symbols but isn't as heavy-handed
  13601. # as -z defs.
  13602. no_undefined_flag_CXX='$wl-z,text'
  13603. allow_undefined_flag_CXX='$wl-z,nodefs'
  13604. archive_cmds_need_lc_CXX=no
  13605. hardcode_shlibpath_var_CXX=no
  13606. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13607. hardcode_libdir_separator_CXX=':'
  13608. link_all_deplibs_CXX=yes
  13609. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13610. runpath_var='LD_RUN_PATH'
  13611. case $cc_basename in
  13612. CC*)
  13613. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13614. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13615. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13616. '"$old_archive_cmds_CXX"
  13617. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13618. '"$reload_cmds_CXX"
  13619. ;;
  13620. *)
  13621. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13622. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13623. ;;
  13624. esac
  13625. ;;
  13626. tandem*)
  13627. case $cc_basename in
  13628. NCC*)
  13629. # NonStop-UX NCC 3.20
  13630. # FIXME: insert proper C++ library support
  13631. ld_shlibs_CXX=no
  13632. ;;
  13633. *)
  13634. # FIXME: insert proper C++ library support
  13635. ld_shlibs_CXX=no
  13636. ;;
  13637. esac
  13638. ;;
  13639. vxworks*)
  13640. # FIXME: insert proper C++ library support
  13641. ld_shlibs_CXX=no
  13642. ;;
  13643. *)
  13644. # FIXME: insert proper C++ library support
  13645. ld_shlibs_CXX=no
  13646. ;;
  13647. esac
  13648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13649. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13650. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13651. GCC_CXX=$GXX
  13652. LD_CXX=$LD
  13653. ## CAVEAT EMPTOR:
  13654. ## There is no encapsulation within the following macros, do not change
  13655. ## the running order or otherwise move them around unless you know exactly
  13656. ## what you are doing...
  13657. # Dependencies to place before and after the object being linked:
  13658. predep_objects_CXX=
  13659. postdep_objects_CXX=
  13660. predeps_CXX=
  13661. postdeps_CXX=
  13662. compiler_lib_search_path_CXX=
  13663. cat > conftest.$ac_ext <<_LT_EOF
  13664. class Foo
  13665. {
  13666. public:
  13667. Foo (void) { a = 0; }
  13668. private:
  13669. int a;
  13670. };
  13671. _LT_EOF
  13672. _lt_libdeps_save_CFLAGS=$CFLAGS
  13673. case "$CC $CFLAGS " in #(
  13674. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13675. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13676. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13677. esac
  13678. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13679. (eval $ac_compile) 2>&5
  13680. ac_status=$?
  13681. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13682. test $ac_status = 0; }; then
  13683. # Parse the compiler output and extract the necessary
  13684. # objects, libraries and library flags.
  13685. # Sentinel used to keep track of whether or not we are before
  13686. # the conftest object file.
  13687. pre_test_object_deps_done=no
  13688. for p in `eval "$output_verbose_link_cmd"`; do
  13689. case $prev$p in
  13690. -L* | -R* | -l*)
  13691. # Some compilers place space between "-{L,R}" and the path.
  13692. # Remove the space.
  13693. if test x-L = "x$p" ||
  13694. test x-R = "x$p" ||
  13695. test x-l = "x$p"; then
  13696. prev=$p
  13697. continue
  13698. fi
  13699. # Expand the sysroot to ease extracting the directories later.
  13700. if test -z "$prev"; then
  13701. case $p in
  13702. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13703. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13704. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13705. esac
  13706. fi
  13707. case $p in
  13708. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13709. esac
  13710. if test no = "$pre_test_object_deps_done"; then
  13711. case $prev in
  13712. -L | -R)
  13713. # Internal compiler library paths should come after those
  13714. # provided the user. The postdeps already come after the
  13715. # user supplied libs so there is no need to process them.
  13716. if test -z "$compiler_lib_search_path_CXX"; then
  13717. compiler_lib_search_path_CXX=$prev$p
  13718. else
  13719. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13720. fi
  13721. ;;
  13722. # The "-l" case would never come before the object being
  13723. # linked, so don't bother handling this case.
  13724. esac
  13725. else
  13726. if test -z "$postdeps_CXX"; then
  13727. postdeps_CXX=$prev$p
  13728. else
  13729. postdeps_CXX="${postdeps_CXX} $prev$p"
  13730. fi
  13731. fi
  13732. prev=
  13733. ;;
  13734. *.lto.$objext) ;; # Ignore GCC LTO objects
  13735. *.$objext)
  13736. # This assumes that the test object file only shows up
  13737. # once in the compiler output.
  13738. if test "$p" = "conftest.$objext"; then
  13739. pre_test_object_deps_done=yes
  13740. continue
  13741. fi
  13742. if test no = "$pre_test_object_deps_done"; then
  13743. if test -z "$predep_objects_CXX"; then
  13744. predep_objects_CXX=$p
  13745. else
  13746. predep_objects_CXX="$predep_objects_CXX $p"
  13747. fi
  13748. else
  13749. if test -z "$postdep_objects_CXX"; then
  13750. postdep_objects_CXX=$p
  13751. else
  13752. postdep_objects_CXX="$postdep_objects_CXX $p"
  13753. fi
  13754. fi
  13755. ;;
  13756. *) ;; # Ignore the rest.
  13757. esac
  13758. done
  13759. # Clean up.
  13760. rm -f a.out a.exe
  13761. else
  13762. echo "libtool.m4: error: problem compiling CXX test program"
  13763. fi
  13764. $RM -f confest.$objext
  13765. CFLAGS=$_lt_libdeps_save_CFLAGS
  13766. # PORTME: override above test on systems where it is broken
  13767. case $host_os in
  13768. interix[3-9]*)
  13769. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13770. # hack all around it, let's just trust "g++" to DTRT.
  13771. predep_objects_CXX=
  13772. postdep_objects_CXX=
  13773. postdeps_CXX=
  13774. ;;
  13775. esac
  13776. case " $postdeps_CXX " in
  13777. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13778. esac
  13779. compiler_lib_search_dirs_CXX=
  13780. if test -n "${compiler_lib_search_path_CXX}"; then
  13781. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13782. fi
  13783. lt_prog_compiler_wl_CXX=
  13784. lt_prog_compiler_pic_CXX=
  13785. lt_prog_compiler_static_CXX=
  13786. # C++ specific cases for pic, static, wl, etc.
  13787. if test yes = "$GXX"; then
  13788. lt_prog_compiler_wl_CXX='-Wl,'
  13789. lt_prog_compiler_static_CXX='-static'
  13790. case $host_os in
  13791. aix*)
  13792. # All AIX code is PIC.
  13793. if test ia64 = "$host_cpu"; then
  13794. # AIX 5 now supports IA64 processor
  13795. lt_prog_compiler_static_CXX='-Bstatic'
  13796. fi
  13797. lt_prog_compiler_pic_CXX='-fPIC'
  13798. ;;
  13799. amigaos*)
  13800. case $host_cpu in
  13801. powerpc)
  13802. # see comment about AmigaOS4 .so support
  13803. lt_prog_compiler_pic_CXX='-fPIC'
  13804. ;;
  13805. m68k)
  13806. # FIXME: we need at least 68020 code to build shared libraries, but
  13807. # adding the '-m68020' flag to GCC prevents building anything better,
  13808. # like '-m68040'.
  13809. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13810. ;;
  13811. esac
  13812. ;;
  13813. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13814. # PIC is the default for these OSes.
  13815. ;;
  13816. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13817. # This hack is so that the source file can tell whether it is being
  13818. # built for inclusion in a dll (and should export symbols for example).
  13819. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13820. # (--disable-auto-import) libraries
  13821. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13822. case $host_os in
  13823. os2*)
  13824. lt_prog_compiler_static_CXX='$wl-static'
  13825. ;;
  13826. esac
  13827. ;;
  13828. darwin* | rhapsody*)
  13829. # PIC is the default on this platform
  13830. # Common symbols not allowed in MH_DYLIB files
  13831. lt_prog_compiler_pic_CXX='-fno-common'
  13832. ;;
  13833. *djgpp*)
  13834. # DJGPP does not support shared libraries at all
  13835. lt_prog_compiler_pic_CXX=
  13836. ;;
  13837. haiku*)
  13838. # PIC is the default for Haiku.
  13839. # The "-static" flag exists, but is broken.
  13840. lt_prog_compiler_static_CXX=
  13841. ;;
  13842. interix[3-9]*)
  13843. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13844. # Instead, we relocate shared libraries at runtime.
  13845. ;;
  13846. sysv4*MP*)
  13847. if test -d /usr/nec; then
  13848. lt_prog_compiler_pic_CXX=-Kconform_pic
  13849. fi
  13850. ;;
  13851. hpux*)
  13852. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13853. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13854. # sets the default TLS model and affects inlining.
  13855. case $host_cpu in
  13856. hppa*64*)
  13857. ;;
  13858. *)
  13859. lt_prog_compiler_pic_CXX='-fPIC'
  13860. ;;
  13861. esac
  13862. ;;
  13863. *qnx* | *nto*)
  13864. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13865. # it will coredump.
  13866. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13867. ;;
  13868. *)
  13869. lt_prog_compiler_pic_CXX='-fPIC'
  13870. ;;
  13871. esac
  13872. else
  13873. case $host_os in
  13874. aix[4-9]*)
  13875. # All AIX code is PIC.
  13876. if test ia64 = "$host_cpu"; then
  13877. # AIX 5 now supports IA64 processor
  13878. lt_prog_compiler_static_CXX='-Bstatic'
  13879. else
  13880. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13881. fi
  13882. ;;
  13883. chorus*)
  13884. case $cc_basename in
  13885. cxch68*)
  13886. # Green Hills C++ Compiler
  13887. # _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"
  13888. ;;
  13889. esac
  13890. ;;
  13891. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13892. # This hack is so that the source file can tell whether it is being
  13893. # built for inclusion in a dll (and should export symbols for example).
  13894. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13895. ;;
  13896. dgux*)
  13897. case $cc_basename in
  13898. ec++*)
  13899. lt_prog_compiler_pic_CXX='-KPIC'
  13900. ;;
  13901. ghcx*)
  13902. # Green Hills C++ Compiler
  13903. lt_prog_compiler_pic_CXX='-pic'
  13904. ;;
  13905. *)
  13906. ;;
  13907. esac
  13908. ;;
  13909. freebsd* | dragonfly* | midnightbsd*)
  13910. # FreeBSD uses GNU C++
  13911. ;;
  13912. hpux9* | hpux10* | hpux11*)
  13913. case $cc_basename in
  13914. CC*)
  13915. lt_prog_compiler_wl_CXX='-Wl,'
  13916. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13917. if test ia64 != "$host_cpu"; then
  13918. lt_prog_compiler_pic_CXX='+Z'
  13919. fi
  13920. ;;
  13921. aCC*)
  13922. lt_prog_compiler_wl_CXX='-Wl,'
  13923. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13924. case $host_cpu in
  13925. hppa*64*|ia64*)
  13926. # +Z the default
  13927. ;;
  13928. *)
  13929. lt_prog_compiler_pic_CXX='+Z'
  13930. ;;
  13931. esac
  13932. ;;
  13933. *)
  13934. ;;
  13935. esac
  13936. ;;
  13937. interix*)
  13938. # This is c89, which is MS Visual C++ (no shared libs)
  13939. # Anyone wants to do a port?
  13940. ;;
  13941. irix5* | irix6* | nonstopux*)
  13942. case $cc_basename in
  13943. CC*)
  13944. lt_prog_compiler_wl_CXX='-Wl,'
  13945. lt_prog_compiler_static_CXX='-non_shared'
  13946. # CC pic flag -KPIC is the default.
  13947. ;;
  13948. *)
  13949. ;;
  13950. esac
  13951. ;;
  13952. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13953. case $cc_basename in
  13954. KCC*)
  13955. # KAI C++ Compiler
  13956. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13957. lt_prog_compiler_pic_CXX='-fPIC'
  13958. ;;
  13959. ecpc* )
  13960. # old Intel C++ for x86_64, which still supported -KPIC.
  13961. lt_prog_compiler_wl_CXX='-Wl,'
  13962. lt_prog_compiler_pic_CXX='-KPIC'
  13963. lt_prog_compiler_static_CXX='-static'
  13964. ;;
  13965. icpc* )
  13966. # Intel C++, used to be incompatible with GCC.
  13967. # ICC 10 doesn't accept -KPIC any more.
  13968. lt_prog_compiler_wl_CXX='-Wl,'
  13969. lt_prog_compiler_pic_CXX='-fPIC'
  13970. lt_prog_compiler_static_CXX='-static'
  13971. ;;
  13972. pgCC* | pgcpp*)
  13973. # Portland Group C++ compiler
  13974. lt_prog_compiler_wl_CXX='-Wl,'
  13975. lt_prog_compiler_pic_CXX='-fpic'
  13976. lt_prog_compiler_static_CXX='-Bstatic'
  13977. ;;
  13978. cxx*)
  13979. # Compaq C++
  13980. # Make sure the PIC flag is empty. It appears that all Alpha
  13981. # Linux and Compaq Tru64 Unix objects are PIC.
  13982. lt_prog_compiler_pic_CXX=
  13983. lt_prog_compiler_static_CXX='-non_shared'
  13984. ;;
  13985. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  13986. # IBM XL 8.0, 9.0 on PPC and BlueGene
  13987. lt_prog_compiler_wl_CXX='-Wl,'
  13988. lt_prog_compiler_pic_CXX='-qpic'
  13989. lt_prog_compiler_static_CXX='-qstaticlink'
  13990. ;;
  13991. *)
  13992. case `$CC -V 2>&1 | sed 5q` in
  13993. *Sun\ C*)
  13994. # Sun C++ 5.9
  13995. lt_prog_compiler_pic_CXX='-KPIC'
  13996. lt_prog_compiler_static_CXX='-Bstatic'
  13997. lt_prog_compiler_wl_CXX='-Qoption ld '
  13998. ;;
  13999. esac
  14000. ;;
  14001. esac
  14002. ;;
  14003. lynxos*)
  14004. ;;
  14005. m88k*)
  14006. ;;
  14007. mvs*)
  14008. case $cc_basename in
  14009. cxx*)
  14010. lt_prog_compiler_pic_CXX='-W c,exportall'
  14011. ;;
  14012. *)
  14013. ;;
  14014. esac
  14015. ;;
  14016. netbsd*)
  14017. ;;
  14018. *qnx* | *nto*)
  14019. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14020. # it will coredump.
  14021. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14022. ;;
  14023. osf3* | osf4* | osf5*)
  14024. case $cc_basename in
  14025. KCC*)
  14026. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14027. ;;
  14028. RCC*)
  14029. # Rational C++ 2.4.1
  14030. lt_prog_compiler_pic_CXX='-pic'
  14031. ;;
  14032. cxx*)
  14033. # Digital/Compaq C++
  14034. lt_prog_compiler_wl_CXX='-Wl,'
  14035. # Make sure the PIC flag is empty. It appears that all Alpha
  14036. # Linux and Compaq Tru64 Unix objects are PIC.
  14037. lt_prog_compiler_pic_CXX=
  14038. lt_prog_compiler_static_CXX='-non_shared'
  14039. ;;
  14040. *)
  14041. ;;
  14042. esac
  14043. ;;
  14044. psos*)
  14045. ;;
  14046. solaris*)
  14047. case $cc_basename in
  14048. CC* | sunCC*)
  14049. # Sun C++ 4.2, 5.x and Centerline C++
  14050. lt_prog_compiler_pic_CXX='-KPIC'
  14051. lt_prog_compiler_static_CXX='-Bstatic'
  14052. lt_prog_compiler_wl_CXX='-Qoption ld '
  14053. ;;
  14054. gcx*)
  14055. # Green Hills C++ Compiler
  14056. lt_prog_compiler_pic_CXX='-PIC'
  14057. ;;
  14058. *)
  14059. ;;
  14060. esac
  14061. ;;
  14062. sunos4*)
  14063. case $cc_basename in
  14064. CC*)
  14065. # Sun C++ 4.x
  14066. lt_prog_compiler_pic_CXX='-pic'
  14067. lt_prog_compiler_static_CXX='-Bstatic'
  14068. ;;
  14069. lcc*)
  14070. # Lucid
  14071. lt_prog_compiler_pic_CXX='-pic'
  14072. ;;
  14073. *)
  14074. ;;
  14075. esac
  14076. ;;
  14077. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14078. case $cc_basename in
  14079. CC*)
  14080. lt_prog_compiler_wl_CXX='-Wl,'
  14081. lt_prog_compiler_pic_CXX='-KPIC'
  14082. lt_prog_compiler_static_CXX='-Bstatic'
  14083. ;;
  14084. esac
  14085. ;;
  14086. tandem*)
  14087. case $cc_basename in
  14088. NCC*)
  14089. # NonStop-UX NCC 3.20
  14090. lt_prog_compiler_pic_CXX='-KPIC'
  14091. ;;
  14092. *)
  14093. ;;
  14094. esac
  14095. ;;
  14096. vxworks*)
  14097. ;;
  14098. *)
  14099. lt_prog_compiler_can_build_shared_CXX=no
  14100. ;;
  14101. esac
  14102. fi
  14103. case $host_os in
  14104. # For platforms that do not support PIC, -DPIC is meaningless:
  14105. *djgpp*)
  14106. lt_prog_compiler_pic_CXX=
  14107. ;;
  14108. *)
  14109. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14110. ;;
  14111. esac
  14112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14113. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14114. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14115. then :
  14116. printf %s "(cached) " >&6
  14117. else $as_nop
  14118. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14119. fi
  14120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14121. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14122. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14123. #
  14124. # Check to make sure the PIC flag actually works.
  14125. #
  14126. if test -n "$lt_prog_compiler_pic_CXX"; then
  14127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14128. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14129. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14130. then :
  14131. printf %s "(cached) " >&6
  14132. else $as_nop
  14133. lt_cv_prog_compiler_pic_works_CXX=no
  14134. ac_outfile=conftest.$ac_objext
  14135. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14136. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14137. # Insert the option either (1) after the last *FLAGS variable, or
  14138. # (2) before a word containing "conftest.", or (3) at the end.
  14139. # Note that $ac_compile itself does not contain backslashes and begins
  14140. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14141. # The option is referenced via a variable to avoid confusing sed.
  14142. lt_compile=`echo "$ac_compile" | $SED \
  14143. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14144. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14145. -e 's:$: $lt_compiler_flag:'`
  14146. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14147. (eval "$lt_compile" 2>conftest.err)
  14148. ac_status=$?
  14149. cat conftest.err >&5
  14150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14151. if (exit $ac_status) && test -s "$ac_outfile"; then
  14152. # The compiler can only warn and ignore the option if not recognized
  14153. # So say no if there are warnings other than the usual output.
  14154. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14155. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14156. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14157. lt_cv_prog_compiler_pic_works_CXX=yes
  14158. fi
  14159. fi
  14160. $RM conftest*
  14161. fi
  14162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14163. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14164. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14165. case $lt_prog_compiler_pic_CXX in
  14166. "" | " "*) ;;
  14167. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14168. esac
  14169. else
  14170. lt_prog_compiler_pic_CXX=
  14171. lt_prog_compiler_can_build_shared_CXX=no
  14172. fi
  14173. fi
  14174. #
  14175. # Check to make sure the static flag actually works.
  14176. #
  14177. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14179. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14180. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14181. then :
  14182. printf %s "(cached) " >&6
  14183. else $as_nop
  14184. lt_cv_prog_compiler_static_works_CXX=no
  14185. save_LDFLAGS=$LDFLAGS
  14186. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14187. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14188. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14189. # The linker can only warn and ignore the option if not recognized
  14190. # So say no if there are warnings
  14191. if test -s conftest.err; then
  14192. # Append any errors to the config.log.
  14193. cat conftest.err 1>&5
  14194. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14195. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14196. if diff conftest.exp conftest.er2 >/dev/null; then
  14197. lt_cv_prog_compiler_static_works_CXX=yes
  14198. fi
  14199. else
  14200. lt_cv_prog_compiler_static_works_CXX=yes
  14201. fi
  14202. fi
  14203. $RM -r conftest*
  14204. LDFLAGS=$save_LDFLAGS
  14205. fi
  14206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14207. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14208. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14209. :
  14210. else
  14211. lt_prog_compiler_static_CXX=
  14212. fi
  14213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14214. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14215. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14216. then :
  14217. printf %s "(cached) " >&6
  14218. else $as_nop
  14219. lt_cv_prog_compiler_c_o_CXX=no
  14220. $RM -r conftest 2>/dev/null
  14221. mkdir conftest
  14222. cd conftest
  14223. mkdir out
  14224. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14225. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14226. # Insert the option either (1) after the last *FLAGS variable, or
  14227. # (2) before a word containing "conftest.", or (3) at the end.
  14228. # Note that $ac_compile itself does not contain backslashes and begins
  14229. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14230. lt_compile=`echo "$ac_compile" | $SED \
  14231. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14232. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14233. -e 's:$: $lt_compiler_flag:'`
  14234. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14235. (eval "$lt_compile" 2>out/conftest.err)
  14236. ac_status=$?
  14237. cat out/conftest.err >&5
  14238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14239. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14240. then
  14241. # The compiler can only warn and ignore the option if not recognized
  14242. # So say no if there are warnings
  14243. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14244. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14245. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14246. lt_cv_prog_compiler_c_o_CXX=yes
  14247. fi
  14248. fi
  14249. chmod u+w . 2>&5
  14250. $RM conftest*
  14251. # SGI C++ compiler will create directory out/ii_files/ for
  14252. # template instantiation
  14253. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14254. $RM out/* && rmdir out
  14255. cd ..
  14256. $RM -r conftest
  14257. $RM conftest*
  14258. fi
  14259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14260. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14262. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14263. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14264. then :
  14265. printf %s "(cached) " >&6
  14266. else $as_nop
  14267. lt_cv_prog_compiler_c_o_CXX=no
  14268. $RM -r conftest 2>/dev/null
  14269. mkdir conftest
  14270. cd conftest
  14271. mkdir out
  14272. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14273. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14274. # Insert the option either (1) after the last *FLAGS variable, or
  14275. # (2) before a word containing "conftest.", or (3) at the end.
  14276. # Note that $ac_compile itself does not contain backslashes and begins
  14277. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14278. lt_compile=`echo "$ac_compile" | $SED \
  14279. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14280. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14281. -e 's:$: $lt_compiler_flag:'`
  14282. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14283. (eval "$lt_compile" 2>out/conftest.err)
  14284. ac_status=$?
  14285. cat out/conftest.err >&5
  14286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14287. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14288. then
  14289. # The compiler can only warn and ignore the option if not recognized
  14290. # So say no if there are warnings
  14291. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14292. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14293. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14294. lt_cv_prog_compiler_c_o_CXX=yes
  14295. fi
  14296. fi
  14297. chmod u+w . 2>&5
  14298. $RM conftest*
  14299. # SGI C++ compiler will create directory out/ii_files/ for
  14300. # template instantiation
  14301. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14302. $RM out/* && rmdir out
  14303. cd ..
  14304. $RM -r conftest
  14305. $RM conftest*
  14306. fi
  14307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14308. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14309. hard_links=nottested
  14310. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14311. # do not overwrite the value of need_locks provided by the user
  14312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14313. printf %s "checking if we can lock with hard links... " >&6; }
  14314. hard_links=yes
  14315. $RM conftest*
  14316. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14317. touch conftest.a
  14318. ln conftest.a conftest.b 2>&5 || hard_links=no
  14319. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14321. printf "%s\n" "$hard_links" >&6; }
  14322. if test no = "$hard_links"; then
  14323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14324. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14325. need_locks=warn
  14326. fi
  14327. else
  14328. need_locks=no
  14329. fi
  14330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14331. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14332. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14333. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14334. case $host_os in
  14335. aix[4-9]*)
  14336. # If we're using GNU nm, then we don't want the "-C" option.
  14337. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14338. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14339. # weak defined symbols like other global defined symbols, whereas
  14340. # GNU nm marks them as "W".
  14341. # While the 'weak' keyword is ignored in the Export File, we need
  14342. # it in the Import File for the 'aix-soname' feature, so we have
  14343. # to replace the "-B" option with "-P" for AIX nm.
  14344. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14345. 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'
  14346. else
  14347. 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'
  14348. fi
  14349. ;;
  14350. pw32*)
  14351. export_symbols_cmds_CXX=$ltdll_cmds
  14352. ;;
  14353. cygwin* | mingw* | cegcc*)
  14354. case $cc_basename in
  14355. cl*)
  14356. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14357. ;;
  14358. *)
  14359. 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'
  14360. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14361. ;;
  14362. esac
  14363. ;;
  14364. *)
  14365. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14366. ;;
  14367. esac
  14368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14369. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14370. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14371. with_gnu_ld_CXX=$with_gnu_ld
  14372. #
  14373. # Do we need to explicitly link libc?
  14374. #
  14375. case "x$archive_cmds_need_lc_CXX" in
  14376. x|xyes)
  14377. # Assume -lc should be added
  14378. archive_cmds_need_lc_CXX=yes
  14379. if test yes,yes = "$GCC,$enable_shared"; then
  14380. case $archive_cmds_CXX in
  14381. *'~'*)
  14382. # FIXME: we may have to deal with multi-command sequences.
  14383. ;;
  14384. '$CC '*)
  14385. # Test whether the compiler implicitly links with -lc since on some
  14386. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14387. # to ld, don't add -lc before -lgcc.
  14388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14389. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14390. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14391. then :
  14392. printf %s "(cached) " >&6
  14393. else $as_nop
  14394. $RM conftest*
  14395. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14396. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14397. (eval $ac_compile) 2>&5
  14398. ac_status=$?
  14399. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14400. test $ac_status = 0; } 2>conftest.err; then
  14401. soname=conftest
  14402. lib=conftest
  14403. libobjs=conftest.$ac_objext
  14404. deplibs=
  14405. wl=$lt_prog_compiler_wl_CXX
  14406. pic_flag=$lt_prog_compiler_pic_CXX
  14407. compiler_flags=-v
  14408. linker_flags=-v
  14409. verstring=
  14410. output_objdir=.
  14411. libname=conftest
  14412. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14413. allow_undefined_flag_CXX=
  14414. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14415. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14416. ac_status=$?
  14417. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14418. test $ac_status = 0; }
  14419. then
  14420. lt_cv_archive_cmds_need_lc_CXX=no
  14421. else
  14422. lt_cv_archive_cmds_need_lc_CXX=yes
  14423. fi
  14424. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14425. else
  14426. cat conftest.err 1>&5
  14427. fi
  14428. $RM conftest*
  14429. fi
  14430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14431. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14432. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14433. ;;
  14434. esac
  14435. fi
  14436. ;;
  14437. esac
  14438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14439. printf %s "checking dynamic linker characteristics... " >&6; }
  14440. library_names_spec=
  14441. libname_spec='lib$name'
  14442. soname_spec=
  14443. shrext_cmds=.so
  14444. postinstall_cmds=
  14445. postuninstall_cmds=
  14446. finish_cmds=
  14447. finish_eval=
  14448. shlibpath_var=
  14449. shlibpath_overrides_runpath=unknown
  14450. version_type=none
  14451. dynamic_linker="$host_os ld.so"
  14452. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14453. need_lib_prefix=unknown
  14454. hardcode_into_libs=no
  14455. # when you set need_version to no, make sure it does not cause -set_version
  14456. # flags to be left without arguments
  14457. need_version=unknown
  14458. case $host_os in
  14459. aix3*)
  14460. version_type=linux # correct to gnu/linux during the next big refactor
  14461. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14462. shlibpath_var=LIBPATH
  14463. # AIX 3 has no versioning support, so we append a major version to the name.
  14464. soname_spec='$libname$release$shared_ext$major'
  14465. ;;
  14466. aix[4-9]*)
  14467. version_type=linux # correct to gnu/linux during the next big refactor
  14468. need_lib_prefix=no
  14469. need_version=no
  14470. hardcode_into_libs=yes
  14471. if test ia64 = "$host_cpu"; then
  14472. # AIX 5 supports IA64
  14473. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14474. shlibpath_var=LD_LIBRARY_PATH
  14475. else
  14476. # With GCC up to 2.95.x, collect2 would create an import file
  14477. # for dependence libraries. The import file would start with
  14478. # the line '#! .'. This would cause the generated library to
  14479. # depend on '.', always an invalid library. This was fixed in
  14480. # development snapshots of GCC prior to 3.0.
  14481. case $host_os in
  14482. aix4 | aix4.[01] | aix4.[01].*)
  14483. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14484. echo ' yes '
  14485. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14486. :
  14487. else
  14488. can_build_shared=no
  14489. fi
  14490. ;;
  14491. esac
  14492. # Using Import Files as archive members, it is possible to support
  14493. # filename-based versioning of shared library archives on AIX. While
  14494. # this would work for both with and without runtime linking, it will
  14495. # prevent static linking of such archives. So we do filename-based
  14496. # shared library versioning with .so extension only, which is used
  14497. # when both runtime linking and shared linking is enabled.
  14498. # Unfortunately, runtime linking may impact performance, so we do
  14499. # not want this to be the default eventually. Also, we use the
  14500. # versioned .so libs for executables only if there is the -brtl
  14501. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14502. # To allow for filename-based versioning support, we need to create
  14503. # libNAME.so.V as an archive file, containing:
  14504. # *) an Import File, referring to the versioned filename of the
  14505. # archive as well as the shared archive member, telling the
  14506. # bitwidth (32 or 64) of that shared object, and providing the
  14507. # list of exported symbols of that shared object, eventually
  14508. # decorated with the 'weak' keyword
  14509. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14510. # it being seen by the linker.
  14511. # At run time we better use the real file rather than another symlink,
  14512. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14513. case $with_aix_soname,$aix_use_runtimelinking in
  14514. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14515. # soname into executable. Probably we can add versioning support to
  14516. # collect2, so additional links can be useful in future.
  14517. aix,yes) # traditional libtool
  14518. dynamic_linker='AIX unversionable lib.so'
  14519. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14520. # instead of lib<name>.a to let people know that these are not
  14521. # typical AIX shared libraries.
  14522. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14523. ;;
  14524. aix,no) # traditional AIX only
  14525. dynamic_linker='AIX lib.a(lib.so.V)'
  14526. # We preserve .a as extension for shared libraries through AIX4.2
  14527. # and later when we are not doing run time linking.
  14528. library_names_spec='$libname$release.a $libname.a'
  14529. soname_spec='$libname$release$shared_ext$major'
  14530. ;;
  14531. svr4,*) # full svr4 only
  14532. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14533. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14534. # We do not specify a path in Import Files, so LIBPATH fires.
  14535. shlibpath_overrides_runpath=yes
  14536. ;;
  14537. *,yes) # both, prefer svr4
  14538. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14539. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14540. # unpreferred sharedlib libNAME.a needs extra handling
  14541. 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"'
  14542. 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"'
  14543. # We do not specify a path in Import Files, so LIBPATH fires.
  14544. shlibpath_overrides_runpath=yes
  14545. ;;
  14546. *,no) # both, prefer aix
  14547. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14548. library_names_spec='$libname$release.a $libname.a'
  14549. soname_spec='$libname$release$shared_ext$major'
  14550. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14551. 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)'
  14552. 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"'
  14553. ;;
  14554. esac
  14555. shlibpath_var=LIBPATH
  14556. fi
  14557. ;;
  14558. amigaos*)
  14559. case $host_cpu in
  14560. powerpc)
  14561. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14562. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14563. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14564. ;;
  14565. m68k)
  14566. library_names_spec='$libname.ixlibrary $libname.a'
  14567. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14568. 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'
  14569. ;;
  14570. esac
  14571. ;;
  14572. beos*)
  14573. library_names_spec='$libname$shared_ext'
  14574. dynamic_linker="$host_os ld.so"
  14575. shlibpath_var=LIBRARY_PATH
  14576. ;;
  14577. bsdi[45]*)
  14578. version_type=linux # correct to gnu/linux during the next big refactor
  14579. need_version=no
  14580. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14581. soname_spec='$libname$release$shared_ext$major'
  14582. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14583. shlibpath_var=LD_LIBRARY_PATH
  14584. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14585. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14586. # the default ld.so.conf also contains /usr/contrib/lib and
  14587. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14588. # libtool to hard-code these into programs
  14589. ;;
  14590. cygwin* | mingw* | pw32* | cegcc*)
  14591. version_type=windows
  14592. shrext_cmds=.dll
  14593. need_version=no
  14594. need_lib_prefix=no
  14595. case $GCC,$cc_basename in
  14596. yes,*)
  14597. # gcc
  14598. library_names_spec='$libname.dll.a'
  14599. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14600. postinstall_cmds='base_file=`basename \$file`~
  14601. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14602. dldir=$destdir/`dirname \$dlpath`~
  14603. test -d \$dldir || mkdir -p \$dldir~
  14604. $install_prog $dir/$dlname \$dldir/$dlname~
  14605. chmod a+x \$dldir/$dlname~
  14606. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14607. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14608. fi'
  14609. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14610. dlpath=$dir/\$dldll~
  14611. $RM \$dlpath'
  14612. shlibpath_overrides_runpath=yes
  14613. case $host_os in
  14614. cygwin*)
  14615. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14616. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14617. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14618. ;;
  14619. mingw* | cegcc*)
  14620. # MinGW DLLs use traditional 'lib' prefix
  14621. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14622. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14623. ;;
  14624. pw32*)
  14625. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14626. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14627. ;;
  14628. esac
  14629. dynamic_linker='Win32 ld.exe'
  14630. ;;
  14631. *,cl*)
  14632. # Native MSVC
  14633. libname_spec='$name'
  14634. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14635. library_names_spec='$libname.dll.lib'
  14636. case $build_os in
  14637. mingw*)
  14638. sys_lib_search_path_spec=
  14639. lt_save_ifs=$IFS
  14640. IFS=';'
  14641. for lt_path in $LIB
  14642. do
  14643. IFS=$lt_save_ifs
  14644. # Let DOS variable expansion print the short 8.3 style file name.
  14645. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14646. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14647. done
  14648. IFS=$lt_save_ifs
  14649. # Convert to MSYS style.
  14650. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14651. ;;
  14652. cygwin*)
  14653. # Convert to unix form, then to dos form, then back to unix form
  14654. # but this time dos style (no spaces!) so that the unix form looks
  14655. # like /cygdrive/c/PROGRA~1:/cygdr...
  14656. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14657. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14658. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14659. ;;
  14660. *)
  14661. sys_lib_search_path_spec=$LIB
  14662. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14663. # It is most probably a Windows format PATH.
  14664. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14665. else
  14666. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14667. fi
  14668. # FIXME: find the short name or the path components, as spaces are
  14669. # common. (e.g. "Program Files" -> "PROGRA~1")
  14670. ;;
  14671. esac
  14672. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14673. postinstall_cmds='base_file=`basename \$file`~
  14674. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14675. dldir=$destdir/`dirname \$dlpath`~
  14676. test -d \$dldir || mkdir -p \$dldir~
  14677. $install_prog $dir/$dlname \$dldir/$dlname'
  14678. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14679. dlpath=$dir/\$dldll~
  14680. $RM \$dlpath'
  14681. shlibpath_overrides_runpath=yes
  14682. dynamic_linker='Win32 link.exe'
  14683. ;;
  14684. *)
  14685. # Assume MSVC wrapper
  14686. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14687. dynamic_linker='Win32 ld.exe'
  14688. ;;
  14689. esac
  14690. # FIXME: first we should search . and the directory the executable is in
  14691. shlibpath_var=PATH
  14692. ;;
  14693. darwin* | rhapsody*)
  14694. dynamic_linker="$host_os dyld"
  14695. version_type=darwin
  14696. need_lib_prefix=no
  14697. need_version=no
  14698. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14699. soname_spec='$libname$release$major$shared_ext'
  14700. shlibpath_overrides_runpath=yes
  14701. shlibpath_var=DYLD_LIBRARY_PATH
  14702. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14703. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14704. ;;
  14705. dgux*)
  14706. version_type=linux # correct to gnu/linux during the next big refactor
  14707. need_lib_prefix=no
  14708. need_version=no
  14709. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14710. soname_spec='$libname$release$shared_ext$major'
  14711. shlibpath_var=LD_LIBRARY_PATH
  14712. ;;
  14713. freebsd* | dragonfly* | midnightbsd*)
  14714. # DragonFly does not have aout. When/if they implement a new
  14715. # versioning mechanism, adjust this.
  14716. if test -x /usr/bin/objformat; then
  14717. objformat=`/usr/bin/objformat`
  14718. else
  14719. case $host_os in
  14720. freebsd[23].*) objformat=aout ;;
  14721. *) objformat=elf ;;
  14722. esac
  14723. fi
  14724. version_type=freebsd-$objformat
  14725. case $version_type in
  14726. freebsd-elf*)
  14727. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14728. soname_spec='$libname$release$shared_ext$major'
  14729. need_version=no
  14730. need_lib_prefix=no
  14731. ;;
  14732. freebsd-*)
  14733. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14734. need_version=yes
  14735. ;;
  14736. esac
  14737. shlibpath_var=LD_LIBRARY_PATH
  14738. case $host_os in
  14739. freebsd2.*)
  14740. shlibpath_overrides_runpath=yes
  14741. ;;
  14742. freebsd3.[01]* | freebsdelf3.[01]*)
  14743. shlibpath_overrides_runpath=yes
  14744. hardcode_into_libs=yes
  14745. ;;
  14746. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14747. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14748. shlibpath_overrides_runpath=no
  14749. hardcode_into_libs=yes
  14750. ;;
  14751. *) # from 4.6 on, and DragonFly
  14752. shlibpath_overrides_runpath=yes
  14753. hardcode_into_libs=yes
  14754. ;;
  14755. esac
  14756. ;;
  14757. haiku*)
  14758. version_type=linux # correct to gnu/linux during the next big refactor
  14759. need_lib_prefix=no
  14760. need_version=no
  14761. dynamic_linker="$host_os runtime_loader"
  14762. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14763. soname_spec='$libname$release$shared_ext$major'
  14764. shlibpath_var=LIBRARY_PATH
  14765. shlibpath_overrides_runpath=no
  14766. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14767. hardcode_into_libs=yes
  14768. ;;
  14769. hpux9* | hpux10* | hpux11*)
  14770. # Give a soname corresponding to the major version so that dld.sl refuses to
  14771. # link against other versions.
  14772. version_type=sunos
  14773. need_lib_prefix=no
  14774. need_version=no
  14775. case $host_cpu in
  14776. ia64*)
  14777. shrext_cmds='.so'
  14778. hardcode_into_libs=yes
  14779. dynamic_linker="$host_os dld.so"
  14780. shlibpath_var=LD_LIBRARY_PATH
  14781. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14782. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14783. soname_spec='$libname$release$shared_ext$major'
  14784. if test 32 = "$HPUX_IA64_MODE"; then
  14785. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14786. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14787. else
  14788. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14789. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14790. fi
  14791. ;;
  14792. hppa*64*)
  14793. shrext_cmds='.sl'
  14794. hardcode_into_libs=yes
  14795. dynamic_linker="$host_os dld.sl"
  14796. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14797. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14798. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14799. soname_spec='$libname$release$shared_ext$major'
  14800. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14801. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14802. ;;
  14803. *)
  14804. shrext_cmds='.sl'
  14805. dynamic_linker="$host_os dld.sl"
  14806. shlibpath_var=SHLIB_PATH
  14807. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14808. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14809. soname_spec='$libname$release$shared_ext$major'
  14810. ;;
  14811. esac
  14812. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14813. postinstall_cmds='chmod 555 $lib'
  14814. # or fails outright, so override atomically:
  14815. install_override_mode=555
  14816. ;;
  14817. interix[3-9]*)
  14818. version_type=linux # correct to gnu/linux during the next big refactor
  14819. need_lib_prefix=no
  14820. need_version=no
  14821. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14822. soname_spec='$libname$release$shared_ext$major'
  14823. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14824. shlibpath_var=LD_LIBRARY_PATH
  14825. shlibpath_overrides_runpath=no
  14826. hardcode_into_libs=yes
  14827. ;;
  14828. irix5* | irix6* | nonstopux*)
  14829. case $host_os in
  14830. nonstopux*) version_type=nonstopux ;;
  14831. *)
  14832. if test yes = "$lt_cv_prog_gnu_ld"; then
  14833. version_type=linux # correct to gnu/linux during the next big refactor
  14834. else
  14835. version_type=irix
  14836. fi ;;
  14837. esac
  14838. need_lib_prefix=no
  14839. need_version=no
  14840. soname_spec='$libname$release$shared_ext$major'
  14841. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14842. case $host_os in
  14843. irix5* | nonstopux*)
  14844. libsuff= shlibsuff=
  14845. ;;
  14846. *)
  14847. case $LD in # libtool.m4 will add one of these switches to LD
  14848. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14849. libsuff= shlibsuff= libmagic=32-bit;;
  14850. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14851. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14852. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14853. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14854. *) libsuff= shlibsuff= libmagic=never-match;;
  14855. esac
  14856. ;;
  14857. esac
  14858. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14859. shlibpath_overrides_runpath=no
  14860. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14861. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14862. hardcode_into_libs=yes
  14863. ;;
  14864. # No shared lib support for Linux oldld, aout, or coff.
  14865. linux*oldld* | linux*aout* | linux*coff*)
  14866. dynamic_linker=no
  14867. ;;
  14868. linux*android*)
  14869. version_type=none # Android doesn't support versioned libraries.
  14870. need_lib_prefix=no
  14871. need_version=no
  14872. library_names_spec='$libname$release$shared_ext'
  14873. soname_spec='$libname$release$shared_ext'
  14874. finish_cmds=
  14875. shlibpath_var=LD_LIBRARY_PATH
  14876. shlibpath_overrides_runpath=yes
  14877. # This implies no fast_install, which is unacceptable.
  14878. # Some rework will be needed to allow for fast_install
  14879. # before this can be enabled.
  14880. hardcode_into_libs=yes
  14881. dynamic_linker='Android linker'
  14882. # Don't embed -rpath directories since the linker doesn't support them.
  14883. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14884. ;;
  14885. # This must be glibc/ELF.
  14886. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14887. version_type=linux # correct to gnu/linux during the next big refactor
  14888. need_lib_prefix=no
  14889. need_version=no
  14890. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14891. soname_spec='$libname$release$shared_ext$major'
  14892. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14893. shlibpath_var=LD_LIBRARY_PATH
  14894. shlibpath_overrides_runpath=no
  14895. # Some binutils ld are patched to set DT_RUNPATH
  14896. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14897. then :
  14898. printf %s "(cached) " >&6
  14899. else $as_nop
  14900. lt_cv_shlibpath_overrides_runpath=no
  14901. save_LDFLAGS=$LDFLAGS
  14902. save_libdir=$libdir
  14903. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14904. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14906. /* end confdefs.h. */
  14907. int
  14908. main (void)
  14909. {
  14910. ;
  14911. return 0;
  14912. }
  14913. _ACEOF
  14914. if ac_fn_cxx_try_link "$LINENO"
  14915. then :
  14916. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14917. then :
  14918. lt_cv_shlibpath_overrides_runpath=yes
  14919. fi
  14920. fi
  14921. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14922. conftest$ac_exeext conftest.$ac_ext
  14923. LDFLAGS=$save_LDFLAGS
  14924. libdir=$save_libdir
  14925. fi
  14926. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14927. # This implies no fast_install, which is unacceptable.
  14928. # Some rework will be needed to allow for fast_install
  14929. # before this can be enabled.
  14930. hardcode_into_libs=yes
  14931. # Add ABI-specific directories to the system library path.
  14932. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  14933. # Ideally, we could use ldconfig to report *all* directores which are
  14934. # searched for libraries, however this is still not possible. Aside from not
  14935. # being certain /sbin/ldconfig is available, command
  14936. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14937. # even though it is searched at run-time. Try to do the best guess by
  14938. # appending ld.so.conf contents (and includes) to the search path.
  14939. if test -f /etc/ld.so.conf; then
  14940. 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' ' '`
  14941. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  14942. fi
  14943. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14944. # powerpc, because MkLinux only supported shared libraries with the
  14945. # GNU dynamic linker. Since this was broken with cross compilers,
  14946. # most powerpc-linux boxes support dynamic linking these days and
  14947. # people can always --disable-shared, the test was removed, and we
  14948. # assume the GNU/Linux dynamic linker is in use.
  14949. dynamic_linker='GNU/Linux ld.so'
  14950. ;;
  14951. netbsd*)
  14952. version_type=sunos
  14953. need_lib_prefix=no
  14954. need_version=no
  14955. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14956. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14957. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14958. dynamic_linker='NetBSD (a.out) ld.so'
  14959. else
  14960. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14961. soname_spec='$libname$release$shared_ext$major'
  14962. dynamic_linker='NetBSD ld.elf_so'
  14963. fi
  14964. shlibpath_var=LD_LIBRARY_PATH
  14965. shlibpath_overrides_runpath=yes
  14966. hardcode_into_libs=yes
  14967. ;;
  14968. newsos6)
  14969. version_type=linux # correct to gnu/linux during the next big refactor
  14970. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14971. shlibpath_var=LD_LIBRARY_PATH
  14972. shlibpath_overrides_runpath=yes
  14973. ;;
  14974. *nto* | *qnx*)
  14975. version_type=qnx
  14976. need_lib_prefix=no
  14977. need_version=no
  14978. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14979. soname_spec='$libname$release$shared_ext$major'
  14980. shlibpath_var=LD_LIBRARY_PATH
  14981. shlibpath_overrides_runpath=no
  14982. hardcode_into_libs=yes
  14983. dynamic_linker='ldqnx.so'
  14984. ;;
  14985. openbsd* | bitrig*)
  14986. version_type=sunos
  14987. sys_lib_dlsearch_path_spec=/usr/lib
  14988. need_lib_prefix=no
  14989. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  14990. need_version=no
  14991. else
  14992. need_version=yes
  14993. fi
  14994. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14995. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14996. shlibpath_var=LD_LIBRARY_PATH
  14997. shlibpath_overrides_runpath=yes
  14998. ;;
  14999. os2*)
  15000. libname_spec='$name'
  15001. shrext_cmds=.dll
  15002. need_lib_prefix=no
  15003. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15004. # SDL customization: removed versioning support.
  15005. # version_type=windows
  15006. # need_version=no
  15007. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15008. # v=$($ECHO $release$versuffix | tr -d .-);
  15009. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15010. # $ECHO $n$v`$shared_ext'
  15011. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15012. library_names_spec='${libname}_dll.$libext'
  15013. dynamic_linker='OS/2 ld.exe'
  15014. shlibpath_var=BEGINLIBPATH
  15015. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15016. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15017. postinstall_cmds='base_file=`basename \$file`~
  15018. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15019. dldir=$destdir/`dirname \$dlpath`~
  15020. test -d \$dldir || mkdir -p \$dldir~
  15021. $install_prog $dir/$dlname \$dldir/$dlname~
  15022. chmod a+x \$dldir/$dlname~
  15023. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15024. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15025. fi'
  15026. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15027. dlpath=$dir/\$dldll~
  15028. $RM \$dlpath'
  15029. ;;
  15030. osf3* | osf4* | osf5*)
  15031. version_type=osf
  15032. need_lib_prefix=no
  15033. need_version=no
  15034. soname_spec='$libname$release$shared_ext$major'
  15035. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15036. shlibpath_var=LD_LIBRARY_PATH
  15037. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15038. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15039. ;;
  15040. rdos*)
  15041. dynamic_linker=no
  15042. ;;
  15043. solaris*)
  15044. version_type=linux # correct to gnu/linux during the next big refactor
  15045. need_lib_prefix=no
  15046. need_version=no
  15047. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15048. soname_spec='$libname$release$shared_ext$major'
  15049. shlibpath_var=LD_LIBRARY_PATH
  15050. shlibpath_overrides_runpath=yes
  15051. hardcode_into_libs=yes
  15052. # ldd complains unless libraries are executable
  15053. postinstall_cmds='chmod +x $lib'
  15054. ;;
  15055. sunos4*)
  15056. version_type=sunos
  15057. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15058. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15059. shlibpath_var=LD_LIBRARY_PATH
  15060. shlibpath_overrides_runpath=yes
  15061. if test yes = "$with_gnu_ld"; then
  15062. need_lib_prefix=no
  15063. fi
  15064. need_version=yes
  15065. ;;
  15066. sysv4 | sysv4.3*)
  15067. version_type=linux # correct to gnu/linux during the next big refactor
  15068. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15069. soname_spec='$libname$release$shared_ext$major'
  15070. shlibpath_var=LD_LIBRARY_PATH
  15071. case $host_vendor in
  15072. sni)
  15073. shlibpath_overrides_runpath=no
  15074. need_lib_prefix=no
  15075. runpath_var=LD_RUN_PATH
  15076. ;;
  15077. siemens)
  15078. need_lib_prefix=no
  15079. ;;
  15080. motorola)
  15081. need_lib_prefix=no
  15082. need_version=no
  15083. shlibpath_overrides_runpath=no
  15084. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15085. ;;
  15086. esac
  15087. ;;
  15088. sysv4*MP*)
  15089. if test -d /usr/nec; then
  15090. version_type=linux # correct to gnu/linux during the next big refactor
  15091. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15092. soname_spec='$libname$shared_ext.$major'
  15093. shlibpath_var=LD_LIBRARY_PATH
  15094. fi
  15095. ;;
  15096. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15097. version_type=sco
  15098. need_lib_prefix=no
  15099. need_version=no
  15100. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15101. soname_spec='$libname$release$shared_ext$major'
  15102. shlibpath_var=LD_LIBRARY_PATH
  15103. shlibpath_overrides_runpath=yes
  15104. hardcode_into_libs=yes
  15105. if test yes = "$with_gnu_ld"; then
  15106. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15107. else
  15108. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15109. case $host_os in
  15110. sco3.2v5*)
  15111. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15112. ;;
  15113. esac
  15114. fi
  15115. sys_lib_dlsearch_path_spec='/usr/lib'
  15116. ;;
  15117. tpf*)
  15118. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15119. version_type=linux # correct to gnu/linux during the next big refactor
  15120. need_lib_prefix=no
  15121. need_version=no
  15122. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15123. shlibpath_var=LD_LIBRARY_PATH
  15124. shlibpath_overrides_runpath=no
  15125. hardcode_into_libs=yes
  15126. ;;
  15127. uts4*)
  15128. version_type=linux # correct to gnu/linux during the next big refactor
  15129. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15130. soname_spec='$libname$release$shared_ext$major'
  15131. shlibpath_var=LD_LIBRARY_PATH
  15132. ;;
  15133. *)
  15134. dynamic_linker=no
  15135. ;;
  15136. esac
  15137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15138. printf "%s\n" "$dynamic_linker" >&6; }
  15139. test no = "$dynamic_linker" && can_build_shared=no
  15140. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15141. if test yes = "$GCC"; then
  15142. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15143. fi
  15144. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15145. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15146. fi
  15147. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15148. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15149. fi
  15150. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15151. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15152. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15153. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15154. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15155. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15157. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15158. hardcode_action_CXX=
  15159. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15160. test -n "$runpath_var_CXX" ||
  15161. test yes = "$hardcode_automatic_CXX"; then
  15162. # We can hardcode non-existent directories.
  15163. if test no != "$hardcode_direct_CXX" &&
  15164. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15165. # have to relink, otherwise we might link with an installed library
  15166. # when we should be linking with a yet-to-be-installed one
  15167. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15168. test no != "$hardcode_minus_L_CXX"; then
  15169. # Linking always hardcodes the temporary library directory.
  15170. hardcode_action_CXX=relink
  15171. else
  15172. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15173. hardcode_action_CXX=immediate
  15174. fi
  15175. else
  15176. # We cannot hardcode anything, or else we can only hardcode existing
  15177. # directories.
  15178. hardcode_action_CXX=unsupported
  15179. fi
  15180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15181. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15182. if test relink = "$hardcode_action_CXX" ||
  15183. test yes = "$inherit_rpath_CXX"; then
  15184. # Fast installation is not supported
  15185. enable_fast_install=no
  15186. elif test yes = "$shlibpath_overrides_runpath" ||
  15187. test no = "$enable_shared"; then
  15188. # Fast installation is not necessary
  15189. enable_fast_install=needless
  15190. fi
  15191. fi # test -n "$compiler"
  15192. CC=$lt_save_CC
  15193. CFLAGS=$lt_save_CFLAGS
  15194. LDCXX=$LD
  15195. LD=$lt_save_LD
  15196. GCC=$lt_save_GCC
  15197. with_gnu_ld=$lt_save_with_gnu_ld
  15198. lt_cv_path_LDCXX=$lt_cv_path_LD
  15199. lt_cv_path_LD=$lt_save_path_LD
  15200. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15201. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15202. fi # test yes != "$_lt_caught_CXX_error"
  15203. ac_ext=c
  15204. ac_cpp='$CPP $CPPFLAGS'
  15205. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15206. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15207. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15209. printf %s "checking for egrep... " >&6; }
  15210. if test ${ac_cv_path_EGREP+y}
  15211. then :
  15212. printf %s "(cached) " >&6
  15213. else $as_nop
  15214. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15215. then ac_cv_path_EGREP="$GREP -E"
  15216. else
  15217. if test -z "$EGREP"; then
  15218. ac_path_EGREP_found=false
  15219. # Loop through the user's path and test for each of PROGNAME-LIST
  15220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15221. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15222. do
  15223. IFS=$as_save_IFS
  15224. case $as_dir in #(((
  15225. '') as_dir=./ ;;
  15226. */) ;;
  15227. *) as_dir=$as_dir/ ;;
  15228. esac
  15229. for ac_prog in egrep
  15230. do
  15231. for ac_exec_ext in '' $ac_executable_extensions; do
  15232. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15233. as_fn_executable_p "$ac_path_EGREP" || continue
  15234. # Check for GNU ac_path_EGREP and select it if it is found.
  15235. # Check for GNU $ac_path_EGREP
  15236. case `"$ac_path_EGREP" --version 2>&1` in
  15237. *GNU*)
  15238. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15239. *)
  15240. ac_count=0
  15241. printf %s 0123456789 >"conftest.in"
  15242. while :
  15243. do
  15244. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15245. mv "conftest.tmp" "conftest.in"
  15246. cp "conftest.in" "conftest.nl"
  15247. printf "%s\n" 'EGREP' >> "conftest.nl"
  15248. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15249. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15250. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15251. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15252. # Best one so far, save it but keep looking for a better one
  15253. ac_cv_path_EGREP="$ac_path_EGREP"
  15254. ac_path_EGREP_max=$ac_count
  15255. fi
  15256. # 10*(2^10) chars as input seems more than enough
  15257. test $ac_count -gt 10 && break
  15258. done
  15259. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15260. esac
  15261. $ac_path_EGREP_found && break 3
  15262. done
  15263. done
  15264. done
  15265. IFS=$as_save_IFS
  15266. if test -z "$ac_cv_path_EGREP"; then
  15267. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15268. fi
  15269. else
  15270. ac_cv_path_EGREP=$EGREP
  15271. fi
  15272. fi
  15273. fi
  15274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15275. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15276. EGREP="$ac_cv_path_EGREP"
  15277. # Find a good install program. We prefer a C program (faster),
  15278. # so one script is as good as another. But avoid the broken or
  15279. # incompatible versions:
  15280. # SysV /etc/install, /usr/sbin/install
  15281. # SunOS /usr/etc/install
  15282. # IRIX /sbin/install
  15283. # AIX /bin/install
  15284. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15285. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15286. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15287. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15288. # OS/2's system install, which has a completely different semantic
  15289. # ./install, which can be erroneously created by make from ./install.sh.
  15290. # Reject install programs that cannot install multiple files.
  15291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15292. printf %s "checking for a BSD-compatible install... " >&6; }
  15293. if test -z "$INSTALL"; then
  15294. if test ${ac_cv_path_install+y}
  15295. then :
  15296. printf %s "(cached) " >&6
  15297. else $as_nop
  15298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15299. for as_dir in $PATH
  15300. do
  15301. IFS=$as_save_IFS
  15302. case $as_dir in #(((
  15303. '') as_dir=./ ;;
  15304. */) ;;
  15305. *) as_dir=$as_dir/ ;;
  15306. esac
  15307. # Account for fact that we put trailing slashes in our PATH walk.
  15308. case $as_dir in #((
  15309. ./ | /[cC]/* | \
  15310. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15311. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15312. /usr/ucb/* ) ;;
  15313. *)
  15314. # OSF1 and SCO ODT 3.0 have their own names for install.
  15315. # Don't use installbsd from OSF since it installs stuff as root
  15316. # by default.
  15317. for ac_prog in ginstall scoinst install; do
  15318. for ac_exec_ext in '' $ac_executable_extensions; do
  15319. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15320. if test $ac_prog = install &&
  15321. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15322. # AIX install. It has an incompatible calling convention.
  15323. :
  15324. elif test $ac_prog = install &&
  15325. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15326. # program-specific install script used by HP pwplus--don't use.
  15327. :
  15328. else
  15329. rm -rf conftest.one conftest.two conftest.dir
  15330. echo one > conftest.one
  15331. echo two > conftest.two
  15332. mkdir conftest.dir
  15333. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15334. test -s conftest.one && test -s conftest.two &&
  15335. test -s conftest.dir/conftest.one &&
  15336. test -s conftest.dir/conftest.two
  15337. then
  15338. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15339. break 3
  15340. fi
  15341. fi
  15342. fi
  15343. done
  15344. done
  15345. ;;
  15346. esac
  15347. done
  15348. IFS=$as_save_IFS
  15349. rm -rf conftest.one conftest.two conftest.dir
  15350. fi
  15351. if test ${ac_cv_path_install+y}; then
  15352. INSTALL=$ac_cv_path_install
  15353. else
  15354. # As a last resort, use the slow shell script. Don't cache a
  15355. # value for INSTALL within a source directory, because that will
  15356. # break other packages using the cache if that directory is
  15357. # removed, or if the value is a relative name.
  15358. INSTALL=$ac_install_sh
  15359. fi
  15360. fi
  15361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15362. printf "%s\n" "$INSTALL" >&6; }
  15363. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15364. # It thinks the first close brace ends the variable substitution.
  15365. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15366. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15367. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15369. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15370. set x ${MAKE-make}
  15371. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15372. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15373. then :
  15374. printf %s "(cached) " >&6
  15375. else $as_nop
  15376. cat >conftest.make <<\_ACEOF
  15377. SHELL = /bin/sh
  15378. all:
  15379. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15380. _ACEOF
  15381. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15382. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15383. *@@@%%%=?*=@@@%%%*)
  15384. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15385. *)
  15386. eval ac_cv_prog_make_${ac_make}_set=no;;
  15387. esac
  15388. rm -f conftest.make
  15389. fi
  15390. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15392. printf "%s\n" "yes" >&6; }
  15393. SET_MAKE=
  15394. else
  15395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15396. printf "%s\n" "no" >&6; }
  15397. SET_MAKE="MAKE=${MAKE-make}"
  15398. fi
  15399. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15400. if test -n "$ac_tool_prefix"; then
  15401. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15402. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15404. printf %s "checking for $ac_word... " >&6; }
  15405. if test ${ac_cv_path_PKG_CONFIG+y}
  15406. then :
  15407. printf %s "(cached) " >&6
  15408. else $as_nop
  15409. case $PKG_CONFIG in
  15410. [\\/]* | ?:[\\/]*)
  15411. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15412. ;;
  15413. *)
  15414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15415. for as_dir in $PATH
  15416. do
  15417. IFS=$as_save_IFS
  15418. case $as_dir in #(((
  15419. '') as_dir=./ ;;
  15420. */) ;;
  15421. *) as_dir=$as_dir/ ;;
  15422. esac
  15423. for ac_exec_ext in '' $ac_executable_extensions; do
  15424. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15425. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15426. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15427. break 2
  15428. fi
  15429. done
  15430. done
  15431. IFS=$as_save_IFS
  15432. ;;
  15433. esac
  15434. fi
  15435. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15436. if test -n "$PKG_CONFIG"; then
  15437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15438. printf "%s\n" "$PKG_CONFIG" >&6; }
  15439. else
  15440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15441. printf "%s\n" "no" >&6; }
  15442. fi
  15443. fi
  15444. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15445. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15446. # Extract the first word of "pkg-config", so it can be a program name with args.
  15447. set dummy pkg-config; ac_word=$2
  15448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15449. printf %s "checking for $ac_word... " >&6; }
  15450. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15451. then :
  15452. printf %s "(cached) " >&6
  15453. else $as_nop
  15454. case $ac_pt_PKG_CONFIG in
  15455. [\\/]* | ?:[\\/]*)
  15456. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15457. ;;
  15458. *)
  15459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15460. for as_dir in $PATH
  15461. do
  15462. IFS=$as_save_IFS
  15463. case $as_dir in #(((
  15464. '') as_dir=./ ;;
  15465. */) ;;
  15466. *) as_dir=$as_dir/ ;;
  15467. esac
  15468. for ac_exec_ext in '' $ac_executable_extensions; do
  15469. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15470. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15471. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15472. break 2
  15473. fi
  15474. done
  15475. done
  15476. IFS=$as_save_IFS
  15477. ;;
  15478. esac
  15479. fi
  15480. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15481. if test -n "$ac_pt_PKG_CONFIG"; then
  15482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15483. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15484. else
  15485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15486. printf "%s\n" "no" >&6; }
  15487. fi
  15488. if test "x$ac_pt_PKG_CONFIG" = x; then
  15489. PKG_CONFIG=""
  15490. else
  15491. case $cross_compiling:$ac_tool_warned in
  15492. yes:)
  15493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15494. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15495. ac_tool_warned=yes ;;
  15496. esac
  15497. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15498. fi
  15499. else
  15500. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15501. fi
  15502. fi
  15503. if test -n "$PKG_CONFIG"; then
  15504. _pkg_min_version=0.9.0
  15505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15506. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15507. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15509. printf "%s\n" "yes" >&6; }
  15510. else
  15511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15512. printf "%s\n" "no" >&6; }
  15513. PKG_CONFIG=""
  15514. fi
  15515. fi
  15516. if test -z "$AWK" ; then
  15517. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15518. fi
  15519. for ac_prog in gsort sort
  15520. do
  15521. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15522. set dummy $ac_prog; ac_word=$2
  15523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15524. printf %s "checking for $ac_word... " >&6; }
  15525. if test ${ac_cv_prog_SORT+y}
  15526. then :
  15527. printf %s "(cached) " >&6
  15528. else $as_nop
  15529. if test -n "$SORT"; then
  15530. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15531. else
  15532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15533. for as_dir in $PATH
  15534. do
  15535. IFS=$as_save_IFS
  15536. case $as_dir in #(((
  15537. '') as_dir=./ ;;
  15538. */) ;;
  15539. *) as_dir=$as_dir/ ;;
  15540. esac
  15541. for ac_exec_ext in '' $ac_executable_extensions; do
  15542. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15543. ac_cv_prog_SORT="$ac_prog"
  15544. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15545. break 2
  15546. fi
  15547. done
  15548. done
  15549. IFS=$as_save_IFS
  15550. fi
  15551. fi
  15552. SORT=$ac_cv_prog_SORT
  15553. if test -n "$SORT"; then
  15554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15555. printf "%s\n" "$SORT" >&6; }
  15556. else
  15557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15558. printf "%s\n" "no" >&6; }
  15559. fi
  15560. test -n "$SORT" && break
  15561. done
  15562. test -n "$SORT" || SORT="false"
  15563. if ! "$SORT" -V </dev/null >/dev/null
  15564. then :
  15565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15566. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15567. fi
  15568. # Check whether --enable-largefile was given.
  15569. if test ${enable_largefile+y}
  15570. then :
  15571. enableval=$enable_largefile;
  15572. fi
  15573. if test "$enable_largefile" != no; then
  15574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15575. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15576. if test ${ac_cv_sys_largefile_CC+y}
  15577. then :
  15578. printf %s "(cached) " >&6
  15579. else $as_nop
  15580. ac_cv_sys_largefile_CC=no
  15581. if test "$GCC" != yes; then
  15582. ac_save_CC=$CC
  15583. while :; do
  15584. # IRIX 6.2 and later do not support large files by default,
  15585. # so use the C compiler's -n32 option if that helps.
  15586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15587. /* end confdefs.h. */
  15588. #include <sys/types.h>
  15589. /* Check that off_t can represent 2**63 - 1 correctly.
  15590. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15591. since some C++ compilers masquerading as C compilers
  15592. incorrectly reject 9223372036854775807. */
  15593. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15594. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15595. && LARGE_OFF_T % 2147483647 == 1)
  15596. ? 1 : -1];
  15597. int
  15598. main (void)
  15599. {
  15600. ;
  15601. return 0;
  15602. }
  15603. _ACEOF
  15604. if ac_fn_c_try_compile "$LINENO"
  15605. then :
  15606. break
  15607. fi
  15608. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15609. CC="$CC -n32"
  15610. if ac_fn_c_try_compile "$LINENO"
  15611. then :
  15612. ac_cv_sys_largefile_CC=' -n32'; break
  15613. fi
  15614. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15615. break
  15616. done
  15617. CC=$ac_save_CC
  15618. rm -f conftest.$ac_ext
  15619. fi
  15620. fi
  15621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15622. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15623. if test "$ac_cv_sys_largefile_CC" != no; then
  15624. CC=$CC$ac_cv_sys_largefile_CC
  15625. fi
  15626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15627. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15628. if test ${ac_cv_sys_file_offset_bits+y}
  15629. then :
  15630. printf %s "(cached) " >&6
  15631. else $as_nop
  15632. while :; do
  15633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15634. /* end confdefs.h. */
  15635. #include <sys/types.h>
  15636. /* Check that off_t can represent 2**63 - 1 correctly.
  15637. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15638. since some C++ compilers masquerading as C compilers
  15639. incorrectly reject 9223372036854775807. */
  15640. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15641. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15642. && LARGE_OFF_T % 2147483647 == 1)
  15643. ? 1 : -1];
  15644. int
  15645. main (void)
  15646. {
  15647. ;
  15648. return 0;
  15649. }
  15650. _ACEOF
  15651. if ac_fn_c_try_compile "$LINENO"
  15652. then :
  15653. ac_cv_sys_file_offset_bits=no; break
  15654. fi
  15655. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15657. /* end confdefs.h. */
  15658. #define _FILE_OFFSET_BITS 64
  15659. #include <sys/types.h>
  15660. /* Check that off_t can represent 2**63 - 1 correctly.
  15661. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15662. since some C++ compilers masquerading as C compilers
  15663. incorrectly reject 9223372036854775807. */
  15664. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15665. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15666. && LARGE_OFF_T % 2147483647 == 1)
  15667. ? 1 : -1];
  15668. int
  15669. main (void)
  15670. {
  15671. ;
  15672. return 0;
  15673. }
  15674. _ACEOF
  15675. if ac_fn_c_try_compile "$LINENO"
  15676. then :
  15677. ac_cv_sys_file_offset_bits=64; break
  15678. fi
  15679. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15680. ac_cv_sys_file_offset_bits=unknown
  15681. break
  15682. done
  15683. fi
  15684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15685. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15686. case $ac_cv_sys_file_offset_bits in #(
  15687. no | unknown) ;;
  15688. *)
  15689. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15690. ;;
  15691. esac
  15692. rm -rf conftest*
  15693. if test $ac_cv_sys_file_offset_bits = unknown; then
  15694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15695. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15696. if test ${ac_cv_sys_large_files+y}
  15697. then :
  15698. printf %s "(cached) " >&6
  15699. else $as_nop
  15700. while :; do
  15701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15702. /* end confdefs.h. */
  15703. #include <sys/types.h>
  15704. /* Check that off_t can represent 2**63 - 1 correctly.
  15705. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15706. since some C++ compilers masquerading as C compilers
  15707. incorrectly reject 9223372036854775807. */
  15708. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15709. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15710. && LARGE_OFF_T % 2147483647 == 1)
  15711. ? 1 : -1];
  15712. int
  15713. main (void)
  15714. {
  15715. ;
  15716. return 0;
  15717. }
  15718. _ACEOF
  15719. if ac_fn_c_try_compile "$LINENO"
  15720. then :
  15721. ac_cv_sys_large_files=no; break
  15722. fi
  15723. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15725. /* end confdefs.h. */
  15726. #define _LARGE_FILES 1
  15727. #include <sys/types.h>
  15728. /* Check that off_t can represent 2**63 - 1 correctly.
  15729. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15730. since some C++ compilers masquerading as C compilers
  15731. incorrectly reject 9223372036854775807. */
  15732. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15733. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15734. && LARGE_OFF_T % 2147483647 == 1)
  15735. ? 1 : -1];
  15736. int
  15737. main (void)
  15738. {
  15739. ;
  15740. return 0;
  15741. }
  15742. _ACEOF
  15743. if ac_fn_c_try_compile "$LINENO"
  15744. then :
  15745. ac_cv_sys_large_files=1; break
  15746. fi
  15747. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15748. ac_cv_sys_large_files=unknown
  15749. break
  15750. done
  15751. fi
  15752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15753. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15754. case $ac_cv_sys_large_files in #(
  15755. no | unknown) ;;
  15756. *)
  15757. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15758. ;;
  15759. esac
  15760. rm -rf conftest*
  15761. fi
  15762. fi
  15763. case "$host" in
  15764. *-*-mingw*)
  15765. # Except on msys, where make can't handle full pathnames (bug 1972)
  15766. ;;
  15767. *)
  15768. srcdir=`cd $srcdir && pwd`
  15769. ;;
  15770. esac
  15771. INCLUDE="-I$srcdir/include"
  15772. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15773. case "$host" in
  15774. *-*-haiku*)
  15775. LINKER='$(CXX)'
  15776. LIBTOOLLINKERTAG='CXX'
  15777. ;;
  15778. *)
  15779. LINKER='$(CC)'
  15780. LIBTOOLLINKERTAG='CC'
  15781. ;;
  15782. esac
  15783. if test x$srcdir != x.; then
  15784. INCLUDE="-Iinclude $INCLUDE"
  15785. elif test -d .git; then
  15786. as_fn_error $? "
  15787. *** When building from a git clone you should configure and build in a
  15788. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15789. " "$LINENO" 5
  15790. fi
  15791. BASE_CFLAGS=""
  15792. BASE_LDFLAGS=""
  15793. case "$host" in
  15794. *-*-cygwin*)
  15795. # We build SDL on cygwin without the UNIX emulation layer
  15796. save_CFLAGS="$CFLAGS"
  15797. have_no_cygwin=no
  15798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15799. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15800. CFLAGS="$save_CFLAGS -mno-cygwin"
  15801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15802. /* end confdefs.h. */
  15803. int
  15804. main (void)
  15805. {
  15806. ;
  15807. return 0;
  15808. }
  15809. _ACEOF
  15810. if ac_fn_c_try_compile "$LINENO"
  15811. then :
  15812. have_no_cygwin=yes
  15813. fi
  15814. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15816. printf "%s\n" "$have_no_cygwin" >&6; }
  15817. CFLAGS="$save_CFLAGS"
  15818. if test x$have_no_cygwin = xyes; then
  15819. BASE_CFLAGS="-mno-cygwin"
  15820. BASE_LDFLAGS="-mno-cygwin"
  15821. fi
  15822. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15823. ;;
  15824. esac
  15825. # Uncomment the following line if you want to force SDL and applications
  15826. # built with it to be compiled for a particular architecture.
  15827. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15828. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15829. # The default optimization for SDL is -O3 (Bug #31)
  15830. if test "x$orig_CFLAGS" = x; then
  15831. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15832. fi
  15833. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15834. BUILD_LDFLAGS="$LDFLAGS"
  15835. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15836. ## These are common directories to find software packages
  15837. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15838. # if test -d $path/include; then
  15839. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15840. # fi
  15841. # if test -d $path/lib; then
  15842. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15843. # fi
  15844. #done
  15845. SDL_CFLAGS="$BASE_CFLAGS"
  15846. SDL_LIBS="-lSDL3"
  15847. if test "x$BASE_LDFLAGS" != x; then
  15848. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15849. fi
  15850. if test "x$EXTRA_CFLAGS" != x; then
  15851. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15852. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15853. fi
  15854. if test "x$EXTRA_LDFLAGS" != x; then
  15855. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15856. fi
  15857. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15858. find_lib()
  15859. {
  15860. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15861. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15862. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15863. if test "$cross_compiling" = yes; then
  15864. host_lib_path=""
  15865. else
  15866. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15867. fi
  15868. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15869. 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`
  15870. if test x$lib != x; then
  15871. echo $lib
  15872. return
  15873. fi
  15874. done
  15875. }
  15876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15877. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15878. if test ${ac_cv_c_const+y}
  15879. then :
  15880. printf %s "(cached) " >&6
  15881. else $as_nop
  15882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15883. /* end confdefs.h. */
  15884. int
  15885. main (void)
  15886. {
  15887. #ifndef __cplusplus
  15888. /* Ultrix mips cc rejects this sort of thing. */
  15889. typedef int charset[2];
  15890. const charset cs = { 0, 0 };
  15891. /* SunOS 4.1.1 cc rejects this. */
  15892. char const *const *pcpcc;
  15893. char **ppc;
  15894. /* NEC SVR4.0.2 mips cc rejects this. */
  15895. struct point {int x, y;};
  15896. static struct point const zero = {0,0};
  15897. /* IBM XL C 1.02.0.0 rejects this.
  15898. It does not let you subtract one const X* pointer from another in
  15899. an arm of an if-expression whose if-part is not a constant
  15900. expression */
  15901. const char *g = "string";
  15902. pcpcc = &g + (g ? g-g : 0);
  15903. /* HPUX 7.0 cc rejects these. */
  15904. ++pcpcc;
  15905. ppc = (char**) pcpcc;
  15906. pcpcc = (char const *const *) ppc;
  15907. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15908. char tx;
  15909. char *t = &tx;
  15910. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15911. *t++ = 0;
  15912. if (s) return 0;
  15913. }
  15914. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15915. int x[] = {25, 17};
  15916. const int *foo = &x[0];
  15917. ++foo;
  15918. }
  15919. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15920. typedef const int *iptr;
  15921. iptr p = 0;
  15922. ++p;
  15923. }
  15924. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  15925. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15926. struct s { int j; const int *ap[3]; } bx;
  15927. struct s *b = &bx; b->j = 5;
  15928. }
  15929. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15930. const int foo = 10;
  15931. if (!foo) return 0;
  15932. }
  15933. return !cs[0] && !zero.x;
  15934. #endif
  15935. ;
  15936. return 0;
  15937. }
  15938. _ACEOF
  15939. if ac_fn_c_try_compile "$LINENO"
  15940. then :
  15941. ac_cv_c_const=yes
  15942. else $as_nop
  15943. ac_cv_c_const=no
  15944. fi
  15945. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15946. fi
  15947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  15948. printf "%s\n" "$ac_cv_c_const" >&6; }
  15949. if test $ac_cv_c_const = no; then
  15950. printf "%s\n" "#define const /**/" >>confdefs.h
  15951. fi
  15952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  15953. printf %s "checking for inline... " >&6; }
  15954. if test ${ac_cv_c_inline+y}
  15955. then :
  15956. printf %s "(cached) " >&6
  15957. else $as_nop
  15958. ac_cv_c_inline=no
  15959. for ac_kw in inline __inline__ __inline; do
  15960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15961. /* end confdefs.h. */
  15962. #ifndef __cplusplus
  15963. typedef int foo_t;
  15964. static $ac_kw foo_t static_foo (void) {return 0; }
  15965. $ac_kw foo_t foo (void) {return 0; }
  15966. #endif
  15967. _ACEOF
  15968. if ac_fn_c_try_compile "$LINENO"
  15969. then :
  15970. ac_cv_c_inline=$ac_kw
  15971. fi
  15972. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15973. test "$ac_cv_c_inline" != no && break
  15974. done
  15975. fi
  15976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  15977. printf "%s\n" "$ac_cv_c_inline" >&6; }
  15978. case $ac_cv_c_inline in
  15979. inline | yes) ;;
  15980. *)
  15981. case $ac_cv_c_inline in
  15982. no) ac_val=;;
  15983. *) ac_val=$ac_cv_c_inline;;
  15984. esac
  15985. cat >>confdefs.h <<_ACEOF
  15986. #ifndef __cplusplus
  15987. #define inline $ac_val
  15988. #endif
  15989. _ACEOF
  15990. ;;
  15991. esac
  15992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  15993. printf %s "checking for working volatile... " >&6; }
  15994. if test ${ac_cv_c_volatile+y}
  15995. then :
  15996. printf %s "(cached) " >&6
  15997. else $as_nop
  15998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15999. /* end confdefs.h. */
  16000. int
  16001. main (void)
  16002. {
  16003. volatile int x;
  16004. int * volatile y = (int *) 0;
  16005. return !x && !y;
  16006. ;
  16007. return 0;
  16008. }
  16009. _ACEOF
  16010. if ac_fn_c_try_compile "$LINENO"
  16011. then :
  16012. ac_cv_c_volatile=yes
  16013. else $as_nop
  16014. ac_cv_c_volatile=no
  16015. fi
  16016. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16017. fi
  16018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16019. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16020. if test $ac_cv_c_volatile = no; then
  16021. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16022. fi
  16023. # Check whether --enable-assertions was given.
  16024. if test ${enable_assertions+y}
  16025. then :
  16026. enableval=$enable_assertions;
  16027. else $as_nop
  16028. enable_assertions=auto
  16029. fi
  16030. case "$enable_assertions" in
  16031. auto) # Use optimization settings to determine assertion level
  16032. ;;
  16033. disabled)
  16034. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16035. ;;
  16036. release)
  16037. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16038. ;;
  16039. enabled)
  16040. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16041. ;;
  16042. paranoid)
  16043. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16044. ;;
  16045. *)
  16046. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16047. ;;
  16048. esac
  16049. 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"
  16050. # Check whether --enable-dependency-tracking was given.
  16051. if test ${enable_dependency_tracking+y}
  16052. then :
  16053. enableval=$enable_dependency_tracking;
  16054. else $as_nop
  16055. enable_dependency_tracking=yes
  16056. fi
  16057. if test x$enable_dependency_tracking = xyes; then
  16058. have_gcc_mmd_mt=no
  16059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16060. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16062. /* end confdefs.h. */
  16063. #if !defined(__GNUC__) || __GNUC__ < 3
  16064. #error Dependency tracking requires GCC 3.0 or newer
  16065. #endif
  16066. int
  16067. main (void)
  16068. {
  16069. ;
  16070. return 0;
  16071. }
  16072. _ACEOF
  16073. if ac_fn_c_try_compile "$LINENO"
  16074. then :
  16075. have_gcc_mmd_mt=yes
  16076. fi
  16077. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16079. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16080. if test x$have_gcc_mmd_mt = xyes; then
  16081. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16082. fi
  16083. fi
  16084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16085. printf %s "checking for linker option --no-undefined... " >&6; }
  16086. have_no_undefined=no
  16087. case "$host" in
  16088. *-*-openbsd*)
  16089. ;;
  16090. *)
  16091. save_LDFLAGS="$LDFLAGS"
  16092. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16094. /* end confdefs.h. */
  16095. int
  16096. main (void)
  16097. {
  16098. ;
  16099. return 0;
  16100. }
  16101. _ACEOF
  16102. if ac_fn_c_try_link "$LINENO"
  16103. then :
  16104. have_no_undefined=yes
  16105. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16106. fi
  16107. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16108. conftest$ac_exeext conftest.$ac_ext
  16109. LDFLAGS="$save_LDFLAGS"
  16110. ;;
  16111. esac
  16112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16113. printf "%s\n" "$have_no_undefined" >&6; }
  16114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16115. printf %s "checking for linker option --dynamicbase... " >&6; }
  16116. have_dynamicbase=no
  16117. case "$host" in
  16118. *)
  16119. save_LDFLAGS="$LDFLAGS"
  16120. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16122. /* end confdefs.h. */
  16123. int
  16124. main (void)
  16125. {
  16126. ;
  16127. return 0;
  16128. }
  16129. _ACEOF
  16130. if ac_fn_c_try_link "$LINENO"
  16131. then :
  16132. have_dynamicbase=yes
  16133. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16134. fi
  16135. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16136. conftest$ac_exeext conftest.$ac_ext
  16137. LDFLAGS="$save_LDFLAGS"
  16138. ;;
  16139. esac
  16140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16141. printf "%s\n" "$have_dynamicbase" >&6; }
  16142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16143. printf %s "checking for linker option --nxcompat... " >&6; }
  16144. have_nxcompat=no
  16145. case "$host" in
  16146. *)
  16147. save_LDFLAGS="$LDFLAGS"
  16148. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16150. /* end confdefs.h. */
  16151. int
  16152. main (void)
  16153. {
  16154. ;
  16155. return 0;
  16156. }
  16157. _ACEOF
  16158. if ac_fn_c_try_link "$LINENO"
  16159. then :
  16160. have_nxcompat=yes
  16161. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16162. fi
  16163. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16164. conftest$ac_exeext conftest.$ac_ext
  16165. LDFLAGS="$save_LDFLAGS"
  16166. ;;
  16167. esac
  16168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16169. printf "%s\n" "$have_nxcompat" >&6; }
  16170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16171. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16172. have_high_entropy_va=no
  16173. case "$host" in
  16174. *)
  16175. save_LDFLAGS="$LDFLAGS"
  16176. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16178. /* end confdefs.h. */
  16179. int
  16180. main (void)
  16181. {
  16182. ;
  16183. return 0;
  16184. }
  16185. _ACEOF
  16186. if ac_fn_c_try_link "$LINENO"
  16187. then :
  16188. have_high_entropy_va=yes
  16189. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16190. fi
  16191. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16192. conftest$ac_exeext conftest.$ac_ext
  16193. LDFLAGS="$save_LDFLAGS"
  16194. ;;
  16195. esac
  16196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16197. printf "%s\n" "$have_high_entropy_va" >&6; }
  16198. # Check whether --enable-libc was given.
  16199. if test ${enable_libc+y}
  16200. then :
  16201. enableval=$enable_libc;
  16202. else $as_nop
  16203. enable_libc=yes
  16204. fi
  16205. # Check whether --enable-system-iconv was given.
  16206. if test ${enable_system_iconv+y}
  16207. then :
  16208. enableval=$enable_system_iconv;
  16209. else $as_nop
  16210. enable_system_iconv=yes
  16211. fi
  16212. if test x$enable_libc = xyes; then
  16213. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16214. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16215. if test "x$ac_cv_header_sys_types_h" = xyes
  16216. then :
  16217. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16218. fi
  16219. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16220. if test "x$ac_cv_header_stdio_h" = xyes
  16221. then :
  16222. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16223. fi
  16224. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16225. if test "x$ac_cv_header_stdlib_h" = xyes
  16226. then :
  16227. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16228. fi
  16229. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16230. if test "x$ac_cv_header_stddef_h" = xyes
  16231. then :
  16232. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16233. fi
  16234. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16235. if test "x$ac_cv_header_stdarg_h" = xyes
  16236. then :
  16237. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16238. fi
  16239. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16240. if test "x$ac_cv_header_malloc_h" = xyes
  16241. then :
  16242. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16243. fi
  16244. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16245. if test "x$ac_cv_header_memory_h" = xyes
  16246. then :
  16247. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16248. fi
  16249. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16250. if test "x$ac_cv_header_string_h" = xyes
  16251. then :
  16252. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16253. fi
  16254. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16255. if test "x$ac_cv_header_strings_h" = xyes
  16256. then :
  16257. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16258. fi
  16259. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16260. if test "x$ac_cv_header_wchar_h" = xyes
  16261. then :
  16262. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16263. fi
  16264. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16265. if test "x$ac_cv_header_inttypes_h" = xyes
  16266. then :
  16267. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16268. fi
  16269. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16270. if test "x$ac_cv_header_stdint_h" = xyes
  16271. then :
  16272. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16273. fi
  16274. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16275. if test "x$ac_cv_header_limits_h" = xyes
  16276. then :
  16277. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16278. fi
  16279. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16280. if test "x$ac_cv_header_ctype_h" = xyes
  16281. then :
  16282. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16283. fi
  16284. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16285. if test "x$ac_cv_header_math_h" = xyes
  16286. then :
  16287. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16288. fi
  16289. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16290. if test "x$ac_cv_header_float_h" = xyes
  16291. then :
  16292. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16293. fi
  16294. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16295. if test "x$ac_cv_header_iconv_h" = xyes
  16296. then :
  16297. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16298. fi
  16299. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16300. if test "x$ac_cv_header_signal_h" = xyes
  16301. then :
  16302. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16303. fi
  16304. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  16305. if test "x$ac_cv_header_linux_input_h" = xyes
  16306. then :
  16307. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  16308. fi
  16309. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16310. if test "x$ac_cv_type_size_t" = xyes
  16311. then :
  16312. else $as_nop
  16313. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16314. fi
  16315. ac_ext=c
  16316. ac_cpp='$CPP $CPPFLAGS'
  16317. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16318. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16319. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16321. printf %s "checking how to run the C preprocessor... " >&6; }
  16322. # On Suns, sometimes $CPP names a directory.
  16323. if test -n "$CPP" && test -d "$CPP"; then
  16324. CPP=
  16325. fi
  16326. if test -z "$CPP"; then
  16327. if test ${ac_cv_prog_CPP+y}
  16328. then :
  16329. printf %s "(cached) " >&6
  16330. else $as_nop
  16331. # Double quotes because $CC needs to be expanded
  16332. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16333. do
  16334. ac_preproc_ok=false
  16335. for ac_c_preproc_warn_flag in '' yes
  16336. do
  16337. # Use a header file that comes with gcc, so configuring glibc
  16338. # with a fresh cross-compiler works.
  16339. # On the NeXT, cc -E runs the code through the compiler's parser,
  16340. # not just through cpp. "Syntax error" is here to catch this case.
  16341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16342. /* end confdefs.h. */
  16343. #include <limits.h>
  16344. Syntax error
  16345. _ACEOF
  16346. if ac_fn_c_try_cpp "$LINENO"
  16347. then :
  16348. else $as_nop
  16349. # Broken: fails on valid input.
  16350. continue
  16351. fi
  16352. rm -f conftest.err conftest.i conftest.$ac_ext
  16353. # OK, works on sane cases. Now check whether nonexistent headers
  16354. # can be detected and how.
  16355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16356. /* end confdefs.h. */
  16357. #include <ac_nonexistent.h>
  16358. _ACEOF
  16359. if ac_fn_c_try_cpp "$LINENO"
  16360. then :
  16361. # Broken: success on invalid input.
  16362. continue
  16363. else $as_nop
  16364. # Passes both tests.
  16365. ac_preproc_ok=:
  16366. break
  16367. fi
  16368. rm -f conftest.err conftest.i conftest.$ac_ext
  16369. done
  16370. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16371. rm -f conftest.i conftest.err conftest.$ac_ext
  16372. if $ac_preproc_ok
  16373. then :
  16374. break
  16375. fi
  16376. done
  16377. ac_cv_prog_CPP=$CPP
  16378. fi
  16379. CPP=$ac_cv_prog_CPP
  16380. else
  16381. ac_cv_prog_CPP=$CPP
  16382. fi
  16383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16384. printf "%s\n" "$CPP" >&6; }
  16385. ac_preproc_ok=false
  16386. for ac_c_preproc_warn_flag in '' yes
  16387. do
  16388. # Use a header file that comes with gcc, so configuring glibc
  16389. # with a fresh cross-compiler works.
  16390. # On the NeXT, cc -E runs the code through the compiler's parser,
  16391. # not just through cpp. "Syntax error" is here to catch this case.
  16392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16393. /* end confdefs.h. */
  16394. #include <limits.h>
  16395. Syntax error
  16396. _ACEOF
  16397. if ac_fn_c_try_cpp "$LINENO"
  16398. then :
  16399. else $as_nop
  16400. # Broken: fails on valid input.
  16401. continue
  16402. fi
  16403. rm -f conftest.err conftest.i conftest.$ac_ext
  16404. # OK, works on sane cases. Now check whether nonexistent headers
  16405. # can be detected and how.
  16406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16407. /* end confdefs.h. */
  16408. #include <ac_nonexistent.h>
  16409. _ACEOF
  16410. if ac_fn_c_try_cpp "$LINENO"
  16411. then :
  16412. # Broken: success on invalid input.
  16413. continue
  16414. else $as_nop
  16415. # Passes both tests.
  16416. ac_preproc_ok=:
  16417. break
  16418. fi
  16419. rm -f conftest.err conftest.i conftest.$ac_ext
  16420. done
  16421. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16422. rm -f conftest.i conftest.err conftest.$ac_ext
  16423. if $ac_preproc_ok
  16424. then :
  16425. else $as_nop
  16426. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16427. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16428. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16429. See \`config.log' for more details" "$LINENO" 5; }
  16430. fi
  16431. ac_ext=c
  16432. ac_cpp='$CPP $CPPFLAGS'
  16433. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16434. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16435. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16437. printf %s "checking for M_PI in math.h... " >&6; }
  16438. if test ${ac_cv_define_M_PI+y}
  16439. then :
  16440. printf %s "(cached) " >&6
  16441. else $as_nop
  16442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16443. /* end confdefs.h. */
  16444. #include <math.h>
  16445. #ifdef M_PI
  16446. YES_IS_DEFINED
  16447. #endif
  16448. _ACEOF
  16449. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16450. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16451. then :
  16452. ac_cv_define_M_PI=yes
  16453. else $as_nop
  16454. ac_cv_define_M_PI=no
  16455. fi
  16456. rm -rf conftest*
  16457. fi
  16458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16459. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16460. if test "$ac_cv_define_M_PI" = "yes" ; then
  16461. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16462. fi
  16463. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16464. # for constant arguments. Useless!
  16465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16466. printf %s "checking for working alloca.h... " >&6; }
  16467. if test ${ac_cv_working_alloca_h+y}
  16468. then :
  16469. printf %s "(cached) " >&6
  16470. else $as_nop
  16471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16472. /* end confdefs.h. */
  16473. #include <alloca.h>
  16474. int
  16475. main (void)
  16476. {
  16477. char *p = (char *) alloca (2 * sizeof (int));
  16478. if (p) return 0;
  16479. ;
  16480. return 0;
  16481. }
  16482. _ACEOF
  16483. if ac_fn_c_try_link "$LINENO"
  16484. then :
  16485. ac_cv_working_alloca_h=yes
  16486. else $as_nop
  16487. ac_cv_working_alloca_h=no
  16488. fi
  16489. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16490. conftest$ac_exeext conftest.$ac_ext
  16491. fi
  16492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16493. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16494. if test $ac_cv_working_alloca_h = yes; then
  16495. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16496. fi
  16497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16498. printf %s "checking for alloca... " >&6; }
  16499. if test ${ac_cv_func_alloca_works+y}
  16500. then :
  16501. printf %s "(cached) " >&6
  16502. else $as_nop
  16503. if test $ac_cv_working_alloca_h = yes; then
  16504. ac_cv_func_alloca_works=yes
  16505. else
  16506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16507. /* end confdefs.h. */
  16508. #include <stdlib.h>
  16509. #include <stddef.h>
  16510. #ifndef alloca
  16511. # ifdef __GNUC__
  16512. # define alloca __builtin_alloca
  16513. # elif defined _MSC_VER
  16514. # include <malloc.h>
  16515. # define alloca _alloca
  16516. # else
  16517. # ifdef __cplusplus
  16518. extern "C"
  16519. # endif
  16520. void *alloca (size_t);
  16521. # endif
  16522. #endif
  16523. int
  16524. main (void)
  16525. {
  16526. char *p = (char *) alloca (1);
  16527. if (p) return 0;
  16528. ;
  16529. return 0;
  16530. }
  16531. _ACEOF
  16532. if ac_fn_c_try_link "$LINENO"
  16533. then :
  16534. ac_cv_func_alloca_works=yes
  16535. else $as_nop
  16536. ac_cv_func_alloca_works=no
  16537. fi
  16538. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16539. conftest$ac_exeext conftest.$ac_ext
  16540. fi
  16541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16542. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16543. fi
  16544. if test $ac_cv_func_alloca_works = yes; then
  16545. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16546. else
  16547. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16548. # that cause trouble. Some versions do not even contain alloca or
  16549. # contain a buggy version. If you still want to use their alloca,
  16550. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16551. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16552. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16554. printf %s "checking stack direction for C alloca... " >&6; }
  16555. if test ${ac_cv_c_stack_direction+y}
  16556. then :
  16557. printf %s "(cached) " >&6
  16558. else $as_nop
  16559. if test "$cross_compiling" = yes
  16560. then :
  16561. ac_cv_c_stack_direction=0
  16562. else $as_nop
  16563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16564. /* end confdefs.h. */
  16565. $ac_includes_default
  16566. int
  16567. find_stack_direction (int *addr, int depth)
  16568. {
  16569. int dir, dummy = 0;
  16570. if (! addr)
  16571. addr = &dummy;
  16572. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16573. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16574. return dir + dummy;
  16575. }
  16576. int
  16577. main (int argc, char **argv)
  16578. {
  16579. return find_stack_direction (0, argc + !argv + 20) < 0;
  16580. }
  16581. _ACEOF
  16582. if ac_fn_c_try_run "$LINENO"
  16583. then :
  16584. ac_cv_c_stack_direction=1
  16585. else $as_nop
  16586. ac_cv_c_stack_direction=-1
  16587. fi
  16588. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16589. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16590. fi
  16591. fi
  16592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16593. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16594. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16595. fi
  16596. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16597. if test "x$ac_cv_func_mprotect" = xyes
  16598. then :
  16599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16600. /* end confdefs.h. */
  16601. #include <sys/types.h>
  16602. #include <sys/mman.h>
  16603. int
  16604. main (void)
  16605. {
  16606. ;
  16607. return 0;
  16608. }
  16609. _ACEOF
  16610. if ac_fn_c_try_compile "$LINENO"
  16611. then :
  16612. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16613. fi
  16614. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16615. fi
  16616. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16617. if test "x$ac_cv_func_malloc" = xyes
  16618. then :
  16619. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16620. fi
  16621. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16622. if test "x$ac_cv_func_calloc" = xyes
  16623. then :
  16624. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16625. fi
  16626. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16627. if test "x$ac_cv_func_realloc" = xyes
  16628. then :
  16629. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16630. fi
  16631. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16632. if test "x$ac_cv_func_free" = xyes
  16633. then :
  16634. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16635. fi
  16636. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16637. if test "x$ac_cv_func_getenv" = xyes
  16638. then :
  16639. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16640. fi
  16641. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16642. if test "x$ac_cv_func_setenv" = xyes
  16643. then :
  16644. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16645. fi
  16646. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16647. if test "x$ac_cv_func_putenv" = xyes
  16648. then :
  16649. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16650. fi
  16651. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16652. if test "x$ac_cv_func_unsetenv" = xyes
  16653. then :
  16654. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16655. fi
  16656. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16657. if test "x$ac_cv_func_bsearch" = xyes
  16658. then :
  16659. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16660. fi
  16661. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16662. if test "x$ac_cv_func_qsort" = xyes
  16663. then :
  16664. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16665. fi
  16666. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16667. if test "x$ac_cv_func_abs" = xyes
  16668. then :
  16669. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16670. fi
  16671. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16672. if test "x$ac_cv_func_bcopy" = xyes
  16673. then :
  16674. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16675. fi
  16676. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16677. if test "x$ac_cv_func_memset" = xyes
  16678. then :
  16679. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16680. fi
  16681. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16682. if test "x$ac_cv_func_memcmp" = xyes
  16683. then :
  16684. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16685. fi
  16686. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16687. if test "x$ac_cv_func_memcpy" = xyes
  16688. then :
  16689. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16690. fi
  16691. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16692. if test "x$ac_cv_func_memmove" = xyes
  16693. then :
  16694. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16695. fi
  16696. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16697. if test "x$ac_cv_func_wcslen" = xyes
  16698. then :
  16699. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16700. fi
  16701. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16702. if test "x$ac_cv_func_wcslcpy" = xyes
  16703. then :
  16704. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16705. fi
  16706. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16707. if test "x$ac_cv_func_wcslcat" = xyes
  16708. then :
  16709. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16710. fi
  16711. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16712. if test "x$ac_cv_func__wcsdup" = xyes
  16713. then :
  16714. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16715. fi
  16716. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16717. if test "x$ac_cv_func_wcsdup" = xyes
  16718. then :
  16719. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16720. fi
  16721. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16722. if test "x$ac_cv_func_wcsstr" = xyes
  16723. then :
  16724. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16725. fi
  16726. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16727. if test "x$ac_cv_func_wcscmp" = xyes
  16728. then :
  16729. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16730. fi
  16731. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16732. if test "x$ac_cv_func_wcsncmp" = xyes
  16733. then :
  16734. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16735. fi
  16736. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16737. if test "x$ac_cv_func_wcscasecmp" = xyes
  16738. then :
  16739. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16740. fi
  16741. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16742. if test "x$ac_cv_func__wcsicmp" = xyes
  16743. then :
  16744. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16745. fi
  16746. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16747. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16748. then :
  16749. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16750. fi
  16751. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16752. if test "x$ac_cv_func__wcsnicmp" = xyes
  16753. then :
  16754. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16755. fi
  16756. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16757. if test "x$ac_cv_func_strlen" = xyes
  16758. then :
  16759. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16760. fi
  16761. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16762. if test "x$ac_cv_func_strlcpy" = xyes
  16763. then :
  16764. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16765. fi
  16766. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16767. if test "x$ac_cv_func_strlcat" = xyes
  16768. then :
  16769. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16770. fi
  16771. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16772. if test "x$ac_cv_func__strrev" = xyes
  16773. then :
  16774. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16775. fi
  16776. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16777. if test "x$ac_cv_func__strupr" = xyes
  16778. then :
  16779. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16780. fi
  16781. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16782. if test "x$ac_cv_func__strlwr" = xyes
  16783. then :
  16784. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16785. fi
  16786. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16787. if test "x$ac_cv_func_index" = xyes
  16788. then :
  16789. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16790. fi
  16791. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16792. if test "x$ac_cv_func_rindex" = xyes
  16793. then :
  16794. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16795. fi
  16796. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16797. if test "x$ac_cv_func_strchr" = xyes
  16798. then :
  16799. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16800. fi
  16801. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16802. if test "x$ac_cv_func_strrchr" = xyes
  16803. then :
  16804. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16805. fi
  16806. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16807. if test "x$ac_cv_func_strstr" = xyes
  16808. then :
  16809. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16810. fi
  16811. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16812. if test "x$ac_cv_func_strtok_r" = xyes
  16813. then :
  16814. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16815. fi
  16816. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16817. if test "x$ac_cv_func_itoa" = xyes
  16818. then :
  16819. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16820. fi
  16821. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16822. if test "x$ac_cv_func__ltoa" = xyes
  16823. then :
  16824. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16825. fi
  16826. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16827. if test "x$ac_cv_func__uitoa" = xyes
  16828. then :
  16829. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16830. fi
  16831. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16832. if test "x$ac_cv_func__ultoa" = xyes
  16833. then :
  16834. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16835. fi
  16836. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16837. if test "x$ac_cv_func_strtod" = xyes
  16838. then :
  16839. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16840. fi
  16841. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16842. if test "x$ac_cv_func_strtol" = xyes
  16843. then :
  16844. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16845. fi
  16846. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16847. if test "x$ac_cv_func_strtoul" = xyes
  16848. then :
  16849. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16850. fi
  16851. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16852. if test "x$ac_cv_func__i64toa" = xyes
  16853. then :
  16854. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16855. fi
  16856. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16857. if test "x$ac_cv_func__ui64toa" = xyes
  16858. then :
  16859. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16860. fi
  16861. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16862. if test "x$ac_cv_func_strtoll" = xyes
  16863. then :
  16864. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16865. fi
  16866. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16867. if test "x$ac_cv_func_strtoull" = xyes
  16868. then :
  16869. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16870. fi
  16871. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16872. if test "x$ac_cv_func_atoi" = xyes
  16873. then :
  16874. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16875. fi
  16876. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16877. if test "x$ac_cv_func_atof" = xyes
  16878. then :
  16879. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16880. fi
  16881. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16882. if test "x$ac_cv_func_strcmp" = xyes
  16883. then :
  16884. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16885. fi
  16886. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16887. if test "x$ac_cv_func_strncmp" = xyes
  16888. then :
  16889. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16890. fi
  16891. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16892. if test "x$ac_cv_func__stricmp" = xyes
  16893. then :
  16894. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16895. fi
  16896. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16897. if test "x$ac_cv_func_strcasecmp" = xyes
  16898. then :
  16899. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16900. fi
  16901. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16902. if test "x$ac_cv_func__strnicmp" = xyes
  16903. then :
  16904. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16905. fi
  16906. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  16907. if test "x$ac_cv_func_strncasecmp" = xyes
  16908. then :
  16909. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  16910. fi
  16911. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  16912. if test "x$ac_cv_func_strcasestr" = xyes
  16913. then :
  16914. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  16915. fi
  16916. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  16917. if test "x$ac_cv_func_vsscanf" = xyes
  16918. then :
  16919. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  16920. fi
  16921. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  16922. if test "x$ac_cv_func_vsnprintf" = xyes
  16923. then :
  16924. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  16925. fi
  16926. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  16927. if test "x$ac_cv_func_fopen64" = xyes
  16928. then :
  16929. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  16930. fi
  16931. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  16932. if test "x$ac_cv_func_fseeko" = xyes
  16933. then :
  16934. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  16935. fi
  16936. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  16937. if test "x$ac_cv_func_fseeko64" = xyes
  16938. then :
  16939. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  16940. fi
  16941. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  16942. if test "x$ac_cv_func_sigaction" = xyes
  16943. then :
  16944. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  16945. fi
  16946. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  16947. if test "x$ac_cv_func_setjmp" = xyes
  16948. then :
  16949. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  16950. fi
  16951. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  16952. if test "x$ac_cv_func_nanosleep" = xyes
  16953. then :
  16954. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  16955. fi
  16956. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  16957. if test "x$ac_cv_func_sysconf" = xyes
  16958. then :
  16959. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  16960. fi
  16961. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  16962. if test "x$ac_cv_func_sysctlbyname" = xyes
  16963. then :
  16964. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  16965. fi
  16966. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  16967. if test "x$ac_cv_func_getauxval" = xyes
  16968. then :
  16969. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  16970. fi
  16971. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  16972. if test "x$ac_cv_func_elf_aux_info" = xyes
  16973. then :
  16974. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  16975. fi
  16976. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  16977. if test "x$ac_cv_func_poll" = xyes
  16978. then :
  16979. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  16980. fi
  16981. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  16982. if test "x$ac_cv_func__Exit" = xyes
  16983. then :
  16984. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  16985. fi
  16986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  16987. printf %s "checking for pow in -lm... " >&6; }
  16988. if test ${ac_cv_lib_m_pow+y}
  16989. then :
  16990. printf %s "(cached) " >&6
  16991. else $as_nop
  16992. ac_check_lib_save_LIBS=$LIBS
  16993. LIBS="-lm $LIBS"
  16994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16995. /* end confdefs.h. */
  16996. /* Override any GCC internal prototype to avoid an error.
  16997. Use char because int might match the return type of a GCC
  16998. builtin and then its argument prototype would still apply. */
  16999. char pow ();
  17000. int
  17001. main (void)
  17002. {
  17003. return pow ();
  17004. ;
  17005. return 0;
  17006. }
  17007. _ACEOF
  17008. if ac_fn_c_try_link "$LINENO"
  17009. then :
  17010. ac_cv_lib_m_pow=yes
  17011. else $as_nop
  17012. ac_cv_lib_m_pow=no
  17013. fi
  17014. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17015. conftest$ac_exeext conftest.$ac_ext
  17016. LIBS=$ac_check_lib_save_LIBS
  17017. fi
  17018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17019. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17020. if test "x$ac_cv_lib_m_pow" = xyes
  17021. then :
  17022. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17023. fi
  17024. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17025. if test "x$ac_cv_func_acos" = xyes
  17026. then :
  17027. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17028. fi
  17029. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17030. if test "x$ac_cv_func_acosf" = xyes
  17031. then :
  17032. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17033. fi
  17034. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17035. if test "x$ac_cv_func_asin" = xyes
  17036. then :
  17037. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17038. fi
  17039. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17040. if test "x$ac_cv_func_asinf" = xyes
  17041. then :
  17042. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17043. fi
  17044. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17045. if test "x$ac_cv_func_atan" = xyes
  17046. then :
  17047. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17048. fi
  17049. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17050. if test "x$ac_cv_func_atanf" = xyes
  17051. then :
  17052. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17053. fi
  17054. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17055. if test "x$ac_cv_func_atan2" = xyes
  17056. then :
  17057. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17058. fi
  17059. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17060. if test "x$ac_cv_func_atan2f" = xyes
  17061. then :
  17062. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17063. fi
  17064. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17065. if test "x$ac_cv_func_ceil" = xyes
  17066. then :
  17067. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17068. fi
  17069. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17070. if test "x$ac_cv_func_ceilf" = xyes
  17071. then :
  17072. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17073. fi
  17074. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17075. if test "x$ac_cv_func_copysign" = xyes
  17076. then :
  17077. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17078. fi
  17079. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17080. if test "x$ac_cv_func_copysignf" = xyes
  17081. then :
  17082. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17083. fi
  17084. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17085. if test "x$ac_cv_func_cos" = xyes
  17086. then :
  17087. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17088. fi
  17089. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17090. if test "x$ac_cv_func_cosf" = xyes
  17091. then :
  17092. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17093. fi
  17094. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17095. if test "x$ac_cv_func_exp" = xyes
  17096. then :
  17097. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17098. fi
  17099. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17100. if test "x$ac_cv_func_expf" = xyes
  17101. then :
  17102. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17103. fi
  17104. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17105. if test "x$ac_cv_func_fabs" = xyes
  17106. then :
  17107. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17108. fi
  17109. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17110. if test "x$ac_cv_func_fabsf" = xyes
  17111. then :
  17112. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17113. fi
  17114. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17115. if test "x$ac_cv_func_floor" = xyes
  17116. then :
  17117. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17118. fi
  17119. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17120. if test "x$ac_cv_func_floorf" = xyes
  17121. then :
  17122. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17123. fi
  17124. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17125. if test "x$ac_cv_func_trunc" = xyes
  17126. then :
  17127. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17128. fi
  17129. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17130. if test "x$ac_cv_func_truncf" = xyes
  17131. then :
  17132. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17133. fi
  17134. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17135. if test "x$ac_cv_func_fmod" = xyes
  17136. then :
  17137. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17138. fi
  17139. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17140. if test "x$ac_cv_func_fmodf" = xyes
  17141. then :
  17142. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17143. fi
  17144. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17145. if test "x$ac_cv_func_log" = xyes
  17146. then :
  17147. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17148. fi
  17149. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17150. if test "x$ac_cv_func_logf" = xyes
  17151. then :
  17152. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17153. fi
  17154. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17155. if test "x$ac_cv_func_log10" = xyes
  17156. then :
  17157. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17158. fi
  17159. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17160. if test "x$ac_cv_func_log10f" = xyes
  17161. then :
  17162. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17163. fi
  17164. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17165. if test "x$ac_cv_func_lround" = xyes
  17166. then :
  17167. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17168. fi
  17169. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17170. if test "x$ac_cv_func_lroundf" = xyes
  17171. then :
  17172. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17173. fi
  17174. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17175. if test "x$ac_cv_func_pow" = xyes
  17176. then :
  17177. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17178. fi
  17179. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17180. if test "x$ac_cv_func_powf" = xyes
  17181. then :
  17182. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17183. fi
  17184. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17185. if test "x$ac_cv_func_round" = xyes
  17186. then :
  17187. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17188. fi
  17189. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17190. if test "x$ac_cv_func_roundf" = xyes
  17191. then :
  17192. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17193. fi
  17194. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17195. if test "x$ac_cv_func_scalbn" = xyes
  17196. then :
  17197. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17198. fi
  17199. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17200. if test "x$ac_cv_func_scalbnf" = xyes
  17201. then :
  17202. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17203. fi
  17204. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17205. if test "x$ac_cv_func_sin" = xyes
  17206. then :
  17207. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17208. fi
  17209. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17210. if test "x$ac_cv_func_sinf" = xyes
  17211. then :
  17212. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17213. fi
  17214. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17215. if test "x$ac_cv_func_sqrt" = xyes
  17216. then :
  17217. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17218. fi
  17219. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17220. if test "x$ac_cv_func_sqrtf" = xyes
  17221. then :
  17222. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17223. fi
  17224. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17225. if test "x$ac_cv_func_tan" = xyes
  17226. then :
  17227. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17228. fi
  17229. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17230. if test "x$ac_cv_func_tanf" = xyes
  17231. then :
  17232. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17233. fi
  17234. if test x$enable_system_iconv = xyes; then
  17235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17236. printf %s "checking for iconv_open in -liconv... " >&6; }
  17237. if test ${ac_cv_lib_iconv_iconv_open+y}
  17238. then :
  17239. printf %s "(cached) " >&6
  17240. else $as_nop
  17241. ac_check_lib_save_LIBS=$LIBS
  17242. LIBS="-liconv $LIBS"
  17243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17244. /* end confdefs.h. */
  17245. /* Override any GCC internal prototype to avoid an error.
  17246. Use char because int might match the return type of a GCC
  17247. builtin and then its argument prototype would still apply. */
  17248. char iconv_open ();
  17249. int
  17250. main (void)
  17251. {
  17252. return iconv_open ();
  17253. ;
  17254. return 0;
  17255. }
  17256. _ACEOF
  17257. if ac_fn_c_try_link "$LINENO"
  17258. then :
  17259. ac_cv_lib_iconv_iconv_open=yes
  17260. else $as_nop
  17261. ac_cv_lib_iconv_iconv_open=no
  17262. fi
  17263. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17264. conftest$ac_exeext conftest.$ac_ext
  17265. LIBS=$ac_check_lib_save_LIBS
  17266. fi
  17267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17268. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17269. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17270. then :
  17271. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17272. fi
  17273. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17274. if test "x$ac_cv_func_iconv" = xyes
  17275. then :
  17276. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17277. fi
  17278. fi
  17279. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17280. "
  17281. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17282. then :
  17283. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17284. fi
  17285. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17286. if test "x$ac_cv_header_libunwind_h" = xyes
  17287. then :
  17288. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17289. fi
  17290. fi
  17291. # Check whether --enable-gcc-atomics was given.
  17292. if test ${enable_gcc_atomics+y}
  17293. then :
  17294. enableval=$enable_gcc_atomics;
  17295. else $as_nop
  17296. enable_gcc_atomics=yes
  17297. fi
  17298. if test x$enable_gcc_atomics = xyes; then
  17299. have_gcc_atomics=no
  17300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17301. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17303. /* end confdefs.h. */
  17304. int
  17305. main (void)
  17306. {
  17307. int a;
  17308. void *x, *y, *z;
  17309. __sync_lock_test_and_set(&a, 4);
  17310. __sync_lock_test_and_set(&x, y);
  17311. __sync_fetch_and_add(&a, 1);
  17312. __sync_bool_compare_and_swap(&a, 5, 10);
  17313. __sync_bool_compare_and_swap(&x, y, z);
  17314. ;
  17315. return 0;
  17316. }
  17317. _ACEOF
  17318. if ac_fn_c_try_link "$LINENO"
  17319. then :
  17320. have_gcc_atomics=yes
  17321. fi
  17322. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17323. conftest$ac_exeext conftest.$ac_ext
  17324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17325. printf "%s\n" "$have_gcc_atomics" >&6; }
  17326. if test x$have_gcc_atomics = xyes; then
  17327. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17328. else
  17329. # See if we have the minimum operation needed for GCC atomics
  17330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17331. /* end confdefs.h. */
  17332. int
  17333. main (void)
  17334. {
  17335. int a;
  17336. __sync_lock_test_and_set(&a, 1);
  17337. __sync_lock_release(&a);
  17338. ;
  17339. return 0;
  17340. }
  17341. _ACEOF
  17342. if ac_fn_c_try_link "$LINENO"
  17343. then :
  17344. have_gcc_sync_lock_test_and_set=yes
  17345. fi
  17346. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17347. conftest$ac_exeext conftest.$ac_ext
  17348. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17349. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17350. fi
  17351. fi
  17352. fi
  17353. # Standard C sources
  17354. SOURCES="$SOURCES $srcdir/src/*.c"
  17355. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17356. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17357. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17358. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17359. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17360. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17361. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17362. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17363. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17364. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17365. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17366. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17367. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17368. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17369. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17370. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17371. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17372. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17373. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17374. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17375. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17376. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17377. case "$host" in
  17378. *-*-emscripten*)
  17379. default_atomic=no
  17380. ;;
  17381. *)
  17382. default_atomic=yes
  17383. ;;
  17384. esac
  17385. # Check whether --enable-atomic was given.
  17386. if test ${enable_atomic+y}
  17387. then :
  17388. enableval=$enable_atomic;
  17389. else $as_nop
  17390. enable_atomic=$default_atomic
  17391. fi
  17392. if test x$enable_atomic != xyes; then
  17393. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17394. else
  17395. SUMMARY_modules="${SUMMARY_modules} atomic"
  17396. fi
  17397. # Check whether --enable-audio was given.
  17398. if test ${enable_audio+y}
  17399. then :
  17400. enableval=$enable_audio;
  17401. else $as_nop
  17402. enable_audio=yes
  17403. fi
  17404. if test x$enable_audio != xyes; then
  17405. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17406. else
  17407. SUMMARY_modules="${SUMMARY_modules} audio"
  17408. fi
  17409. # Check whether --enable-video was given.
  17410. if test ${enable_video+y}
  17411. then :
  17412. enableval=$enable_video;
  17413. else $as_nop
  17414. enable_video=yes
  17415. fi
  17416. if test x$enable_video != xyes; then
  17417. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17418. else
  17419. SUMMARY_modules="${SUMMARY_modules} video"
  17420. fi
  17421. # Check whether --enable-render was given.
  17422. if test ${enable_render+y}
  17423. then :
  17424. enableval=$enable_render;
  17425. else $as_nop
  17426. enable_render=yes
  17427. fi
  17428. if test x$enable_render != xyes; then
  17429. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17430. else
  17431. SUMMARY_modules="${SUMMARY_modules} render"
  17432. fi
  17433. # Check whether --enable-events was given.
  17434. if test ${enable_events+y}
  17435. then :
  17436. enableval=$enable_events;
  17437. else $as_nop
  17438. enable_events=yes
  17439. fi
  17440. if test x$enable_events != xyes; then
  17441. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17442. else
  17443. SUMMARY_modules="${SUMMARY_modules} events"
  17444. fi
  17445. # Check whether --enable-joystick was given.
  17446. if test ${enable_joystick+y}
  17447. then :
  17448. enableval=$enable_joystick;
  17449. else $as_nop
  17450. enable_joystick=yes
  17451. fi
  17452. if test x$enable_joystick != xyes; then
  17453. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17454. else
  17455. SUMMARY_modules="${SUMMARY_modules} joystick"
  17456. fi
  17457. # Check whether --enable-haptic was given.
  17458. if test ${enable_haptic+y}
  17459. then :
  17460. enableval=$enable_haptic;
  17461. else $as_nop
  17462. enable_haptic=yes
  17463. fi
  17464. if test x$enable_haptic != xyes; then
  17465. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17466. else
  17467. SUMMARY_modules="${SUMMARY_modules} haptic"
  17468. fi
  17469. # Check whether --enable-hidapi was given.
  17470. if test ${enable_hidapi+y}
  17471. then :
  17472. enableval=$enable_hidapi;
  17473. else $as_nop
  17474. enable_hidapi=yes
  17475. fi
  17476. if test x$enable_hidapi != xyes; then
  17477. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17478. else
  17479. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17480. fi
  17481. # Check whether --enable-sensor was given.
  17482. if test ${enable_sensor+y}
  17483. then :
  17484. enableval=$enable_sensor;
  17485. else $as_nop
  17486. enable_sensor=yes
  17487. fi
  17488. if test x$enable_sensor != xyes; then
  17489. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17490. else
  17491. SUMMARY_modules="${SUMMARY_modules} sensor"
  17492. fi
  17493. # Check whether --enable-power was given.
  17494. if test ${enable_power+y}
  17495. then :
  17496. enableval=$enable_power;
  17497. else $as_nop
  17498. enable_power=yes
  17499. fi
  17500. if test x$enable_power != xyes; then
  17501. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17502. else
  17503. SUMMARY_modules="${SUMMARY_modules} power"
  17504. fi
  17505. # Check whether --enable-filesystem was given.
  17506. if test ${enable_filesystem+y}
  17507. then :
  17508. enableval=$enable_filesystem;
  17509. else $as_nop
  17510. enable_filesystem=yes
  17511. fi
  17512. if test x$enable_filesystem != xyes; then
  17513. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17514. else
  17515. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17516. fi
  17517. # Many subsystems depend on threads, so leave them enabled by default
  17518. #AC_ARG_ENABLE(threads,
  17519. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17520. # , enable_threads=yes)
  17521. enable_threads=yes
  17522. if test x$enable_threads != xyes; then
  17523. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17524. else
  17525. SUMMARY_modules="${SUMMARY_modules} threads"
  17526. fi
  17527. # Check whether --enable-timers was given.
  17528. if test ${enable_timers+y}
  17529. then :
  17530. enableval=$enable_timers;
  17531. else $as_nop
  17532. enable_timers=yes
  17533. fi
  17534. if test x$enable_timers != xyes; then
  17535. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17536. else
  17537. SUMMARY_modules="${SUMMARY_modules} timers"
  17538. fi
  17539. # Check whether --enable-file was given.
  17540. if test ${enable_file+y}
  17541. then :
  17542. enableval=$enable_file;
  17543. else $as_nop
  17544. enable_file=yes
  17545. fi
  17546. if test x$enable_file != xyes; then
  17547. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17548. else
  17549. SUMMARY_modules="${SUMMARY_modules} file"
  17550. fi
  17551. # Check whether --enable-misc was given.
  17552. if test ${enable_misc+y}
  17553. then :
  17554. enableval=$enable_misc;
  17555. else $as_nop
  17556. enable_misc=yes
  17557. fi
  17558. if test x$enable_misc != xyes; then
  17559. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17560. else
  17561. SUMMARY_modules="${SUMMARY_modules} misc"
  17562. fi
  17563. # Check whether --enable-locale was given.
  17564. if test ${enable_locale+y}
  17565. then :
  17566. enableval=$enable_locale;
  17567. else $as_nop
  17568. enable_locale=yes
  17569. fi
  17570. if test x$enable_locale != xyes; then
  17571. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17572. else
  17573. SUMMARY_modules="${SUMMARY_modules} locale"
  17574. fi
  17575. # Check whether --enable-loadso was given.
  17576. if test ${enable_loadso+y}
  17577. then :
  17578. enableval=$enable_loadso;
  17579. else $as_nop
  17580. enable_loadso=yes
  17581. fi
  17582. if test x$enable_loadso != xyes; then
  17583. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17584. else
  17585. SUMMARY_modules="${SUMMARY_modules} loadso"
  17586. fi
  17587. # Check whether --enable-cpuinfo was given.
  17588. if test ${enable_cpuinfo+y}
  17589. then :
  17590. enableval=$enable_cpuinfo;
  17591. else $as_nop
  17592. enable_cpuinfo=yes
  17593. fi
  17594. if test x$enable_cpuinfo != xyes; then
  17595. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17596. else
  17597. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17598. fi
  17599. # Check whether --enable-assembly was given.
  17600. if test ${enable_assembly+y}
  17601. then :
  17602. enableval=$enable_assembly;
  17603. else $as_nop
  17604. enable_assembly=yes
  17605. fi
  17606. if test x$enable_assembly = xyes; then
  17607. SUMMARY_modules="${SUMMARY_modules} assembly"
  17608. # Make sure that we don't generate floating point code that would
  17609. # cause illegal instruction exceptions on older processors
  17610. case "$host" in
  17611. *-*-darwin*)
  17612. # Don't need to worry about Apple hardware, it's all SSE capable
  17613. default_ssemath=yes
  17614. ;;
  17615. *64-*-*)
  17616. # x86 64-bit architectures all have SSE instructions
  17617. default_ssemath=yes
  17618. ;;
  17619. *)
  17620. default_ssemath=no
  17621. ;;
  17622. esac
  17623. # Check whether --enable-ssemath was given.
  17624. if test ${enable_ssemath+y}
  17625. then :
  17626. enableval=$enable_ssemath;
  17627. else $as_nop
  17628. enable_ssemath=$default_ssemath
  17629. fi
  17630. if test x$enable_ssemath = xno; then
  17631. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17632. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17633. fi
  17634. fi
  17635. # Check whether --enable-mmx was given.
  17636. if test ${enable_mmx+y}
  17637. then :
  17638. enableval=$enable_mmx;
  17639. else $as_nop
  17640. enable_mmx=yes
  17641. fi
  17642. if test x$enable_mmx = xyes; then
  17643. save_CFLAGS="$CFLAGS"
  17644. have_gcc_mmx=no
  17645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17646. printf %s "checking for GCC -mmmx option... " >&6; }
  17647. mmx_CFLAGS="-mmmx"
  17648. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17650. /* end confdefs.h. */
  17651. #ifdef __MINGW32__
  17652. #include <_mingw.h>
  17653. #ifdef __MINGW64_VERSION_MAJOR
  17654. #include <intrin.h>
  17655. #else
  17656. #include <mmintrin.h>
  17657. #endif
  17658. #else
  17659. #include <mmintrin.h>
  17660. #endif
  17661. #ifndef __MMX__
  17662. #error Assembler CPP flag not enabled
  17663. #endif
  17664. int
  17665. main (void)
  17666. {
  17667. ;
  17668. return 0;
  17669. }
  17670. _ACEOF
  17671. if ac_fn_c_try_compile "$LINENO"
  17672. then :
  17673. have_gcc_mmx=yes
  17674. fi
  17675. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17677. printf "%s\n" "$have_gcc_mmx" >&6; }
  17678. CFLAGS="$save_CFLAGS"
  17679. if test x$have_gcc_mmx = xyes; then
  17680. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17681. SUMMARY_math="${SUMMARY_math} mmx"
  17682. fi
  17683. fi
  17684. # Check whether --enable-3dnow was given.
  17685. if test ${enable_3dnow+y}
  17686. then :
  17687. enableval=$enable_3dnow;
  17688. else $as_nop
  17689. enable_3dnow=yes
  17690. fi
  17691. if test x$enable_3dnow = xyes; then
  17692. save_CFLAGS="$CFLAGS"
  17693. have_gcc_3dnow=no
  17694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17695. printf %s "checking for GCC -m3dnow option... " >&6; }
  17696. amd3dnow_CFLAGS="-m3dnow"
  17697. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17699. /* end confdefs.h. */
  17700. #include <mm3dnow.h>
  17701. #ifndef __3dNOW__
  17702. #error Assembler CPP flag not enabled
  17703. #endif
  17704. int
  17705. main (void)
  17706. {
  17707. void *p = 0;
  17708. _m_prefetch(p);
  17709. ;
  17710. return 0;
  17711. }
  17712. _ACEOF
  17713. if ac_fn_c_try_link "$LINENO"
  17714. then :
  17715. have_gcc_3dnow=yes
  17716. fi
  17717. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17718. conftest$ac_exeext conftest.$ac_ext
  17719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17720. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17721. CFLAGS="$save_CFLAGS"
  17722. if test x$have_gcc_3dnow = xyes; then
  17723. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17724. SUMMARY_math="${SUMMARY_math} 3dnow"
  17725. fi
  17726. fi
  17727. # Check whether --enable-sse was given.
  17728. if test ${enable_sse+y}
  17729. then :
  17730. enableval=$enable_sse;
  17731. else $as_nop
  17732. enable_sse=yes
  17733. fi
  17734. if test x$enable_sse = xyes; then
  17735. save_CFLAGS="$CFLAGS"
  17736. have_gcc_sse=no
  17737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17738. printf %s "checking for GCC -msse option... " >&6; }
  17739. sse_CFLAGS="-msse"
  17740. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17742. /* end confdefs.h. */
  17743. #ifdef __MINGW32__
  17744. #include <_mingw.h>
  17745. #ifdef __MINGW64_VERSION_MAJOR
  17746. #include <intrin.h>
  17747. #else
  17748. #include <xmmintrin.h>
  17749. #endif
  17750. #else
  17751. #include <xmmintrin.h>
  17752. #endif
  17753. #ifndef __SSE__
  17754. #error Assembler CPP flag not enabled
  17755. #endif
  17756. int
  17757. main (void)
  17758. {
  17759. ;
  17760. return 0;
  17761. }
  17762. _ACEOF
  17763. if ac_fn_c_try_compile "$LINENO"
  17764. then :
  17765. have_gcc_sse=yes
  17766. fi
  17767. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17769. printf "%s\n" "$have_gcc_sse" >&6; }
  17770. CFLAGS="$save_CFLAGS"
  17771. if test x$have_gcc_sse = xyes; then
  17772. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17773. SUMMARY_math="${SUMMARY_math} sse"
  17774. fi
  17775. fi
  17776. # Check whether --enable-sse2 was given.
  17777. if test ${enable_sse2+y}
  17778. then :
  17779. enableval=$enable_sse2;
  17780. else $as_nop
  17781. enable_sse2=$default_ssemath
  17782. fi
  17783. if test x$enable_sse2 = xyes; then
  17784. save_CFLAGS="$CFLAGS"
  17785. have_gcc_sse2=no
  17786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17787. printf %s "checking for GCC -msse2 option... " >&6; }
  17788. sse2_CFLAGS="-msse2"
  17789. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17791. /* end confdefs.h. */
  17792. #ifdef __MINGW32__
  17793. #include <_mingw.h>
  17794. #ifdef __MINGW64_VERSION_MAJOR
  17795. #include <intrin.h>
  17796. #else
  17797. #include <emmintrin.h>
  17798. #endif
  17799. #else
  17800. #include <emmintrin.h>
  17801. #endif
  17802. #ifndef __SSE2__
  17803. #error Assembler CPP flag not enabled
  17804. #endif
  17805. int
  17806. main (void)
  17807. {
  17808. ;
  17809. return 0;
  17810. }
  17811. _ACEOF
  17812. if ac_fn_c_try_compile "$LINENO"
  17813. then :
  17814. have_gcc_sse2=yes
  17815. fi
  17816. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17818. printf "%s\n" "$have_gcc_sse2" >&6; }
  17819. CFLAGS="$save_CFLAGS"
  17820. if test x$have_gcc_sse2 = xyes; then
  17821. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17822. SUMMARY_math="${SUMMARY_math} sse2"
  17823. fi
  17824. fi
  17825. # Check whether --enable-sse3 was given.
  17826. if test ${enable_sse3+y}
  17827. then :
  17828. enableval=$enable_sse3;
  17829. else $as_nop
  17830. enable_sse3=$default_ssemath
  17831. fi
  17832. if test x$enable_sse3 = xyes; then
  17833. save_CFLAGS="$CFLAGS"
  17834. have_gcc_sse3=no
  17835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17836. printf %s "checking for GCC -msse3 option... " >&6; }
  17837. sse3_CFLAGS="-msse3"
  17838. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17840. /* end confdefs.h. */
  17841. #ifdef __MINGW32__
  17842. #include <_mingw.h>
  17843. #ifdef __MINGW64_VERSION_MAJOR
  17844. #include <intrin.h>
  17845. #else
  17846. #include <pmmintrin.h>
  17847. #endif
  17848. #else
  17849. #include <pmmintrin.h>
  17850. #endif
  17851. #ifndef __SSE2__
  17852. #error Assembler CPP flag not enabled
  17853. #endif
  17854. int
  17855. main (void)
  17856. {
  17857. ;
  17858. return 0;
  17859. }
  17860. _ACEOF
  17861. if ac_fn_c_try_compile "$LINENO"
  17862. then :
  17863. have_gcc_sse3=yes
  17864. fi
  17865. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17867. printf "%s\n" "$have_gcc_sse3" >&6; }
  17868. CFLAGS="$save_CFLAGS"
  17869. if test x$have_gcc_sse3 = xyes; then
  17870. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17871. SUMMARY_math="${SUMMARY_math} sse3"
  17872. fi
  17873. fi
  17874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17875. printf %s "checking for immintrin.h... " >&6; }
  17876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17877. /* end confdefs.h. */
  17878. #include <immintrin.h>
  17879. int
  17880. main (void)
  17881. {
  17882. ;
  17883. return 0;
  17884. }
  17885. _ACEOF
  17886. if ac_fn_c_try_compile "$LINENO"
  17887. then :
  17888. have_immintrin_h_hdr=yes
  17889. else $as_nop
  17890. have_immintrin_h_hdr=no
  17891. fi
  17892. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17894. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17895. if test x$have_immintrin_h_hdr = xyes; then
  17896. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17897. fi
  17898. # Check whether --enable-altivec was given.
  17899. if test ${enable_altivec+y}
  17900. then :
  17901. enableval=$enable_altivec;
  17902. else $as_nop
  17903. enable_altivec=yes
  17904. fi
  17905. if test x$enable_altivec = xyes; then
  17906. save_CFLAGS="$CFLAGS"
  17907. have_gcc_altivec=no
  17908. have_altivec_h_hdr=no
  17909. altivec_CFLAGS="-maltivec"
  17910. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17912. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17914. /* end confdefs.h. */
  17915. #include <altivec.h>
  17916. vector unsigned int vzero() {
  17917. return vec_splat_u32(0);
  17918. }
  17919. int
  17920. main (void)
  17921. {
  17922. ;
  17923. return 0;
  17924. }
  17925. _ACEOF
  17926. if ac_fn_c_try_compile "$LINENO"
  17927. then :
  17928. have_gcc_altivec=yes
  17929. have_altivec_h_hdr=yes
  17930. fi
  17931. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17933. printf "%s\n" "$have_gcc_altivec" >&6; }
  17934. if test x$have_gcc_altivec = xno; then
  17935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  17936. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  17937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17938. /* end confdefs.h. */
  17939. vector unsigned int vzero() {
  17940. return vec_splat_u32(0);
  17941. }
  17942. int
  17943. main (void)
  17944. {
  17945. ;
  17946. return 0;
  17947. }
  17948. _ACEOF
  17949. if ac_fn_c_try_compile "$LINENO"
  17950. then :
  17951. have_gcc_altivec=yes
  17952. fi
  17953. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17955. printf "%s\n" "$have_gcc_altivec" >&6; }
  17956. fi
  17957. if test x$have_gcc_altivec = xno; then
  17958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  17959. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  17960. altivec_CFLAGS="-faltivec"
  17961. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17963. /* end confdefs.h. */
  17964. #include <altivec.h>
  17965. vector unsigned int vzero() {
  17966. return vec_splat_u32(0);
  17967. }
  17968. int
  17969. main (void)
  17970. {
  17971. ;
  17972. return 0;
  17973. }
  17974. _ACEOF
  17975. if ac_fn_c_try_compile "$LINENO"
  17976. then :
  17977. have_gcc_altivec=yes
  17978. have_altivec_h_hdr=yes
  17979. fi
  17980. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17982. printf "%s\n" "$have_gcc_altivec" >&6; }
  17983. fi
  17984. if test x$have_gcc_altivec = xno; then
  17985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  17986. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  17987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17988. /* end confdefs.h. */
  17989. vector unsigned int vzero() {
  17990. return vec_splat_u32(0);
  17991. }
  17992. int
  17993. main (void)
  17994. {
  17995. ;
  17996. return 0;
  17997. }
  17998. _ACEOF
  17999. if ac_fn_c_try_compile "$LINENO"
  18000. then :
  18001. have_gcc_altivec=yes
  18002. fi
  18003. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18005. printf "%s\n" "$have_gcc_altivec" >&6; }
  18006. fi
  18007. CFLAGS="$save_CFLAGS"
  18008. if test x$have_gcc_altivec = xyes; then
  18009. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18010. if test x$have_altivec_h_hdr = xyes; then
  18011. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18012. fi
  18013. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18014. SUMMARY_math="${SUMMARY_math} altivec"
  18015. fi
  18016. fi
  18017. fi
  18018. # Check whether --enable-lsx was given.
  18019. if test ${enable_lsx+y}
  18020. then :
  18021. enableval=$enable_lsx;
  18022. else $as_nop
  18023. enable_lsx=yes
  18024. fi
  18025. if test x$enable_lsx = xyes; then
  18026. save_CFLAGS="$CFLAGS"
  18027. have_gcc_lsx=no
  18028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18029. printf %s "checking for GCC -mlsx option... " >&6; }
  18030. lsx_CFLAGS="-mlsx"
  18031. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18033. /* end confdefs.h. */
  18034. #ifndef __loongarch_sx
  18035. #error Assembler CPP flag not enabled
  18036. #endif
  18037. int
  18038. main (void)
  18039. {
  18040. ;
  18041. return 0;
  18042. }
  18043. _ACEOF
  18044. if ac_fn_c_try_compile "$LINENO"
  18045. then :
  18046. have_gcc_lsx=yes
  18047. fi
  18048. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18050. printf "%s\n" "$have_gcc_lsx" >&6; }
  18051. CFLAGS="$save_CFLAGS"
  18052. if test x$have_gcc_lsx = xyes; then
  18053. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18054. SUMMARY_math="${SUMMARY_math} lsx"
  18055. fi
  18056. fi
  18057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18058. printf %s "checking for lsxintrin.h... " >&6; }
  18059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18060. /* end confdefs.h. */
  18061. #include <lsxintrin.h>
  18062. int
  18063. main (void)
  18064. {
  18065. ;
  18066. return 0;
  18067. }
  18068. _ACEOF
  18069. if ac_fn_c_try_compile "$LINENO"
  18070. then :
  18071. have_lsxintrin_h_hdr=yes
  18072. else $as_nop
  18073. have_lsxintrin_h_hdr=no
  18074. fi
  18075. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18077. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18078. if test x$have_lsxintrin_h_hdr = xyes; then
  18079. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18080. fi
  18081. # Check whether --enable-lasx was given.
  18082. if test ${enable_lasx+y}
  18083. then :
  18084. enableval=$enable_lasx;
  18085. else $as_nop
  18086. enable_LASX=yes
  18087. fi
  18088. if test x$enable_LASX = xyes; then
  18089. save_CFLAGS="$CFLAGS"
  18090. have_gcc_lasx=no
  18091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18092. printf %s "checking for GCC -mlasx option... " >&6; }
  18093. lasx_CFLAGS="-mlasx"
  18094. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18096. /* end confdefs.h. */
  18097. #ifndef __loongarch_asx
  18098. #error Assembler CPP flag not enabled
  18099. #endif
  18100. int
  18101. main (void)
  18102. {
  18103. ;
  18104. return 0;
  18105. }
  18106. _ACEOF
  18107. if ac_fn_c_try_compile "$LINENO"
  18108. then :
  18109. have_gcc_lasx=yes
  18110. fi
  18111. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18113. printf "%s\n" "$have_gcc_lasx" >&6; }
  18114. CFLAGS="$save_CFLAGS"
  18115. if test x$have_gcc_lasx = xyes; then
  18116. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18117. SUMMARY_math="${SUMMARY_math} lasx"
  18118. fi
  18119. fi
  18120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18121. printf %s "checking for lasxintrin.h... " >&6; }
  18122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18123. /* end confdefs.h. */
  18124. #include <lasxintrin.h>
  18125. int
  18126. main (void)
  18127. {
  18128. ;
  18129. return 0;
  18130. }
  18131. _ACEOF
  18132. if ac_fn_c_try_compile "$LINENO"
  18133. then :
  18134. have_lasxintrin_h_hdr=yes
  18135. else $as_nop
  18136. have_lasxintrin_h_hdr=no
  18137. fi
  18138. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18140. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18141. if test x$have_lasxintrin_h_hdr = xyes; then
  18142. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18143. fi
  18144. CheckOSS()
  18145. {
  18146. # Check whether --enable-oss was given.
  18147. if test ${enable_oss+y}
  18148. then :
  18149. enableval=$enable_oss;
  18150. else $as_nop
  18151. enable_oss=maybe
  18152. fi
  18153. if test x$enable_oss = xmaybe; then
  18154. enable_oss=yes
  18155. fi
  18156. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18158. printf %s "checking for OSS audio support... " >&6; }
  18159. have_oss=no
  18160. if test x$have_oss != xyes; then
  18161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18162. /* end confdefs.h. */
  18163. #include <sys/soundcard.h>
  18164. int
  18165. main (void)
  18166. {
  18167. int arg = SNDCTL_DSP_SETFRAGMENT;
  18168. ;
  18169. return 0;
  18170. }
  18171. _ACEOF
  18172. if ac_fn_c_try_compile "$LINENO"
  18173. then :
  18174. have_oss=yes
  18175. fi
  18176. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18177. fi
  18178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18179. printf "%s\n" "$have_oss" >&6; }
  18180. if test x$have_oss = xyes; then
  18181. SUMMARY_audio="${SUMMARY_audio} oss"
  18182. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18183. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18184. have_audio=yes
  18185. # We may need to link with ossaudio emulation library
  18186. case "$host" in
  18187. *-*-netbsd*)
  18188. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18189. esac
  18190. fi
  18191. fi
  18192. }
  18193. CheckALSA()
  18194. {
  18195. # Check whether --enable-alsa was given.
  18196. if test ${enable_alsa+y}
  18197. then :
  18198. enableval=$enable_alsa;
  18199. else $as_nop
  18200. enable_alsa=yes
  18201. fi
  18202. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18203. alsa_save_CFLAGS="$CFLAGS"
  18204. alsa_save_LDFLAGS="$LDFLAGS"
  18205. alsa_save_LIBS="$LIBS"
  18206. alsa_found=yes
  18207. # Check whether --with-alsa-prefix was given.
  18208. if test ${with_alsa_prefix+y}
  18209. then :
  18210. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18211. else $as_nop
  18212. alsa_prefix=""
  18213. fi
  18214. # Check whether --with-alsa-inc-prefix was given.
  18215. if test ${with_alsa_inc_prefix+y}
  18216. then :
  18217. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18218. else $as_nop
  18219. alsa_inc_prefix=""
  18220. fi
  18221. # Check whether --enable-alsatest was given.
  18222. if test ${enable_alsatest+y}
  18223. then :
  18224. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18225. else $as_nop
  18226. enable_alsatest=yes
  18227. fi
  18228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18229. printf %s "checking for ALSA CFLAGS... " >&6; }
  18230. if test "$alsa_inc_prefix" != "" ; then
  18231. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18232. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18233. fi
  18234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18235. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18237. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18238. if test "$alsa_prefix" != "" ; then
  18239. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18240. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18241. fi
  18242. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18243. LIBS=`echo $LIBS | sed 's/-lm//'`
  18244. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18245. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18246. LIBS=`echo $LIBS | sed 's/ //'`
  18247. LIBS="$ALSA_LIBS $LIBS"
  18248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18249. printf "%s\n" "$ALSA_LIBS" >&6; }
  18250. min_alsa_version=1.0.11
  18251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18252. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18253. no_alsa=""
  18254. alsa_min_major_version=`echo $min_alsa_version | \
  18255. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18256. alsa_min_minor_version=`echo $min_alsa_version | \
  18257. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18258. alsa_min_micro_version=`echo $min_alsa_version | \
  18259. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18260. ac_ext=c
  18261. ac_cpp='$CPP $CPPFLAGS'
  18262. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18263. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18264. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18266. /* end confdefs.h. */
  18267. #include <alsa/asoundlib.h>
  18268. int
  18269. main (void)
  18270. {
  18271. /* ensure backward compatibility */
  18272. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18273. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18274. #endif
  18275. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18276. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18277. #endif
  18278. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18279. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18280. #endif
  18281. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18282. exit(0);
  18283. # else
  18284. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18285. # error not present
  18286. # endif
  18287. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18288. exit(0);
  18289. # else
  18290. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18291. # error not present
  18292. # endif
  18293. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18294. # error not present
  18295. # endif
  18296. # endif
  18297. # endif
  18298. exit(0);
  18299. ;
  18300. return 0;
  18301. }
  18302. _ACEOF
  18303. if ac_fn_c_try_compile "$LINENO"
  18304. then :
  18305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18306. printf "%s\n" "found." >&6; }
  18307. else $as_nop
  18308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18309. printf "%s\n" "not present." >&6; }
  18310. alsa_found=no
  18311. fi
  18312. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18313. ac_ext=c
  18314. ac_cpp='$CPP $CPPFLAGS'
  18315. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18316. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18317. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18318. if test "x$enable_alsatest" = "xyes"; then
  18319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18320. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18321. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18322. then :
  18323. printf %s "(cached) " >&6
  18324. else $as_nop
  18325. ac_check_lib_save_LIBS=$LIBS
  18326. LIBS="-lasound $LIBS"
  18327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18328. /* end confdefs.h. */
  18329. /* Override any GCC internal prototype to avoid an error.
  18330. Use char because int might match the return type of a GCC
  18331. builtin and then its argument prototype would still apply. */
  18332. char snd_ctl_open ();
  18333. int
  18334. main (void)
  18335. {
  18336. return snd_ctl_open ();
  18337. ;
  18338. return 0;
  18339. }
  18340. _ACEOF
  18341. if ac_fn_c_try_link "$LINENO"
  18342. then :
  18343. ac_cv_lib_asound_snd_ctl_open=yes
  18344. else $as_nop
  18345. ac_cv_lib_asound_snd_ctl_open=no
  18346. fi
  18347. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18348. conftest$ac_exeext conftest.$ac_ext
  18349. LIBS=$ac_check_lib_save_LIBS
  18350. fi
  18351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18352. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18353. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18354. then :
  18355. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18356. LIBS="-lasound $LIBS"
  18357. else $as_nop
  18358. alsa_found=no
  18359. fi
  18360. fi
  18361. if test "x$alsa_found" = "xyes" ; then
  18362. have_alsa=yes
  18363. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18364. LIBS=`echo $LIBS | sed 's/ //'`
  18365. LIBS="-lasound $LIBS"
  18366. fi
  18367. if test "x$alsa_found" = "xno" ; then
  18368. have_alsa=no
  18369. CFLAGS="$alsa_save_CFLAGS"
  18370. LDFLAGS="$alsa_save_LDFLAGS"
  18371. LIBS="$alsa_save_LIBS"
  18372. ALSA_CFLAGS=""
  18373. ALSA_LIBS=""
  18374. fi
  18375. # Restore all flags from before the ALSA detection runs
  18376. CFLAGS="$alsa_save_CFLAGS"
  18377. LDFLAGS="$alsa_save_LDFLAGS"
  18378. LIBS="$alsa_save_LIBS"
  18379. if test x$have_alsa = xyes; then
  18380. # Check whether --enable-alsa-shared was given.
  18381. if test ${enable_alsa_shared+y}
  18382. then :
  18383. enableval=$enable_alsa_shared;
  18384. else $as_nop
  18385. enable_alsa_shared=yes
  18386. fi
  18387. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18388. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18389. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18390. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18391. if test x$have_loadso != xyes && \
  18392. test x$enable_alsa_shared = xyes; then
  18393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18394. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18395. fi
  18396. if test x$have_loadso = xyes && \
  18397. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18398. echo "-- dynamic libasound -> $alsa_lib"
  18399. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18400. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18401. else
  18402. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18403. SUMMARY_audio="${SUMMARY_audio} alsa"
  18404. fi
  18405. have_audio=yes
  18406. fi
  18407. fi
  18408. }
  18409. CheckPipewire()
  18410. {
  18411. # Check whether --enable-pipewire was given.
  18412. if test ${enable_pipewire+y}
  18413. then :
  18414. enableval=$enable_pipewire;
  18415. else $as_nop
  18416. enable_pipewire=yes
  18417. fi
  18418. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18419. pkg_failed=no
  18420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18421. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18422. if test -n "$PIPEWIRE_CFLAGS"; then
  18423. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18424. elif test -n "$PKG_CONFIG"; then
  18425. if test -n "$PKG_CONFIG" && \
  18426. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18427. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18428. ac_status=$?
  18429. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18430. test $ac_status = 0; }; then
  18431. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18432. test "x$?" != "x0" && pkg_failed=yes
  18433. else
  18434. pkg_failed=yes
  18435. fi
  18436. else
  18437. pkg_failed=untried
  18438. fi
  18439. if test -n "$PIPEWIRE_LIBS"; then
  18440. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18441. elif test -n "$PKG_CONFIG"; then
  18442. if test -n "$PKG_CONFIG" && \
  18443. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18444. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18445. ac_status=$?
  18446. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18447. test $ac_status = 0; }; then
  18448. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18449. test "x$?" != "x0" && pkg_failed=yes
  18450. else
  18451. pkg_failed=yes
  18452. fi
  18453. else
  18454. pkg_failed=untried
  18455. fi
  18456. if test $pkg_failed = yes; then
  18457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18458. printf "%s\n" "no" >&6; }
  18459. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18460. _pkg_short_errors_supported=yes
  18461. else
  18462. _pkg_short_errors_supported=no
  18463. fi
  18464. if test $_pkg_short_errors_supported = yes; then
  18465. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18466. else
  18467. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18468. fi
  18469. # Put the nasty error message in config.log where it belongs
  18470. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18471. audio_pipewire=no
  18472. elif test $pkg_failed = untried; then
  18473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18474. printf "%s\n" "no" >&6; }
  18475. audio_pipewire=no
  18476. else
  18477. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  18478. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  18479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18480. printf "%s\n" "yes" >&6; }
  18481. audio_pipewire=yes
  18482. fi
  18483. if test x$audio_pipewire = xyes; then
  18484. # Check whether --enable-pipewire-shared was given.
  18485. if test ${enable_pipewire_shared+y}
  18486. then :
  18487. enableval=$enable_pipewire_shared;
  18488. else $as_nop
  18489. enable_pipewire_shared=yes
  18490. fi
  18491. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18492. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  18493. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  18494. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  18495. if test x$have_loadso != xyes && \
  18496. test x$enable_pipewire_shared = xyes; then
  18497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  18498. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  18499. fi
  18500. if test x$have_loadso = xyes && \
  18501. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  18502. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  18503. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  18504. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  18505. else
  18506. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  18507. SUMMARY_audio="${SUMMARY_audio} pipewire"
  18508. fi
  18509. have_audio=yes
  18510. fi
  18511. fi
  18512. }
  18513. CheckPulseAudio()
  18514. {
  18515. # Check whether --enable-pulseaudio was given.
  18516. if test ${enable_pulseaudio+y}
  18517. then :
  18518. enableval=$enable_pulseaudio;
  18519. else $as_nop
  18520. enable_pulseaudio=yes
  18521. fi
  18522. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  18523. pkg_failed=no
  18524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  18525. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  18526. if test -n "$PULSEAUDIO_CFLAGS"; then
  18527. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  18528. elif test -n "$PKG_CONFIG"; then
  18529. if test -n "$PKG_CONFIG" && \
  18530. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18531. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18532. ac_status=$?
  18533. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18534. test $ac_status = 0; }; then
  18535. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  18536. test "x$?" != "x0" && pkg_failed=yes
  18537. else
  18538. pkg_failed=yes
  18539. fi
  18540. else
  18541. pkg_failed=untried
  18542. fi
  18543. if test -n "$PULSEAUDIO_LIBS"; then
  18544. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  18545. elif test -n "$PKG_CONFIG"; then
  18546. if test -n "$PKG_CONFIG" && \
  18547. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18548. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18549. ac_status=$?
  18550. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18551. test $ac_status = 0; }; then
  18552. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  18553. test "x$?" != "x0" && pkg_failed=yes
  18554. else
  18555. pkg_failed=yes
  18556. fi
  18557. else
  18558. pkg_failed=untried
  18559. fi
  18560. if test $pkg_failed = yes; then
  18561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18562. printf "%s\n" "no" >&6; }
  18563. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18564. _pkg_short_errors_supported=yes
  18565. else
  18566. _pkg_short_errors_supported=no
  18567. fi
  18568. if test $_pkg_short_errors_supported = yes; then
  18569. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  18570. else
  18571. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  18572. fi
  18573. # Put the nasty error message in config.log where it belongs
  18574. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  18575. audio_pulseaudio=no
  18576. elif test $pkg_failed = untried; then
  18577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18578. printf "%s\n" "no" >&6; }
  18579. audio_pulseaudio=no
  18580. else
  18581. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  18582. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  18583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18584. printf "%s\n" "yes" >&6; }
  18585. audio_pulseaudio=yes
  18586. fi
  18587. if test x$audio_pulseaudio = xyes; then
  18588. # Check whether --enable-pulseaudio-shared was given.
  18589. if test ${enable_pulseaudio_shared+y}
  18590. then :
  18591. enableval=$enable_pulseaudio_shared;
  18592. else $as_nop
  18593. enable_pulseaudio_shared=yes
  18594. fi
  18595. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18596. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  18597. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  18598. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  18599. if test x$have_loadso != xyes && \
  18600. test x$enable_pulseaudio_shared = xyes; then
  18601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  18602. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  18603. fi
  18604. if test x$have_loadso = xyes && \
  18605. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  18606. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  18607. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  18608. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  18609. case "$host" in
  18610. # On Solaris, pulseaudio must be linked deferred explicitly
  18611. # to prevent undefined symbol failures.
  18612. *-*-solaris*)
  18613. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  18614. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  18615. esac
  18616. else
  18617. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  18618. SUMMARY_audio="${SUMMARY_audio} pulse"
  18619. fi
  18620. have_audio=yes
  18621. fi
  18622. fi
  18623. }
  18624. CheckDiskAudio()
  18625. {
  18626. # Check whether --enable-diskaudio was given.
  18627. if test ${enable_diskaudio+y}
  18628. then :
  18629. enableval=$enable_diskaudio;
  18630. else $as_nop
  18631. enable_diskaudio=yes
  18632. fi
  18633. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  18634. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  18635. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  18636. SUMMARY_audio="${SUMMARY_audio} disk"
  18637. have_audio=yes
  18638. fi
  18639. }
  18640. CheckDummyAudio()
  18641. {
  18642. # Check whether --enable-dummyaudio was given.
  18643. if test ${enable_dummyaudio+y}
  18644. then :
  18645. enableval=$enable_dummyaudio;
  18646. else $as_nop
  18647. enable_dummyaudio=yes
  18648. fi
  18649. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  18650. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  18651. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  18652. SUMMARY_audio="${SUMMARY_audio} dummy"
  18653. have_audio=yes
  18654. fi
  18655. }
  18656. CheckLibSampleRate()
  18657. {
  18658. # Check whether --enable-libsamplerate was given.
  18659. if test ${enable_libsamplerate+y}
  18660. then :
  18661. enableval=$enable_libsamplerate;
  18662. else $as_nop
  18663. enable_libsamplerate=yes
  18664. fi
  18665. if test x$enable_libsamplerate = xyes; then
  18666. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  18667. if test "x$ac_cv_header_samplerate_h" = xyes
  18668. then :
  18669. have_samplerate_h_hdr=yes
  18670. else $as_nop
  18671. have_samplerate_h_hdr=no
  18672. fi
  18673. if test x$have_samplerate_h_hdr = xyes; then
  18674. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  18675. # Check whether --enable-libsamplerate-shared was given.
  18676. if test ${enable_libsamplerate_shared+y}
  18677. then :
  18678. enableval=$enable_libsamplerate_shared;
  18679. else $as_nop
  18680. enable_libsamplerate_shared=yes
  18681. fi
  18682. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18683. if test x$have_loadso != xyes && \
  18684. test x$enable_libsamplerate_shared = xyes; then
  18685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  18686. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  18687. fi
  18688. if test x$have_loadso = xyes && \
  18689. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  18690. echo "-- dynamic libsamplerate -> $samplerate_lib"
  18691. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  18692. else
  18693. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  18694. fi
  18695. fi
  18696. fi
  18697. }
  18698. CheckARM()
  18699. {
  18700. # Check whether --enable-arm-simd was given.
  18701. if test ${enable_arm_simd+y}
  18702. then :
  18703. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  18704. else $as_nop
  18705. enable_arm_simd=no
  18706. fi
  18707. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  18708. save_CFLAGS="$CFLAGS"
  18709. have_arm_simd=no
  18710. CFLAGS="-x assembler-with-cpp $CFLAGS"
  18711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  18712. printf %s "checking for ARM SIMD... " >&6; }
  18713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18714. /* end confdefs.h. */
  18715. .text
  18716. .arch armv6
  18717. .object_arch armv4
  18718. .arm
  18719. .altmacro
  18720. #ifndef __ARM_EABI__
  18721. #error EABI is required (to be sure that calling conventions are compatible)
  18722. #endif
  18723. pld [r0]
  18724. uqadd8 r0, r0, r0
  18725. _ACEOF
  18726. if ac_fn_c_try_compile "$LINENO"
  18727. then :
  18728. have_arm_simd=yes
  18729. fi
  18730. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  18732. printf "%s\n" "$have_arm_simd" >&6; }
  18733. CFLAGS="$save_CFLAGS"
  18734. if test x$have_arm_simd = xyes; then
  18735. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  18736. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  18737. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  18738. fi
  18739. fi
  18740. }
  18741. CheckNEON()
  18742. {
  18743. # Check whether --enable-arm-neon was given.
  18744. if test ${enable_arm_neon+y}
  18745. then :
  18746. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  18747. else $as_nop
  18748. enable_arm_neon=no
  18749. fi
  18750. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  18751. save_CFLAGS="$CFLAGS"
  18752. have_arm_neon=no
  18753. CFLAGS="-x assembler-with-cpp $CFLAGS"
  18754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  18755. printf %s "checking for ARM NEON... " >&6; }
  18756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18757. /* end confdefs.h. */
  18758. .text
  18759. .fpu neon
  18760. .arch armv7a
  18761. .object_arch armv4
  18762. .eabi_attribute 10, 0
  18763. .arm
  18764. .altmacro
  18765. #ifndef __ARM_EABI__
  18766. #error EABI is required (to be sure that calling conventions are compatible)
  18767. #endif
  18768. pld [r0]
  18769. vmovn.u16 d0, q0
  18770. _ACEOF
  18771. if ac_fn_c_try_compile "$LINENO"
  18772. then :
  18773. have_arm_neon=yes
  18774. fi
  18775. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  18777. printf "%s\n" "$have_arm_neon" >&6; }
  18778. CFLAGS="$save_CFLAGS"
  18779. if test x$have_arm_neon = xyes; then
  18780. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  18781. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  18782. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  18783. fi
  18784. fi
  18785. }
  18786. CheckObjectiveCARC()
  18787. {
  18788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  18789. printf %s "checking for clang -fobjc-arc option... " >&6; }
  18790. have_clang_objc_arc=no
  18791. save_CFLAGS="$CFLAGS"
  18792. CFLAGS="$save_CFLAGS -fobjc-arc"
  18793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18794. /* end confdefs.h. */
  18795. int x = 0;
  18796. int
  18797. main (void)
  18798. {
  18799. ;
  18800. return 0;
  18801. }
  18802. _ACEOF
  18803. if ac_fn_c_try_compile "$LINENO"
  18804. then :
  18805. have_clang_objc_arc=yes
  18806. fi
  18807. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  18809. printf "%s\n" "$have_clang_objc_arc" >&6; }
  18810. CFLAGS="$save_CFLAGS"
  18811. if test x$have_clang_objc_arc = xyes; then
  18812. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  18813. fi
  18814. }
  18815. CheckGDwarf4()
  18816. {
  18817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  18818. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  18819. have_gcc_gdwarf4=no
  18820. save_CFLAGS="$CFLAGS"
  18821. CFLAGS="$save_CFLAGS -gdwarf-4"
  18822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18823. /* end confdefs.h. */
  18824. int x = 0;
  18825. int
  18826. main (void)
  18827. {
  18828. ;
  18829. return 0;
  18830. }
  18831. _ACEOF
  18832. if ac_fn_c_try_compile "$LINENO"
  18833. then :
  18834. have_gcc_gdwarf4=yes
  18835. fi
  18836. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  18838. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  18839. CFLAGS="$save_CFLAGS"
  18840. if test x$have_gcc_gdwarf4 = xyes; then
  18841. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  18842. fi
  18843. }
  18844. CheckVisibilityHidden()
  18845. {
  18846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  18847. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  18848. have_gcc_fvisibility=no
  18849. visibility_CFLAGS="-fvisibility=hidden"
  18850. save_CFLAGS="$CFLAGS"
  18851. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  18852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18853. /* end confdefs.h. */
  18854. #if !defined(__GNUC__) || __GNUC__ < 4
  18855. #error SDL only uses visibility attributes in GCC 4 or newer
  18856. #endif
  18857. int
  18858. main (void)
  18859. {
  18860. ;
  18861. return 0;
  18862. }
  18863. _ACEOF
  18864. if ac_fn_c_try_compile "$LINENO"
  18865. then :
  18866. have_gcc_fvisibility=yes
  18867. fi
  18868. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  18870. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  18871. CFLAGS="$save_CFLAGS"
  18872. if test x$have_gcc_fvisibility = xyes; then
  18873. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  18874. fi
  18875. }
  18876. CheckNoStrictAliasing()
  18877. {
  18878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  18879. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  18880. have_gcc_no_strict_aliasing=no
  18881. save_CFLAGS="$CFLAGS"
  18882. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  18883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18884. /* end confdefs.h. */
  18885. int x = 0;
  18886. int
  18887. main (void)
  18888. {
  18889. ;
  18890. return 0;
  18891. }
  18892. _ACEOF
  18893. if ac_fn_c_try_compile "$LINENO"
  18894. then :
  18895. have_gcc_no_strict_aliasing=yes
  18896. fi
  18897. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  18899. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  18900. CFLAGS="$save_CFLAGS"
  18901. if test x$have_gcc_no_strict_aliasing = xyes; then
  18902. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  18903. fi
  18904. }
  18905. CheckStackBoundary()
  18906. {
  18907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  18908. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  18909. have_gcc_preferred_stack_boundary=no
  18910. save_CFLAGS="$CFLAGS"
  18911. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  18912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18913. /* end confdefs.h. */
  18914. int x = 0;
  18915. int
  18916. main (void)
  18917. {
  18918. ;
  18919. return 0;
  18920. }
  18921. _ACEOF
  18922. if ac_fn_c_try_compile "$LINENO"
  18923. then :
  18924. have_gcc_preferred_stack_boundary=yes
  18925. fi
  18926. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  18928. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  18929. CFLAGS="$save_CFLAGS"
  18930. if test x$have_gcc_preferred_stack_boundary = xyes; then
  18931. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  18932. fi
  18933. }
  18934. CheckWerror()
  18935. {
  18936. # Check whether --enable-werror was given.
  18937. if test ${enable_werror+y}
  18938. then :
  18939. enableval=$enable_werror; enable_werror=$enableval
  18940. else $as_nop
  18941. enable_werror=no
  18942. fi
  18943. if test x$enable_werror = xyes; then
  18944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  18945. printf %s "checking for GCC -Werror option... " >&6; }
  18946. have_gcc_werror=no
  18947. save_CFLAGS="$CFLAGS"
  18948. CFLAGS="$save_CFLAGS -Werror"
  18949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18950. /* end confdefs.h. */
  18951. int x = 0;
  18952. int
  18953. main (void)
  18954. {
  18955. ;
  18956. return 0;
  18957. }
  18958. _ACEOF
  18959. if ac_fn_c_try_compile "$LINENO"
  18960. then :
  18961. have_gcc_werror=yes
  18962. fi
  18963. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  18965. printf "%s\n" "$have_gcc_werror" >&6; }
  18966. CFLAGS="$save_CFLAGS"
  18967. if test x$have_gcc_werror = xyes; then
  18968. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  18969. fi
  18970. fi
  18971. }
  18972. CheckNoErrorDeprecatedDeclarationsWerror()
  18973. {
  18974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  18975. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  18976. have_gcc_no_werror_deprecated_declarations=no
  18977. save_CFLAGS="$CFLAGS"
  18978. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  18979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18980. /* end confdefs.h. */
  18981. int x = 0;
  18982. int
  18983. main (void)
  18984. {
  18985. ;
  18986. return 0;
  18987. }
  18988. _ACEOF
  18989. if ac_fn_c_try_compile "$LINENO"
  18990. then :
  18991. have_gcc_no_werror_deprecated_declarations=yes
  18992. fi
  18993. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  18995. printf "%s\n" "$have_gcc_werror" >&6; }
  18996. CFLAGS="$save_CFLAGS"
  18997. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  18998. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  18999. fi
  19000. }
  19001. CheckDeclarationAfterStatement()
  19002. {
  19003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19004. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19005. have_gcc_declaration_after_statement=no
  19006. save_CFLAGS="$CFLAGS"
  19007. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19009. /* end confdefs.h. */
  19010. int x = 0;
  19011. int
  19012. main (void)
  19013. {
  19014. ;
  19015. return 0;
  19016. }
  19017. _ACEOF
  19018. if ac_fn_c_try_compile "$LINENO"
  19019. then :
  19020. have_gcc_declaration_after_statement=yes
  19021. fi
  19022. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19024. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19025. CFLAGS="$save_CFLAGS"
  19026. if test x$have_gcc_declaration_after_statement = xyes; then
  19027. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19028. fi
  19029. }
  19030. CheckWarnAll()
  19031. {
  19032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19033. printf %s "checking for GCC -Wall option... " >&6; }
  19034. have_gcc_Wall=no
  19035. save_CFLAGS="$CFLAGS"
  19036. CFLAGS="$save_CFLAGS -Wall"
  19037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19038. /* end confdefs.h. */
  19039. int x = 0;
  19040. int
  19041. main (void)
  19042. {
  19043. ;
  19044. return 0;
  19045. }
  19046. _ACEOF
  19047. if ac_fn_c_try_compile "$LINENO"
  19048. then :
  19049. have_gcc_Wall=yes
  19050. fi
  19051. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19053. printf "%s\n" "$have_gcc_Wall" >&6; }
  19054. CFLAGS="$save_CFLAGS"
  19055. if test x$have_gcc_Wall = xyes; then
  19056. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19058. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19059. need_gcc_Wno_multichar=no
  19060. case "$host" in
  19061. *-*-haiku*)
  19062. need_gcc_Wno_multichar=yes
  19063. ;;
  19064. esac
  19065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19066. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19067. if test x$need_gcc_Wno_multichar = xyes; then
  19068. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19069. fi
  19070. fi
  19071. }
  19072. CheckWayland()
  19073. {
  19074. # Check whether --enable-video-wayland was given.
  19075. if test ${enable_video_wayland+y}
  19076. then :
  19077. enableval=$enable_video_wayland;
  19078. else $as_nop
  19079. enable_video_wayland=yes
  19080. fi
  19081. # Check whether --enable-video-wayland-qt-touch was given.
  19082. if test ${enable_video_wayland_qt_touch+y}
  19083. then :
  19084. enableval=$enable_video_wayland_qt_touch;
  19085. else $as_nop
  19086. enable_video_wayland_qt_touch=yes
  19087. fi
  19088. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  19089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  19090. printf %s "checking for Wayland support... " >&6; }
  19091. video_wayland=no
  19092. if test x$video_opengl_egl = xyes && \
  19093. test x$video_opengles_v2 = xyes; then
  19094. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  19095. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  19096. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  19097. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  19098. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  19099. then :
  19100. WAYLAND_SCANNER_CODE_MODE=private-code
  19101. else $as_nop
  19102. WAYLAND_SCANNER_CODE_MODE=code
  19103. fi
  19104. video_wayland=yes
  19105. fi
  19106. fi
  19107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  19108. printf "%s\n" "$video_wayland" >&6; }
  19109. if test x$video_wayland = xyes; then
  19110. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  19111. if test x$enable_video_wayland_qt_touch = xyes; then
  19112. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  19113. fi
  19114. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  19115. SOURCES="$SOURCES $WAYLAND_SOURCES"
  19116. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  19117. # Check whether --enable-wayland-shared was given.
  19118. if test ${enable_wayland_shared+y}
  19119. then :
  19120. enableval=$enable_wayland_shared;
  19121. else $as_nop
  19122. enable_wayland_shared=maybe
  19123. fi
  19124. case "$host" in
  19125. *)
  19126. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19127. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19128. if test x$wayland_egl_lib = x; then
  19129. # This works in Ubuntu 13.10, maybe others
  19130. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19131. fi
  19132. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19133. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19134. ;;
  19135. esac
  19136. if test x$enable_wayland_shared = xmaybe; then
  19137. enable_wayland_shared=yes
  19138. fi
  19139. if test x$have_loadso != xyes && \
  19140. test x$enable_wayland_shared = xyes; then
  19141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  19142. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  19143. enable_wayland_shared=no
  19144. fi
  19145. if test x$have_loadso = xyes && \
  19146. test x$enable_wayland_shared = xyes && \
  19147. test x$wayland_client_lib != x && \
  19148. test x$wayland_egl_lib != x && \
  19149. test x$wayland_cursor_lib != x && \
  19150. test x$xkbcommon_lib != x; then
  19151. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  19152. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  19153. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  19154. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  19155. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  19156. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  19157. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  19158. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  19159. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  19160. else
  19161. enable_wayland_shared=no
  19162. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  19163. SUMMARY_video="${SUMMARY_video} wayland"
  19164. fi
  19165. have_video=yes
  19166. # Check whether --enable-libdecor was given.
  19167. if test ${enable_libdecor+y}
  19168. then :
  19169. enableval=$enable_libdecor;
  19170. else $as_nop
  19171. enable_libdecor=yes
  19172. fi
  19173. if test x$enable_libdecor = xyes; then
  19174. pkg_failed=no
  19175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  19176. printf %s "checking for libdecor-0... " >&6; }
  19177. if test -n "$DECOR_CFLAGS"; then
  19178. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  19179. elif test -n "$PKG_CONFIG"; then
  19180. if test -n "$PKG_CONFIG" && \
  19181. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19182. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19183. ac_status=$?
  19184. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19185. test $ac_status = 0; }; then
  19186. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  19187. test "x$?" != "x0" && pkg_failed=yes
  19188. else
  19189. pkg_failed=yes
  19190. fi
  19191. else
  19192. pkg_failed=untried
  19193. fi
  19194. if test -n "$DECOR_LIBS"; then
  19195. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  19196. elif test -n "$PKG_CONFIG"; then
  19197. if test -n "$PKG_CONFIG" && \
  19198. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19199. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19200. ac_status=$?
  19201. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19202. test $ac_status = 0; }; then
  19203. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  19204. test "x$?" != "x0" && pkg_failed=yes
  19205. else
  19206. pkg_failed=yes
  19207. fi
  19208. else
  19209. pkg_failed=untried
  19210. fi
  19211. if test $pkg_failed = yes; then
  19212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19213. printf "%s\n" "no" >&6; }
  19214. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19215. _pkg_short_errors_supported=yes
  19216. else
  19217. _pkg_short_errors_supported=no
  19218. fi
  19219. if test $_pkg_short_errors_supported = yes; then
  19220. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  19221. else
  19222. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  19223. fi
  19224. # Put the nasty error message in config.log where it belongs
  19225. echo "$DECOR_PKG_ERRORS" >&5
  19226. video_libdecor=no
  19227. elif test $pkg_failed = untried; then
  19228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19229. printf "%s\n" "no" >&6; }
  19230. video_libdecor=no
  19231. else
  19232. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  19233. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  19234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19235. printf "%s\n" "yes" >&6; }
  19236. video_libdecor=yes
  19237. fi
  19238. if test x$video_libdecor = xyes; then
  19239. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  19240. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  19241. # Check whether --enable-libdecor-shared was given.
  19242. if test ${enable_libdecor_shared+y}
  19243. then :
  19244. enableval=$enable_libdecor_shared;
  19245. else $as_nop
  19246. enable_libdecor_shared=yes
  19247. fi
  19248. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19249. if test x$enable_wayland_shared != xyes; then
  19250. enable_libdecor_shared=no
  19251. fi
  19252. if test x$have_loadso != xyes && \
  19253. test x$enable_libdecor_shared = xyes; then
  19254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  19255. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  19256. fi
  19257. if test x$have_loadso = xyes && \
  19258. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  19259. echo "-- dynamic libdecor -> $decor_lib"
  19260. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  19261. else
  19262. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  19263. fi
  19264. fi
  19265. fi
  19266. fi
  19267. fi
  19268. }
  19269. CheckRPI()
  19270. {
  19271. # Check whether --enable-video-rpi was given.
  19272. if test ${enable_video_rpi+y}
  19273. then :
  19274. enableval=$enable_video_rpi;
  19275. else $as_nop
  19276. enable_video_rpi=yes
  19277. fi
  19278. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  19279. pkg_failed=no
  19280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  19281. printf %s "checking for bcm_host brcmegl... " >&6; }
  19282. if test -n "$RPI_CFLAGS"; then
  19283. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  19284. elif test -n "$PKG_CONFIG"; then
  19285. if test -n "$PKG_CONFIG" && \
  19286. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  19287. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  19288. ac_status=$?
  19289. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19290. test $ac_status = 0; }; then
  19291. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  19292. test "x$?" != "x0" && pkg_failed=yes
  19293. else
  19294. pkg_failed=yes
  19295. fi
  19296. else
  19297. pkg_failed=untried
  19298. fi
  19299. if test -n "$RPI_LIBS"; then
  19300. pkg_cv_RPI_LIBS="$RPI_LIBS"
  19301. elif test -n "$PKG_CONFIG"; then
  19302. if test -n "$PKG_CONFIG" && \
  19303. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  19304. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  19305. ac_status=$?
  19306. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19307. test $ac_status = 0; }; then
  19308. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  19309. test "x$?" != "x0" && pkg_failed=yes
  19310. else
  19311. pkg_failed=yes
  19312. fi
  19313. else
  19314. pkg_failed=untried
  19315. fi
  19316. if test $pkg_failed = yes; then
  19317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19318. printf "%s\n" "no" >&6; }
  19319. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19320. _pkg_short_errors_supported=yes
  19321. else
  19322. _pkg_short_errors_supported=no
  19323. fi
  19324. if test $_pkg_short_errors_supported = yes; then
  19325. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  19326. else
  19327. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  19328. fi
  19329. # Put the nasty error message in config.log where it belongs
  19330. echo "$RPI_PKG_ERRORS" >&5
  19331. video_rpi=no
  19332. elif test $pkg_failed = untried; then
  19333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19334. printf "%s\n" "no" >&6; }
  19335. video_rpi=no
  19336. else
  19337. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  19338. RPI_LIBS=$pkg_cv_RPI_LIBS
  19339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19340. printf "%s\n" "yes" >&6; }
  19341. video_rpi=yes
  19342. fi
  19343. if test x$video_rpi = xno; then
  19344. if test x$ARCH = xnetbsd; then
  19345. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  19346. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  19347. else
  19348. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19349. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  19350. fi
  19351. fi
  19352. # Save the original compiler flags and libraries
  19353. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19354. # Add the Raspberry Pi compiler flags and libraries
  19355. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  19356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  19357. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  19358. have_video_rpi=no
  19359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19360. /* end confdefs.h. */
  19361. #include <bcm_host.h>
  19362. #include <EGL/eglplatform.h>
  19363. int
  19364. main (void)
  19365. {
  19366. EGL_DISPMANX_WINDOW_T window;
  19367. bcm_host_init();
  19368. ;
  19369. return 0;
  19370. }
  19371. _ACEOF
  19372. if ac_fn_c_try_link "$LINENO"
  19373. then :
  19374. have_video_rpi=yes
  19375. fi
  19376. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19377. conftest$ac_exeext conftest.$ac_ext
  19378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  19379. printf "%s\n" "$have_video_rpi" >&6; }
  19380. # Restore the compiler flags and libraries
  19381. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19382. if test x$have_video_rpi = xyes; then
  19383. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19384. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19385. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19386. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  19387. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19388. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19389. SUMMARY_video="${SUMMARY_video} rpi"
  19390. have_video=yes
  19391. fi
  19392. fi
  19393. }
  19394. CheckX11()
  19395. {
  19396. # Check whether --enable-video-x11 was given.
  19397. if test ${enable_video_x11+y}
  19398. then :
  19399. enableval=$enable_video_x11;
  19400. else $as_nop
  19401. enable_video_x11=yes
  19402. case "$host" in
  19403. *-*-darwin*|*-ios-*)
  19404. enable_video_x11=no
  19405. ;;
  19406. esac
  19407. fi
  19408. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  19409. case "$host" in
  19410. *-*-darwin*)
  19411. # This isn't necessary for X11, but fixes GLX detection
  19412. if test "x$x_includes" = xNONE && \
  19413. test "x$x_libraries" = xNONE && \
  19414. test -d /opt/X11/include && \
  19415. test -d /opt/X11/lib; then
  19416. x_includes="/opt/X11/include"
  19417. x_libraries="/opt/X11/lib"
  19418. fi
  19419. ;;
  19420. esac
  19421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  19422. printf %s "checking for X... " >&6; }
  19423. # Check whether --with-x was given.
  19424. if test ${with_x+y}
  19425. then :
  19426. withval=$with_x;
  19427. fi
  19428. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  19429. if test "x$with_x" = xno; then
  19430. # The user explicitly disabled X.
  19431. have_x=disabled
  19432. else
  19433. case $x_includes,$x_libraries in #(
  19434. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  19435. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  19436. then :
  19437. printf %s "(cached) " >&6
  19438. else $as_nop
  19439. # One or both of the vars are not set, and there is no cached value.
  19440. ac_x_includes=no
  19441. ac_x_libraries=no
  19442. # Do we need to do anything special at all?
  19443. ac_save_LIBS=$LIBS
  19444. LIBS="-lX11 $LIBS"
  19445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19446. /* end confdefs.h. */
  19447. #include <X11/Xlib.h>
  19448. int
  19449. main (void)
  19450. {
  19451. XrmInitialize ()
  19452. ;
  19453. return 0;
  19454. }
  19455. _ACEOF
  19456. if ac_fn_c_try_link "$LINENO"
  19457. then :
  19458. # We can compile and link X programs with no special options.
  19459. ac_x_includes=
  19460. ac_x_libraries=
  19461. fi
  19462. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19463. conftest$ac_exeext conftest.$ac_ext
  19464. LIBS="$ac_save_LIBS"
  19465. # If that didn't work, only try xmkmf and file system searches
  19466. # for native compilation.
  19467. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  19468. then :
  19469. rm -f -r conftest.dir
  19470. if mkdir conftest.dir; then
  19471. cd conftest.dir
  19472. cat >Imakefile <<'_ACEOF'
  19473. incroot:
  19474. @echo incroot='${INCROOT}'
  19475. usrlibdir:
  19476. @echo usrlibdir='${USRLIBDIR}'
  19477. libdir:
  19478. @echo libdir='${LIBDIR}'
  19479. _ACEOF
  19480. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  19481. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  19482. for ac_var in incroot usrlibdir libdir; do
  19483. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  19484. done
  19485. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  19486. for ac_extension in a so sl dylib la dll; do
  19487. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  19488. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  19489. ac_im_usrlibdir=$ac_im_libdir; break
  19490. fi
  19491. done
  19492. # Screen out bogus values from the imake configuration. They are
  19493. # bogus both because they are the default anyway, and because
  19494. # using them would break gcc on systems where it needs fixed includes.
  19495. case $ac_im_incroot in
  19496. /usr/include) ac_x_includes= ;;
  19497. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  19498. esac
  19499. case $ac_im_usrlibdir in
  19500. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  19501. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  19502. esac
  19503. fi
  19504. cd ..
  19505. rm -f -r conftest.dir
  19506. fi
  19507. # Standard set of common directories for X headers.
  19508. # Check X11 before X11Rn because it is often a symlink to the current release.
  19509. ac_x_header_dirs='
  19510. /usr/X11/include
  19511. /usr/X11R7/include
  19512. /usr/X11R6/include
  19513. /usr/X11R5/include
  19514. /usr/X11R4/include
  19515. /usr/include/X11
  19516. /usr/include/X11R7
  19517. /usr/include/X11R6
  19518. /usr/include/X11R5
  19519. /usr/include/X11R4
  19520. /usr/local/X11/include
  19521. /usr/local/X11R7/include
  19522. /usr/local/X11R6/include
  19523. /usr/local/X11R5/include
  19524. /usr/local/X11R4/include
  19525. /usr/local/include/X11
  19526. /usr/local/include/X11R7
  19527. /usr/local/include/X11R6
  19528. /usr/local/include/X11R5
  19529. /usr/local/include/X11R4
  19530. /opt/X11/include
  19531. /usr/X386/include
  19532. /usr/x386/include
  19533. /usr/XFree86/include/X11
  19534. /usr/include
  19535. /usr/local/include
  19536. /usr/unsupported/include
  19537. /usr/athena/include
  19538. /usr/local/x11r5/include
  19539. /usr/lpp/Xamples/include
  19540. /usr/openwin/include
  19541. /usr/openwin/share/include'
  19542. if test "$ac_x_includes" = no; then
  19543. # Guess where to find include files, by looking for Xlib.h.
  19544. # First, try using that file with no special directory specified.
  19545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19546. /* end confdefs.h. */
  19547. #include <X11/Xlib.h>
  19548. _ACEOF
  19549. if ac_fn_c_try_cpp "$LINENO"
  19550. then :
  19551. # We can compile using X headers with no special include directory.
  19552. ac_x_includes=
  19553. else $as_nop
  19554. for ac_dir in $ac_x_header_dirs; do
  19555. if test -r "$ac_dir/X11/Xlib.h"; then
  19556. ac_x_includes=$ac_dir
  19557. break
  19558. fi
  19559. done
  19560. fi
  19561. rm -f conftest.err conftest.i conftest.$ac_ext
  19562. fi # $ac_x_includes = no
  19563. if test "$ac_x_libraries" = no; then
  19564. # Check for the libraries.
  19565. # See if we find them without any special options.
  19566. # Don't add to $LIBS permanently.
  19567. ac_save_LIBS=$LIBS
  19568. LIBS="-lX11 $LIBS"
  19569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19570. /* end confdefs.h. */
  19571. #include <X11/Xlib.h>
  19572. int
  19573. main (void)
  19574. {
  19575. XrmInitialize ()
  19576. ;
  19577. return 0;
  19578. }
  19579. _ACEOF
  19580. if ac_fn_c_try_link "$LINENO"
  19581. then :
  19582. LIBS=$ac_save_LIBS
  19583. # We can link X programs with no special library path.
  19584. ac_x_libraries=
  19585. else $as_nop
  19586. LIBS=$ac_save_LIBS
  19587. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  19588. do
  19589. # Don't even attempt the hair of trying to link an X program!
  19590. for ac_extension in a so sl dylib la dll; do
  19591. if test -r "$ac_dir/libX11.$ac_extension"; then
  19592. ac_x_libraries=$ac_dir
  19593. break 2
  19594. fi
  19595. done
  19596. done
  19597. fi
  19598. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19599. conftest$ac_exeext conftest.$ac_ext
  19600. fi # $ac_x_libraries = no
  19601. fi
  19602. # Record the results.
  19603. case $ac_x_includes,$ac_x_libraries in #(
  19604. no,* | *,no | *\'*) :
  19605. # Didn't find X, or a directory has "'" in its name.
  19606. ac_cv_have_x="have_x=no" ;; #(
  19607. *) :
  19608. # Record where we found X for the cache.
  19609. ac_cv_have_x="have_x=yes\
  19610. ac_x_includes='$ac_x_includes'\
  19611. ac_x_libraries='$ac_x_libraries'" ;;
  19612. esac
  19613. fi
  19614. ;; #(
  19615. *) have_x=yes;;
  19616. esac
  19617. eval "$ac_cv_have_x"
  19618. fi # $with_x != no
  19619. if test "$have_x" != yes; then
  19620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  19621. printf "%s\n" "$have_x" >&6; }
  19622. no_x=yes
  19623. else
  19624. # If each of the values was on the command line, it overrides each guess.
  19625. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  19626. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  19627. # Update the cache value to reflect the command line values.
  19628. ac_cv_have_x="have_x=yes\
  19629. ac_x_includes='$x_includes'\
  19630. ac_x_libraries='$x_libraries'"
  19631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  19632. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  19633. fi
  19634. if test "$no_x" = yes; then
  19635. # Not all programs may use this symbol, but it does not hurt to define it.
  19636. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  19637. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  19638. else
  19639. if test -n "$x_includes"; then
  19640. X_CFLAGS="$X_CFLAGS -I$x_includes"
  19641. fi
  19642. # It would also be nice to do this for all -L options, not just this one.
  19643. if test -n "$x_libraries"; then
  19644. X_LIBS="$X_LIBS -L$x_libraries"
  19645. # For Solaris; some versions of Sun CC require a space after -R and
  19646. # others require no space. Words are not sufficient . . . .
  19647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  19648. printf %s "checking whether -R must be followed by a space... " >&6; }
  19649. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  19650. ac_xsave_c_werror_flag=$ac_c_werror_flag
  19651. ac_c_werror_flag=yes
  19652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19653. /* end confdefs.h. */
  19654. int
  19655. main (void)
  19656. {
  19657. ;
  19658. return 0;
  19659. }
  19660. _ACEOF
  19661. if ac_fn_c_try_link "$LINENO"
  19662. then :
  19663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19664. printf "%s\n" "no" >&6; }
  19665. X_LIBS="$X_LIBS -R$x_libraries"
  19666. else $as_nop
  19667. LIBS="$ac_xsave_LIBS -R $x_libraries"
  19668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19669. /* end confdefs.h. */
  19670. int
  19671. main (void)
  19672. {
  19673. ;
  19674. return 0;
  19675. }
  19676. _ACEOF
  19677. if ac_fn_c_try_link "$LINENO"
  19678. then :
  19679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19680. printf "%s\n" "yes" >&6; }
  19681. X_LIBS="$X_LIBS -R $x_libraries"
  19682. else $as_nop
  19683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  19684. printf "%s\n" "neither works" >&6; }
  19685. fi
  19686. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19687. conftest$ac_exeext conftest.$ac_ext
  19688. fi
  19689. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19690. conftest$ac_exeext conftest.$ac_ext
  19691. ac_c_werror_flag=$ac_xsave_c_werror_flag
  19692. LIBS=$ac_xsave_LIBS
  19693. fi
  19694. # Check for system-dependent libraries X programs must link with.
  19695. # Do this before checking for the system-independent R6 libraries
  19696. # (-lICE), since we may need -lsocket or whatever for X linking.
  19697. if test "$ISC" = yes; then
  19698. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  19699. else
  19700. # Martyn Johnson says this is needed for Ultrix, if the X
  19701. # libraries were built with DECnet support. And Karl Berry says
  19702. # the Alpha needs dnet_stub (dnet does not exist).
  19703. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  19704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19705. /* end confdefs.h. */
  19706. /* Override any GCC internal prototype to avoid an error.
  19707. Use char because int might match the return type of a GCC
  19708. builtin and then its argument prototype would still apply. */
  19709. char XOpenDisplay ();
  19710. int
  19711. main (void)
  19712. {
  19713. return XOpenDisplay ();
  19714. ;
  19715. return 0;
  19716. }
  19717. _ACEOF
  19718. if ac_fn_c_try_link "$LINENO"
  19719. then :
  19720. else $as_nop
  19721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  19722. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  19723. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  19724. then :
  19725. printf %s "(cached) " >&6
  19726. else $as_nop
  19727. ac_check_lib_save_LIBS=$LIBS
  19728. LIBS="-ldnet $LIBS"
  19729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19730. /* end confdefs.h. */
  19731. /* Override any GCC internal prototype to avoid an error.
  19732. Use char because int might match the return type of a GCC
  19733. builtin and then its argument prototype would still apply. */
  19734. char dnet_ntoa ();
  19735. int
  19736. main (void)
  19737. {
  19738. return dnet_ntoa ();
  19739. ;
  19740. return 0;
  19741. }
  19742. _ACEOF
  19743. if ac_fn_c_try_link "$LINENO"
  19744. then :
  19745. ac_cv_lib_dnet_dnet_ntoa=yes
  19746. else $as_nop
  19747. ac_cv_lib_dnet_dnet_ntoa=no
  19748. fi
  19749. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19750. conftest$ac_exeext conftest.$ac_ext
  19751. LIBS=$ac_check_lib_save_LIBS
  19752. fi
  19753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  19754. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  19755. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  19756. then :
  19757. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  19758. fi
  19759. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  19760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  19761. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  19762. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  19763. then :
  19764. printf %s "(cached) " >&6
  19765. else $as_nop
  19766. ac_check_lib_save_LIBS=$LIBS
  19767. LIBS="-ldnet_stub $LIBS"
  19768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19769. /* end confdefs.h. */
  19770. /* Override any GCC internal prototype to avoid an error.
  19771. Use char because int might match the return type of a GCC
  19772. builtin and then its argument prototype would still apply. */
  19773. char dnet_ntoa ();
  19774. int
  19775. main (void)
  19776. {
  19777. return dnet_ntoa ();
  19778. ;
  19779. return 0;
  19780. }
  19781. _ACEOF
  19782. if ac_fn_c_try_link "$LINENO"
  19783. then :
  19784. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  19785. else $as_nop
  19786. ac_cv_lib_dnet_stub_dnet_ntoa=no
  19787. fi
  19788. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19789. conftest$ac_exeext conftest.$ac_ext
  19790. LIBS=$ac_check_lib_save_LIBS
  19791. fi
  19792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  19793. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  19794. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  19795. then :
  19796. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  19797. fi
  19798. fi
  19799. fi
  19800. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19801. conftest$ac_exeext conftest.$ac_ext
  19802. LIBS="$ac_xsave_LIBS"
  19803. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  19804. # to get the SysV transport functions.
  19805. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  19806. # needs -lnsl.
  19807. # The nsl library prevents programs from opening the X display
  19808. # on Irix 5.2, according to T.E. Dickey.
  19809. # The functions gethostbyname, getservbyname, and inet_addr are
  19810. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  19811. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  19812. if test "x$ac_cv_func_gethostbyname" = xyes
  19813. then :
  19814. fi
  19815. if test $ac_cv_func_gethostbyname = no; then
  19816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  19817. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  19818. if test ${ac_cv_lib_nsl_gethostbyname+y}
  19819. then :
  19820. printf %s "(cached) " >&6
  19821. else $as_nop
  19822. ac_check_lib_save_LIBS=$LIBS
  19823. LIBS="-lnsl $LIBS"
  19824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19825. /* end confdefs.h. */
  19826. /* Override any GCC internal prototype to avoid an error.
  19827. Use char because int might match the return type of a GCC
  19828. builtin and then its argument prototype would still apply. */
  19829. char gethostbyname ();
  19830. int
  19831. main (void)
  19832. {
  19833. return gethostbyname ();
  19834. ;
  19835. return 0;
  19836. }
  19837. _ACEOF
  19838. if ac_fn_c_try_link "$LINENO"
  19839. then :
  19840. ac_cv_lib_nsl_gethostbyname=yes
  19841. else $as_nop
  19842. ac_cv_lib_nsl_gethostbyname=no
  19843. fi
  19844. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19845. conftest$ac_exeext conftest.$ac_ext
  19846. LIBS=$ac_check_lib_save_LIBS
  19847. fi
  19848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  19849. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  19850. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  19851. then :
  19852. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  19853. fi
  19854. if test $ac_cv_lib_nsl_gethostbyname = no; then
  19855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  19856. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  19857. if test ${ac_cv_lib_bsd_gethostbyname+y}
  19858. then :
  19859. printf %s "(cached) " >&6
  19860. else $as_nop
  19861. ac_check_lib_save_LIBS=$LIBS
  19862. LIBS="-lbsd $LIBS"
  19863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19864. /* end confdefs.h. */
  19865. /* Override any GCC internal prototype to avoid an error.
  19866. Use char because int might match the return type of a GCC
  19867. builtin and then its argument prototype would still apply. */
  19868. char gethostbyname ();
  19869. int
  19870. main (void)
  19871. {
  19872. return gethostbyname ();
  19873. ;
  19874. return 0;
  19875. }
  19876. _ACEOF
  19877. if ac_fn_c_try_link "$LINENO"
  19878. then :
  19879. ac_cv_lib_bsd_gethostbyname=yes
  19880. else $as_nop
  19881. ac_cv_lib_bsd_gethostbyname=no
  19882. fi
  19883. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19884. conftest$ac_exeext conftest.$ac_ext
  19885. LIBS=$ac_check_lib_save_LIBS
  19886. fi
  19887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  19888. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  19889. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  19890. then :
  19891. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  19892. fi
  19893. fi
  19894. fi
  19895. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  19896. # socket/setsockopt and other routines are undefined under SCO ODT
  19897. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  19898. # on later versions), says Simon Leinen: it contains gethostby*
  19899. # variants that don't use the name server (or something). -lsocket
  19900. # must be given before -lnsl if both are needed. We assume that
  19901. # if connect needs -lnsl, so does gethostbyname.
  19902. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  19903. if test "x$ac_cv_func_connect" = xyes
  19904. then :
  19905. fi
  19906. if test $ac_cv_func_connect = no; then
  19907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  19908. printf %s "checking for connect in -lsocket... " >&6; }
  19909. if test ${ac_cv_lib_socket_connect+y}
  19910. then :
  19911. printf %s "(cached) " >&6
  19912. else $as_nop
  19913. ac_check_lib_save_LIBS=$LIBS
  19914. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  19915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19916. /* end confdefs.h. */
  19917. /* Override any GCC internal prototype to avoid an error.
  19918. Use char because int might match the return type of a GCC
  19919. builtin and then its argument prototype would still apply. */
  19920. char connect ();
  19921. int
  19922. main (void)
  19923. {
  19924. return connect ();
  19925. ;
  19926. return 0;
  19927. }
  19928. _ACEOF
  19929. if ac_fn_c_try_link "$LINENO"
  19930. then :
  19931. ac_cv_lib_socket_connect=yes
  19932. else $as_nop
  19933. ac_cv_lib_socket_connect=no
  19934. fi
  19935. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19936. conftest$ac_exeext conftest.$ac_ext
  19937. LIBS=$ac_check_lib_save_LIBS
  19938. fi
  19939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  19940. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  19941. if test "x$ac_cv_lib_socket_connect" = xyes
  19942. then :
  19943. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  19944. fi
  19945. fi
  19946. # Guillermo Gomez says -lposix is necessary on A/UX.
  19947. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  19948. if test "x$ac_cv_func_remove" = xyes
  19949. then :
  19950. fi
  19951. if test $ac_cv_func_remove = no; then
  19952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  19953. printf %s "checking for remove in -lposix... " >&6; }
  19954. if test ${ac_cv_lib_posix_remove+y}
  19955. then :
  19956. printf %s "(cached) " >&6
  19957. else $as_nop
  19958. ac_check_lib_save_LIBS=$LIBS
  19959. LIBS="-lposix $LIBS"
  19960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19961. /* end confdefs.h. */
  19962. /* Override any GCC internal prototype to avoid an error.
  19963. Use char because int might match the return type of a GCC
  19964. builtin and then its argument prototype would still apply. */
  19965. char remove ();
  19966. int
  19967. main (void)
  19968. {
  19969. return remove ();
  19970. ;
  19971. return 0;
  19972. }
  19973. _ACEOF
  19974. if ac_fn_c_try_link "$LINENO"
  19975. then :
  19976. ac_cv_lib_posix_remove=yes
  19977. else $as_nop
  19978. ac_cv_lib_posix_remove=no
  19979. fi
  19980. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19981. conftest$ac_exeext conftest.$ac_ext
  19982. LIBS=$ac_check_lib_save_LIBS
  19983. fi
  19984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  19985. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  19986. if test "x$ac_cv_lib_posix_remove" = xyes
  19987. then :
  19988. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  19989. fi
  19990. fi
  19991. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  19992. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  19993. if test "x$ac_cv_func_shmat" = xyes
  19994. then :
  19995. fi
  19996. if test $ac_cv_func_shmat = no; then
  19997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  19998. printf %s "checking for shmat in -lipc... " >&6; }
  19999. if test ${ac_cv_lib_ipc_shmat+y}
  20000. then :
  20001. printf %s "(cached) " >&6
  20002. else $as_nop
  20003. ac_check_lib_save_LIBS=$LIBS
  20004. LIBS="-lipc $LIBS"
  20005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20006. /* end confdefs.h. */
  20007. /* Override any GCC internal prototype to avoid an error.
  20008. Use char because int might match the return type of a GCC
  20009. builtin and then its argument prototype would still apply. */
  20010. char shmat ();
  20011. int
  20012. main (void)
  20013. {
  20014. return shmat ();
  20015. ;
  20016. return 0;
  20017. }
  20018. _ACEOF
  20019. if ac_fn_c_try_link "$LINENO"
  20020. then :
  20021. ac_cv_lib_ipc_shmat=yes
  20022. else $as_nop
  20023. ac_cv_lib_ipc_shmat=no
  20024. fi
  20025. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20026. conftest$ac_exeext conftest.$ac_ext
  20027. LIBS=$ac_check_lib_save_LIBS
  20028. fi
  20029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20030. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20031. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20032. then :
  20033. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20034. fi
  20035. fi
  20036. fi
  20037. # Check for libraries that X11R6 Xt/Xaw programs need.
  20038. ac_save_LDFLAGS=$LDFLAGS
  20039. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20040. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20041. # check for ICE first), but we must link in the order -lSM -lICE or
  20042. # we get undefined symbols. So assume we have SM if we have ICE.
  20043. # These have to be linked with before -lX11, unlike the other
  20044. # libraries we check for below, so use a different variable.
  20045. # John Interrante, Karl Berry
  20046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20047. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20048. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20049. then :
  20050. printf %s "(cached) " >&6
  20051. else $as_nop
  20052. ac_check_lib_save_LIBS=$LIBS
  20053. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20055. /* end confdefs.h. */
  20056. /* Override any GCC internal prototype to avoid an error.
  20057. Use char because int might match the return type of a GCC
  20058. builtin and then its argument prototype would still apply. */
  20059. char IceConnectionNumber ();
  20060. int
  20061. main (void)
  20062. {
  20063. return IceConnectionNumber ();
  20064. ;
  20065. return 0;
  20066. }
  20067. _ACEOF
  20068. if ac_fn_c_try_link "$LINENO"
  20069. then :
  20070. ac_cv_lib_ICE_IceConnectionNumber=yes
  20071. else $as_nop
  20072. ac_cv_lib_ICE_IceConnectionNumber=no
  20073. fi
  20074. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20075. conftest$ac_exeext conftest.$ac_ext
  20076. LIBS=$ac_check_lib_save_LIBS
  20077. fi
  20078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20079. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20080. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  20081. then :
  20082. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  20083. fi
  20084. LDFLAGS=$ac_save_LDFLAGS
  20085. fi
  20086. if test x$have_x = xyes; then
  20087. # Check whether --enable-x11-shared was given.
  20088. if test ${enable_x11_shared+y}
  20089. then :
  20090. enableval=$enable_x11_shared;
  20091. else $as_nop
  20092. enable_x11_shared=maybe
  20093. fi
  20094. case "$host" in
  20095. *-*-darwin*)
  20096. # Apple now puts this in /opt/X11
  20097. x11_lib='/opt/X11/lib/libX11.6.dylib'
  20098. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  20099. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  20100. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  20101. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  20102. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  20103. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  20104. xss_lib='/opt/X11/lib/libXss.1.dylib'
  20105. ;;
  20106. *-*-openbsd*)
  20107. x11_lib='libX11.so'
  20108. x11ext_lib='libXext.so'
  20109. xcursor_lib='libXcursor.so'
  20110. xinput_lib='libXi.so'
  20111. xfixes_lib='libXfixes.so'
  20112. xrandr_lib='libXrandr.so'
  20113. xrender_lib='libXrender.so'
  20114. xss_lib='libXss.so'
  20115. ;;
  20116. *)
  20117. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20118. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20119. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20120. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20121. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20122. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20123. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20124. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20125. ;;
  20126. esac
  20127. if test x$ac_cv_func_shmat != xyes; then
  20128. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  20129. fi
  20130. CFLAGS="$CFLAGS $X_CFLAGS"
  20131. LDFLAGS="$LDFLAGS $X_LIBS"
  20132. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  20133. #include <X11/Xproto.h>
  20134. "
  20135. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  20136. then :
  20137. have_xext_h_hdr=yes
  20138. else $as_nop
  20139. have_xext_h_hdr=no
  20140. fi
  20141. if test x$have_xext_h_hdr != xyes; then
  20142. as_fn_error $? "
  20143. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  20144. " "$LINENO" 5
  20145. fi
  20146. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  20147. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  20148. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  20149. # Needed so SDL applications can include SDL_syswm.h
  20150. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  20151. if test x$enable_x11_shared = xmaybe; then
  20152. enable_x11_shared=yes
  20153. fi
  20154. if test x$have_loadso != xyes && \
  20155. test x$enable_x11_shared = xyes; then
  20156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  20157. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  20158. enable_x11_shared=no
  20159. fi
  20160. if test x$have_loadso = xyes && \
  20161. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  20162. echo "-- dynamic libX11 -> $x11_lib"
  20163. echo "-- dynamic libX11ext -> $x11ext_lib"
  20164. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  20165. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  20166. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  20167. else
  20168. enable_x11_shared=no
  20169. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  20170. SUMMARY_video="${SUMMARY_video} x11"
  20171. fi
  20172. have_video=yes
  20173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  20174. printf %s "checking for XGenericEvent... " >&6; }
  20175. have_XGenericEvent=no
  20176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20177. /* end confdefs.h. */
  20178. #include <X11/Xlib.h>
  20179. int
  20180. main (void)
  20181. {
  20182. Display *display;
  20183. XEvent event;
  20184. XGenericEventCookie *cookie = &event.xcookie;
  20185. XNextEvent(display, &event);
  20186. XGetEventData(display, cookie);
  20187. XFreeEventData(display, cookie);
  20188. ;
  20189. return 0;
  20190. }
  20191. _ACEOF
  20192. if ac_fn_c_try_compile "$LINENO"
  20193. then :
  20194. have_XGenericEvent=yes
  20195. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  20196. fi
  20197. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  20199. printf "%s\n" "$have_XGenericEvent" >&6; }
  20200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  20201. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  20202. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  20203. then :
  20204. printf %s "(cached) " >&6
  20205. else $as_nop
  20206. ac_check_lib_save_LIBS=$LIBS
  20207. LIBS="-lX11 $LIBS"
  20208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20209. /* end confdefs.h. */
  20210. /* Override any GCC internal prototype to avoid an error.
  20211. Use char because int might match the return type of a GCC
  20212. builtin and then its argument prototype would still apply. */
  20213. char XkbKeycodeToKeysym ();
  20214. int
  20215. main (void)
  20216. {
  20217. return XkbKeycodeToKeysym ();
  20218. ;
  20219. return 0;
  20220. }
  20221. _ACEOF
  20222. if ac_fn_c_try_link "$LINENO"
  20223. then :
  20224. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  20225. else $as_nop
  20226. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  20227. fi
  20228. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20229. conftest$ac_exeext conftest.$ac_ext
  20230. LIBS=$ac_check_lib_save_LIBS
  20231. fi
  20232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  20233. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  20234. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  20235. then :
  20236. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  20237. fi
  20238. # Check whether --enable-video-x11-xcursor was given.
  20239. if test ${enable_video_x11_xcursor+y}
  20240. then :
  20241. enableval=$enable_video_x11_xcursor;
  20242. else $as_nop
  20243. enable_video_x11_xcursor=yes
  20244. fi
  20245. if test x$enable_video_x11_xcursor = xyes; then
  20246. definitely_enable_video_x11_xcursor=no
  20247. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  20248. "
  20249. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  20250. then :
  20251. have_xcursor_h_hdr=yes
  20252. else $as_nop
  20253. have_xcursor_h_hdr=no
  20254. fi
  20255. if test x$have_xcursor_h_hdr = xyes; then
  20256. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  20257. echo "-- dynamic libXcursor -> $xcursor_lib"
  20258. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  20259. definitely_enable_video_x11_xcursor=yes
  20260. else
  20261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  20262. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  20263. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  20264. then :
  20265. printf %s "(cached) " >&6
  20266. else $as_nop
  20267. ac_check_lib_save_LIBS=$LIBS
  20268. LIBS="-lXcursor $LIBS"
  20269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20270. /* end confdefs.h. */
  20271. /* Override any GCC internal prototype to avoid an error.
  20272. Use char because int might match the return type of a GCC
  20273. builtin and then its argument prototype would still apply. */
  20274. char XcursorImageCreate ();
  20275. int
  20276. main (void)
  20277. {
  20278. return XcursorImageCreate ();
  20279. ;
  20280. return 0;
  20281. }
  20282. _ACEOF
  20283. if ac_fn_c_try_link "$LINENO"
  20284. then :
  20285. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  20286. else $as_nop
  20287. ac_cv_lib_Xcursor_XcursorImageCreate=no
  20288. fi
  20289. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20290. conftest$ac_exeext conftest.$ac_ext
  20291. LIBS=$ac_check_lib_save_LIBS
  20292. fi
  20293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  20294. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  20295. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  20296. then :
  20297. have_xcursor_lib=yes
  20298. fi
  20299. if test x$have_xcursor_lib = xyes ; then
  20300. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  20301. definitely_enable_video_x11_xcursor=yes
  20302. fi
  20303. fi
  20304. fi
  20305. fi
  20306. if test x$definitely_enable_video_x11_xcursor = xyes; then
  20307. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  20308. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  20309. fi
  20310. # Check whether --enable-video-x11-xdbe was given.
  20311. if test ${enable_video_x11_xdbe+y}
  20312. then :
  20313. enableval=$enable_video_x11_xdbe;
  20314. else $as_nop
  20315. enable_video_x11_xdbe=yes
  20316. fi
  20317. if test x$enable_video_x11_xdbe = xyes; then
  20318. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  20319. "
  20320. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  20321. then :
  20322. have_dbe_h_hdr=yes
  20323. else $as_nop
  20324. have_dbe_h_hdr=no
  20325. fi
  20326. if test x$have_dbe_h_hdr = xyes; then
  20327. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  20328. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  20329. fi
  20330. fi
  20331. # Check whether --enable-video-x11-xinput was given.
  20332. if test ${enable_video_x11_xinput+y}
  20333. then :
  20334. enableval=$enable_video_x11_xinput;
  20335. else $as_nop
  20336. enable_video_x11_xinput=yes
  20337. fi
  20338. if test x$enable_video_x11_xinput = xyes; then
  20339. definitely_enable_video_x11_xinput=no
  20340. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  20341. "
  20342. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  20343. then :
  20344. have_xinput_h_hdr=yes
  20345. else $as_nop
  20346. have_xinput_h_hdr=no
  20347. fi
  20348. if test x$have_xinput_h_hdr = xyes; then
  20349. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  20350. echo "-- dynamic libXi -> $xinput_lib"
  20351. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  20352. definitely_enable_video_x11_xinput=yes
  20353. else
  20354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  20355. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  20356. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  20357. then :
  20358. printf %s "(cached) " >&6
  20359. else $as_nop
  20360. ac_check_lib_save_LIBS=$LIBS
  20361. LIBS="-lXi $LIBS"
  20362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20363. /* end confdefs.h. */
  20364. /* Override any GCC internal prototype to avoid an error.
  20365. Use char because int might match the return type of a GCC
  20366. builtin and then its argument prototype would still apply. */
  20367. char XOpenDevice ();
  20368. int
  20369. main (void)
  20370. {
  20371. return XOpenDevice ();
  20372. ;
  20373. return 0;
  20374. }
  20375. _ACEOF
  20376. if ac_fn_c_try_link "$LINENO"
  20377. then :
  20378. ac_cv_lib_Xi_XOpenDevice=yes
  20379. else $as_nop
  20380. ac_cv_lib_Xi_XOpenDevice=no
  20381. fi
  20382. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20383. conftest$ac_exeext conftest.$ac_ext
  20384. LIBS=$ac_check_lib_save_LIBS
  20385. fi
  20386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  20387. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  20388. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  20389. then :
  20390. have_xinput_lib=yes
  20391. fi
  20392. if test x$have_xinput_lib = xyes ; then
  20393. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  20394. definitely_enable_video_x11_xinput=yes
  20395. fi
  20396. fi
  20397. fi
  20398. fi
  20399. if test x$definitely_enable_video_x11_xinput = xyes; then
  20400. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  20401. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  20402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  20403. printf %s "checking for xinput2 multitouch... " >&6; }
  20404. have_xinput2_multitouch=no
  20405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20406. /* end confdefs.h. */
  20407. #include <X11/Xlib.h>
  20408. #include <X11/Xproto.h>
  20409. #include <X11/extensions/XInput2.h>
  20410. int
  20411. main (void)
  20412. {
  20413. int event_type = XI_TouchBegin;
  20414. XITouchClassInfo *t;
  20415. ;
  20416. return 0;
  20417. }
  20418. _ACEOF
  20419. if ac_fn_c_try_compile "$LINENO"
  20420. then :
  20421. have_xinput2_multitouch=yes
  20422. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  20423. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  20424. fi
  20425. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  20427. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  20428. fi
  20429. # Check whether --enable-video-x11-xfixes was given.
  20430. if test ${enable_video_x11_xfixes+y}
  20431. then :
  20432. enableval=$enable_video_x11_xfixes;
  20433. else $as_nop
  20434. enable_video_x11_xfixes=yes
  20435. fi
  20436. if test x$enable_video_x11_xfixes = xyes; then
  20437. definitely_enable_video_x11_xfixes=no
  20438. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  20439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  20440. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  20441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20442. /* end confdefs.h. */
  20443. #include <X11/Xlib.h>
  20444. #include <X11/Xproto.h>
  20445. #include <X11/extensions/XInput2.h>
  20446. #include <X11/extensions/Xfixes.h>
  20447. int
  20448. main (void)
  20449. {
  20450. BarrierEventID b;
  20451. ;
  20452. return 0;
  20453. }
  20454. _ACEOF
  20455. if ac_fn_c_try_compile "$LINENO"
  20456. then :
  20457. have_xfixes_h_hdr=yes
  20458. else $as_nop
  20459. have_xfixes_h_hdr=no
  20460. fi
  20461. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  20463. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  20464. if test x$have_xfixes_h_hdr = xyes; then
  20465. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  20466. echo "-- dynamic libXfixes -> $xfixes_lib"
  20467. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  20468. definitely_enable_video_x11_xfixes=yes
  20469. else
  20470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  20471. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  20472. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  20473. then :
  20474. printf %s "(cached) " >&6
  20475. else $as_nop
  20476. ac_check_lib_save_LIBS=$LIBS
  20477. LIBS="-lXfixes $LIBS"
  20478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20479. /* end confdefs.h. */
  20480. /* Override any GCC internal prototype to avoid an error.
  20481. Use char because int might match the return type of a GCC
  20482. builtin and then its argument prototype would still apply. */
  20483. char XFixesCreatePointerBarrier ();
  20484. int
  20485. main (void)
  20486. {
  20487. return XFixesCreatePointerBarrier ();
  20488. ;
  20489. return 0;
  20490. }
  20491. _ACEOF
  20492. if ac_fn_c_try_link "$LINENO"
  20493. then :
  20494. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  20495. else $as_nop
  20496. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  20497. fi
  20498. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20499. conftest$ac_exeext conftest.$ac_ext
  20500. LIBS=$ac_check_lib_save_LIBS
  20501. fi
  20502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  20503. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  20504. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  20505. then :
  20506. have_xfixes_lib=yes
  20507. fi
  20508. if test x$have_xfixes_lib = xyes ; then
  20509. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  20510. definitely_enable_video_x11_xfixes=yes
  20511. fi
  20512. fi
  20513. fi
  20514. fi
  20515. if test x$definitely_enable_video_x11_xfixes = xyes; then
  20516. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  20517. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  20518. fi
  20519. # Check whether --enable-video-x11-xrandr was given.
  20520. if test ${enable_video_x11_xrandr+y}
  20521. then :
  20522. enableval=$enable_video_x11_xrandr;
  20523. else $as_nop
  20524. enable_video_x11_xrandr=yes
  20525. fi
  20526. if test x$enable_video_x11_xrandr = xyes; then
  20527. definitely_enable_video_x11_xrandr=no
  20528. have_xrandr_h_hdr=no
  20529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20530. /* end confdefs.h. */
  20531. #include <X11/Xlib.h>
  20532. #include <X11/extensions/Xrandr.h>
  20533. int
  20534. main (void)
  20535. {
  20536. XRRScreenResources *res = NULL;
  20537. ;
  20538. return 0;
  20539. }
  20540. _ACEOF
  20541. if ac_fn_c_try_compile "$LINENO"
  20542. then :
  20543. have_xrandr_h_hdr=yes
  20544. fi
  20545. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20546. if test x$have_xrandr_h_hdr = xyes; then
  20547. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  20548. echo "-- dynamic libXrandr -> $xrandr_lib"
  20549. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  20550. definitely_enable_video_x11_xrandr=yes
  20551. else
  20552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  20553. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  20554. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  20555. then :
  20556. printf %s "(cached) " >&6
  20557. else $as_nop
  20558. ac_check_lib_save_LIBS=$LIBS
  20559. LIBS="-lXrandr $LIBS"
  20560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20561. /* end confdefs.h. */
  20562. /* Override any GCC internal prototype to avoid an error.
  20563. Use char because int might match the return type of a GCC
  20564. builtin and then its argument prototype would still apply. */
  20565. char XRRQueryExtension ();
  20566. int
  20567. main (void)
  20568. {
  20569. return XRRQueryExtension ();
  20570. ;
  20571. return 0;
  20572. }
  20573. _ACEOF
  20574. if ac_fn_c_try_link "$LINENO"
  20575. then :
  20576. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  20577. else $as_nop
  20578. ac_cv_lib_Xrandr_XRRQueryExtension=no
  20579. fi
  20580. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20581. conftest$ac_exeext conftest.$ac_ext
  20582. LIBS=$ac_check_lib_save_LIBS
  20583. fi
  20584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  20585. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  20586. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  20587. then :
  20588. have_xrandr_lib=yes
  20589. fi
  20590. if test x$have_xrandr_lib = xyes ; then
  20591. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  20592. definitely_enable_video_x11_xrandr=yes
  20593. fi
  20594. fi
  20595. fi
  20596. fi
  20597. if test x$definitely_enable_video_x11_xrandr = xyes; then
  20598. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  20599. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  20600. fi
  20601. # Check whether --enable-video-x11-scrnsaver was given.
  20602. if test ${enable_video_x11_scrnsaver+y}
  20603. then :
  20604. enableval=$enable_video_x11_scrnsaver;
  20605. else $as_nop
  20606. enable_video_x11_scrnsaver=yes
  20607. fi
  20608. if test x$enable_video_x11_scrnsaver = xyes; then
  20609. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  20610. "
  20611. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  20612. then :
  20613. have_scrnsaver_h_hdr=yes
  20614. else $as_nop
  20615. have_scrnsaver_h_hdr=no
  20616. fi
  20617. if test x$have_scrnsaver_h_hdr = xyes; then
  20618. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  20619. echo "-- dynamic libXss -> $xss_lib"
  20620. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  20621. definitely_enable_video_x11_scrnsaver=yes
  20622. else
  20623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  20624. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  20625. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  20626. then :
  20627. printf %s "(cached) " >&6
  20628. else $as_nop
  20629. ac_check_lib_save_LIBS=$LIBS
  20630. LIBS="-lXss $LIBS"
  20631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20632. /* end confdefs.h. */
  20633. /* Override any GCC internal prototype to avoid an error.
  20634. Use char because int might match the return type of a GCC
  20635. builtin and then its argument prototype would still apply. */
  20636. char XScreenSaverSuspend ();
  20637. int
  20638. main (void)
  20639. {
  20640. return XScreenSaverSuspend ();
  20641. ;
  20642. return 0;
  20643. }
  20644. _ACEOF
  20645. if ac_fn_c_try_link "$LINENO"
  20646. then :
  20647. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  20648. else $as_nop
  20649. ac_cv_lib_Xss_XScreenSaverSuspend=no
  20650. fi
  20651. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20652. conftest$ac_exeext conftest.$ac_ext
  20653. LIBS=$ac_check_lib_save_LIBS
  20654. fi
  20655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  20656. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  20657. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  20658. then :
  20659. have_xss_lib=yes
  20660. fi
  20661. if test x$have_xss_lib = xyes ; then
  20662. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  20663. definitely_enable_video_x11_scrnsaver=yes
  20664. fi
  20665. fi
  20666. fi
  20667. fi
  20668. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  20669. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  20670. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  20671. fi
  20672. # Check whether --enable-video-x11-xshape was given.
  20673. if test ${enable_video_x11_xshape+y}
  20674. then :
  20675. enableval=$enable_video_x11_xshape;
  20676. else $as_nop
  20677. enable_video_x11_xshape=yes
  20678. fi
  20679. if test x$enable_video_x11_xshape = xyes; then
  20680. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  20681. "
  20682. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  20683. then :
  20684. have_shape_h_hdr=yes
  20685. else $as_nop
  20686. have_shape_h_hdr=no
  20687. fi
  20688. if test x$have_shape_h_hdr = xyes; then
  20689. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  20690. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  20691. fi
  20692. fi
  20693. fi
  20694. fi
  20695. if test x$have_x != xyes; then
  20696. # Prevent Mesa from including X11 headers
  20697. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  20698. fi
  20699. }
  20700. CheckVivanteVideo()
  20701. {
  20702. # Check whether --enable-video-vivante was given.
  20703. if test ${enable_video_vivante+y}
  20704. then :
  20705. enableval=$enable_video_vivante;
  20706. else $as_nop
  20707. enable_video_vivante=yes
  20708. fi
  20709. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  20710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  20711. printf %s "checking for Vivante VDK API... " >&6; }
  20712. have_vivante_vdk=no
  20713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20714. /* end confdefs.h. */
  20715. #define LINUX
  20716. #define EGL_API_FB
  20717. #include <gc_vdk.h>
  20718. int
  20719. main (void)
  20720. {
  20721. ;
  20722. return 0;
  20723. }
  20724. _ACEOF
  20725. if ac_fn_c_try_compile "$LINENO"
  20726. then :
  20727. have_vivante_vdk=yes
  20728. fi
  20729. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  20731. printf "%s\n" "$have_vivante_vdk" >&6; }
  20732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  20733. printf %s "checking for Vivante FB API... " >&6; }
  20734. have_vivante_egl=no
  20735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20736. /* end confdefs.h. */
  20737. #define LINUX
  20738. #define EGL_API_FB
  20739. #include <EGL/eglvivante.h>
  20740. int
  20741. main (void)
  20742. {
  20743. ;
  20744. return 0;
  20745. }
  20746. _ACEOF
  20747. if ac_fn_c_try_compile "$LINENO"
  20748. then :
  20749. have_vivante_egl=yes
  20750. fi
  20751. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  20753. printf "%s\n" "$have_vivante_egl" >&6; }
  20754. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  20755. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  20756. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  20757. if test x$have_vivante_vdk = xyes; then
  20758. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  20759. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  20760. fi
  20761. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  20762. SUMMARY_video="${SUMMARY_video} vivante"
  20763. have_video=yes
  20764. fi
  20765. fi
  20766. }
  20767. CheckHaikuVideo()
  20768. {
  20769. if test x$enable_video = xyes; then
  20770. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  20771. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  20772. have_video=yes
  20773. SUMMARY_video="${SUMMARY_video} haiku"
  20774. fi
  20775. }
  20776. CheckCOCOA()
  20777. {
  20778. # Check whether --enable-video-cocoa was given.
  20779. if test ${enable_video_cocoa+y}
  20780. then :
  20781. enableval=$enable_video_cocoa;
  20782. else $as_nop
  20783. enable_video_cocoa=yes
  20784. fi
  20785. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  20786. save_CFLAGS="$CFLAGS"
  20787. CFLAGS="$CFLAGS -x objective-c"
  20788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  20789. printf %s "checking for Cocoa framework... " >&6; }
  20790. have_cocoa=no
  20791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20792. /* end confdefs.h. */
  20793. #import <Cocoa/Cocoa.h>
  20794. int
  20795. main (void)
  20796. {
  20797. ;
  20798. return 0;
  20799. }
  20800. _ACEOF
  20801. if ac_fn_c_try_compile "$LINENO"
  20802. then :
  20803. have_cocoa=yes
  20804. fi
  20805. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  20807. printf "%s\n" "$have_cocoa" >&6; }
  20808. CFLAGS="$save_CFLAGS"
  20809. if test x$have_cocoa = xyes; then
  20810. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  20811. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  20812. SUMMARY_video="${SUMMARY_video} cocoa"
  20813. have_video=yes
  20814. fi
  20815. fi
  20816. }
  20817. CheckMETAL()
  20818. {
  20819. # Check whether --enable-video-metal was given.
  20820. if test ${enable_video_metal+y}
  20821. then :
  20822. enableval=$enable_video_metal;
  20823. else $as_nop
  20824. enable_video_metal=yes
  20825. fi
  20826. # Check whether --enable-render-metal was given.
  20827. if test ${enable_render_metal+y}
  20828. then :
  20829. enableval=$enable_render_metal;
  20830. else $as_nop
  20831. enable_render_metal=yes
  20832. fi
  20833. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  20834. save_CFLAGS="$CFLAGS"
  20835. CFLAGS="$CFLAGS -x objective-c"
  20836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  20837. printf %s "checking for Metal framework... " >&6; }
  20838. have_metal=no
  20839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20840. /* end confdefs.h. */
  20841. #import <Cocoa/Cocoa.h>
  20842. #import <Metal/Metal.h>
  20843. #import <QuartzCore/CAMetalLayer.h>
  20844. #if TARGET_CPU_X86
  20845. #error Metal doesn't work on this configuration
  20846. #endif
  20847. int
  20848. main (void)
  20849. {
  20850. ;
  20851. return 0;
  20852. }
  20853. _ACEOF
  20854. if ac_fn_c_try_compile "$LINENO"
  20855. then :
  20856. have_metal=yes
  20857. fi
  20858. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20859. CFLAGS="$save_CFLAGS"
  20860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  20861. printf "%s\n" "$have_metal" >&6; }
  20862. if test x$have_metal = xyes; then
  20863. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  20864. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  20865. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  20866. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  20867. fi
  20868. SUMMARY_video="${SUMMARY_video} metal"
  20869. else
  20870. enable_video_metal=no
  20871. enable_render_metal=no
  20872. fi
  20873. fi
  20874. }
  20875. CheckKMSDRM()
  20876. {
  20877. # Check whether --enable-video-kmsdrm was given.
  20878. if test ${enable_video_kmsdrm+y}
  20879. then :
  20880. enableval=$enable_video_kmsdrm;
  20881. else $as_nop
  20882. enable_video_kmsdrm=yes
  20883. fi
  20884. if test x$enable_video = xyes && \
  20885. test x$enable_video_kmsdrm = xyes && \
  20886. test x$video_opengl_egl = xyes; then
  20887. video_kmsdrm=no
  20888. pkg_failed=no
  20889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  20890. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  20891. if test -n "$LIBDRM_CFLAGS"; then
  20892. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  20893. elif test -n "$PKG_CONFIG"; then
  20894. if test -n "$PKG_CONFIG" && \
  20895. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  20896. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  20897. ac_status=$?
  20898. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20899. test $ac_status = 0; }; then
  20900. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  20901. test "x$?" != "x0" && pkg_failed=yes
  20902. else
  20903. pkg_failed=yes
  20904. fi
  20905. else
  20906. pkg_failed=untried
  20907. fi
  20908. if test -n "$LIBDRM_LIBS"; then
  20909. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  20910. elif test -n "$PKG_CONFIG"; then
  20911. if test -n "$PKG_CONFIG" && \
  20912. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  20913. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  20914. ac_status=$?
  20915. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20916. test $ac_status = 0; }; then
  20917. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  20918. test "x$?" != "x0" && pkg_failed=yes
  20919. else
  20920. pkg_failed=yes
  20921. fi
  20922. else
  20923. pkg_failed=untried
  20924. fi
  20925. if test $pkg_failed = yes; then
  20926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20927. printf "%s\n" "no" >&6; }
  20928. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20929. _pkg_short_errors_supported=yes
  20930. else
  20931. _pkg_short_errors_supported=no
  20932. fi
  20933. if test $_pkg_short_errors_supported = yes; then
  20934. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  20935. else
  20936. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  20937. fi
  20938. # Put the nasty error message in config.log where it belongs
  20939. echo "$LIBDRM_PKG_ERRORS" >&5
  20940. libdrm_avail=no
  20941. elif test $pkg_failed = untried; then
  20942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20943. printf "%s\n" "no" >&6; }
  20944. libdrm_avail=no
  20945. else
  20946. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  20947. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  20948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20949. printf "%s\n" "yes" >&6; }
  20950. libdrm_avail=yes
  20951. fi
  20952. pkg_failed=no
  20953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  20954. printf %s "checking for gbm >= 11.1.0... " >&6; }
  20955. if test -n "$LIBGBM_CFLAGS"; then
  20956. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  20957. elif test -n "$PKG_CONFIG"; then
  20958. if test -n "$PKG_CONFIG" && \
  20959. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  20960. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  20961. ac_status=$?
  20962. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20963. test $ac_status = 0; }; then
  20964. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  20965. test "x$?" != "x0" && pkg_failed=yes
  20966. else
  20967. pkg_failed=yes
  20968. fi
  20969. else
  20970. pkg_failed=untried
  20971. fi
  20972. if test -n "$LIBGBM_LIBS"; then
  20973. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  20974. elif test -n "$PKG_CONFIG"; then
  20975. if test -n "$PKG_CONFIG" && \
  20976. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  20977. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  20978. ac_status=$?
  20979. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20980. test $ac_status = 0; }; then
  20981. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  20982. test "x$?" != "x0" && pkg_failed=yes
  20983. else
  20984. pkg_failed=yes
  20985. fi
  20986. else
  20987. pkg_failed=untried
  20988. fi
  20989. if test $pkg_failed = yes; then
  20990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20991. printf "%s\n" "no" >&6; }
  20992. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20993. _pkg_short_errors_supported=yes
  20994. else
  20995. _pkg_short_errors_supported=no
  20996. fi
  20997. if test $_pkg_short_errors_supported = yes; then
  20998. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  20999. else
  21000. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21001. fi
  21002. # Put the nasty error message in config.log where it belongs
  21003. echo "$LIBGBM_PKG_ERRORS" >&5
  21004. libgbm_avail=no
  21005. elif test $pkg_failed = untried; then
  21006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21007. printf "%s\n" "no" >&6; }
  21008. libgbm_avail=no
  21009. else
  21010. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  21011. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  21012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21013. printf "%s\n" "yes" >&6; }
  21014. libgbm_avail=yes
  21015. fi
  21016. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  21017. video_kmsdrm=yes
  21018. fi
  21019. if test x$video_kmsdrm = xyes; then
  21020. # Check whether --enable-kmsdrm-shared was given.
  21021. if test ${enable_kmsdrm_shared+y}
  21022. then :
  21023. enableval=$enable_kmsdrm_shared;
  21024. else $as_nop
  21025. enable_kmsdrm_shared=yes
  21026. fi
  21027. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  21028. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  21029. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  21030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  21031. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  21032. kmsdrm_shared=no
  21033. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  21034. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  21035. if test x$have_loadso != xyes && \
  21036. test x$enable_kmsdrm_shared = xyes; then
  21037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  21038. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  21039. fi
  21040. if test x$have_loadso = xyes && \
  21041. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  21042. kmsdrm_shared=yes
  21043. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  21044. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  21045. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  21046. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  21047. else
  21048. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  21049. SUMMARY_video="${SUMMARY_video} kmsdrm"
  21050. fi
  21051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  21052. printf "%s\n" "$kmsdrm_shared" >&6; }
  21053. if test x$kmsdrm_shared = xyes; then
  21054. echo "-- dynamic libdrm -> $drm_lib"
  21055. echo "-- dynamic libgbm -> $gbm_lib"
  21056. fi
  21057. have_video=yes
  21058. fi
  21059. fi
  21060. }
  21061. CheckDummyVideo()
  21062. {
  21063. # Check whether --enable-video-dummy was given.
  21064. if test ${enable_video_dummy+y}
  21065. then :
  21066. enableval=$enable_video_dummy;
  21067. else $as_nop
  21068. enable_video_dummy=yes
  21069. fi
  21070. if test x$enable_video_dummy = xyes; then
  21071. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  21072. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  21073. have_video=yes
  21074. SUMMARY_video="${SUMMARY_video} dummy"
  21075. fi
  21076. }
  21077. CheckOffscreenVideo()
  21078. {
  21079. # Check whether --enable-video-offscreen was given.
  21080. if test ${enable_video_offscreen+y}
  21081. then :
  21082. enableval=$enable_video_offscreen;
  21083. else $as_nop
  21084. enable_video_offscreen=yes
  21085. fi
  21086. if test x$enable_video_offscreen = xyes; then
  21087. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  21088. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  21089. have_video=yes
  21090. SUMMARY_video="${SUMMARY_video} offscreen"
  21091. fi
  21092. }
  21093. # Check whether --enable-video-opengl was given.
  21094. if test ${enable_video_opengl+y}
  21095. then :
  21096. enableval=$enable_video_opengl;
  21097. else $as_nop
  21098. enable_video_opengl=yes
  21099. fi
  21100. CheckGLX()
  21101. {
  21102. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  21104. printf %s "checking for GLX support... " >&6; }
  21105. video_opengl_glx=no
  21106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21107. /* end confdefs.h. */
  21108. #include <GL/glx.h>
  21109. int
  21110. main (void)
  21111. {
  21112. ;
  21113. return 0;
  21114. }
  21115. _ACEOF
  21116. if ac_fn_c_try_compile "$LINENO"
  21117. then :
  21118. video_opengl_glx=yes
  21119. fi
  21120. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  21122. printf "%s\n" "$video_opengl_glx" >&6; }
  21123. if test x$video_opengl_glx = xyes; then
  21124. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21125. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  21126. fi
  21127. fi
  21128. }
  21129. # Check whether --enable-video-opengles was given.
  21130. if test ${enable_video_opengles+y}
  21131. then :
  21132. enableval=$enable_video_opengles;
  21133. else $as_nop
  21134. enable_video_opengles=yes
  21135. fi
  21136. # Check whether --enable-video-opengles2 was given.
  21137. if test ${enable_video_opengles2+y}
  21138. then :
  21139. enableval=$enable_video_opengles2;
  21140. else $as_nop
  21141. enable_video_opengles2=yes
  21142. fi
  21143. CheckEGL()
  21144. {
  21145. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21147. printf %s "checking for EGL support... " >&6; }
  21148. video_opengl_egl=no
  21149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21150. /* end confdefs.h. */
  21151. #define LINUX
  21152. #define EGL_API_FB
  21153. #define MESA_EGL_NO_X11_HEADERS
  21154. #define EGL_NO_X11
  21155. #include <EGL/egl.h>
  21156. #include <EGL/eglext.h>
  21157. int
  21158. main (void)
  21159. {
  21160. ;
  21161. return 0;
  21162. }
  21163. _ACEOF
  21164. if ac_fn_c_try_compile "$LINENO"
  21165. then :
  21166. video_opengl_egl=yes
  21167. fi
  21168. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21170. printf "%s\n" "$video_opengl_egl" >&6; }
  21171. if test x$video_opengl_egl = xyes; then
  21172. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21173. fi
  21174. fi
  21175. }
  21176. CheckOpenGL()
  21177. {
  21178. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  21180. printf %s "checking for OpenGL headers... " >&6; }
  21181. video_opengl=no
  21182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21183. /* end confdefs.h. */
  21184. #include <GL/gl.h>
  21185. #include <GL/glext.h>
  21186. int
  21187. main (void)
  21188. {
  21189. ;
  21190. return 0;
  21191. }
  21192. _ACEOF
  21193. if ac_fn_c_try_compile "$LINENO"
  21194. then :
  21195. video_opengl=yes
  21196. fi
  21197. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  21199. printf "%s\n" "$video_opengl" >&6; }
  21200. if test x$video_opengl = xyes; then
  21201. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21202. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21203. SUMMARY_video="${SUMMARY_video} opengl"
  21204. fi
  21205. fi
  21206. }
  21207. CheckOpenGLES()
  21208. {
  21209. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21210. if test x$enable_video_opengles2 = xyes; then
  21211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21212. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21213. video_opengles_v2=no
  21214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21215. /* end confdefs.h. */
  21216. #include <GLES2/gl2.h>
  21217. #include <GLES2/gl2ext.h>
  21218. int
  21219. main (void)
  21220. {
  21221. ;
  21222. return 0;
  21223. }
  21224. _ACEOF
  21225. if ac_fn_c_try_compile "$LINENO"
  21226. then :
  21227. video_opengles_v2=yes
  21228. fi
  21229. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21231. printf "%s\n" "$video_opengles_v2" >&6; }
  21232. if test x$video_opengles_v2 = xyes; then
  21233. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21234. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21235. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21236. fi
  21237. fi
  21238. fi
  21239. }
  21240. CheckWINDOWSGL()
  21241. {
  21242. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21243. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21244. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  21245. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21246. SUMMARY_video="${SUMMARY_video} opengl"
  21247. fi
  21248. }
  21249. CheckWINDOWSGLES()
  21250. {
  21251. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21253. printf %s "checking for EGL support... " >&6; }
  21254. video_opengl_egl=no
  21255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21256. /* end confdefs.h. */
  21257. #include <EGL/egl.h>
  21258. int
  21259. main (void)
  21260. {
  21261. ;
  21262. return 0;
  21263. }
  21264. _ACEOF
  21265. if ac_fn_c_try_compile "$LINENO"
  21266. then :
  21267. video_opengl_egl=yes
  21268. fi
  21269. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21271. printf "%s\n" "$video_opengl_egl" >&6; }
  21272. if test x$video_opengl_egl = xyes; then
  21273. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21274. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21275. SUMMARY_video="${SUMMARY_video} opengl_es1"
  21276. fi
  21277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21278. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21279. video_opengles_v2=no
  21280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21281. /* end confdefs.h. */
  21282. #include <GLES2/gl2.h>
  21283. #include <GLES2/gl2ext.h>
  21284. int
  21285. main (void)
  21286. {
  21287. ;
  21288. return 0;
  21289. }
  21290. _ACEOF
  21291. if ac_fn_c_try_compile "$LINENO"
  21292. then :
  21293. video_opengles_v2=yes
  21294. fi
  21295. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21297. printf "%s\n" "$video_opengles_v2" >&6; }
  21298. if test x$video_opengles_v2 = xyes; then
  21299. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21300. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21301. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21302. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21303. fi
  21304. fi
  21305. }
  21306. CheckHaikuGL()
  21307. {
  21308. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21309. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21310. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  21311. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21312. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  21313. SUMMARY_video="${SUMMARY_video} opengl"
  21314. fi
  21315. }
  21316. CheckMacGL()
  21317. {
  21318. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21319. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21320. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  21321. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21322. SUMMARY_video="${SUMMARY_video} opengl"
  21323. fi
  21324. }
  21325. CheckMacGLES()
  21326. {
  21327. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21328. video_opengl_egl=yes
  21329. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21330. video_opengles_v2=yes
  21331. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21332. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21333. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21334. fi
  21335. }
  21336. CheckEmscriptenGLES()
  21337. {
  21338. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21340. printf %s "checking for EGL support... " >&6; }
  21341. video_opengl_egl=no
  21342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21343. /* end confdefs.h. */
  21344. #include <EGL/egl.h>
  21345. int
  21346. main (void)
  21347. {
  21348. ;
  21349. return 0;
  21350. }
  21351. _ACEOF
  21352. if ac_fn_c_try_compile "$LINENO"
  21353. then :
  21354. video_opengl_egl=yes
  21355. fi
  21356. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21358. printf "%s\n" "$video_opengl_egl" >&6; }
  21359. if test x$video_opengl_egl = xyes; then
  21360. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21361. fi
  21362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21363. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21364. video_opengles_v2=no
  21365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21366. /* end confdefs.h. */
  21367. #include <GLES2/gl2.h>
  21368. #include <GLES2/gl2ext.h>
  21369. int
  21370. main (void)
  21371. {
  21372. ;
  21373. return 0;
  21374. }
  21375. _ACEOF
  21376. if ac_fn_c_try_compile "$LINENO"
  21377. then :
  21378. video_opengles_v2=yes
  21379. fi
  21380. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21382. printf "%s\n" "$video_opengles_v2" >&6; }
  21383. if test x$video_opengles_v2 = xyes; then
  21384. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21385. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21386. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21387. fi
  21388. fi
  21389. }
  21390. # Check whether --enable-video-vulkan was given.
  21391. if test ${enable_video_vulkan+y}
  21392. then :
  21393. enableval=$enable_video_vulkan;
  21394. else $as_nop
  21395. enable_video_vulkan=yes
  21396. fi
  21397. CheckVulkan()
  21398. {
  21399. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  21400. case "$host" in
  21401. *-*-android*)
  21402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21403. /* end confdefs.h. */
  21404. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  21405. #error Vulkan doesn't work on this configuration
  21406. #endif
  21407. int
  21408. main (void)
  21409. {
  21410. ;
  21411. return 0;
  21412. }
  21413. _ACEOF
  21414. if ac_fn_c_try_compile "$LINENO"
  21415. then :
  21416. else $as_nop
  21417. enable_video_vulkan=no
  21418. fi
  21419. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21420. ;;
  21421. *-*-darwin*)
  21422. save_CFLAGS="$CFLAGS"
  21423. CFLAGS="$CFLAGS -x objective-c"
  21424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21425. /* end confdefs.h. */
  21426. #include <Cocoa/Cocoa.h>
  21427. #include <Metal/Metal.h>
  21428. #include <QuartzCore/CAMetalLayer.h>
  21429. #if TARGET_CPU_X86
  21430. #error Vulkan doesn't work on this configuration
  21431. #endif
  21432. int
  21433. main (void)
  21434. {
  21435. ;
  21436. return 0;
  21437. }
  21438. _ACEOF
  21439. if ac_fn_c_try_compile "$LINENO"
  21440. then :
  21441. else $as_nop
  21442. enable_video_vulkan=no
  21443. fi
  21444. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21445. CFLAGS="$save_CFLAGS"
  21446. ;;
  21447. *)
  21448. ;;
  21449. esac
  21450. if test x$enable_video_vulkan = xno; then
  21451. # For reasons I am totally unable to see, I get an undefined macro error if
  21452. # I put this in the AC_TRY_COMPILE.
  21453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  21454. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  21455. fi
  21456. fi
  21457. if test x$have_loadso != xyes; then
  21458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  21459. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  21460. enable_video_vulkan=no
  21461. fi
  21462. if test x$enable_video_vulkan = xyes; then
  21463. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  21464. SUMMARY_video="${SUMMARY_video} vulkan"
  21465. fi
  21466. }
  21467. CheckInputEvents()
  21468. {
  21469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  21470. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  21471. use_input_events=no
  21472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21473. /* end confdefs.h. */
  21474. #include <linux/input.h>
  21475. int
  21476. main (void)
  21477. {
  21478. #ifndef EVIOCGNAME
  21479. #error EVIOCGNAME() ioctl not available
  21480. #endif
  21481. ;
  21482. return 0;
  21483. }
  21484. _ACEOF
  21485. if ac_fn_c_try_compile "$LINENO"
  21486. then :
  21487. use_input_events=yes
  21488. fi
  21489. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  21491. printf "%s\n" "$use_input_events" >&6; }
  21492. if test x$use_input_events = xyes; then
  21493. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  21494. SUMMARY_input="${SUMMARY_input} linuxev"
  21495. fi
  21496. }
  21497. CheckInputKD()
  21498. {
  21499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  21500. printf %s "checking for Linux kd.h... " >&6; }
  21501. use_input_kd=no
  21502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21503. /* end confdefs.h. */
  21504. #include <linux/kd.h>
  21505. #include <linux/keyboard.h>
  21506. #include <sys/ioctl.h>
  21507. int
  21508. main (void)
  21509. {
  21510. struct kbentry kbe;
  21511. kbe.kb_table = KG_CTRL;
  21512. ioctl(0, KDGKBENT, &kbe);
  21513. ;
  21514. return 0;
  21515. }
  21516. _ACEOF
  21517. if ac_fn_c_try_compile "$LINENO"
  21518. then :
  21519. use_input_kd=yes
  21520. fi
  21521. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  21523. printf "%s\n" "$use_input_kd" >&6; }
  21524. if test x$use_input_kd = xyes; then
  21525. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  21526. SUMMARY_input="${SUMMARY_input} linuxkd"
  21527. fi
  21528. }
  21529. CheckInputKBIO()
  21530. {
  21531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  21532. printf %s "checking for FreeBSD kbio.h... " >&6; }
  21533. use_input_kbio=no
  21534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21535. /* end confdefs.h. */
  21536. #include <sys/kbio.h>
  21537. #include <sys/ioctl.h>
  21538. int
  21539. main (void)
  21540. {
  21541. accentmap_t accTable;
  21542. ioctl(0, KDENABIO, 1);
  21543. ;
  21544. return 0;
  21545. }
  21546. _ACEOF
  21547. if ac_fn_c_try_compile "$LINENO"
  21548. then :
  21549. use_input_kbio=yes
  21550. fi
  21551. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  21553. printf "%s\n" "$use_input_kbio" >&6; }
  21554. if test x$use_input_kbio = xyes; then
  21555. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  21556. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  21557. fi
  21558. }
  21559. CheckInputWSCONS()
  21560. {
  21561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  21562. printf %s "checking for OpenBSD wscons... " >&6; }
  21563. use_input_wscons=no
  21564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21565. /* end confdefs.h. */
  21566. #include <sys/time.h>
  21567. #include <dev/wscons/wsconsio.h>
  21568. #include <dev/wscons/wsksymdef.h>
  21569. #include <dev/wscons/wsksymvar.h>
  21570. #include <sys/ioctl.h>
  21571. int
  21572. main (void)
  21573. {
  21574. struct wskbd_map_data data;
  21575. ioctl(0, WSKBDIO_GETMAP, &data);
  21576. ;
  21577. return 0;
  21578. }
  21579. _ACEOF
  21580. if ac_fn_c_try_compile "$LINENO"
  21581. then :
  21582. use_input_wscons=yes
  21583. fi
  21584. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  21586. printf "%s\n" "$use_input_wscons" >&6; }
  21587. if test x$use_input_wscons = xyes; then
  21588. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  21589. SUMMARY_input="${SUMMARY_input} wscons"
  21590. fi
  21591. }
  21592. CheckLibUDev()
  21593. {
  21594. # Check whether --enable-libudev was given.
  21595. if test ${enable_libudev+y}
  21596. then :
  21597. enableval=$enable_libudev;
  21598. else $as_nop
  21599. enable_libudev=yes
  21600. fi
  21601. if test x$enable_libudev = xyes; then
  21602. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  21603. if test "x$ac_cv_header_libudev_h" = xyes
  21604. then :
  21605. have_libudev_h_hdr=yes
  21606. else $as_nop
  21607. have_libudev_h_hdr=no
  21608. fi
  21609. if test x$have_libudev_h_hdr = xyes; then
  21610. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  21611. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21612. if test x$udev_lib != x; then
  21613. echo "-- dynamic udev -> $udev_lib"
  21614. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  21615. fi
  21616. fi
  21617. fi
  21618. }
  21619. CheckDBus()
  21620. {
  21621. # Check whether --enable-dbus was given.
  21622. if test ${enable_dbus+y}
  21623. then :
  21624. enableval=$enable_dbus;
  21625. else $as_nop
  21626. enable_dbus=yes
  21627. fi
  21628. if test x$enable_dbus = xyes; then
  21629. pkg_failed=no
  21630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  21631. printf %s "checking for dbus-1... " >&6; }
  21632. if test -n "$DBUS_CFLAGS"; then
  21633. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  21634. elif test -n "$PKG_CONFIG"; then
  21635. if test -n "$PKG_CONFIG" && \
  21636. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  21637. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  21638. ac_status=$?
  21639. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21640. test $ac_status = 0; }; then
  21641. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  21642. test "x$?" != "x0" && pkg_failed=yes
  21643. else
  21644. pkg_failed=yes
  21645. fi
  21646. else
  21647. pkg_failed=untried
  21648. fi
  21649. if test -n "$DBUS_LIBS"; then
  21650. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  21651. elif test -n "$PKG_CONFIG"; then
  21652. if test -n "$PKG_CONFIG" && \
  21653. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  21654. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  21655. ac_status=$?
  21656. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21657. test $ac_status = 0; }; then
  21658. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  21659. test "x$?" != "x0" && pkg_failed=yes
  21660. else
  21661. pkg_failed=yes
  21662. fi
  21663. else
  21664. pkg_failed=untried
  21665. fi
  21666. if test $pkg_failed = yes; then
  21667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21668. printf "%s\n" "no" >&6; }
  21669. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21670. _pkg_short_errors_supported=yes
  21671. else
  21672. _pkg_short_errors_supported=no
  21673. fi
  21674. if test $_pkg_short_errors_supported = yes; then
  21675. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  21676. else
  21677. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  21678. fi
  21679. # Put the nasty error message in config.log where it belongs
  21680. echo "$DBUS_PKG_ERRORS" >&5
  21681. have_dbus=no
  21682. elif test $pkg_failed = untried; then
  21683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21684. printf "%s\n" "no" >&6; }
  21685. have_dbus=no
  21686. else
  21687. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  21688. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  21689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21690. printf "%s\n" "yes" >&6; }
  21691. have_dbus=yes
  21692. fi
  21693. save_CPPFLAGS="$CPPFLAGS"
  21694. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  21695. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  21696. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  21697. then :
  21698. have_dbus_dbus_h_hdr=yes
  21699. else $as_nop
  21700. have_dbus_dbus_h_hdr=no
  21701. fi
  21702. CPPFLAGS="$save_CPPFLAGS"
  21703. if test x$have_dbus_dbus_h_hdr = xyes; then
  21704. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  21705. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  21706. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  21707. fi
  21708. fi
  21709. }
  21710. CheckIME()
  21711. {
  21712. # Check whether --enable-ime was given.
  21713. if test ${enable_ime+y}
  21714. then :
  21715. enableval=$enable_ime;
  21716. else $as_nop
  21717. enable_ime=yes
  21718. fi
  21719. if test x$enable_ime = xyes; then
  21720. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  21721. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  21722. fi
  21723. }
  21724. CheckInotify()
  21725. {
  21726. save_LIBS="$LIBS"
  21727. case "$host" in
  21728. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  21729. ;;
  21730. esac
  21731. for ac_header in sys/inotify.h
  21732. do :
  21733. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  21734. if test "x$ac_cv_header_sys_inotify_h" = xyes
  21735. then :
  21736. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  21737. have_inotify_inotify_h_hdr=yes
  21738. fi
  21739. done
  21740. for ac_func in inotify_init
  21741. do :
  21742. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  21743. if test "x$ac_cv_func_inotify_init" = xyes
  21744. then :
  21745. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  21746. have_inotify=yes
  21747. fi
  21748. done
  21749. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  21750. if test "x$ac_cv_func_inotify_init1" = xyes
  21751. then :
  21752. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  21753. fi
  21754. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  21755. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  21756. case "$host" in
  21757. *-*-freebsd*|*-*-dragonfly*)
  21758. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  21759. ;;
  21760. esac
  21761. fi
  21762. LIBS="$save_LIBS"
  21763. }
  21764. CheckIBus()
  21765. {
  21766. # Check whether --enable-ibus was given.
  21767. if test ${enable_ibus+y}
  21768. then :
  21769. enableval=$enable_ibus;
  21770. else $as_nop
  21771. enable_ibus=yes
  21772. fi
  21773. if test x$enable_ibus = xyes; then
  21774. pkg_failed=no
  21775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  21776. printf %s "checking for ibus-1.0... " >&6; }
  21777. if test -n "$IBUS_CFLAGS"; then
  21778. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  21779. elif test -n "$PKG_CONFIG"; then
  21780. if test -n "$PKG_CONFIG" && \
  21781. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  21782. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  21783. ac_status=$?
  21784. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21785. test $ac_status = 0; }; then
  21786. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  21787. test "x$?" != "x0" && pkg_failed=yes
  21788. else
  21789. pkg_failed=yes
  21790. fi
  21791. else
  21792. pkg_failed=untried
  21793. fi
  21794. if test -n "$IBUS_LIBS"; then
  21795. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  21796. elif test -n "$PKG_CONFIG"; then
  21797. if test -n "$PKG_CONFIG" && \
  21798. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  21799. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  21800. ac_status=$?
  21801. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21802. test $ac_status = 0; }; then
  21803. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  21804. test "x$?" != "x0" && pkg_failed=yes
  21805. else
  21806. pkg_failed=yes
  21807. fi
  21808. else
  21809. pkg_failed=untried
  21810. fi
  21811. if test $pkg_failed = yes; then
  21812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21813. printf "%s\n" "no" >&6; }
  21814. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21815. _pkg_short_errors_supported=yes
  21816. else
  21817. _pkg_short_errors_supported=no
  21818. fi
  21819. if test $_pkg_short_errors_supported = yes; then
  21820. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  21821. else
  21822. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  21823. fi
  21824. # Put the nasty error message in config.log where it belongs
  21825. echo "$IBUS_PKG_ERRORS" >&5
  21826. have_ibus=no
  21827. elif test $pkg_failed = untried; then
  21828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21829. printf "%s\n" "no" >&6; }
  21830. have_ibus=no
  21831. else
  21832. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  21833. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  21834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21835. printf "%s\n" "yes" >&6; }
  21836. have_ibus=yes
  21837. fi
  21838. save_CPPFLAGS="$CPPFLAGS"
  21839. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  21840. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  21841. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  21842. then :
  21843. have_ibus_ibus_h_hdr=yes
  21844. else $as_nop
  21845. have_ibus_ibus_h_hdr=no
  21846. fi
  21847. CPPFLAGS="$save_CPPFLAGS"
  21848. if test x$have_ibus_ibus_h_hdr = xyes; then
  21849. if test x$enable_ime != xyes; then
  21850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  21851. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  21852. have_ibus_ibus_h_hdr=no
  21853. elif test x$enable_dbus != xyes; then
  21854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  21855. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  21856. have_ibus_ibus_h_hdr=no
  21857. elif test x$have_inotify_inotify_h_hdr != xyes; then
  21858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  21859. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  21860. have_ibus_ibus_h_hdr=no
  21861. else
  21862. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  21863. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  21864. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  21865. fi
  21866. fi
  21867. fi
  21868. }
  21869. CheckFcitx()
  21870. {
  21871. # Check whether --enable-fcitx was given.
  21872. if test ${enable_fcitx+y}
  21873. then :
  21874. enableval=$enable_fcitx;
  21875. else $as_nop
  21876. enable_fcitx=yes
  21877. fi
  21878. if test x$enable_fcitx = xyes; then
  21879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  21880. printf %s "checking for fcitx support... " >&6; }
  21881. have_fcitx=no
  21882. if test x$enable_ime != xyes; then
  21883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  21884. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  21885. elif test x$have_dbus_dbus_h_hdr != xyes; then
  21886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  21887. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  21888. else
  21889. have_fcitx=yes
  21890. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  21891. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  21892. fi
  21893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  21894. printf "%s\n" "$have_fcitx" >&6; }
  21895. fi
  21896. }
  21897. CheckJoystickMFI()
  21898. {
  21899. # Check whether --enable-joystick-mfi was given.
  21900. if test ${enable_joystick_mfi+y}
  21901. then :
  21902. enableval=$enable_joystick_mfi;
  21903. else $as_nop
  21904. enable_joystick_mfi=yes
  21905. fi
  21906. if test x$enable_joystick_mfi = xyes; then
  21907. save_CFLAGS="$CFLAGS"
  21908. save_LDFLAGS="$LDFLAGS"
  21909. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  21910. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  21911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  21912. printf %s "checking for GameController framework... " >&6; }
  21913. enable_joystick_mfi=no
  21914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21915. /* end confdefs.h. */
  21916. #include <AvailabilityMacros.h>
  21917. #include <TargetConditionals.h>
  21918. #import <GameController/GameController.h>
  21919. int
  21920. main (void)
  21921. {
  21922. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  21923. #error GameController framework doesn't work on this configuration
  21924. #endif
  21925. #if TARGET_CPU_X86
  21926. #error GameController framework doesn't work on this configuration
  21927. #endif
  21928. ;
  21929. return 0;
  21930. }
  21931. _ACEOF
  21932. if ac_fn_c_try_link "$LINENO"
  21933. then :
  21934. enable_joystick_mfi=yes
  21935. fi
  21936. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21937. conftest$ac_exeext conftest.$ac_ext
  21938. CFLAGS="$save_CFLAGS"
  21939. LDFLAGS="$save_LDFLAGS"
  21940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  21941. printf "%s\n" "$enable_joystick_mfi" >&6; }
  21942. if test x$enable_joystick_mfi = xyes; then
  21943. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21944. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  21945. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  21946. fi
  21947. fi
  21948. }
  21949. CheckPTHREAD()
  21950. {
  21951. case "$host" in
  21952. *-*-emscripten*)
  21953. enable_pthreads_default=no
  21954. ;;
  21955. *)
  21956. enable_pthreads_default=yes
  21957. ;;
  21958. esac
  21959. # Check whether --enable-pthreads was given.
  21960. if test ${enable_pthreads+y}
  21961. then :
  21962. enableval=$enable_pthreads;
  21963. else $as_nop
  21964. enable_pthreads=maybe
  21965. fi
  21966. # Check whether --enable-pthread-sem was given.
  21967. if test ${enable_pthread_sem+y}
  21968. then :
  21969. enableval=$enable_pthread_sem;
  21970. else $as_nop
  21971. enable_pthread_sem=maybe
  21972. fi
  21973. if test x$enable_pthreads = xmaybe; then
  21974. enable_pthreads=$enable_pthreads_default
  21975. fi
  21976. if test x$enable_pthread_sem = xmaybe; then
  21977. enable_pthread_sem=$enable_pthreads
  21978. fi
  21979. case "$host" in
  21980. *-*-android*)
  21981. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21982. pthread_lib=""
  21983. ;;
  21984. *-*-linux*|*-*-uclinux*)
  21985. pthread_cflags="-D_REENTRANT"
  21986. pthread_lib="-lpthread"
  21987. ;;
  21988. *-*-bsdi*)
  21989. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21990. pthread_lib=""
  21991. ;;
  21992. *-*-darwin*)
  21993. pthread_cflags="-D_THREAD_SAFE"
  21994. # causes Carbon.p complaints?
  21995. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21996. ;;
  21997. *-*-freebsd*|*-*-dragonfly*)
  21998. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21999. pthread_lib="-pthread"
  22000. ;;
  22001. *-*-netbsd*)
  22002. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22003. pthread_lib="-lpthread"
  22004. ;;
  22005. *-*-openbsd*)
  22006. pthread_cflags="-D_REENTRANT"
  22007. pthread_lib="-lpthread"
  22008. ;;
  22009. *-*-solaris2.9)
  22010. # From Solaris 9+, posix4's preferred name is rt.
  22011. pthread_cflags="-D_REENTRANT"
  22012. pthread_lib="-lpthread -lrt"
  22013. ;;
  22014. *-*-solaris2.10)
  22015. # Solaris 10+ merged pthread into libc.
  22016. pthread_cflags="-D_REENTRANT"
  22017. pthread_lib="-lrt"
  22018. ;;
  22019. *-*-solaris*)
  22020. # Solaris 11+ merged rt into libc.
  22021. pthread_cflags="-D_REENTRANT"
  22022. pthread_lib=""
  22023. ;;
  22024. *-*-sysv5*)
  22025. pthread_cflags="-D_REENTRANT -Kthread"
  22026. pthread_lib=""
  22027. ;;
  22028. *-*-aix*)
  22029. pthread_cflags="-D_REENTRANT -mthreads"
  22030. pthread_lib="-lpthread"
  22031. ;;
  22032. *-*-hpux11*)
  22033. pthread_cflags="-D_REENTRANT"
  22034. pthread_lib="-L/usr/lib -lpthread"
  22035. ;;
  22036. *-*-haiku*)
  22037. pthread_cflags="-D_REENTRANT"
  22038. pthread_lib=""
  22039. ;;
  22040. *-*-emscripten*)
  22041. pthread_cflags="-D_REENTRANT -pthread"
  22042. pthread_lib="-pthread"
  22043. ;;
  22044. *)
  22045. pthread_cflags="-D_REENTRANT"
  22046. pthread_lib="-lpthread"
  22047. ;;
  22048. esac
  22049. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  22050. # Save the original compiler flags and libraries
  22051. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  22052. # Add the pthread compiler flags and libraries
  22053. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  22054. # Check to see if we have pthread support on this system
  22055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  22056. printf %s "checking for pthreads... " >&6; }
  22057. use_pthreads=no
  22058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22059. /* end confdefs.h. */
  22060. #include <pthread.h>
  22061. int
  22062. main (void)
  22063. {
  22064. pthread_attr_t type;
  22065. pthread_attr_init(&type);
  22066. ;
  22067. return 0;
  22068. }
  22069. _ACEOF
  22070. if ac_fn_c_try_link "$LINENO"
  22071. then :
  22072. use_pthreads=yes
  22073. fi
  22074. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22075. conftest$ac_exeext conftest.$ac_ext
  22076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  22077. printf "%s\n" "$use_pthreads" >&6; }
  22078. # Restore the compiler flags and libraries
  22079. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  22080. # Do futher testing if we have pthread support...
  22081. if test x$use_pthreads = xyes; then
  22082. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  22083. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  22084. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  22085. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  22086. # Save the original compiler flags and libraries
  22087. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  22088. # Add the pthread compiler flags and libraries
  22089. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  22090. # Check to see if recursive mutexes are available
  22091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  22092. printf %s "checking for recursive mutexes... " >&6; }
  22093. has_recursive_mutexes=no
  22094. if test x$has_recursive_mutexes = xno; then
  22095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22096. /* end confdefs.h. */
  22097. #define _GNU_SOURCE 1
  22098. #include <pthread.h>
  22099. int
  22100. main (void)
  22101. {
  22102. pthread_mutexattr_t attr;
  22103. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  22104. ;
  22105. return 0;
  22106. }
  22107. _ACEOF
  22108. if ac_fn_c_try_link "$LINENO"
  22109. then :
  22110. has_recursive_mutexes=yes
  22111. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  22112. fi
  22113. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22114. conftest$ac_exeext conftest.$ac_ext
  22115. fi
  22116. if test x$has_recursive_mutexes = xno; then
  22117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22118. /* end confdefs.h. */
  22119. #define _GNU_SOURCE 1
  22120. #include <pthread.h>
  22121. int
  22122. main (void)
  22123. {
  22124. pthread_mutexattr_t attr;
  22125. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  22126. ;
  22127. return 0;
  22128. }
  22129. _ACEOF
  22130. if ac_fn_c_try_link "$LINENO"
  22131. then :
  22132. has_recursive_mutexes=yes
  22133. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  22134. fi
  22135. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22136. conftest$ac_exeext conftest.$ac_ext
  22137. fi
  22138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  22139. printf "%s\n" "$has_recursive_mutexes" >&6; }
  22140. # Check to see if pthread semaphore support is missing
  22141. if test x$enable_pthread_sem = xyes; then
  22142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  22143. printf %s "checking for pthread semaphores... " >&6; }
  22144. have_pthread_sem=no
  22145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22146. /* end confdefs.h. */
  22147. #include <pthread.h>
  22148. #include <semaphore.h>
  22149. int
  22150. main (void)
  22151. {
  22152. ;
  22153. return 0;
  22154. }
  22155. _ACEOF
  22156. if ac_fn_c_try_compile "$LINENO"
  22157. then :
  22158. have_pthread_sem=yes
  22159. fi
  22160. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  22162. printf "%s\n" "$have_pthread_sem" >&6; }
  22163. fi
  22164. if test x$have_pthread_sem = xyes; then
  22165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  22166. printf %s "checking for sem_timedwait... " >&6; }
  22167. have_sem_timedwait=no
  22168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22169. /* end confdefs.h. */
  22170. #include <pthread.h>
  22171. #include <semaphore.h>
  22172. int
  22173. main (void)
  22174. {
  22175. sem_timedwait(NULL, NULL);
  22176. ;
  22177. return 0;
  22178. }
  22179. _ACEOF
  22180. if ac_fn_c_try_link "$LINENO"
  22181. then :
  22182. have_sem_timedwait=yes
  22183. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  22184. fi
  22185. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22186. conftest$ac_exeext conftest.$ac_ext
  22187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  22188. printf "%s\n" "$have_sem_timedwait" >&6; }
  22189. fi
  22190. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  22191. "
  22192. if test "x$ac_cv_header_pthread_np_h" = xyes
  22193. then :
  22194. have_pthread_np_h=yes
  22195. else $as_nop
  22196. have_pthread_np_h=no
  22197. fi
  22198. if test x$have_pthread_np_h = xyes; then
  22199. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  22200. fi
  22201. # Check to see if pthread naming is available
  22202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  22203. printf %s "checking for pthread_setname_np... " >&6; }
  22204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22205. /* end confdefs.h. */
  22206. /* Override any GCC internal prototype to avoid an error.
  22207. Use char because int might match the return type of a GCC
  22208. builtin and then its argument prototype would still apply. */
  22209. char pthread_setname_np ();
  22210. int
  22211. main (void)
  22212. {
  22213. return pthread_setname_np ();
  22214. ;
  22215. return 0;
  22216. }
  22217. _ACEOF
  22218. if ac_fn_c_try_link "$LINENO"
  22219. then :
  22220. has_pthread_setname_np=yes
  22221. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  22222. else $as_nop
  22223. has_pthread_setname_np=no
  22224. fi
  22225. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22226. conftest$ac_exeext conftest.$ac_ext
  22227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  22228. printf "%s\n" "$has_pthread_setname_np" >&6; }
  22229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  22230. printf %s "checking for pthread_set_name_np... " >&6; }
  22231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22232. /* end confdefs.h. */
  22233. /* Override any GCC internal prototype to avoid an error.
  22234. Use char because int might match the return type of a GCC
  22235. builtin and then its argument prototype would still apply. */
  22236. char pthread_set_name_np ();
  22237. int
  22238. main (void)
  22239. {
  22240. return pthread_set_name_np ();
  22241. ;
  22242. return 0;
  22243. }
  22244. _ACEOF
  22245. if ac_fn_c_try_link "$LINENO"
  22246. then :
  22247. has_pthread_set_name_np=yes
  22248. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  22249. else $as_nop
  22250. has_pthread_set_name_np=no
  22251. fi
  22252. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22253. conftest$ac_exeext conftest.$ac_ext
  22254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  22255. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  22256. # Restore the compiler flags and libraries
  22257. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  22258. # Basic thread creation functions
  22259. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  22260. # Semaphores
  22261. # We can fake these with mutexes and condition variables if necessary
  22262. if test x$have_pthread_sem = xyes; then
  22263. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  22264. else
  22265. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  22266. fi
  22267. # Mutexes
  22268. # We can fake these with semaphores if necessary
  22269. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  22270. # Condition variables
  22271. # We can fake these with semaphores and mutexes if necessary
  22272. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  22273. # Thread local storage
  22274. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  22275. have_threads=yes
  22276. fi
  22277. fi
  22278. }
  22279. CheckWINDOWS()
  22280. {
  22281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  22282. printf %s "checking Windows compiler... " >&6; }
  22283. have_win32_gcc=no
  22284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22285. /* end confdefs.h. */
  22286. #include <windows.h>
  22287. int
  22288. main (void)
  22289. {
  22290. ;
  22291. return 0;
  22292. }
  22293. _ACEOF
  22294. if ac_fn_c_try_compile "$LINENO"
  22295. then :
  22296. have_win32_gcc=yes
  22297. fi
  22298. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  22300. printf "%s\n" "$have_win32_gcc" >&6; }
  22301. if test x$have_win32_gcc != xyes; then
  22302. as_fn_error $? "
  22303. *** Your compiler ($CC) does not produce Windows executables!
  22304. " "$LINENO" 5
  22305. fi
  22306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  22307. printf %s "checking Windows CE... " >&6; }
  22308. have_wince=no
  22309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22310. /* end confdefs.h. */
  22311. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  22312. #error This is not Windows CE
  22313. #endif
  22314. int
  22315. main (void)
  22316. {
  22317. ;
  22318. return 0;
  22319. }
  22320. _ACEOF
  22321. if ac_fn_c_try_compile "$LINENO"
  22322. then :
  22323. have_wince=yes
  22324. as_fn_error $? "
  22325. *** Sorry, Windows CE is no longer supported.
  22326. " "$LINENO" 5
  22327. fi
  22328. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  22330. printf "%s\n" "$have_wince" >&6; }
  22331. # This fixes Windows stack alignment with newer GCC
  22332. CheckStackBoundary
  22333. # headers needed elsewhere
  22334. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  22335. if test "x$ac_cv_header_tpcshrd_h" = xyes
  22336. then :
  22337. have_tpcshrd_h=yes
  22338. fi
  22339. if test x$have_tpcshrd_h = xyes; then
  22340. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  22341. fi
  22342. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  22343. if test "x$ac_cv_header_roapi_h" = xyes
  22344. then :
  22345. have_roapi_h=yes
  22346. fi
  22347. if test x$have_roapi_h = xyes; then
  22348. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  22349. fi
  22350. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  22351. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  22352. then :
  22353. have_shellscalingapi_h=yes
  22354. fi
  22355. if test x$shellscalingapi_h = xyes; then
  22356. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  22357. fi
  22358. }
  22359. CheckDIRECTX()
  22360. {
  22361. # Check whether --enable-directx was given.
  22362. if test ${enable_directx+y}
  22363. then :
  22364. enableval=$enable_directx;
  22365. else $as_nop
  22366. enable_directx=yes
  22367. fi
  22368. if test x$enable_directx = xyes; then
  22369. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  22370. if test "x$ac_cv_header_d3d9_h" = xyes
  22371. then :
  22372. have_d3d=yes
  22373. fi
  22374. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  22375. if test "x$ac_cv_header_d3d11_1_h" = xyes
  22376. then :
  22377. have_d3d11=yes
  22378. fi
  22379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  22380. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  22381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22382. /* end confdefs.h. */
  22383. #include <winsdkver.h>
  22384. #include <sdkddkver.h>
  22385. #include <d3d12.h>
  22386. ID3D12Device1 *device;
  22387. #if WDK_NTDDI_VERSION <= 0x0A000008
  22388. asdf
  22389. #endif
  22390. int
  22391. main (void)
  22392. {
  22393. ;
  22394. return 0;
  22395. }
  22396. _ACEOF
  22397. if ac_fn_c_try_compile "$LINENO"
  22398. then :
  22399. have_d3d12=yes
  22400. else $as_nop
  22401. have_d3d12=no
  22402. fi
  22403. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  22405. printf "%s\n" "$have_d3d12" >&6; }
  22406. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  22407. if test "x$ac_cv_header_ddraw_h" = xyes
  22408. then :
  22409. have_ddraw=yes
  22410. fi
  22411. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  22412. if test "x$ac_cv_header_dsound_h" = xyes
  22413. then :
  22414. have_dsound=yes
  22415. fi
  22416. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  22417. if test "x$ac_cv_header_dinput_h" = xyes
  22418. then :
  22419. have_dinput=yes
  22420. fi
  22421. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  22422. if test "x$ac_cv_header_dxgi_h" = xyes
  22423. then :
  22424. have_dxgi=yes
  22425. fi
  22426. if test x$have_ddraw = xyes; then
  22427. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  22428. fi
  22429. if test x$have_dinput = xyes; then
  22430. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  22431. fi
  22432. if test x$have_dsound = xyes; then
  22433. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  22434. fi
  22435. if test x$have_dxgi = xyes; then
  22436. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  22437. fi
  22438. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  22439. # FIXME: ...so force it off for now.
  22440. case "$host" in
  22441. *-*-cygwin*)
  22442. have_dinput=false
  22443. ;;
  22444. esac
  22445. fi
  22446. # Check whether --enable-xinput was given.
  22447. if test ${enable_xinput+y}
  22448. then :
  22449. enableval=$enable_xinput;
  22450. else $as_nop
  22451. enable_xinput=yes
  22452. fi
  22453. if test x$enable_xinput = xyes; then
  22454. have_xinput_gamepadex=no
  22455. have_xinput_stateex=no
  22456. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  22457. if test "x$ac_cv_header_xinput_h" = xyes
  22458. then :
  22459. have_xinput=yes
  22460. fi
  22461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  22462. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  22463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22464. /* end confdefs.h. */
  22465. #include <windows.h>
  22466. #include <xinput.h>
  22467. XINPUT_GAMEPAD_EX x1;
  22468. int
  22469. main (void)
  22470. {
  22471. ;
  22472. return 0;
  22473. }
  22474. _ACEOF
  22475. if ac_fn_c_try_compile "$LINENO"
  22476. then :
  22477. have_xinput_gamepadex=yes
  22478. fi
  22479. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  22481. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  22482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  22483. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  22484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22485. /* end confdefs.h. */
  22486. #include <windows.h>
  22487. #include <xinput.h>
  22488. XINPUT_STATE_EX s1;
  22489. int
  22490. main (void)
  22491. {
  22492. ;
  22493. return 0;
  22494. }
  22495. _ACEOF
  22496. if ac_fn_c_try_compile "$LINENO"
  22497. then :
  22498. have_xinput_stateex=yes
  22499. fi
  22500. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  22502. printf "%s\n" "$have_xinput_stateex" >&6; }
  22503. if test x$have_xinput = xyes; then
  22504. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  22505. fi
  22506. if test x$have_xinput_gamepadex = xyes; then
  22507. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  22508. fi
  22509. if test x$have_xinput_stateex = xyes; then
  22510. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  22511. fi
  22512. fi
  22513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  22514. printf %s "checking for windows.gaming.input.h... " >&6; }
  22515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22516. /* end confdefs.h. */
  22517. #define COBJMACROS
  22518. #include <windows.gaming.input.h>
  22519. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  22520. int
  22521. main (void)
  22522. {
  22523. ;
  22524. return 0;
  22525. }
  22526. _ACEOF
  22527. if ac_fn_c_try_compile "$LINENO"
  22528. then :
  22529. have_wgi=yes
  22530. else $as_nop
  22531. have_wgi=no
  22532. fi
  22533. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  22535. printf "%s\n" "$have_wgi" >&6; }
  22536. if test x$have_wgi = xyes; then
  22537. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  22538. fi
  22539. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  22540. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  22541. then :
  22542. have_wasapi=yes
  22543. fi
  22544. if test x$have_wasapi = xyes; then
  22545. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  22546. fi
  22547. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  22548. if test "x$ac_cv_header_audioclient_h" = xyes
  22549. then :
  22550. else $as_nop
  22551. have_wasapi=no
  22552. fi
  22553. if test x$have_wasapi = xyes; then
  22554. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  22555. fi
  22556. # Check whether --enable-wasapi was given.
  22557. if test ${enable_wasapi+y}
  22558. then :
  22559. enableval=$enable_wasapi;
  22560. else $as_nop
  22561. enable_wasapi=yes
  22562. fi
  22563. }
  22564. CheckDLOPEN()
  22565. {
  22566. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  22567. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  22568. if test "x$ac_cv_header_dlfcn_h" = xyes
  22569. then :
  22570. have_dlfcn_h=yes
  22571. else $as_nop
  22572. have_dlfcn_h=no
  22573. fi
  22574. have_dlopen=no
  22575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  22576. printf %s "checking for dlopen in -lc... " >&6; }
  22577. if test ${ac_cv_lib_c_dlopen+y}
  22578. then :
  22579. printf %s "(cached) " >&6
  22580. else $as_nop
  22581. ac_check_lib_save_LIBS=$LIBS
  22582. LIBS="-lc $LIBS"
  22583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22584. /* end confdefs.h. */
  22585. /* Override any GCC internal prototype to avoid an error.
  22586. Use char because int might match the return type of a GCC
  22587. builtin and then its argument prototype would still apply. */
  22588. char dlopen ();
  22589. int
  22590. main (void)
  22591. {
  22592. return dlopen ();
  22593. ;
  22594. return 0;
  22595. }
  22596. _ACEOF
  22597. if ac_fn_c_try_link "$LINENO"
  22598. then :
  22599. ac_cv_lib_c_dlopen=yes
  22600. else $as_nop
  22601. ac_cv_lib_c_dlopen=no
  22602. fi
  22603. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22604. conftest$ac_exeext conftest.$ac_ext
  22605. LIBS=$ac_check_lib_save_LIBS
  22606. fi
  22607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  22608. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  22609. if test "x$ac_cv_lib_c_dlopen" = xyes
  22610. then :
  22611. have_dlopen=yes
  22612. else $as_nop
  22613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  22614. printf %s "checking for dlopen in -ldl... " >&6; }
  22615. if test ${ac_cv_lib_dl_dlopen+y}
  22616. then :
  22617. printf %s "(cached) " >&6
  22618. else $as_nop
  22619. ac_check_lib_save_LIBS=$LIBS
  22620. LIBS="-ldl $LIBS"
  22621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22622. /* end confdefs.h. */
  22623. /* Override any GCC internal prototype to avoid an error.
  22624. Use char because int might match the return type of a GCC
  22625. builtin and then its argument prototype would still apply. */
  22626. char dlopen ();
  22627. int
  22628. main (void)
  22629. {
  22630. return dlopen ();
  22631. ;
  22632. return 0;
  22633. }
  22634. _ACEOF
  22635. if ac_fn_c_try_link "$LINENO"
  22636. then :
  22637. ac_cv_lib_dl_dlopen=yes
  22638. else $as_nop
  22639. ac_cv_lib_dl_dlopen=no
  22640. fi
  22641. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22642. conftest$ac_exeext conftest.$ac_ext
  22643. LIBS=$ac_check_lib_save_LIBS
  22644. fi
  22645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  22646. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  22647. if test "x$ac_cv_lib_dl_dlopen" = xyes
  22648. then :
  22649. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  22650. fi
  22651. fi
  22652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  22653. printf %s "checking for dlopen... " >&6; }
  22654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  22655. printf "%s\n" "$have_dlopen" >&6; }
  22656. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  22657. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  22658. if test x$enable_loadso = xyes; then
  22659. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  22660. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  22661. have_loadso=yes
  22662. fi
  22663. fi
  22664. }
  22665. CheckO_CLOEXEC()
  22666. {
  22667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  22668. printf %s "checking for O_CLOEXEC... " >&6; }
  22669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22670. /* end confdefs.h. */
  22671. #include <fcntl.h>
  22672. int flag = O_CLOEXEC;
  22673. int
  22674. main (void)
  22675. {
  22676. ;
  22677. return 0;
  22678. }
  22679. _ACEOF
  22680. if ac_fn_c_try_compile "$LINENO"
  22681. then :
  22682. have_o_cloexec=yes
  22683. else $as_nop
  22684. have_o_cloexec=no
  22685. fi
  22686. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  22688. printf "%s\n" "$have_o_cloexec" >&6; }
  22689. if test $have_o_cloexec = yes; then
  22690. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  22691. fi
  22692. }
  22693. CheckUSBHID()
  22694. {
  22695. case "$host" in
  22696. *-*-*bsd*|*-*-dragonfly*)
  22697. if test x$enable_joystick = xyes; then
  22698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  22699. printf %s "checking for hid_init in -lusbhid... " >&6; }
  22700. if test ${ac_cv_lib_usbhid_hid_init+y}
  22701. then :
  22702. printf %s "(cached) " >&6
  22703. else $as_nop
  22704. ac_check_lib_save_LIBS=$LIBS
  22705. LIBS="-lusbhid $LIBS"
  22706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22707. /* end confdefs.h. */
  22708. /* Override any GCC internal prototype to avoid an error.
  22709. Use char because int might match the return type of a GCC
  22710. builtin and then its argument prototype would still apply. */
  22711. char hid_init ();
  22712. int
  22713. main (void)
  22714. {
  22715. return hid_init ();
  22716. ;
  22717. return 0;
  22718. }
  22719. _ACEOF
  22720. if ac_fn_c_try_link "$LINENO"
  22721. then :
  22722. ac_cv_lib_usbhid_hid_init=yes
  22723. else $as_nop
  22724. ac_cv_lib_usbhid_hid_init=no
  22725. fi
  22726. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22727. conftest$ac_exeext conftest.$ac_ext
  22728. LIBS=$ac_check_lib_save_LIBS
  22729. fi
  22730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  22731. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  22732. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  22733. then :
  22734. have_libusbhid=yes
  22735. fi
  22736. if test x$have_libusbhid = xyes; then
  22737. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  22738. if test "x$ac_cv_header_usbhid_h" = xyes
  22739. then :
  22740. USB_CFLAGS="-DHAVE_USBHID_H"
  22741. fi
  22742. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  22743. if test "x$ac_cv_header_libusbhid_h" = xyes
  22744. then :
  22745. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  22746. fi
  22747. USB_LIBS="$USB_LIBS -lusbhid"
  22748. else
  22749. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  22750. if test "x$ac_cv_header_usb_h" = xyes
  22751. then :
  22752. USB_CFLAGS="-DHAVE_USB_H"
  22753. fi
  22754. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  22755. if test "x$ac_cv_header_libusb_h" = xyes
  22756. then :
  22757. USB_CFLAGS="-DHAVE_LIBUSB_H"
  22758. fi
  22759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  22760. printf %s "checking for hid_init in -lusb... " >&6; }
  22761. if test ${ac_cv_lib_usb_hid_init+y}
  22762. then :
  22763. printf %s "(cached) " >&6
  22764. else $as_nop
  22765. ac_check_lib_save_LIBS=$LIBS
  22766. LIBS="-lusb $LIBS"
  22767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22768. /* end confdefs.h. */
  22769. /* Override any GCC internal prototype to avoid an error.
  22770. Use char because int might match the return type of a GCC
  22771. builtin and then its argument prototype would still apply. */
  22772. char hid_init ();
  22773. int
  22774. main (void)
  22775. {
  22776. return hid_init ();
  22777. ;
  22778. return 0;
  22779. }
  22780. _ACEOF
  22781. if ac_fn_c_try_link "$LINENO"
  22782. then :
  22783. ac_cv_lib_usb_hid_init=yes
  22784. else $as_nop
  22785. ac_cv_lib_usb_hid_init=no
  22786. fi
  22787. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22788. conftest$ac_exeext conftest.$ac_ext
  22789. LIBS=$ac_check_lib_save_LIBS
  22790. fi
  22791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  22792. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  22793. if test "x$ac_cv_lib_usb_hid_init" = xyes
  22794. then :
  22795. USB_LIBS="$USB_LIBS -lusb"
  22796. fi
  22797. fi
  22798. save_CFLAGS="$CFLAGS"
  22799. CFLAGS="$CFLAGS $USB_CFLAGS"
  22800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  22801. printf %s "checking for usbhid... " >&6; }
  22802. have_usbhid=no
  22803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22804. /* end confdefs.h. */
  22805. #include <sys/types.h>
  22806. #if defined(HAVE_USB_H)
  22807. #include <usb.h>
  22808. #endif
  22809. #ifdef __DragonFly__
  22810. # include <bus/u4b/usb.h>
  22811. # include <bus/u4b/usbhid.h>
  22812. #else
  22813. # include <dev/usb/usb.h>
  22814. # include <dev/usb/usbhid.h>
  22815. #endif
  22816. #if defined(HAVE_USBHID_H)
  22817. #include <usbhid.h>
  22818. #elif defined(HAVE_LIBUSB_H)
  22819. #include <libusb.h>
  22820. #elif defined(HAVE_LIBUSBHID_H)
  22821. #include <libusbhid.h>
  22822. #endif
  22823. int
  22824. main (void)
  22825. {
  22826. struct report_desc *repdesc;
  22827. struct usb_ctl_report *repbuf;
  22828. hid_kind_t hidkind;
  22829. ;
  22830. return 0;
  22831. }
  22832. _ACEOF
  22833. if ac_fn_c_try_compile "$LINENO"
  22834. then :
  22835. have_usbhid=yes
  22836. fi
  22837. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  22839. printf "%s\n" "$have_usbhid" >&6; }
  22840. if test x$have_usbhid = xyes; then
  22841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  22842. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  22843. have_usbhid_ucr_data=no
  22844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22845. /* end confdefs.h. */
  22846. #include <sys/types.h>
  22847. #if defined(HAVE_USB_H)
  22848. #include <usb.h>
  22849. #endif
  22850. #ifdef __DragonFly__
  22851. # include <bus/u4b/usb.h>
  22852. # include <bus/u4b/usbhid.h>
  22853. #else
  22854. # include <dev/usb/usb.h>
  22855. # include <dev/usb/usbhid.h>
  22856. #endif
  22857. #if defined(HAVE_USBHID_H)
  22858. #include <usbhid.h>
  22859. #elif defined(HAVE_LIBUSB_H)
  22860. #include <libusb.h>
  22861. #elif defined(HAVE_LIBUSBHID_H)
  22862. #include <libusbhid.h>
  22863. #endif
  22864. int
  22865. main (void)
  22866. {
  22867. struct usb_ctl_report buf;
  22868. if (buf.ucr_data) { }
  22869. ;
  22870. return 0;
  22871. }
  22872. _ACEOF
  22873. if ac_fn_c_try_compile "$LINENO"
  22874. then :
  22875. have_usbhid_ucr_data=yes
  22876. fi
  22877. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22878. if test x$have_usbhid_ucr_data = xyes; then
  22879. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  22880. fi
  22881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  22882. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  22883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  22884. printf %s "checking for new usbhid API... " >&6; }
  22885. have_usbhid_new=no
  22886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22887. /* end confdefs.h. */
  22888. #include <sys/types.h>
  22889. #if defined(HAVE_USB_H)
  22890. #include <usb.h>
  22891. #endif
  22892. #ifdef __DragonFly__
  22893. #include <bus/u4b/usb.h>
  22894. #include <bus/u4b/usbhid.h>
  22895. #else
  22896. #include <dev/usb/usb.h>
  22897. #include <dev/usb/usbhid.h>
  22898. #endif
  22899. #if defined(HAVE_USBHID_H)
  22900. #include <usbhid.h>
  22901. #elif defined(HAVE_LIBUSB_H)
  22902. #include <libusb.h>
  22903. #elif defined(HAVE_LIBUSBHID_H)
  22904. #include <libusbhid.h>
  22905. #endif
  22906. int
  22907. main (void)
  22908. {
  22909. report_desc_t d;
  22910. hid_start_parse(d, 1, 1);
  22911. ;
  22912. return 0;
  22913. }
  22914. _ACEOF
  22915. if ac_fn_c_try_compile "$LINENO"
  22916. then :
  22917. have_usbhid_new=yes
  22918. fi
  22919. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22920. if test x$have_usbhid_new = xyes; then
  22921. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  22922. fi
  22923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  22924. printf "%s\n" "$have_usbhid_new" >&6; }
  22925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  22926. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  22927. have_machine_joystick=no
  22928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22929. /* end confdefs.h. */
  22930. #include <machine/joystick.h>
  22931. int
  22932. main (void)
  22933. {
  22934. struct joystick t;
  22935. ;
  22936. return 0;
  22937. }
  22938. _ACEOF
  22939. if ac_fn_c_try_compile "$LINENO"
  22940. then :
  22941. have_machine_joystick=yes
  22942. fi
  22943. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22944. if test x$have_machine_joystick = xyes; then
  22945. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  22946. fi
  22947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  22948. printf "%s\n" "$have_machine_joystick" >&6; }
  22949. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  22950. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  22951. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  22952. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  22953. have_joystick=yes
  22954. fi
  22955. CFLAGS="$save_CFLAGS"
  22956. fi
  22957. ;;
  22958. esac
  22959. }
  22960. CheckHIDAPI()
  22961. {
  22962. # Check whether --enable-hidapi-joystick was given.
  22963. if test ${enable_hidapi_joystick+y}
  22964. then :
  22965. enableval=$enable_hidapi_joystick;
  22966. else $as_nop
  22967. enable_hidapi_joystick=yes
  22968. fi
  22969. # Check whether --enable-hidapi-libusb was given.
  22970. if test ${enable_hidapi_libusb+y}
  22971. then :
  22972. enableval=$enable_hidapi_libusb;
  22973. else $as_nop
  22974. enable_hidapi_libusb=maybe
  22975. fi
  22976. if test x$enable_hidapi = xyes; then
  22977. case "$host" in
  22978. # libusb does not support iOS
  22979. *-ios-* )
  22980. enable_hidapi_libusb=no
  22981. ;;
  22982. # On the other hand, *BSD specifically uses libusb only
  22983. *-*-*bsd* )
  22984. enable_hidapi_libusb=yes
  22985. require_hidapi_libusb=yes
  22986. ;;
  22987. esac
  22988. hidapi_support=yes
  22989. if test x$enable_hidapi_libusb = xyes; then
  22990. pkg_failed=no
  22991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  22992. printf %s "checking for libusb-1.0... " >&6; }
  22993. if test -n "$LIBUSB_CFLAGS"; then
  22994. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  22995. elif test -n "$PKG_CONFIG"; then
  22996. if test -n "$PKG_CONFIG" && \
  22997. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  22998. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  22999. ac_status=$?
  23000. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23001. test $ac_status = 0; }; then
  23002. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  23003. test "x$?" != "x0" && pkg_failed=yes
  23004. else
  23005. pkg_failed=yes
  23006. fi
  23007. else
  23008. pkg_failed=untried
  23009. fi
  23010. if test -n "$LIBUSB_LIBS"; then
  23011. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  23012. elif test -n "$PKG_CONFIG"; then
  23013. if test -n "$PKG_CONFIG" && \
  23014. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  23015. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  23016. ac_status=$?
  23017. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23018. test $ac_status = 0; }; then
  23019. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  23020. test "x$?" != "x0" && pkg_failed=yes
  23021. else
  23022. pkg_failed=yes
  23023. fi
  23024. else
  23025. pkg_failed=untried
  23026. fi
  23027. if test $pkg_failed = yes; then
  23028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23029. printf "%s\n" "no" >&6; }
  23030. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23031. _pkg_short_errors_supported=yes
  23032. else
  23033. _pkg_short_errors_supported=no
  23034. fi
  23035. if test $_pkg_short_errors_supported = yes; then
  23036. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  23037. else
  23038. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  23039. fi
  23040. # Put the nasty error message in config.log where it belongs
  23041. echo "$LIBUSB_PKG_ERRORS" >&5
  23042. have_libusb=no
  23043. elif test $pkg_failed = untried; then
  23044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23045. printf "%s\n" "no" >&6; }
  23046. have_libusb=no
  23047. else
  23048. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  23049. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  23050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23051. printf "%s\n" "yes" >&6; }
  23052. have_libusb=yes
  23053. fi
  23054. save_CPPFLAGS="$CPPFLAGS"
  23055. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  23056. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23057. if test "x$ac_cv_header_libusb_h" = xyes
  23058. then :
  23059. have_libusb_h=yes
  23060. else $as_nop
  23061. have_libusb_h=no
  23062. fi
  23063. CPPFLAGS="$save_CPPFLAGS"
  23064. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  23065. hidapi_support=no
  23066. fi
  23067. fi
  23068. if test x$hidapi_support = xyes; then
  23069. if test x$have_libusb_h = xyes; then
  23070. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  23071. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  23072. if test x$require_hidapi_libusb = xyes; then
  23073. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  23074. else
  23075. if test x$have_loadso != xyes; then
  23076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  23077. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  23078. fi
  23079. # libusb is loaded dynamically, so don't add it to LDFLAGS
  23080. libusb_lib=""
  23081. case "$host" in
  23082. *-*-darwin* )
  23083. libusb_lib="libusb-1.0.0.dylib"
  23084. ;;
  23085. *-*-cygwin* | *-*-mingw* )
  23086. libusb_lib="libusb-1.0.dll"
  23087. ;;
  23088. esac
  23089. if test x$libusb_lib = x; then
  23090. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  23091. fi
  23092. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  23093. fi
  23094. fi
  23095. fi
  23096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  23097. printf %s "checking for hidapi joystick support... " >&6; }
  23098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  23099. printf "%s\n" "$hidapi_support" >&6; }
  23100. fi
  23101. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  23102. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  23103. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  23104. fi
  23105. }
  23106. CheckClockGettime()
  23107. {
  23108. # Check whether --enable-clock_gettime was given.
  23109. if test ${enable_clock_gettime+y}
  23110. then :
  23111. enableval=$enable_clock_gettime;
  23112. else $as_nop
  23113. enable_clock_gettime=yes
  23114. fi
  23115. if test x$enable_clock_gettime = xyes; then
  23116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  23117. printf %s "checking for clock_gettime in -lrt... " >&6; }
  23118. if test ${ac_cv_lib_rt_clock_gettime+y}
  23119. then :
  23120. printf %s "(cached) " >&6
  23121. else $as_nop
  23122. ac_check_lib_save_LIBS=$LIBS
  23123. LIBS="-lrt $LIBS"
  23124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23125. /* end confdefs.h. */
  23126. /* Override any GCC internal prototype to avoid an error.
  23127. Use char because int might match the return type of a GCC
  23128. builtin and then its argument prototype would still apply. */
  23129. char clock_gettime ();
  23130. int
  23131. main (void)
  23132. {
  23133. return clock_gettime ();
  23134. ;
  23135. return 0;
  23136. }
  23137. _ACEOF
  23138. if ac_fn_c_try_link "$LINENO"
  23139. then :
  23140. ac_cv_lib_rt_clock_gettime=yes
  23141. else $as_nop
  23142. ac_cv_lib_rt_clock_gettime=no
  23143. fi
  23144. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23145. conftest$ac_exeext conftest.$ac_ext
  23146. LIBS=$ac_check_lib_save_LIBS
  23147. fi
  23148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  23149. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  23150. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  23151. then :
  23152. have_clock_gettime=yes
  23153. fi
  23154. if test x$have_clock_gettime = xyes; then
  23155. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  23156. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  23157. else
  23158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  23159. printf %s "checking for clock_gettime in -lc... " >&6; }
  23160. if test ${ac_cv_lib_c_clock_gettime+y}
  23161. then :
  23162. printf %s "(cached) " >&6
  23163. else $as_nop
  23164. ac_check_lib_save_LIBS=$LIBS
  23165. LIBS="-lc $LIBS"
  23166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23167. /* end confdefs.h. */
  23168. /* Override any GCC internal prototype to avoid an error.
  23169. Use char because int might match the return type of a GCC
  23170. builtin and then its argument prototype would still apply. */
  23171. char clock_gettime ();
  23172. int
  23173. main (void)
  23174. {
  23175. return clock_gettime ();
  23176. ;
  23177. return 0;
  23178. }
  23179. _ACEOF
  23180. if ac_fn_c_try_link "$LINENO"
  23181. then :
  23182. ac_cv_lib_c_clock_gettime=yes
  23183. else $as_nop
  23184. ac_cv_lib_c_clock_gettime=no
  23185. fi
  23186. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23187. conftest$ac_exeext conftest.$ac_ext
  23188. LIBS=$ac_check_lib_save_LIBS
  23189. fi
  23190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  23191. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  23192. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  23193. then :
  23194. have_clock_gettime=yes
  23195. fi
  23196. if test x$have_clock_gettime = xyes; then
  23197. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  23198. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  23199. fi
  23200. fi
  23201. fi
  23202. }
  23203. CheckLinuxVersion()
  23204. {
  23205. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  23206. if test "x$ac_cv_header_linux_version_h" = xyes
  23207. then :
  23208. have_linux_version_h=yes
  23209. fi
  23210. if test x$have_linux_version_h = xyes; then
  23211. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  23212. fi
  23213. }
  23214. CheckRPATH()
  23215. {
  23216. # Check whether --enable-rpath was given.
  23217. if test ${enable_rpath+y}
  23218. then :
  23219. enableval=$enable_rpath;
  23220. else $as_nop
  23221. enable_rpath=yes
  23222. fi
  23223. }
  23224. CheckEventSignals()
  23225. {
  23226. # Check whether --enable-backgrounding-signal was given.
  23227. if test ${enable_backgrounding_signal+y}
  23228. then :
  23229. enableval=$enable_backgrounding_signal;
  23230. else $as_nop
  23231. enable_backgrounding_signal=no
  23232. fi
  23233. if test x$enable_backgrounding_signal != xno; then
  23234. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  23235. fi
  23236. # Check whether --enable-foregrounding-signal was given.
  23237. if test ${enable_foregrounding_signal+y}
  23238. then :
  23239. enableval=$enable_foregrounding_signal;
  23240. else $as_nop
  23241. enable_foregrounding_signal=no
  23242. fi
  23243. if test x$enable_foregrounding_signal != xno; then
  23244. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  23245. fi
  23246. }
  23247. CheckVirtualJoystick()
  23248. {
  23249. # Check whether --enable-joystick-virtual was given.
  23250. if test ${enable_joystick_virtual+y}
  23251. then :
  23252. enableval=$enable_joystick_virtual;
  23253. else $as_nop
  23254. enable_joystick_virtual=yes
  23255. fi
  23256. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  23257. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  23258. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  23259. have_joystick_virtual=yes
  23260. fi
  23261. }
  23262. CheckWarnAll
  23263. CheckNoStrictAliasing
  23264. CheckEventSignals
  23265. have_locale=no
  23266. case "$host" in
  23267. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  23268. case "$host" in
  23269. *-*-android*)
  23270. # Android
  23271. ARCH=android
  23272. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  23273. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  23274. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  23275. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  23276. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  23277. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  23278. if test x$enable_video = xyes; then
  23279. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  23280. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  23281. SUMMARY_video="${SUMMARY_video} android"
  23282. have_video=yes
  23283. fi
  23284. ;;
  23285. *-*-linux*) ARCH=linux ;;
  23286. *-*-uclinux*) ARCH=linux ;;
  23287. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  23288. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  23289. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  23290. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  23291. *-*-bsdi*) ARCH=bsdi ;;
  23292. *-*-freebsd*) ARCH=freebsd ;;
  23293. *-*-dragonfly*) ARCH=freebsd ;;
  23294. *-*-netbsd*) ARCH=netbsd ;;
  23295. *-*-openbsd*) ARCH=openbsd ;;
  23296. *-*-sysv5*) ARCH=sysv5 ;;
  23297. *-*-solaris*) ARCH=solaris ;;
  23298. *-*-hpux*) ARCH=hpux ;;
  23299. *-*-aix*) ARCH=aix ;;
  23300. *-*-minix*) ARCH=minix ;;
  23301. esac
  23302. CheckVisibilityHidden
  23303. CheckWerror
  23304. CheckDeclarationAfterStatement
  23305. CheckDummyVideo
  23306. CheckOffscreenVideo
  23307. CheckDiskAudio
  23308. CheckDummyAudio
  23309. CheckDLOPEN
  23310. CheckARM
  23311. CheckNEON
  23312. CheckO_CLOEXEC
  23313. CheckOSS
  23314. CheckALSA
  23315. CheckPipewire
  23316. CheckPulseAudio
  23317. CheckLibSampleRate
  23318. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  23319. CheckRPI
  23320. CheckX11
  23321. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  23322. CheckEGL
  23323. CheckKMSDRM
  23324. CheckGLX
  23325. CheckOpenGL
  23326. CheckOpenGLES
  23327. CheckVulkan
  23328. CheckWayland
  23329. CheckInputEvents
  23330. CheckLibUDev
  23331. CheckDBus
  23332. CheckIME
  23333. CheckInotify
  23334. CheckIBus
  23335. CheckFcitx
  23336. case $ARCH in
  23337. linux)
  23338. CheckInputKD
  23339. ;;
  23340. freebsd)
  23341. CheckInputKBIO
  23342. ;;
  23343. openbsd|netbsd)
  23344. CheckInputWSCONS
  23345. ;;
  23346. esac
  23347. CheckUSBHID
  23348. CheckHIDAPI
  23349. CheckPTHREAD
  23350. CheckClockGettime
  23351. CheckLinuxVersion
  23352. CheckRPATH
  23353. CheckVivanteVideo
  23354. # Set up files for the misc library
  23355. if test x$enable_misc = xyes; then
  23356. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  23357. have_misc=yes
  23358. fi
  23359. # Set up files for the locale library
  23360. if test x$enable_locale = xyes; then
  23361. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  23362. have_locale=yes
  23363. fi
  23364. # Set up files for the audio library
  23365. if test x$enable_audio = xyes; then
  23366. case $ARCH in
  23367. netbsd) # Don't use this on OpenBSD, it's busted.
  23368. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  23369. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  23370. SUMMARY_audio="${SUMMARY_audio} netbsd"
  23371. have_audio=yes
  23372. ;;
  23373. android)
  23374. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  23375. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  23376. SUMMARY_audio="${SUMMARY_audio} android"
  23377. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  23378. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  23379. SUMMARY_audio="${SUMMARY_audio} openslES"
  23380. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  23381. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  23382. SUMMARY_audio="${SUMMARY_audio} aaudio"
  23383. have_audio=yes
  23384. ;;
  23385. esac
  23386. fi
  23387. # Set up files for the joystick library
  23388. if test x$enable_joystick = xyes; then
  23389. case $ARCH in
  23390. linux)
  23391. if test "x$ac_cv_header_linux_input_h" = xyes; then
  23392. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  23393. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  23394. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23395. have_joystick=yes
  23396. fi
  23397. ;;
  23398. freebsd)
  23399. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  23400. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  23401. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  23402. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23403. have_joystick=yes
  23404. fi
  23405. ;;
  23406. android)
  23407. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  23408. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  23409. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23410. have_joystick=yes
  23411. ;;
  23412. esac
  23413. fi
  23414. # Set up files for the haptic library
  23415. if test x$enable_haptic = xyes; then
  23416. case $ARCH in
  23417. linux|freebsd)
  23418. if test x$use_input_events = xyes; then
  23419. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  23420. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  23421. have_haptic=yes
  23422. fi
  23423. ;;
  23424. android)
  23425. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  23426. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  23427. have_haptic=yes
  23428. ;;
  23429. esac
  23430. fi
  23431. # Set up files for the sensor library
  23432. if test x$enable_sensor = xyes; then
  23433. case $ARCH in
  23434. android)
  23435. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  23436. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  23437. have_sensor=yes
  23438. ;;
  23439. esac
  23440. fi
  23441. # Set up files for the power library
  23442. if test x$enable_power = xyes; then
  23443. case $ARCH in
  23444. linux)
  23445. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  23446. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  23447. have_power=yes
  23448. ;;
  23449. android)
  23450. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  23451. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  23452. have_power=yes
  23453. ;;
  23454. esac
  23455. fi
  23456. # Set up files for the filesystem library
  23457. if test x$enable_filesystem = xyes; then
  23458. case $ARCH in
  23459. android)
  23460. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  23461. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  23462. have_filesystem=yes
  23463. ;;
  23464. *)
  23465. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  23466. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  23467. have_filesystem=yes
  23468. ;;
  23469. esac
  23470. fi
  23471. # Set up files for the timer library
  23472. if test x$enable_timers = xyes; then
  23473. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23474. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23475. have_timers=yes
  23476. fi
  23477. # Set up files for udev hotplugging support
  23478. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  23479. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  23480. fi
  23481. # Set up files for evdev input
  23482. if test x$use_input_events = xyes; then
  23483. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  23484. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  23485. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  23486. fi
  23487. # Set up files for wscons input
  23488. if test x$use_input_wscons = xyes; then
  23489. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  23490. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  23491. fi
  23492. # Set up other core UNIX files
  23493. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  23494. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  23495. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  23496. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  23497. ;;
  23498. *-*-cygwin* | *-*-mingw*)
  23499. ARCH=win32
  23500. if test "$build" != "$host"; then # cross-compiling
  23501. # Default cross-compile location
  23502. ac_default_prefix=/usr/local/cross-tools/$host
  23503. else
  23504. # Look for the location of the tools and install there
  23505. if test "$BUILD_PREFIX" != ""; then
  23506. ac_default_prefix=$BUILD_PREFIX
  23507. fi
  23508. fi
  23509. if test x$enable_loadso = xyes; then
  23510. have_loadso=yes
  23511. fi
  23512. CheckGDwarf4
  23513. CheckWerror
  23514. CheckDeclarationAfterStatement
  23515. CheckDummyVideo
  23516. CheckOffscreenVideo
  23517. CheckDiskAudio
  23518. CheckDummyAudio
  23519. CheckWINDOWS
  23520. CheckWINDOWSGL
  23521. CheckWINDOWSGLES
  23522. CheckVulkan
  23523. CheckDIRECTX
  23524. CheckHIDAPI
  23525. # Set up the core platform files
  23526. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  23527. # Set up files for the misc library
  23528. if test x$enable_misc = xyes; then
  23529. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  23530. have_misc=yes
  23531. fi
  23532. # Use the Windows locale APIs.
  23533. if test x$enable_locale = xyes; then
  23534. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  23535. have_locale=yes
  23536. fi
  23537. # Set up files for the video library
  23538. if test x$enable_video = xyes; then
  23539. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  23540. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  23541. have_video=yes
  23542. # Check whether --enable-render-d3d was given.
  23543. if test ${enable_render_d3d+y}
  23544. then :
  23545. enableval=$enable_render_d3d;
  23546. else $as_nop
  23547. enable_render_d3d=yes
  23548. fi
  23549. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  23550. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  23551. SUMMARY_video="${SUMMARY_video} d3d9"
  23552. fi
  23553. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  23554. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  23555. SUMMARY_video="${SUMMARY_video} d3d11"
  23556. fi
  23557. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  23558. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  23559. SUMMARY_video="${SUMMARY_video} d3d12"
  23560. fi
  23561. fi
  23562. # Set up files for the audio library
  23563. if test x$enable_audio = xyes; then
  23564. if test x$have_dsound = xyes; then
  23565. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  23566. SUMMARY_audio="${SUMMARY_audio} directsound"
  23567. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  23568. fi
  23569. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  23570. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  23571. SUMMARY_audio="${SUMMARY_audio} wasapi"
  23572. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  23573. fi
  23574. have_audio=yes
  23575. fi
  23576. # Set up files for the joystick library
  23577. if test x$enable_joystick = xyes; then
  23578. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  23579. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  23580. if test x$have_xinput = xyes; then
  23581. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  23582. fi
  23583. if test x$have_wgi = xyes; then
  23584. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  23585. fi
  23586. if test x$have_dinput = xyes; then
  23587. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  23588. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  23589. fi
  23590. fi
  23591. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  23592. have_joystick=yes
  23593. fi
  23594. if test x$enable_haptic = xyes; then
  23595. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  23596. if test x$have_xinput = xyes; then
  23597. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  23598. fi
  23599. if test x$have_dinput = xyes; then
  23600. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  23601. fi
  23602. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  23603. have_haptic=yes
  23604. fi
  23605. fi
  23606. # Set up files for the sensor library
  23607. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  23608. if test "x$ac_cv_header_sensorsapi_h" = xyes
  23609. then :
  23610. have_winsensors=yes
  23611. else $as_nop
  23612. have_winsensors=no
  23613. fi
  23614. if test x$have_winsensors = xyes; then
  23615. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  23616. fi
  23617. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  23618. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  23619. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  23620. have_sensor=yes
  23621. fi
  23622. # Set up files for the power library
  23623. if test x$enable_power = xyes; then
  23624. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  23625. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  23626. have_power=yes
  23627. fi
  23628. # Set up files for the filesystem library
  23629. if test x$enable_filesystem = xyes; then
  23630. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  23631. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  23632. have_filesystem=yes
  23633. fi
  23634. # Set up files for the thread library
  23635. if test x$enable_threads = xyes; then
  23636. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  23637. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  23638. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  23639. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  23640. have_threads=yes
  23641. fi
  23642. # Set up files for the timer library
  23643. if test x$enable_timers = xyes; then
  23644. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  23645. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  23646. have_timers=yes
  23647. fi
  23648. # Set up files for the shared object loading library
  23649. if test x$enable_loadso = xyes; then
  23650. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  23651. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  23652. fi
  23653. # Set up the system libraries we need
  23654. if test -f /lib/w32api/libuuid.a; then
  23655. LIBUUID=/lib/w32api/libuuid.a
  23656. else
  23657. LIBUUID=-luuid
  23658. fi
  23659. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  23660. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  23661. # The Windows platform requires special setup
  23662. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  23663. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  23664. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  23665. SDL_LIBS="-lSDL3main $SDL_LIBS -mwindows"
  23666. # Check to see if this is a mingw or cygwin build
  23667. have_mingw32=
  23668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  23669. printf %s "checking for main in -lmingw32... " >&6; }
  23670. if test ${ac_cv_lib_mingw32_main+y}
  23671. then :
  23672. printf %s "(cached) " >&6
  23673. else $as_nop
  23674. ac_check_lib_save_LIBS=$LIBS
  23675. LIBS="-lmingw32 $LIBS"
  23676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23677. /* end confdefs.h. */
  23678. int
  23679. main (void)
  23680. {
  23681. return main ();
  23682. ;
  23683. return 0;
  23684. }
  23685. _ACEOF
  23686. if ac_fn_c_try_link "$LINENO"
  23687. then :
  23688. ac_cv_lib_mingw32_main=yes
  23689. else $as_nop
  23690. ac_cv_lib_mingw32_main=no
  23691. fi
  23692. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23693. conftest$ac_exeext conftest.$ac_ext
  23694. LIBS=$ac_check_lib_save_LIBS
  23695. fi
  23696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  23697. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  23698. if test "x$ac_cv_lib_mingw32_main" = xyes
  23699. then :
  23700. have_mingw32=yes
  23701. fi
  23702. if test x$have_mingw32 = xyes; then
  23703. SDL_LIBS="-lmingw32 $SDL_LIBS"
  23704. else
  23705. SDL_LIBS="-lcygwin $SDL_LIBS"
  23706. fi
  23707. ;;
  23708. *-*-beos*)
  23709. as_fn_error $? "
  23710. *** BeOS support has been removed as of SDL 2.0.2.
  23711. " "$LINENO" 5
  23712. ;;
  23713. *-*-haiku*)
  23714. ARCH=haiku
  23715. ac_default_prefix=/boot/system
  23716. CheckDummyVideo
  23717. CheckOffscreenVideo
  23718. CheckDiskAudio
  23719. CheckDummyAudio
  23720. CheckDLOPEN
  23721. CheckO_CLOEXEC
  23722. CheckHaikuVideo
  23723. CheckHaikuGL
  23724. CheckPTHREAD
  23725. # Set up files for the audio library
  23726. if test x$enable_audio = xyes; then
  23727. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  23728. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  23729. SUMMARY_audio="${SUMMARY_audio} haiku"
  23730. have_audio=yes
  23731. fi
  23732. # Set up files for the joystick library
  23733. if test x$enable_joystick = xyes; then
  23734. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  23735. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  23736. have_joystick=yes
  23737. fi
  23738. # Set up files for the timer library
  23739. if test x$enable_timers = xyes; then
  23740. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  23741. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  23742. have_timers=yes
  23743. fi
  23744. # Set up files for the system power library
  23745. if test x$enable_power = xyes; then
  23746. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  23747. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  23748. have_power=yes
  23749. fi
  23750. # Set up files for the system filesystem library
  23751. if test x$enable_filesystem = xyes; then
  23752. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  23753. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  23754. have_filesystem=yes
  23755. fi
  23756. # Set up files for the misc library
  23757. if test x$enable_misc = xyes; then
  23758. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  23759. have_misc=yes
  23760. fi
  23761. # Set up files for the locale library
  23762. if test x$enable_locale = xyes; then
  23763. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  23764. have_locale=yes
  23765. fi
  23766. # The Haiku platform requires special setup.
  23767. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  23768. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  23769. ;;
  23770. *-ios-*)
  23771. ARCH=ios
  23772. CheckVisibilityHidden
  23773. CheckWerror
  23774. CheckNoErrorDeprecatedDeclarationsWerror
  23775. CheckDeclarationAfterStatement
  23776. CheckDummyVideo
  23777. CheckOffscreenVideo
  23778. CheckDiskAudio
  23779. CheckDummyAudio
  23780. CheckDLOPEN
  23781. CheckO_CLOEXEC
  23782. CheckMETAL
  23783. CheckVulkan
  23784. CheckPTHREAD
  23785. # Set up files for the misc library
  23786. if test x$enable_misc = xyes; then
  23787. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  23788. have_misc=yes
  23789. fi
  23790. # Set up files for the locale library
  23791. if test x$enable_locale = xyes; then
  23792. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  23793. have_locale=yes
  23794. fi
  23795. # Set up files for the audio library
  23796. if test x$enable_audio = xyes; then
  23797. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  23798. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  23799. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  23800. have_audio=yes
  23801. fi
  23802. # Set up files for the joystick library
  23803. if test x$enable_joystick = xyes; then
  23804. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23805. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  23806. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23807. have_joystick=yes
  23808. else
  23809. # Need this code for accelerometer as joystick support
  23810. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  23811. fi
  23812. # Set up files for the haptic library
  23813. #if test x$enable_haptic = xyes; then
  23814. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  23815. # have_haptic=yes
  23816. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  23817. #fi
  23818. # Set up files for the sensor library
  23819. if test x$enable_sensor = xyes; then
  23820. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  23821. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  23822. have_sensor=yes
  23823. fi
  23824. # Set up files for the power library
  23825. if test x$enable_power = xyes; then
  23826. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  23827. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  23828. have_power=yes
  23829. fi
  23830. # Set up files for the filesystem library
  23831. if test x$enable_filesystem = xyes; then
  23832. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  23833. have_filesystem=yes
  23834. fi
  23835. # Set up additional files for the file library
  23836. if test x$enable_file = xyes; then
  23837. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  23838. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  23839. fi
  23840. # Set up files for the timer library
  23841. if test x$enable_timers = xyes; then
  23842. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23843. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23844. have_timers=yes
  23845. fi
  23846. # Set up other core UNIX files
  23847. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  23848. # The iOS platform requires special setup.
  23849. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  23850. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  23851. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  23852. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  23853. SUMMARY_video="${SUMMARY_video} uikit"
  23854. have_video=yes
  23855. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  23856. if test x$enable_system_iconv = xyes; then
  23857. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  23858. fi
  23859. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  23860. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  23861. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  23862. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  23863. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  23864. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  23865. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  23866. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  23867. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  23868. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  23869. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  23870. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  23871. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  23872. fi
  23873. ;;
  23874. *-*-darwin* )
  23875. # This could be either full "Mac OS X", or plain "Darwin" which is
  23876. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  23877. # Next line is broken, and a few files below require Mac OS X (full)
  23878. ARCH=macosx
  23879. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  23880. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  23881. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  23882. CheckObjectiveCARC
  23883. CheckVisibilityHidden
  23884. CheckWerror
  23885. CheckNoErrorDeprecatedDeclarationsWerror
  23886. CheckDeclarationAfterStatement
  23887. CheckDummyVideo
  23888. CheckOffscreenVideo
  23889. CheckDiskAudio
  23890. CheckDummyAudio
  23891. CheckDLOPEN
  23892. CheckO_CLOEXEC
  23893. CheckCOCOA
  23894. CheckMETAL
  23895. CheckX11
  23896. CheckMacGL
  23897. CheckMacGLES
  23898. CheckGLX
  23899. CheckOpenGL
  23900. CheckVulkan
  23901. CheckPTHREAD
  23902. CheckHIDAPI
  23903. # Set up files for the misc library
  23904. if test x$enable_misc = xyes; then
  23905. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  23906. have_misc=yes
  23907. fi
  23908. # Set up files for the locale library
  23909. if test x$enable_locale = xyes; then
  23910. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  23911. have_locale=yes
  23912. fi
  23913. # Set up files for the audio library
  23914. if test x$enable_audio = xyes; then
  23915. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  23916. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  23917. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  23918. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  23919. have_audio=yes
  23920. fi
  23921. # Set up files for the joystick library
  23922. if test x$enable_joystick = xyes; then
  23923. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  23924. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  23925. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  23926. CheckJoystickMFI
  23927. have_joystick=yes
  23928. fi
  23929. # Set up files for the haptic library
  23930. if test x$enable_haptic = xyes; then
  23931. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  23932. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  23933. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  23934. have_haptic=yes
  23935. fi
  23936. # Set up files for the power library
  23937. if test x$enable_power = xyes; then
  23938. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  23939. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  23940. have_power=yes
  23941. fi
  23942. # Set up files for the filesystem library
  23943. if test x$enable_filesystem = xyes; then
  23944. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  23945. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  23946. have_filesystem=yes
  23947. fi
  23948. # Set up files for the timer library
  23949. if test x$enable_timers = xyes; then
  23950. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23951. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23952. have_timers=yes
  23953. fi
  23954. # Set up additional files for the file library
  23955. if test x$enable_file = xyes; then
  23956. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  23957. fi
  23958. # Set up other core UNIX files
  23959. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  23960. # The Mac OS X platform requires special setup.
  23961. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  23962. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  23963. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  23964. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  23965. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  23966. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  23967. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  23968. fi
  23969. ;;
  23970. *-*-emscripten* )
  23971. if test x$enable_video = xyes; then
  23972. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  23973. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  23974. have_video=yes
  23975. SUMMARY_video="${SUMMARY_video} emscripten"
  23976. fi
  23977. if test x$enable_audio = xyes; then
  23978. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  23979. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  23980. have_audio=yes
  23981. SUMMARY_audio="${SUMMARY_audio} emscripten"
  23982. fi
  23983. CheckVisibilityHidden
  23984. CheckWerror
  23985. CheckDeclarationAfterStatement
  23986. CheckDummyVideo
  23987. CheckOffscreenVideo
  23988. CheckDiskAudio
  23989. CheckDummyAudio
  23990. CheckPTHREAD
  23991. CheckDLOPEN
  23992. CheckClockGettime
  23993. CheckEmscriptenGLES
  23994. # Set up files for the misc library
  23995. if test x$enable_misc = xyes; then
  23996. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  23997. have_misc=yes
  23998. fi
  23999. # Set up files for the power library
  24000. if test x$enable_power = xyes; then
  24001. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  24002. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  24003. have_power=yes
  24004. fi
  24005. # Set up files for the joystick library
  24006. if test x$enable_joystick = xyes; then
  24007. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  24008. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  24009. have_joystick=yes
  24010. fi
  24011. # Set up files for the filesystem library
  24012. if test x$enable_filesystem = xyes; then
  24013. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  24014. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  24015. have_filesystem=yes
  24016. fi
  24017. # Set up files for the timer library
  24018. if test x$enable_timers = xyes; then
  24019. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24020. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24021. have_timers=yes
  24022. fi
  24023. # Set up files for the locale library
  24024. if test x$enable_locale = xyes; then
  24025. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  24026. have_locale=yes
  24027. fi
  24028. ;;
  24029. *-*-riscos*)
  24030. ARCH=riscos
  24031. CheckVisibilityHidden
  24032. CheckWerror
  24033. CheckDeclarationAfterStatement
  24034. CheckDummyVideo
  24035. CheckOffscreenVideo
  24036. CheckDiskAudio
  24037. CheckDummyAudio
  24038. CheckDLOPEN
  24039. CheckO_CLOEXEC
  24040. CheckOSS
  24041. CheckPTHREAD
  24042. CheckClockGettime
  24043. # Set up files for the misc library
  24044. if test x$enable_misc = xyes; then
  24045. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  24046. have_misc=yes
  24047. fi
  24048. # Set up files for the video library
  24049. if test x$enable_video = xyes; then
  24050. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  24051. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  24052. have_video=yes
  24053. SUMMARY_video="${SUMMARY_video} riscos"
  24054. fi
  24055. # Set up files for the filesystem library
  24056. if test x$enable_filesystem = xyes; then
  24057. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  24058. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  24059. have_filesystem=yes
  24060. fi
  24061. # Set up files for the timer library
  24062. if test x$enable_timers = xyes; then
  24063. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24064. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24065. have_timers=yes
  24066. fi
  24067. ;;
  24068. *)
  24069. as_fn_error $? "
  24070. *** Unsupported host: Please add to configure.ac
  24071. " "$LINENO" 5
  24072. ;;
  24073. esac
  24074. CheckVirtualJoystick
  24075. # Check whether to install sdl3-config
  24076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl3-config" >&5
  24077. printf %s "checking whether to install sdl3-config... " >&6; }
  24078. # Check whether --enable-sdl3-config was given.
  24079. if test ${enable_sdl3_config+y}
  24080. then :
  24081. enableval=$enable_sdl3_config; case "${enableval}" in
  24082. yes) enable_sdl3_config="TRUE" ;;
  24083. no) enable_sdl3_config="FALSE" ;;
  24084. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl3-config" "$LINENO" 5 ;;
  24085. esac
  24086. else $as_nop
  24087. enable_sdl3_config="TRUE"
  24088. fi
  24089. if test "$enable_sdl3_config" = "TRUE"; then
  24090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24091. printf "%s\n" "yes" >&6; }
  24092. else
  24093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24094. printf "%s\n" "no" >&6; }
  24095. fi
  24096. INSTALL_SDL3_CONFIG=$enable_sdl3_config
  24097. # Check whether --enable-vendor-info was given.
  24098. if test ${enable_vendor_info+y}
  24099. then :
  24100. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  24101. else $as_nop
  24102. enable_vendor_info=
  24103. fi
  24104. if test "$enable_vendor_info" = no
  24105. then :
  24106. enable_vendor_info=
  24107. fi
  24108. SDL_VENDOR_INFO=$enable_vendor_info
  24109. # Verify that we have all the platform specific files we need
  24110. if test x$have_audio != xyes; then
  24111. if test x$enable_audio = xyes; then
  24112. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  24113. fi
  24114. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  24115. fi
  24116. if test x$have_video != xyes; then
  24117. if test x$enable_video = xyes; then
  24118. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  24119. fi
  24120. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  24121. fi
  24122. if test x$have_misc != xyes; then
  24123. if test x$enable_misc = xyes; then
  24124. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  24125. fi
  24126. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  24127. fi
  24128. if test x$have_locale != xyes; then
  24129. if test x$enable_locale = xyes; then
  24130. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  24131. fi
  24132. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  24133. fi
  24134. if test x$have_joystick != xyes; then
  24135. if test x$enable_joystick = xyes; then
  24136. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  24137. fi
  24138. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  24139. fi
  24140. if test x$have_haptic != xyes; then
  24141. if test x$enable_haptic = xyes; then
  24142. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  24143. fi
  24144. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  24145. fi
  24146. if test x$have_sensor != xyes; then
  24147. if test x$enable_sensor = xyes; then
  24148. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  24149. fi
  24150. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  24151. fi
  24152. if test x$have_threads != xyes; then
  24153. if test x$enable_threads = xyes; then
  24154. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  24155. fi
  24156. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  24157. fi
  24158. if test x$have_timers != xyes; then
  24159. if test x$enable_timers = xyes; then
  24160. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  24161. fi
  24162. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  24163. fi
  24164. if test x$have_filesystem != xyes; then
  24165. if test x$enable_filesystem = xyes; then
  24166. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  24167. fi
  24168. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  24169. fi
  24170. if test x$have_loadso != xyes; then
  24171. if test x$enable_loadso = xyes; then
  24172. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  24173. fi
  24174. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  24175. fi
  24176. if test x$SDLMAIN_SOURCES = x; then
  24177. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  24178. fi
  24179. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  24180. if test x$video_wayland = xyes; then
  24181. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  24182. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  24183. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  24184. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  24185. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  24186. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  24187. echo ;\
  24188. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  24189. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  24190. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  24191. echo ;\
  24192. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  24193. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  24194. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  24195. echo ;\
  24196. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  24197. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  24198. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  24199. done ;\
  24200. echo ;\
  24201. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  24202. fi
  24203. OBJECTS=`echo $SOURCES`
  24204. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  24205. for EXT in asm cc m c S; do
  24206. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  24207. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  24208. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  24209. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24210. done
  24211. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24212. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  24213. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  24214. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  24215. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  24216. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  24217. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  24218. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  24219. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  24220. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24221. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  24222. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  24223. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24224. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  24225. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  24226. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24227. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  24228. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  24229. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24230. # Set runtime shared library paths as needed
  24231. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  24232. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  24233. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  24234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  24235. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  24236. have_enable_new_dtags=no
  24237. save_LDFLAGS="$LDFLAGS"
  24238. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  24239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24240. /* end confdefs.h. */
  24241. int
  24242. main (void)
  24243. {
  24244. ;
  24245. return 0;
  24246. }
  24247. _ACEOF
  24248. if ac_fn_c_try_link "$LINENO"
  24249. then :
  24250. have_enable_new_dtags=yes
  24251. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  24252. fi
  24253. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24254. conftest$ac_exeext conftest.$ac_ext
  24255. LDFLAGS="$save_LDFLAGS"
  24256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  24257. printf "%s\n" "$have_enable_new_dtags" >&6; }
  24258. fi
  24259. if test $ARCH = solaris; then
  24260. SDL_RLD_FLAGS="-R\${libdir}"
  24261. fi
  24262. else
  24263. SDL_RLD_FLAGS=""
  24264. fi
  24265. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  24266. pkg_cmakedir='$libdir/cmake/SDL3'
  24267. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  24268. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  24269. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  24270. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  24271. _lcl_receval="$_lcl_from"
  24272. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  24273. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  24274. _lcl_receval_old=''
  24275. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  24276. _lcl_receval_old="$_lcl_receval"
  24277. eval _lcl_receval="\"$_lcl_receval\""
  24278. done
  24279. echo "$_lcl_receval")`
  24280. _lcl_receval="$_lcl_to"
  24281. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  24282. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  24283. _lcl_receval_old=''
  24284. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  24285. _lcl_receval_old="$_lcl_receval"
  24286. eval _lcl_receval="\"$_lcl_receval\""
  24287. done
  24288. echo "$_lcl_receval")`
  24289. _lcl_notation="$_lcl_from$_lcl_to"
  24290. case ":$_lcl_from:" in
  24291. # change empty paths to '.'
  24292. ::) _lcl_from='.' ;;
  24293. # strip trailing slashes
  24294. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  24295. :*:) ;;
  24296. esac
  24297. # squeeze repeated slashes
  24298. case '/' in
  24299. # if the path contains any backslashes, turn slashes into backslashes
  24300. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24301. # if the path contains slashes, also turn backslashes into slashes
  24302. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24303. esac
  24304. case ":$_lcl_to:" in
  24305. # change empty paths to '.'
  24306. ::) _lcl_to='.' ;;
  24307. # strip trailing slashes
  24308. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  24309. :*:) ;;
  24310. esac
  24311. # squeeze repeated slashes
  24312. case '/' in
  24313. # if the path contains any backslashes, turn slashes into backslashes
  24314. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24315. # if the path contains slashes, also turn backslashes into slashes
  24316. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24317. esac
  24318. _lcl_common_prefix=''
  24319. _lcl_second_prefix_match=''
  24320. while test "$_lcl_second_prefix_match" != 0; do
  24321. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  24322. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  24323. if test "$_lcl_second_prefix_match" != 0; then
  24324. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  24325. _lcl_common_prefix="$_lcl_first_prefix"
  24326. else
  24327. _lcl_second_prefix_match=0
  24328. fi
  24329. fi
  24330. done
  24331. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  24332. _lcl_first_rel=''
  24333. _lcl_tmp='xxx'
  24334. while test "$_lcl_tmp" != ''; do
  24335. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  24336. if test "$_lcl_first_suffix" != ''; then
  24337. _lcl_first_suffix="$_lcl_tmp"
  24338. _lcl_first_rel="../$_lcl_first_rel"
  24339. fi
  24340. done
  24341. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  24342. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  24343. case ":$_lcl_result_tmp:" in
  24344. # change empty paths to '.'
  24345. ::) _lcl_result_tmp='.' ;;
  24346. # strip trailing slashes
  24347. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  24348. :*:) ;;
  24349. esac
  24350. # squeeze repeated slashes
  24351. case "$_lcl_notation" in
  24352. # if the path contains any backslashes, turn slashes into backslashes
  24353. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24354. # if the path contains slashes, also turn backslashes into slashes
  24355. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24356. esac
  24357. eval $_lcl_result_var='$_lcl_result_tmp'
  24358. done
  24359. if test x$enable_shared = xyes; then
  24360. PKGCONFIG_LIBS_PRIV="
  24361. Libs.private:"
  24362. ENABLE_SHARED_TRUE=
  24363. ENABLE_SHARED_FALSE="#"
  24364. else
  24365. PKGCONFIG_LIBS_PRIV=
  24366. ENABLE_SHARED_TRUE="#"
  24367. ENABLE_SHARED_FALSE=
  24368. fi
  24369. if test x$enable_static = xyes; then
  24370. ENABLE_STATIC_TRUE=
  24371. ENABLE_STATIC_FALSE="#"
  24372. else
  24373. ENABLE_STATIC_TRUE="#"
  24374. ENABLE_STATIC_FALSE=
  24375. fi
  24376. cat >Makefile.rules <<__EOF__
  24377. # Build rules for objects
  24378. -include \$(OBJECTS:.lo=.d)
  24379. # Special dependency for SDL.c, since it depends on SDL_revision.h
  24380. $srcdir/src/SDL.c: update-revision
  24381. $DEPENDS
  24382. $VERSION_DEPENDS
  24383. $SDLMAIN_DEPENDS
  24384. $SDLTEST_DEPENDS
  24385. $WAYLAND_PROTOCOLS_DEPENDS
  24386. __EOF__
  24387. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl3-config sdl3-config.cmake sdl3-config-version.cmake SDL3.spec sdl3.pc"
  24388. ac_config_commands="$ac_config_commands sdl3_config"
  24389. SUMMARY="SDL3 Configure Summary:\n"
  24390. if test x$enable_shared = xyes; then
  24391. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  24392. fi
  24393. if test x$enable_static = xyes; then
  24394. SUMMARY="${SUMMARY}Building Static Libraries\n"
  24395. fi
  24396. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  24397. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  24398. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  24399. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  24400. if test x$have_x = xyes; then
  24401. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  24402. fi
  24403. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  24404. if test x$have_joystick_virtual = xyes; then
  24405. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  24406. else
  24407. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  24408. fi
  24409. if test x$have_samplerate_h_hdr = xyes; then
  24410. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  24411. else
  24412. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  24413. fi
  24414. if test x$have_libudev_h_hdr = xyes; then
  24415. SUMMARY="${SUMMARY}Using libudev : YES\n"
  24416. else
  24417. SUMMARY="${SUMMARY}Using libudev : NO\n"
  24418. fi
  24419. if test x$have_dbus_dbus_h_hdr = xyes; then
  24420. SUMMARY="${SUMMARY}Using dbus : YES\n"
  24421. else
  24422. SUMMARY="${SUMMARY}Using dbus : NO\n"
  24423. fi
  24424. if test x$enable_ime = xyes; then
  24425. SUMMARY="${SUMMARY}Using ime : YES\n"
  24426. else
  24427. SUMMARY="${SUMMARY}Using ime : NO\n"
  24428. fi
  24429. if test x$have_ibus_ibus_h_hdr = xyes; then
  24430. SUMMARY="${SUMMARY}Using ibus : YES\n"
  24431. else
  24432. SUMMARY="${SUMMARY}Using ibus : NO\n"
  24433. fi
  24434. if test x$have_fcitx = xyes; then
  24435. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  24436. else
  24437. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  24438. fi
  24439. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  24440. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  24441. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  24442. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  24443. SUMMARY="${SUMMARY}configure script with:\n"
  24444. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  24445. fi
  24446. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  24447. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  24448. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  24449. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  24450. SUMMARY="${SUMMARY}configure script with:\n"
  24451. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  24452. fi
  24453. ac_config_commands="$ac_config_commands summary"
  24454. cat >confcache <<\_ACEOF
  24455. # This file is a shell script that caches the results of configure
  24456. # tests run on this system so they can be shared between configure
  24457. # scripts and configure runs, see configure's option --config-cache.
  24458. # It is not useful on other systems. If it contains results you don't
  24459. # want to keep, you may remove or edit it.
  24460. #
  24461. # config.status only pays attention to the cache file if you give it
  24462. # the --recheck option to rerun configure.
  24463. #
  24464. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  24465. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  24466. # following values.
  24467. _ACEOF
  24468. # The following way of writing the cache mishandles newlines in values,
  24469. # but we know of no workaround that is simple, portable, and efficient.
  24470. # So, we kill variables containing newlines.
  24471. # Ultrix sh set writes to stderr and can't be redirected directly,
  24472. # and sets the high bit in the cache file unless we assign to the vars.
  24473. (
  24474. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  24475. eval ac_val=\$$ac_var
  24476. case $ac_val in #(
  24477. *${as_nl}*)
  24478. case $ac_var in #(
  24479. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  24480. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  24481. esac
  24482. case $ac_var in #(
  24483. _ | IFS | as_nl) ;; #(
  24484. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  24485. *) { eval $ac_var=; unset $ac_var;} ;;
  24486. esac ;;
  24487. esac
  24488. done
  24489. (set) 2>&1 |
  24490. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  24491. *${as_nl}ac_space=\ *)
  24492. # `set' does not quote correctly, so add quotes: double-quote
  24493. # substitution turns \\\\ into \\, and sed turns \\ into \.
  24494. sed -n \
  24495. "s/'/'\\\\''/g;
  24496. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  24497. ;; #(
  24498. *)
  24499. # `set' quotes correctly as required by POSIX, so do not add quotes.
  24500. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  24501. ;;
  24502. esac |
  24503. sort
  24504. ) |
  24505. sed '
  24506. /^ac_cv_env_/b end
  24507. t clear
  24508. :clear
  24509. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  24510. t end
  24511. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  24512. :end' >>confcache
  24513. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  24514. if test -w "$cache_file"; then
  24515. if test "x$cache_file" != "x/dev/null"; then
  24516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  24517. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  24518. if test ! -f "$cache_file" || test -h "$cache_file"; then
  24519. cat confcache >"$cache_file"
  24520. else
  24521. case $cache_file in #(
  24522. */* | ?:*)
  24523. mv -f confcache "$cache_file"$$ &&
  24524. mv -f "$cache_file"$$ "$cache_file" ;; #(
  24525. *)
  24526. mv -f confcache "$cache_file" ;;
  24527. esac
  24528. fi
  24529. fi
  24530. else
  24531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  24532. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  24533. fi
  24534. fi
  24535. rm -f confcache
  24536. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  24537. # Let make expand exec_prefix.
  24538. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  24539. DEFS=-DHAVE_CONFIG_H
  24540. ac_libobjs=
  24541. ac_ltlibobjs=
  24542. U=
  24543. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  24544. # 1. Remove the extension, and $U if already installed.
  24545. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  24546. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  24547. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  24548. # will be set to the directory where LIBOBJS objects are built.
  24549. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  24550. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  24551. done
  24552. LIBOBJS=$ac_libobjs
  24553. LTLIBOBJS=$ac_ltlibobjs
  24554. : "${CONFIG_STATUS=./config.status}"
  24555. ac_write_fail=0
  24556. ac_clean_files_save=$ac_clean_files
  24557. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  24558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  24559. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  24560. as_write_fail=0
  24561. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  24562. #! $SHELL
  24563. # Generated by $as_me.
  24564. # Run this file to recreate the current configuration.
  24565. # Compiler output produced by configure, useful for debugging
  24566. # configure, is in config.log if it exists.
  24567. debug=false
  24568. ac_cs_recheck=false
  24569. ac_cs_silent=false
  24570. SHELL=\${CONFIG_SHELL-$SHELL}
  24571. export SHELL
  24572. _ASEOF
  24573. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  24574. ## -------------------- ##
  24575. ## M4sh Initialization. ##
  24576. ## -------------------- ##
  24577. # Be more Bourne compatible
  24578. DUALCASE=1; export DUALCASE # for MKS sh
  24579. as_nop=:
  24580. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  24581. then :
  24582. emulate sh
  24583. NULLCMD=:
  24584. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24585. # is contrary to our usage. Disable this feature.
  24586. alias -g '${1+"$@"}'='"$@"'
  24587. setopt NO_GLOB_SUBST
  24588. else $as_nop
  24589. case `(set -o) 2>/dev/null` in #(
  24590. *posix*) :
  24591. set -o posix ;; #(
  24592. *) :
  24593. ;;
  24594. esac
  24595. fi
  24596. # Reset variables that may have inherited troublesome values from
  24597. # the environment.
  24598. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  24599. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  24600. # side effect of setting IFS to empty, thus disabling word splitting.)
  24601. # Quoting is to prevent editors from complaining about space-tab.
  24602. as_nl='
  24603. '
  24604. export as_nl
  24605. IFS=" "" $as_nl"
  24606. PS1='$ '
  24607. PS2='> '
  24608. PS4='+ '
  24609. # Ensure predictable behavior from utilities with locale-dependent output.
  24610. LC_ALL=C
  24611. export LC_ALL
  24612. LANGUAGE=C
  24613. export LANGUAGE
  24614. # We cannot yet rely on "unset" to work, but we need these variables
  24615. # to be unset--not just set to an empty or harmless value--now, to
  24616. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  24617. # also avoids known problems related to "unset" and subshell syntax
  24618. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  24619. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  24620. do eval test \${$as_var+y} \
  24621. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  24622. done
  24623. # Ensure that fds 0, 1, and 2 are open.
  24624. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  24625. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  24626. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  24627. # The user is always right.
  24628. if ${PATH_SEPARATOR+false} :; then
  24629. PATH_SEPARATOR=:
  24630. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  24631. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  24632. PATH_SEPARATOR=';'
  24633. }
  24634. fi
  24635. # Find who we are. Look in the path if we contain no directory separator.
  24636. as_myself=
  24637. case $0 in #((
  24638. *[\\/]* ) as_myself=$0 ;;
  24639. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24640. for as_dir in $PATH
  24641. do
  24642. IFS=$as_save_IFS
  24643. case $as_dir in #(((
  24644. '') as_dir=./ ;;
  24645. */) ;;
  24646. *) as_dir=$as_dir/ ;;
  24647. esac
  24648. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  24649. done
  24650. IFS=$as_save_IFS
  24651. ;;
  24652. esac
  24653. # We did not find ourselves, most probably we were run as `sh COMMAND'
  24654. # in which case we are not to be found in the path.
  24655. if test "x$as_myself" = x; then
  24656. as_myself=$0
  24657. fi
  24658. if test ! -f "$as_myself"; then
  24659. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  24660. exit 1
  24661. fi
  24662. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  24663. # ----------------------------------------
  24664. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  24665. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  24666. # script with STATUS, using 1 if that was 0.
  24667. as_fn_error ()
  24668. {
  24669. as_status=$1; test $as_status -eq 0 && as_status=1
  24670. if test "$4"; then
  24671. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  24672. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  24673. fi
  24674. printf "%s\n" "$as_me: error: $2" >&2
  24675. as_fn_exit $as_status
  24676. } # as_fn_error
  24677. # as_fn_set_status STATUS
  24678. # -----------------------
  24679. # Set $? to STATUS, without forking.
  24680. as_fn_set_status ()
  24681. {
  24682. return $1
  24683. } # as_fn_set_status
  24684. # as_fn_exit STATUS
  24685. # -----------------
  24686. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  24687. as_fn_exit ()
  24688. {
  24689. set +e
  24690. as_fn_set_status $1
  24691. exit $1
  24692. } # as_fn_exit
  24693. # as_fn_unset VAR
  24694. # ---------------
  24695. # Portably unset VAR.
  24696. as_fn_unset ()
  24697. {
  24698. { eval $1=; unset $1;}
  24699. }
  24700. as_unset=as_fn_unset
  24701. # as_fn_append VAR VALUE
  24702. # ----------------------
  24703. # Append the text in VALUE to the end of the definition contained in VAR. Take
  24704. # advantage of any shell optimizations that allow amortized linear growth over
  24705. # repeated appends, instead of the typical quadratic growth present in naive
  24706. # implementations.
  24707. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  24708. then :
  24709. eval 'as_fn_append ()
  24710. {
  24711. eval $1+=\$2
  24712. }'
  24713. else $as_nop
  24714. as_fn_append ()
  24715. {
  24716. eval $1=\$$1\$2
  24717. }
  24718. fi # as_fn_append
  24719. # as_fn_arith ARG...
  24720. # ------------------
  24721. # Perform arithmetic evaluation on the ARGs, and store the result in the
  24722. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  24723. # must be portable across $(()) and expr.
  24724. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  24725. then :
  24726. eval 'as_fn_arith ()
  24727. {
  24728. as_val=$(( $* ))
  24729. }'
  24730. else $as_nop
  24731. as_fn_arith ()
  24732. {
  24733. as_val=`expr "$@" || test $? -eq 1`
  24734. }
  24735. fi # as_fn_arith
  24736. if expr a : '\(a\)' >/dev/null 2>&1 &&
  24737. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  24738. as_expr=expr
  24739. else
  24740. as_expr=false
  24741. fi
  24742. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  24743. as_basename=basename
  24744. else
  24745. as_basename=false
  24746. fi
  24747. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  24748. as_dirname=dirname
  24749. else
  24750. as_dirname=false
  24751. fi
  24752. as_me=`$as_basename -- "$0" ||
  24753. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  24754. X"$0" : 'X\(//\)$' \| \
  24755. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  24756. printf "%s\n" X/"$0" |
  24757. sed '/^.*\/\([^/][^/]*\)\/*$/{
  24758. s//\1/
  24759. q
  24760. }
  24761. /^X\/\(\/\/\)$/{
  24762. s//\1/
  24763. q
  24764. }
  24765. /^X\/\(\/\).*/{
  24766. s//\1/
  24767. q
  24768. }
  24769. s/.*/./; q'`
  24770. # Avoid depending upon Character Ranges.
  24771. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  24772. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  24773. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  24774. as_cr_digits='0123456789'
  24775. as_cr_alnum=$as_cr_Letters$as_cr_digits
  24776. # Determine whether it's possible to make 'echo' print without a newline.
  24777. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  24778. # for compatibility with existing Makefiles.
  24779. ECHO_C= ECHO_N= ECHO_T=
  24780. case `echo -n x` in #(((((
  24781. -n*)
  24782. case `echo 'xy\c'` in
  24783. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  24784. xy) ECHO_C='\c';;
  24785. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  24786. ECHO_T=' ';;
  24787. esac;;
  24788. *)
  24789. ECHO_N='-n';;
  24790. esac
  24791. # For backward compatibility with old third-party macros, we provide
  24792. # the shell variables $as_echo and $as_echo_n. New code should use
  24793. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  24794. as_echo='printf %s\n'
  24795. as_echo_n='printf %s'
  24796. rm -f conf$$ conf$$.exe conf$$.file
  24797. if test -d conf$$.dir; then
  24798. rm -f conf$$.dir/conf$$.file
  24799. else
  24800. rm -f conf$$.dir
  24801. mkdir conf$$.dir 2>/dev/null
  24802. fi
  24803. if (echo >conf$$.file) 2>/dev/null; then
  24804. if ln -s conf$$.file conf$$ 2>/dev/null; then
  24805. as_ln_s='ln -s'
  24806. # ... but there are two gotchas:
  24807. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  24808. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  24809. # In both cases, we have to default to `cp -pR'.
  24810. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  24811. as_ln_s='cp -pR'
  24812. elif ln conf$$.file conf$$ 2>/dev/null; then
  24813. as_ln_s=ln
  24814. else
  24815. as_ln_s='cp -pR'
  24816. fi
  24817. else
  24818. as_ln_s='cp -pR'
  24819. fi
  24820. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  24821. rmdir conf$$.dir 2>/dev/null
  24822. # as_fn_mkdir_p
  24823. # -------------
  24824. # Create "$as_dir" as a directory, including parents if necessary.
  24825. as_fn_mkdir_p ()
  24826. {
  24827. case $as_dir in #(
  24828. -*) as_dir=./$as_dir;;
  24829. esac
  24830. test -d "$as_dir" || eval $as_mkdir_p || {
  24831. as_dirs=
  24832. while :; do
  24833. case $as_dir in #(
  24834. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  24835. *) as_qdir=$as_dir;;
  24836. esac
  24837. as_dirs="'$as_qdir' $as_dirs"
  24838. as_dir=`$as_dirname -- "$as_dir" ||
  24839. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24840. X"$as_dir" : 'X\(//\)[^/]' \| \
  24841. X"$as_dir" : 'X\(//\)$' \| \
  24842. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  24843. printf "%s\n" X"$as_dir" |
  24844. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24845. s//\1/
  24846. q
  24847. }
  24848. /^X\(\/\/\)[^/].*/{
  24849. s//\1/
  24850. q
  24851. }
  24852. /^X\(\/\/\)$/{
  24853. s//\1/
  24854. q
  24855. }
  24856. /^X\(\/\).*/{
  24857. s//\1/
  24858. q
  24859. }
  24860. s/.*/./; q'`
  24861. test -d "$as_dir" && break
  24862. done
  24863. test -z "$as_dirs" || eval "mkdir $as_dirs"
  24864. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  24865. } # as_fn_mkdir_p
  24866. if mkdir -p . 2>/dev/null; then
  24867. as_mkdir_p='mkdir -p "$as_dir"'
  24868. else
  24869. test -d ./-p && rmdir ./-p
  24870. as_mkdir_p=false
  24871. fi
  24872. # as_fn_executable_p FILE
  24873. # -----------------------
  24874. # Test if FILE is an executable regular file.
  24875. as_fn_executable_p ()
  24876. {
  24877. test -f "$1" && test -x "$1"
  24878. } # as_fn_executable_p
  24879. as_test_x='test -x'
  24880. as_executable_p=as_fn_executable_p
  24881. # Sed expression to map a string onto a valid CPP name.
  24882. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  24883. # Sed expression to map a string onto a valid variable name.
  24884. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  24885. exec 6>&1
  24886. ## ----------------------------------- ##
  24887. ## Main body of $CONFIG_STATUS script. ##
  24888. ## ----------------------------------- ##
  24889. _ASEOF
  24890. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  24891. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24892. # Save the log message, to keep $0 and so on meaningful, and to
  24893. # report actual input values of CONFIG_FILES etc. instead of their
  24894. # values after options handling.
  24895. ac_log="
  24896. This file was extended by $as_me, which was
  24897. generated by GNU Autoconf 2.71. Invocation command line was
  24898. CONFIG_FILES = $CONFIG_FILES
  24899. CONFIG_HEADERS = $CONFIG_HEADERS
  24900. CONFIG_LINKS = $CONFIG_LINKS
  24901. CONFIG_COMMANDS = $CONFIG_COMMANDS
  24902. $ $0 $@
  24903. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  24904. "
  24905. _ACEOF
  24906. case $ac_config_files in *"
  24907. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  24908. esac
  24909. case $ac_config_headers in *"
  24910. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  24911. esac
  24912. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24913. # Files that config.status was made for.
  24914. config_files="$ac_config_files"
  24915. config_headers="$ac_config_headers"
  24916. config_commands="$ac_config_commands"
  24917. _ACEOF
  24918. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24919. ac_cs_usage="\
  24920. \`$as_me' instantiates files and other configuration actions
  24921. from templates according to the current configuration. Unless the files
  24922. and actions are specified as TAGs, all are instantiated by default.
  24923. Usage: $0 [OPTION]... [TAG]...
  24924. -h, --help print this help, then exit
  24925. -V, --version print version number and configuration settings, then exit
  24926. --config print configuration, then exit
  24927. -q, --quiet, --silent
  24928. do not print progress messages
  24929. -d, --debug don't remove temporary files
  24930. --recheck update $as_me by reconfiguring in the same conditions
  24931. --file=FILE[:TEMPLATE]
  24932. instantiate the configuration file FILE
  24933. --header=FILE[:TEMPLATE]
  24934. instantiate the configuration header FILE
  24935. Configuration files:
  24936. $config_files
  24937. Configuration headers:
  24938. $config_headers
  24939. Configuration commands:
  24940. $config_commands
  24941. Report bugs to the package provider."
  24942. _ACEOF
  24943. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  24944. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  24945. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24946. ac_cs_config='$ac_cs_config_escaped'
  24947. ac_cs_version="\\
  24948. config.status
  24949. configured by $0, generated by GNU Autoconf 2.71,
  24950. with options \\"\$ac_cs_config\\"
  24951. Copyright (C) 2021 Free Software Foundation, Inc.
  24952. This config.status script is free software; the Free Software Foundation
  24953. gives unlimited permission to copy, distribute and modify it."
  24954. ac_pwd='$ac_pwd'
  24955. srcdir='$srcdir'
  24956. INSTALL='$INSTALL'
  24957. AWK='$AWK'
  24958. test -n "\$AWK" || AWK=awk
  24959. _ACEOF
  24960. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24961. # The default lists apply if the user does not specify any file.
  24962. ac_need_defaults=:
  24963. while test $# != 0
  24964. do
  24965. case $1 in
  24966. --*=?*)
  24967. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  24968. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  24969. ac_shift=:
  24970. ;;
  24971. --*=)
  24972. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  24973. ac_optarg=
  24974. ac_shift=:
  24975. ;;
  24976. *)
  24977. ac_option=$1
  24978. ac_optarg=$2
  24979. ac_shift=shift
  24980. ;;
  24981. esac
  24982. case $ac_option in
  24983. # Handling of the options.
  24984. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  24985. ac_cs_recheck=: ;;
  24986. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  24987. printf "%s\n" "$ac_cs_version"; exit ;;
  24988. --config | --confi | --conf | --con | --co | --c )
  24989. printf "%s\n" "$ac_cs_config"; exit ;;
  24990. --debug | --debu | --deb | --de | --d | -d )
  24991. debug=: ;;
  24992. --file | --fil | --fi | --f )
  24993. $ac_shift
  24994. case $ac_optarg in
  24995. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  24996. '') as_fn_error $? "missing file argument" ;;
  24997. esac
  24998. as_fn_append CONFIG_FILES " '$ac_optarg'"
  24999. ac_need_defaults=false;;
  25000. --header | --heade | --head | --hea )
  25001. $ac_shift
  25002. case $ac_optarg in
  25003. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25004. esac
  25005. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  25006. ac_need_defaults=false;;
  25007. --he | --h)
  25008. # Conflict between --help and --header
  25009. as_fn_error $? "ambiguous option: \`$1'
  25010. Try \`$0 --help' for more information.";;
  25011. --help | --hel | -h )
  25012. printf "%s\n" "$ac_cs_usage"; exit ;;
  25013. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  25014. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  25015. ac_cs_silent=: ;;
  25016. # This is an error.
  25017. -*) as_fn_error $? "unrecognized option: \`$1'
  25018. Try \`$0 --help' for more information." ;;
  25019. *) as_fn_append ac_config_targets " $1"
  25020. ac_need_defaults=false ;;
  25021. esac
  25022. shift
  25023. done
  25024. ac_configure_extra_args=
  25025. if $ac_cs_silent; then
  25026. exec 6>/dev/null
  25027. ac_configure_extra_args="$ac_configure_extra_args --silent"
  25028. fi
  25029. _ACEOF
  25030. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25031. if \$ac_cs_recheck; then
  25032. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  25033. shift
  25034. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  25035. CONFIG_SHELL='$SHELL'
  25036. export CONFIG_SHELL
  25037. exec "\$@"
  25038. fi
  25039. _ACEOF
  25040. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25041. exec 5>>config.log
  25042. {
  25043. echo
  25044. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  25045. ## Running $as_me. ##
  25046. _ASBOX
  25047. printf "%s\n" "$ac_log"
  25048. } >&5
  25049. _ACEOF
  25050. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25051. #
  25052. # INIT-COMMANDS
  25053. #
  25054. # The HP-UX ksh and POSIX shell print the target directory to stdout
  25055. # if CDPATH is set.
  25056. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  25057. sed_quote_subst='$sed_quote_subst'
  25058. double_quote_subst='$double_quote_subst'
  25059. delay_variable_subst='$delay_variable_subst'
  25060. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  25061. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  25062. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  25063. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  25064. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  25065. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  25066. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  25067. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  25068. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  25069. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  25070. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  25071. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  25072. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  25073. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  25074. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  25075. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  25076. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  25077. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  25078. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  25079. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  25080. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  25081. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  25082. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  25083. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  25084. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  25085. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  25086. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  25087. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  25088. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  25089. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  25090. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  25091. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  25092. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  25093. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  25094. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  25095. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  25096. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  25097. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  25098. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  25099. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  25100. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  25101. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  25102. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  25103. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  25104. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  25105. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  25106. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  25107. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  25108. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  25109. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  25110. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  25111. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  25112. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  25113. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  25114. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  25115. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  25116. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  25117. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  25118. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  25119. 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"`'
  25120. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  25121. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  25122. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  25123. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  25124. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  25125. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  25126. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  25127. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  25128. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  25129. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  25130. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  25131. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  25132. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  25133. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  25134. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  25135. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  25136. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  25137. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  25138. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  25139. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  25140. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  25141. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  25142. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  25143. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  25144. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  25145. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  25146. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  25147. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  25148. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  25149. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  25150. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  25151. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  25152. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  25153. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  25154. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  25155. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  25156. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  25157. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  25158. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  25159. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  25160. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  25161. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  25162. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  25163. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  25164. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  25165. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  25166. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  25167. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  25168. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  25169. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  25170. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  25171. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  25172. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  25173. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  25174. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  25175. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  25176. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  25177. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  25178. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  25179. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  25180. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  25181. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  25182. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  25183. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  25184. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  25185. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  25186. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  25187. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  25188. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  25189. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  25190. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  25191. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  25192. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  25193. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  25194. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  25195. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  25196. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  25197. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  25198. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  25199. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  25200. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  25201. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  25202. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  25203. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  25204. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  25205. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25206. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25207. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25208. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25209. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25210. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  25211. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  25212. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  25213. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  25214. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  25215. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25216. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  25217. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  25218. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  25219. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  25220. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  25221. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  25222. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  25223. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  25224. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  25225. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  25226. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  25227. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  25228. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25229. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25230. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25231. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25232. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  25233. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  25234. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25235. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25236. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25237. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25238. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25239. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25240. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25241. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25242. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25243. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25244. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25245. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25246. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  25247. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  25248. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  25249. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25250. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  25251. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25252. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25253. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25254. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  25255. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  25256. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  25257. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  25258. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  25259. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  25260. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  25261. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  25262. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  25263. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  25264. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  25265. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  25266. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  25267. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  25268. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  25269. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  25270. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  25271. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  25272. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25273. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25274. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  25275. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  25276. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  25277. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  25278. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25279. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25280. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25281. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25282. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  25283. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25284. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  25285. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  25286. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  25287. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  25288. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  25289. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  25290. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  25291. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  25292. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  25293. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  25294. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  25295. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  25296. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  25297. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  25298. LTCC='$LTCC'
  25299. LTCFLAGS='$LTCFLAGS'
  25300. compiler='$compiler_DEFAULT'
  25301. # A function that is used when there is no print builtin or printf.
  25302. func_fallback_echo ()
  25303. {
  25304. eval 'cat <<_LTECHO_EOF
  25305. \$1
  25306. _LTECHO_EOF'
  25307. }
  25308. # Quote evaled strings.
  25309. for var in AS \
  25310. DLLTOOL \
  25311. OBJDUMP \
  25312. SHELL \
  25313. ECHO \
  25314. PATH_SEPARATOR \
  25315. SED \
  25316. GREP \
  25317. EGREP \
  25318. FGREP \
  25319. LD \
  25320. NM \
  25321. LN_S \
  25322. lt_SP2NL \
  25323. lt_NL2SP \
  25324. reload_flag \
  25325. deplibs_check_method \
  25326. file_magic_cmd \
  25327. file_magic_glob \
  25328. want_nocaseglob \
  25329. sharedlib_from_linklib_cmd \
  25330. AR \
  25331. AR_FLAGS \
  25332. archiver_list_spec \
  25333. STRIP \
  25334. RANLIB \
  25335. CC \
  25336. CFLAGS \
  25337. compiler \
  25338. lt_cv_sys_global_symbol_pipe \
  25339. lt_cv_sys_global_symbol_to_cdecl \
  25340. lt_cv_sys_global_symbol_to_import \
  25341. lt_cv_sys_global_symbol_to_c_name_address \
  25342. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  25343. lt_cv_nm_interface \
  25344. nm_file_list_spec \
  25345. lt_cv_truncate_bin \
  25346. lt_prog_compiler_no_builtin_flag \
  25347. lt_prog_compiler_pic \
  25348. lt_prog_compiler_wl \
  25349. lt_prog_compiler_static \
  25350. lt_cv_prog_compiler_c_o \
  25351. need_locks \
  25352. MANIFEST_TOOL \
  25353. DSYMUTIL \
  25354. NMEDIT \
  25355. LIPO \
  25356. OTOOL \
  25357. OTOOL64 \
  25358. shrext_cmds \
  25359. export_dynamic_flag_spec \
  25360. whole_archive_flag_spec \
  25361. compiler_needs_object \
  25362. with_gnu_ld \
  25363. allow_undefined_flag \
  25364. no_undefined_flag \
  25365. hardcode_libdir_flag_spec \
  25366. hardcode_libdir_separator \
  25367. exclude_expsyms \
  25368. include_expsyms \
  25369. file_list_spec \
  25370. variables_saved_for_relink \
  25371. libname_spec \
  25372. library_names_spec \
  25373. soname_spec \
  25374. install_override_mode \
  25375. finish_eval \
  25376. old_striplib \
  25377. striplib \
  25378. compiler_lib_search_dirs \
  25379. predep_objects \
  25380. postdep_objects \
  25381. predeps \
  25382. postdeps \
  25383. compiler_lib_search_path \
  25384. LD_RC \
  25385. LD_CXX \
  25386. reload_flag_RC \
  25387. reload_flag_CXX \
  25388. compiler_RC \
  25389. compiler_CXX \
  25390. lt_prog_compiler_no_builtin_flag_RC \
  25391. lt_prog_compiler_no_builtin_flag_CXX \
  25392. lt_prog_compiler_pic_RC \
  25393. lt_prog_compiler_pic_CXX \
  25394. lt_prog_compiler_wl_RC \
  25395. lt_prog_compiler_wl_CXX \
  25396. lt_prog_compiler_static_RC \
  25397. lt_prog_compiler_static_CXX \
  25398. lt_cv_prog_compiler_c_o_RC \
  25399. lt_cv_prog_compiler_c_o_CXX \
  25400. export_dynamic_flag_spec_RC \
  25401. export_dynamic_flag_spec_CXX \
  25402. whole_archive_flag_spec_RC \
  25403. whole_archive_flag_spec_CXX \
  25404. compiler_needs_object_RC \
  25405. compiler_needs_object_CXX \
  25406. with_gnu_ld_RC \
  25407. with_gnu_ld_CXX \
  25408. allow_undefined_flag_RC \
  25409. allow_undefined_flag_CXX \
  25410. no_undefined_flag_RC \
  25411. no_undefined_flag_CXX \
  25412. hardcode_libdir_flag_spec_RC \
  25413. hardcode_libdir_flag_spec_CXX \
  25414. hardcode_libdir_separator_RC \
  25415. hardcode_libdir_separator_CXX \
  25416. exclude_expsyms_RC \
  25417. exclude_expsyms_CXX \
  25418. include_expsyms_RC \
  25419. include_expsyms_CXX \
  25420. file_list_spec_RC \
  25421. file_list_spec_CXX \
  25422. compiler_lib_search_dirs_RC \
  25423. compiler_lib_search_dirs_CXX \
  25424. predep_objects_RC \
  25425. predep_objects_CXX \
  25426. postdep_objects_RC \
  25427. postdep_objects_CXX \
  25428. predeps_RC \
  25429. predeps_CXX \
  25430. postdeps_RC \
  25431. postdeps_CXX \
  25432. compiler_lib_search_path_RC \
  25433. compiler_lib_search_path_CXX; do
  25434. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  25435. *[\\\\\\\`\\"\\\$]*)
  25436. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  25437. ;;
  25438. *)
  25439. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  25440. ;;
  25441. esac
  25442. done
  25443. # Double-quote double-evaled strings.
  25444. for var in reload_cmds \
  25445. old_postinstall_cmds \
  25446. old_postuninstall_cmds \
  25447. old_archive_cmds \
  25448. extract_expsyms_cmds \
  25449. old_archive_from_new_cmds \
  25450. old_archive_from_expsyms_cmds \
  25451. archive_cmds \
  25452. archive_expsym_cmds \
  25453. module_cmds \
  25454. module_expsym_cmds \
  25455. export_symbols_cmds \
  25456. prelink_cmds \
  25457. postlink_cmds \
  25458. postinstall_cmds \
  25459. postuninstall_cmds \
  25460. finish_cmds \
  25461. sys_lib_search_path_spec \
  25462. configure_time_dlsearch_path \
  25463. configure_time_lt_sys_library_path \
  25464. reload_cmds_RC \
  25465. reload_cmds_CXX \
  25466. old_archive_cmds_RC \
  25467. old_archive_cmds_CXX \
  25468. old_archive_from_new_cmds_RC \
  25469. old_archive_from_new_cmds_CXX \
  25470. old_archive_from_expsyms_cmds_RC \
  25471. old_archive_from_expsyms_cmds_CXX \
  25472. archive_cmds_RC \
  25473. archive_cmds_CXX \
  25474. archive_expsym_cmds_RC \
  25475. archive_expsym_cmds_CXX \
  25476. module_cmds_RC \
  25477. module_cmds_CXX \
  25478. module_expsym_cmds_RC \
  25479. module_expsym_cmds_CXX \
  25480. export_symbols_cmds_RC \
  25481. export_symbols_cmds_CXX \
  25482. prelink_cmds_RC \
  25483. prelink_cmds_CXX \
  25484. postlink_cmds_RC \
  25485. postlink_cmds_CXX; do
  25486. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  25487. *[\\\\\\\`\\"\\\$]*)
  25488. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  25489. ;;
  25490. *)
  25491. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  25492. ;;
  25493. esac
  25494. done
  25495. ac_aux_dir='$ac_aux_dir'
  25496. # See if we are running on zsh, and set the options that allow our
  25497. # commands through without removal of \ escapes INIT.
  25498. if test -n "\${ZSH_VERSION+set}"; then
  25499. setopt NO_GLOB_SUBST
  25500. fi
  25501. PACKAGE='$PACKAGE'
  25502. VERSION='$VERSION'
  25503. RM='$RM'
  25504. ofile='$ofile'
  25505. SUMMARY="$SUMMARY"
  25506. _ACEOF
  25507. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25508. # Handling of arguments.
  25509. for ac_config_target in $ac_config_targets
  25510. do
  25511. case $ac_config_target in
  25512. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  25513. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  25514. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  25515. "sdl3-config") CONFIG_FILES="$CONFIG_FILES sdl3-config" ;;
  25516. "sdl3-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl3-config.cmake" ;;
  25517. "sdl3-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl3-config-version.cmake" ;;
  25518. "SDL3.spec") CONFIG_FILES="$CONFIG_FILES SDL3.spec" ;;
  25519. "sdl3.pc") CONFIG_FILES="$CONFIG_FILES sdl3.pc" ;;
  25520. "sdl3_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl3_config" ;;
  25521. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  25522. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  25523. esac
  25524. done
  25525. # If the user did not use the arguments to specify the items to instantiate,
  25526. # then the envvar interface is used. Set only those that are not.
  25527. # We use the long form for the default assignment because of an extremely
  25528. # bizarre bug on SunOS 4.1.3.
  25529. if $ac_need_defaults; then
  25530. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  25531. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  25532. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  25533. fi
  25534. # Have a temporary directory for convenience. Make it in the build tree
  25535. # simply because there is no reason against having it here, and in addition,
  25536. # creating and moving files from /tmp can sometimes cause problems.
  25537. # Hook for its removal unless debugging.
  25538. # Note that there is a small window in which the directory will not be cleaned:
  25539. # after its creation but before its name has been assigned to `$tmp'.
  25540. $debug ||
  25541. {
  25542. tmp= ac_tmp=
  25543. trap 'exit_status=$?
  25544. : "${ac_tmp:=$tmp}"
  25545. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  25546. ' 0
  25547. trap 'as_fn_exit 1' 1 2 13 15
  25548. }
  25549. # Create a (secure) tmp directory for tmp files.
  25550. {
  25551. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  25552. test -d "$tmp"
  25553. } ||
  25554. {
  25555. tmp=./conf$$-$RANDOM
  25556. (umask 077 && mkdir "$tmp")
  25557. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  25558. ac_tmp=$tmp
  25559. # Set up the scripts for CONFIG_FILES section.
  25560. # No need to generate them if there are no CONFIG_FILES.
  25561. # This happens for instance with `./config.status config.h'.
  25562. if test -n "$CONFIG_FILES"; then
  25563. ac_cr=`echo X | tr X '\015'`
  25564. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  25565. # But we know of no other shell where ac_cr would be empty at this
  25566. # point, so we can use a bashism as a fallback.
  25567. if test "x$ac_cr" = x; then
  25568. eval ac_cr=\$\'\\r\'
  25569. fi
  25570. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  25571. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  25572. ac_cs_awk_cr='\\r'
  25573. else
  25574. ac_cs_awk_cr=$ac_cr
  25575. fi
  25576. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  25577. _ACEOF
  25578. {
  25579. echo "cat >conf$$subs.awk <<_ACEOF" &&
  25580. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  25581. echo "_ACEOF"
  25582. } >conf$$subs.sh ||
  25583. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25584. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  25585. ac_delim='%!_!# '
  25586. for ac_last_try in false false false false false :; do
  25587. . ./conf$$subs.sh ||
  25588. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25589. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  25590. if test $ac_delim_n = $ac_delim_num; then
  25591. break
  25592. elif $ac_last_try; then
  25593. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25594. else
  25595. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  25596. fi
  25597. done
  25598. rm -f conf$$subs.sh
  25599. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25600. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  25601. _ACEOF
  25602. sed -n '
  25603. h
  25604. s/^/S["/; s/!.*/"]=/
  25605. p
  25606. g
  25607. s/^[^!]*!//
  25608. :repl
  25609. t repl
  25610. s/'"$ac_delim"'$//
  25611. t delim
  25612. :nl
  25613. h
  25614. s/\(.\{148\}\)..*/\1/
  25615. t more1
  25616. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  25617. p
  25618. n
  25619. b repl
  25620. :more1
  25621. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  25622. p
  25623. g
  25624. s/.\{148\}//
  25625. t nl
  25626. :delim
  25627. h
  25628. s/\(.\{148\}\)..*/\1/
  25629. t more2
  25630. s/["\\]/\\&/g; s/^/"/; s/$/"/
  25631. p
  25632. b
  25633. :more2
  25634. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  25635. p
  25636. g
  25637. s/.\{148\}//
  25638. t delim
  25639. ' <conf$$subs.awk | sed '
  25640. /^[^""]/{
  25641. N
  25642. s/\n//
  25643. }
  25644. ' >>$CONFIG_STATUS || ac_write_fail=1
  25645. rm -f conf$$subs.awk
  25646. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25647. _ACAWK
  25648. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  25649. for (key in S) S_is_set[key] = 1
  25650. FS = ""
  25651. }
  25652. {
  25653. line = $ 0
  25654. nfields = split(line, field, "@")
  25655. substed = 0
  25656. len = length(field[1])
  25657. for (i = 2; i < nfields; i++) {
  25658. key = field[i]
  25659. keylen = length(key)
  25660. if (S_is_set[key]) {
  25661. value = S[key]
  25662. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  25663. len += length(value) + length(field[++i])
  25664. substed = 1
  25665. } else
  25666. len += 1 + keylen
  25667. }
  25668. print line
  25669. }
  25670. _ACAWK
  25671. _ACEOF
  25672. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25673. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  25674. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  25675. else
  25676. cat
  25677. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  25678. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  25679. _ACEOF
  25680. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  25681. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  25682. # trailing colons and then remove the whole line if VPATH becomes empty
  25683. # (actually we leave an empty line to preserve line numbers).
  25684. if test "x$srcdir" = x.; then
  25685. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  25686. h
  25687. s///
  25688. s/^/:/
  25689. s/[ ]*$/:/
  25690. s/:\$(srcdir):/:/g
  25691. s/:\${srcdir}:/:/g
  25692. s/:@srcdir@:/:/g
  25693. s/^:*//
  25694. s/:*$//
  25695. x
  25696. s/\(=[ ]*\).*/\1/
  25697. G
  25698. s/\n//
  25699. s/^[^=]*=[ ]*$//
  25700. }'
  25701. fi
  25702. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25703. fi # test -n "$CONFIG_FILES"
  25704. # Set up the scripts for CONFIG_HEADERS section.
  25705. # No need to generate them if there are no CONFIG_HEADERS.
  25706. # This happens for instance with `./config.status Makefile'.
  25707. if test -n "$CONFIG_HEADERS"; then
  25708. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  25709. BEGIN {
  25710. _ACEOF
  25711. # Transform confdefs.h into an awk script `defines.awk', embedded as
  25712. # here-document in config.status, that substitutes the proper values into
  25713. # config.h.in to produce config.h.
  25714. # Create a delimiter string that does not exist in confdefs.h, to ease
  25715. # handling of long lines.
  25716. ac_delim='%!_!# '
  25717. for ac_last_try in false false :; do
  25718. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  25719. if test -z "$ac_tt"; then
  25720. break
  25721. elif $ac_last_try; then
  25722. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  25723. else
  25724. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  25725. fi
  25726. done
  25727. # For the awk script, D is an array of macro values keyed by name,
  25728. # likewise P contains macro parameters if any. Preserve backslash
  25729. # newline sequences.
  25730. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  25731. sed -n '
  25732. s/.\{148\}/&'"$ac_delim"'/g
  25733. t rset
  25734. :rset
  25735. s/^[ ]*#[ ]*define[ ][ ]*/ /
  25736. t def
  25737. d
  25738. :def
  25739. s/\\$//
  25740. t bsnl
  25741. s/["\\]/\\&/g
  25742. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  25743. D["\1"]=" \3"/p
  25744. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  25745. d
  25746. :bsnl
  25747. s/["\\]/\\&/g
  25748. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  25749. D["\1"]=" \3\\\\\\n"\\/p
  25750. t cont
  25751. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  25752. t cont
  25753. d
  25754. :cont
  25755. n
  25756. s/.\{148\}/&'"$ac_delim"'/g
  25757. t clear
  25758. :clear
  25759. s/\\$//
  25760. t bsnlc
  25761. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  25762. d
  25763. :bsnlc
  25764. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  25765. b cont
  25766. ' <confdefs.h | sed '
  25767. s/'"$ac_delim"'/"\\\
  25768. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  25769. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25770. for (key in D) D_is_set[key] = 1
  25771. FS = ""
  25772. }
  25773. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  25774. line = \$ 0
  25775. split(line, arg, " ")
  25776. if (arg[1] == "#") {
  25777. defundef = arg[2]
  25778. mac1 = arg[3]
  25779. } else {
  25780. defundef = substr(arg[1], 2)
  25781. mac1 = arg[2]
  25782. }
  25783. split(mac1, mac2, "(") #)
  25784. macro = mac2[1]
  25785. prefix = substr(line, 1, index(line, defundef) - 1)
  25786. if (D_is_set[macro]) {
  25787. # Preserve the white space surrounding the "#".
  25788. print prefix "define", macro P[macro] D[macro]
  25789. next
  25790. } else {
  25791. # Replace #undef with comments. This is necessary, for example,
  25792. # in the case of _POSIX_SOURCE, which is predefined and required
  25793. # on some systems where configure will not decide to define it.
  25794. if (defundef == "undef") {
  25795. print "/*", prefix defundef, macro, "*/"
  25796. next
  25797. }
  25798. }
  25799. }
  25800. { print }
  25801. _ACAWK
  25802. _ACEOF
  25803. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25804. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  25805. fi # test -n "$CONFIG_HEADERS"
  25806. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  25807. shift
  25808. for ac_tag
  25809. do
  25810. case $ac_tag in
  25811. :[FHLC]) ac_mode=$ac_tag; continue;;
  25812. esac
  25813. case $ac_mode$ac_tag in
  25814. :[FHL]*:*);;
  25815. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  25816. :[FH]-) ac_tag=-:-;;
  25817. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  25818. esac
  25819. ac_save_IFS=$IFS
  25820. IFS=:
  25821. set x $ac_tag
  25822. IFS=$ac_save_IFS
  25823. shift
  25824. ac_file=$1
  25825. shift
  25826. case $ac_mode in
  25827. :L) ac_source=$1;;
  25828. :[FH])
  25829. ac_file_inputs=
  25830. for ac_f
  25831. do
  25832. case $ac_f in
  25833. -) ac_f="$ac_tmp/stdin";;
  25834. *) # Look for the file first in the build tree, then in the source tree
  25835. # (if the path is not absolute). The absolute path cannot be DOS-style,
  25836. # because $ac_f cannot contain `:'.
  25837. test -f "$ac_f" ||
  25838. case $ac_f in
  25839. [\\/$]*) false;;
  25840. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  25841. esac ||
  25842. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  25843. esac
  25844. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  25845. as_fn_append ac_file_inputs " '$ac_f'"
  25846. done
  25847. # Let's still pretend it is `configure' which instantiates (i.e., don't
  25848. # use $as_me), people would be surprised to read:
  25849. # /* config.h. Generated by config.status. */
  25850. configure_input='Generated from '`
  25851. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  25852. `' by configure.'
  25853. if test x"$ac_file" != x-; then
  25854. configure_input="$ac_file. $configure_input"
  25855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  25856. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  25857. fi
  25858. # Neutralize special characters interpreted by sed in replacement strings.
  25859. case $configure_input in #(
  25860. *\&* | *\|* | *\\* )
  25861. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  25862. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  25863. *) ac_sed_conf_input=$configure_input;;
  25864. esac
  25865. case $ac_tag in
  25866. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  25867. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  25868. esac
  25869. ;;
  25870. esac
  25871. ac_dir=`$as_dirname -- "$ac_file" ||
  25872. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25873. X"$ac_file" : 'X\(//\)[^/]' \| \
  25874. X"$ac_file" : 'X\(//\)$' \| \
  25875. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  25876. printf "%s\n" X"$ac_file" |
  25877. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25878. s//\1/
  25879. q
  25880. }
  25881. /^X\(\/\/\)[^/].*/{
  25882. s//\1/
  25883. q
  25884. }
  25885. /^X\(\/\/\)$/{
  25886. s//\1/
  25887. q
  25888. }
  25889. /^X\(\/\).*/{
  25890. s//\1/
  25891. q
  25892. }
  25893. s/.*/./; q'`
  25894. as_dir="$ac_dir"; as_fn_mkdir_p
  25895. ac_builddir=.
  25896. case "$ac_dir" in
  25897. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25898. *)
  25899. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  25900. # A ".." for each directory in $ac_dir_suffix.
  25901. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  25902. case $ac_top_builddir_sub in
  25903. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25904. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  25905. esac ;;
  25906. esac
  25907. ac_abs_top_builddir=$ac_pwd
  25908. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  25909. # for backward compatibility:
  25910. ac_top_builddir=$ac_top_build_prefix
  25911. case $srcdir in
  25912. .) # We are building in place.
  25913. ac_srcdir=.
  25914. ac_top_srcdir=$ac_top_builddir_sub
  25915. ac_abs_top_srcdir=$ac_pwd ;;
  25916. [\\/]* | ?:[\\/]* ) # Absolute name.
  25917. ac_srcdir=$srcdir$ac_dir_suffix;
  25918. ac_top_srcdir=$srcdir
  25919. ac_abs_top_srcdir=$srcdir ;;
  25920. *) # Relative name.
  25921. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  25922. ac_top_srcdir=$ac_top_build_prefix$srcdir
  25923. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  25924. esac
  25925. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  25926. case $ac_mode in
  25927. :F)
  25928. #
  25929. # CONFIG_FILE
  25930. #
  25931. case $INSTALL in
  25932. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  25933. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  25934. esac
  25935. _ACEOF
  25936. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25937. # If the template does not know about datarootdir, expand it.
  25938. # FIXME: This hack should be removed a few years after 2.60.
  25939. ac_datarootdir_hack=; ac_datarootdir_seen=
  25940. ac_sed_dataroot='
  25941. /datarootdir/ {
  25942. p
  25943. q
  25944. }
  25945. /@datadir@/p
  25946. /@docdir@/p
  25947. /@infodir@/p
  25948. /@localedir@/p
  25949. /@mandir@/p'
  25950. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  25951. *datarootdir*) ac_datarootdir_seen=yes;;
  25952. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  25953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  25954. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  25955. _ACEOF
  25956. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25957. ac_datarootdir_hack='
  25958. s&@datadir@&$datadir&g
  25959. s&@docdir@&$docdir&g
  25960. s&@infodir@&$infodir&g
  25961. s&@localedir@&$localedir&g
  25962. s&@mandir@&$mandir&g
  25963. s&\\\${datarootdir}&$datarootdir&g' ;;
  25964. esac
  25965. _ACEOF
  25966. # Neutralize VPATH when `$srcdir' = `.'.
  25967. # Shell code in configure.ac might set extrasub.
  25968. # FIXME: do we really want to maintain this feature?
  25969. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25970. ac_sed_extra="$ac_vpsub
  25971. $extrasub
  25972. _ACEOF
  25973. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25974. :t
  25975. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  25976. s|@configure_input@|$ac_sed_conf_input|;t t
  25977. s&@top_builddir@&$ac_top_builddir_sub&;t t
  25978. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  25979. s&@srcdir@&$ac_srcdir&;t t
  25980. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  25981. s&@top_srcdir@&$ac_top_srcdir&;t t
  25982. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  25983. s&@builddir@&$ac_builddir&;t t
  25984. s&@abs_builddir@&$ac_abs_builddir&;t t
  25985. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  25986. s&@INSTALL@&$ac_INSTALL&;t t
  25987. $ac_datarootdir_hack
  25988. "
  25989. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  25990. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25991. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  25992. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  25993. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  25994. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  25995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25996. which seems to be undefined. Please make sure it is defined" >&5
  25997. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25998. which seems to be undefined. Please make sure it is defined" >&2;}
  25999. rm -f "$ac_tmp/stdin"
  26000. case $ac_file in
  26001. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  26002. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  26003. esac \
  26004. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26005. ;;
  26006. :H)
  26007. #
  26008. # CONFIG_HEADER
  26009. #
  26010. if test x"$ac_file" != x-; then
  26011. {
  26012. printf "%s\n" "/* $configure_input */" >&1 \
  26013. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  26014. } >"$ac_tmp/config.h" \
  26015. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26016. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  26017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  26018. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  26019. else
  26020. rm -f "$ac_file"
  26021. mv "$ac_tmp/config.h" "$ac_file" \
  26022. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26023. fi
  26024. else
  26025. printf "%s\n" "/* $configure_input */" >&1 \
  26026. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  26027. || as_fn_error $? "could not create -" "$LINENO" 5
  26028. fi
  26029. ;;
  26030. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  26031. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  26032. ;;
  26033. esac
  26034. case $ac_file$ac_mode in
  26035. "libtool":C)
  26036. # See if we are running on zsh, and set the options that allow our
  26037. # commands through without removal of \ escapes.
  26038. if test -n "${ZSH_VERSION+set}"; then
  26039. setopt NO_GLOB_SUBST
  26040. fi
  26041. cfgfile=${ofile}T
  26042. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  26043. $RM "$cfgfile"
  26044. cat <<_LT_EOF >> "$cfgfile"
  26045. #! $SHELL
  26046. # Generated automatically by $as_me ($PACKAGE) $VERSION
  26047. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  26048. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  26049. # Provide generalized library-building support services.
  26050. # Written by Gordon Matzigkeit, 1996
  26051. # Copyright (C) 2014 Free Software Foundation, Inc.
  26052. # This is free software; see the source for copying conditions. There is NO
  26053. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  26054. # GNU Libtool is free software; you can redistribute it and/or modify
  26055. # it under the terms of the GNU General Public License as published by
  26056. # the Free Software Foundation; either version 2 of of the License, or
  26057. # (at your option) any later version.
  26058. #
  26059. # As a special exception to the GNU General Public License, if you
  26060. # distribute this file as part of a program or library that is built
  26061. # using GNU Libtool, you may include this file under the same
  26062. # distribution terms that you use for the rest of that program.
  26063. #
  26064. # GNU Libtool is distributed in the hope that it will be useful, but
  26065. # WITHOUT ANY WARRANTY; without even the implied warranty of
  26066. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  26067. # GNU General Public License for more details.
  26068. #
  26069. # You should have received a copy of the GNU General Public License
  26070. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  26071. # The names of the tagged configurations supported by this script.
  26072. available_tags='RC CXX '
  26073. # Configured defaults for sys_lib_dlsearch_path munging.
  26074. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  26075. # ### BEGIN LIBTOOL CONFIG
  26076. # Which release of libtool.m4 was used?
  26077. macro_version=$macro_version
  26078. macro_revision=$macro_revision
  26079. # Assembler program.
  26080. AS=$lt_AS
  26081. # DLL creation program.
  26082. DLLTOOL=$lt_DLLTOOL
  26083. # Object dumper program.
  26084. OBJDUMP=$lt_OBJDUMP
  26085. # Whether or not to build shared libraries.
  26086. build_libtool_libs=$enable_shared
  26087. # Whether or not to build static libraries.
  26088. build_old_libs=$enable_static
  26089. # What type of objects to build.
  26090. pic_mode=$pic_mode
  26091. # Whether or not to optimize for fast installation.
  26092. fast_install=$enable_fast_install
  26093. # Shared archive member basename,for filename based shared library versioning on AIX.
  26094. shared_archive_member_spec=$shared_archive_member_spec
  26095. # Shell to use when invoking shell scripts.
  26096. SHELL=$lt_SHELL
  26097. # An echo program that protects backslashes.
  26098. ECHO=$lt_ECHO
  26099. # The PATH separator for the build system.
  26100. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  26101. # The host system.
  26102. host_alias=$host_alias
  26103. host=$host
  26104. host_os=$host_os
  26105. # The build system.
  26106. build_alias=$build_alias
  26107. build=$build
  26108. build_os=$build_os
  26109. # A sed program that does not truncate output.
  26110. SED=$lt_SED
  26111. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  26112. Xsed="\$SED -e 1s/^X//"
  26113. # A grep program that handles long lines.
  26114. GREP=$lt_GREP
  26115. # An ERE matcher.
  26116. EGREP=$lt_EGREP
  26117. # A literal string matcher.
  26118. FGREP=$lt_FGREP
  26119. # A BSD- or MS-compatible name lister.
  26120. NM=$lt_NM
  26121. # Whether we need soft or hard links.
  26122. LN_S=$lt_LN_S
  26123. # What is the maximum length of a command?
  26124. max_cmd_len=$max_cmd_len
  26125. # Object file suffix (normally "o").
  26126. objext=$ac_objext
  26127. # Executable file suffix (normally "").
  26128. exeext=$exeext
  26129. # whether the shell understands "unset".
  26130. lt_unset=$lt_unset
  26131. # turn spaces into newlines.
  26132. SP2NL=$lt_lt_SP2NL
  26133. # turn newlines into spaces.
  26134. NL2SP=$lt_lt_NL2SP
  26135. # convert \$build file names to \$host format.
  26136. to_host_file_cmd=$lt_cv_to_host_file_cmd
  26137. # convert \$build files to toolchain format.
  26138. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  26139. # Method to check whether dependent libraries are shared objects.
  26140. deplibs_check_method=$lt_deplibs_check_method
  26141. # Command to use when deplibs_check_method = "file_magic".
  26142. file_magic_cmd=$lt_file_magic_cmd
  26143. # How to find potential files when deplibs_check_method = "file_magic".
  26144. file_magic_glob=$lt_file_magic_glob
  26145. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  26146. want_nocaseglob=$lt_want_nocaseglob
  26147. # Command to associate shared and link libraries.
  26148. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  26149. # The archiver.
  26150. AR=$lt_AR
  26151. # Flags to create an archive.
  26152. AR_FLAGS=$lt_AR_FLAGS
  26153. # How to feed a file listing to the archiver.
  26154. archiver_list_spec=$lt_archiver_list_spec
  26155. # A symbol stripping program.
  26156. STRIP=$lt_STRIP
  26157. # Commands used to install an old-style archive.
  26158. RANLIB=$lt_RANLIB
  26159. old_postinstall_cmds=$lt_old_postinstall_cmds
  26160. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  26161. # Whether to use a lock for old archive extraction.
  26162. lock_old_archive_extraction=$lock_old_archive_extraction
  26163. # A C compiler.
  26164. LTCC=$lt_CC
  26165. # LTCC compiler flags.
  26166. LTCFLAGS=$lt_CFLAGS
  26167. # Take the output of nm and produce a listing of raw symbols and C names.
  26168. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  26169. # Transform the output of nm in a proper C declaration.
  26170. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  26171. # Transform the output of nm into a list of symbols to manually relocate.
  26172. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  26173. # Transform the output of nm in a C name address pair.
  26174. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  26175. # Transform the output of nm in a C name address pair when lib prefix is needed.
  26176. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  26177. # The name lister interface.
  26178. nm_interface=$lt_lt_cv_nm_interface
  26179. # Specify filename containing input files for \$NM.
  26180. nm_file_list_spec=$lt_nm_file_list_spec
  26181. # The root where to search for dependent libraries,and where our libraries should be installed.
  26182. lt_sysroot=$lt_sysroot
  26183. # Command to truncate a binary pipe.
  26184. lt_truncate_bin=$lt_lt_cv_truncate_bin
  26185. # The name of the directory that contains temporary libtool files.
  26186. objdir=$objdir
  26187. # Used to examine libraries when file_magic_cmd begins with "file".
  26188. MAGIC_CMD=$MAGIC_CMD
  26189. # Must we lock files when doing compilation?
  26190. need_locks=$lt_need_locks
  26191. # Manifest tool.
  26192. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  26193. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  26194. DSYMUTIL=$lt_DSYMUTIL
  26195. # Tool to change global to local symbols on Mac OS X.
  26196. NMEDIT=$lt_NMEDIT
  26197. # Tool to manipulate fat objects and archives on Mac OS X.
  26198. LIPO=$lt_LIPO
  26199. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  26200. OTOOL=$lt_OTOOL
  26201. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  26202. OTOOL64=$lt_OTOOL64
  26203. # Old archive suffix (normally "a").
  26204. libext=$libext
  26205. # Shared library suffix (normally ".so").
  26206. shrext_cmds=$lt_shrext_cmds
  26207. # The commands to extract the exported symbol list from a shared archive.
  26208. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  26209. # Variables whose values should be saved in libtool wrapper scripts and
  26210. # restored at link time.
  26211. variables_saved_for_relink=$lt_variables_saved_for_relink
  26212. # Do we need the "lib" prefix for modules?
  26213. need_lib_prefix=$need_lib_prefix
  26214. # Do we need a version for libraries?
  26215. need_version=$need_version
  26216. # Library versioning type.
  26217. version_type=$version_type
  26218. # Shared library runtime path variable.
  26219. runpath_var=$runpath_var
  26220. # Shared library path variable.
  26221. shlibpath_var=$shlibpath_var
  26222. # Is shlibpath searched before the hard-coded library search path?
  26223. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  26224. # Format of library name prefix.
  26225. libname_spec=$lt_libname_spec
  26226. # List of archive names. First name is the real one, the rest are links.
  26227. # The last name is the one that the linker finds with -lNAME
  26228. library_names_spec=$lt_library_names_spec
  26229. # The coded name of the library, if different from the real name.
  26230. soname_spec=$lt_soname_spec
  26231. # Permission mode override for installation of shared libraries.
  26232. install_override_mode=$lt_install_override_mode
  26233. # Command to use after installation of a shared archive.
  26234. postinstall_cmds=$lt_postinstall_cmds
  26235. # Command to use after uninstallation of a shared archive.
  26236. postuninstall_cmds=$lt_postuninstall_cmds
  26237. # Commands used to finish a libtool library installation in a directory.
  26238. finish_cmds=$lt_finish_cmds
  26239. # As "finish_cmds", except a single script fragment to be evaled but
  26240. # not shown.
  26241. finish_eval=$lt_finish_eval
  26242. # Whether we should hardcode library paths into libraries.
  26243. hardcode_into_libs=$hardcode_into_libs
  26244. # Compile-time system search path for libraries.
  26245. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  26246. # Detected run-time system search path for libraries.
  26247. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  26248. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  26249. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  26250. # Whether dlopen is supported.
  26251. dlopen_support=$enable_dlopen
  26252. # Whether dlopen of programs is supported.
  26253. dlopen_self=$enable_dlopen_self
  26254. # Whether dlopen of statically linked programs is supported.
  26255. dlopen_self_static=$enable_dlopen_self_static
  26256. # Commands to strip libraries.
  26257. old_striplib=$lt_old_striplib
  26258. striplib=$lt_striplib
  26259. # The linker used to build libraries.
  26260. LD=$lt_LD
  26261. # How to create reloadable object files.
  26262. reload_flag=$lt_reload_flag
  26263. reload_cmds=$lt_reload_cmds
  26264. # Commands used to build an old-style archive.
  26265. old_archive_cmds=$lt_old_archive_cmds
  26266. # A language specific compiler.
  26267. CC=$lt_compiler
  26268. # Is the compiler the GNU compiler?
  26269. with_gcc=$GCC
  26270. # Compiler flag to turn off builtin functions.
  26271. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  26272. # Additional compiler flags for building library objects.
  26273. pic_flag=$lt_lt_prog_compiler_pic
  26274. # How to pass a linker flag through the compiler.
  26275. wl=$lt_lt_prog_compiler_wl
  26276. # Compiler flag to prevent dynamic linking.
  26277. link_static_flag=$lt_lt_prog_compiler_static
  26278. # Does compiler simultaneously support -c and -o options?
  26279. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  26280. # Whether or not to add -lc for building shared libraries.
  26281. build_libtool_need_lc=$archive_cmds_need_lc
  26282. # Whether or not to disallow shared libs when runtime libs are static.
  26283. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  26284. # Compiler flag to allow reflexive dlopens.
  26285. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  26286. # Compiler flag to generate shared objects directly from archives.
  26287. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  26288. # Whether the compiler copes with passing no objects directly.
  26289. compiler_needs_object=$lt_compiler_needs_object
  26290. # Create an old-style archive from a shared archive.
  26291. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  26292. # Create a temporary old-style archive to link instead of a shared archive.
  26293. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  26294. # Commands used to build a shared archive.
  26295. archive_cmds=$lt_archive_cmds
  26296. archive_expsym_cmds=$lt_archive_expsym_cmds
  26297. # Commands used to build a loadable module if different from building
  26298. # a shared archive.
  26299. module_cmds=$lt_module_cmds
  26300. module_expsym_cmds=$lt_module_expsym_cmds
  26301. # Whether we are building with GNU ld or not.
  26302. with_gnu_ld=$lt_with_gnu_ld
  26303. # Flag that allows shared libraries with undefined symbols to be built.
  26304. allow_undefined_flag=$lt_allow_undefined_flag
  26305. # Flag that enforces no undefined symbols.
  26306. no_undefined_flag=$lt_no_undefined_flag
  26307. # Flag to hardcode \$libdir into a binary during linking.
  26308. # This must work even if \$libdir does not exist
  26309. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  26310. # Whether we need a single "-rpath" flag with a separated argument.
  26311. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  26312. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26313. # DIR into the resulting binary.
  26314. hardcode_direct=$hardcode_direct
  26315. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26316. # DIR into the resulting binary and the resulting library dependency is
  26317. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26318. # library is relocated.
  26319. hardcode_direct_absolute=$hardcode_direct_absolute
  26320. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26321. # into the resulting binary.
  26322. hardcode_minus_L=$hardcode_minus_L
  26323. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26324. # into the resulting binary.
  26325. hardcode_shlibpath_var=$hardcode_shlibpath_var
  26326. # Set to "yes" if building a shared library automatically hardcodes DIR
  26327. # into the library and all subsequent libraries and executables linked
  26328. # against it.
  26329. hardcode_automatic=$hardcode_automatic
  26330. # Set to yes if linker adds runtime paths of dependent libraries
  26331. # to runtime path list.
  26332. inherit_rpath=$inherit_rpath
  26333. # Whether libtool must link a program against all its dependency libraries.
  26334. link_all_deplibs=$link_all_deplibs
  26335. # Set to "yes" if exported symbols are required.
  26336. always_export_symbols=$always_export_symbols
  26337. # The commands to list exported symbols.
  26338. export_symbols_cmds=$lt_export_symbols_cmds
  26339. # Symbols that should not be listed in the preloaded symbols.
  26340. exclude_expsyms=$lt_exclude_expsyms
  26341. # Symbols that must always be exported.
  26342. include_expsyms=$lt_include_expsyms
  26343. # Commands necessary for linking programs (against libraries) with templates.
  26344. prelink_cmds=$lt_prelink_cmds
  26345. # Commands necessary for finishing linking programs.
  26346. postlink_cmds=$lt_postlink_cmds
  26347. # Specify filename containing input files.
  26348. file_list_spec=$lt_file_list_spec
  26349. # How to hardcode a shared library path into an executable.
  26350. hardcode_action=$hardcode_action
  26351. # The directories searched by this compiler when creating a shared library.
  26352. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  26353. # Dependencies to place before and after the objects being linked to
  26354. # create a shared library.
  26355. predep_objects=$lt_predep_objects
  26356. postdep_objects=$lt_postdep_objects
  26357. predeps=$lt_predeps
  26358. postdeps=$lt_postdeps
  26359. # The library search path used internally by the compiler when linking
  26360. # a shared library.
  26361. compiler_lib_search_path=$lt_compiler_lib_search_path
  26362. # ### END LIBTOOL CONFIG
  26363. _LT_EOF
  26364. cat <<'_LT_EOF' >> "$cfgfile"
  26365. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  26366. # func_munge_path_list VARIABLE PATH
  26367. # -----------------------------------
  26368. # VARIABLE is name of variable containing _space_ separated list of
  26369. # directories to be munged by the contents of PATH, which is string
  26370. # having a format:
  26371. # "DIR[:DIR]:"
  26372. # string "DIR[ DIR]" will be prepended to VARIABLE
  26373. # ":DIR[:DIR]"
  26374. # string "DIR[ DIR]" will be appended to VARIABLE
  26375. # "DIRP[:DIRP]::[DIRA:]DIRA"
  26376. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  26377. # "DIRA[ DIRA]" will be appended to VARIABLE
  26378. # "DIR[:DIR]"
  26379. # VARIABLE will be replaced by "DIR[ DIR]"
  26380. func_munge_path_list ()
  26381. {
  26382. case x$2 in
  26383. x)
  26384. ;;
  26385. *:)
  26386. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  26387. ;;
  26388. x:*)
  26389. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  26390. ;;
  26391. *::*)
  26392. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  26393. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  26394. ;;
  26395. *)
  26396. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  26397. ;;
  26398. esac
  26399. }
  26400. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  26401. func_cc_basename ()
  26402. {
  26403. for cc_temp in $*""; do
  26404. case $cc_temp in
  26405. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26406. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26407. \-*) ;;
  26408. *) break;;
  26409. esac
  26410. done
  26411. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  26412. }
  26413. # ### END FUNCTIONS SHARED WITH CONFIGURE
  26414. _LT_EOF
  26415. case $host_os in
  26416. aix3*)
  26417. cat <<\_LT_EOF >> "$cfgfile"
  26418. # AIX sometimes has problems with the GCC collect2 program. For some
  26419. # reason, if we set the COLLECT_NAMES environment variable, the problems
  26420. # vanish in a puff of smoke.
  26421. if test set != "${COLLECT_NAMES+set}"; then
  26422. COLLECT_NAMES=
  26423. export COLLECT_NAMES
  26424. fi
  26425. _LT_EOF
  26426. ;;
  26427. esac
  26428. ltmain=$ac_aux_dir/ltmain.sh
  26429. # We use sed instead of cat because bash on DJGPP gets confused if
  26430. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  26431. # text mode, it properly converts lines to CR/LF. This bash problem
  26432. # is reportedly fixed, but why not run on old versions too?
  26433. sed '$q' "$ltmain" >> "$cfgfile" \
  26434. || (rm -f "$cfgfile"; exit 1)
  26435. mv -f "$cfgfile" "$ofile" ||
  26436. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  26437. chmod +x "$ofile"
  26438. cat <<_LT_EOF >> "$ofile"
  26439. # ### BEGIN LIBTOOL TAG CONFIG: RC
  26440. # The linker used to build libraries.
  26441. LD=$lt_LD_RC
  26442. # How to create reloadable object files.
  26443. reload_flag=$lt_reload_flag_RC
  26444. reload_cmds=$lt_reload_cmds_RC
  26445. # Commands used to build an old-style archive.
  26446. old_archive_cmds=$lt_old_archive_cmds_RC
  26447. # A language specific compiler.
  26448. CC=$lt_compiler_RC
  26449. # Is the compiler the GNU compiler?
  26450. with_gcc=$GCC_RC
  26451. # Compiler flag to turn off builtin functions.
  26452. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  26453. # Additional compiler flags for building library objects.
  26454. pic_flag=$lt_lt_prog_compiler_pic_RC
  26455. # How to pass a linker flag through the compiler.
  26456. wl=$lt_lt_prog_compiler_wl_RC
  26457. # Compiler flag to prevent dynamic linking.
  26458. link_static_flag=$lt_lt_prog_compiler_static_RC
  26459. # Does compiler simultaneously support -c and -o options?
  26460. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  26461. # Whether or not to add -lc for building shared libraries.
  26462. build_libtool_need_lc=$archive_cmds_need_lc_RC
  26463. # Whether or not to disallow shared libs when runtime libs are static.
  26464. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  26465. # Compiler flag to allow reflexive dlopens.
  26466. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  26467. # Compiler flag to generate shared objects directly from archives.
  26468. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  26469. # Whether the compiler copes with passing no objects directly.
  26470. compiler_needs_object=$lt_compiler_needs_object_RC
  26471. # Create an old-style archive from a shared archive.
  26472. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  26473. # Create a temporary old-style archive to link instead of a shared archive.
  26474. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  26475. # Commands used to build a shared archive.
  26476. archive_cmds=$lt_archive_cmds_RC
  26477. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  26478. # Commands used to build a loadable module if different from building
  26479. # a shared archive.
  26480. module_cmds=$lt_module_cmds_RC
  26481. module_expsym_cmds=$lt_module_expsym_cmds_RC
  26482. # Whether we are building with GNU ld or not.
  26483. with_gnu_ld=$lt_with_gnu_ld_RC
  26484. # Flag that allows shared libraries with undefined symbols to be built.
  26485. allow_undefined_flag=$lt_allow_undefined_flag_RC
  26486. # Flag that enforces no undefined symbols.
  26487. no_undefined_flag=$lt_no_undefined_flag_RC
  26488. # Flag to hardcode \$libdir into a binary during linking.
  26489. # This must work even if \$libdir does not exist
  26490. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  26491. # Whether we need a single "-rpath" flag with a separated argument.
  26492. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  26493. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26494. # DIR into the resulting binary.
  26495. hardcode_direct=$hardcode_direct_RC
  26496. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26497. # DIR into the resulting binary and the resulting library dependency is
  26498. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26499. # library is relocated.
  26500. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  26501. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26502. # into the resulting binary.
  26503. hardcode_minus_L=$hardcode_minus_L_RC
  26504. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26505. # into the resulting binary.
  26506. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  26507. # Set to "yes" if building a shared library automatically hardcodes DIR
  26508. # into the library and all subsequent libraries and executables linked
  26509. # against it.
  26510. hardcode_automatic=$hardcode_automatic_RC
  26511. # Set to yes if linker adds runtime paths of dependent libraries
  26512. # to runtime path list.
  26513. inherit_rpath=$inherit_rpath_RC
  26514. # Whether libtool must link a program against all its dependency libraries.
  26515. link_all_deplibs=$link_all_deplibs_RC
  26516. # Set to "yes" if exported symbols are required.
  26517. always_export_symbols=$always_export_symbols_RC
  26518. # The commands to list exported symbols.
  26519. export_symbols_cmds=$lt_export_symbols_cmds_RC
  26520. # Symbols that should not be listed in the preloaded symbols.
  26521. exclude_expsyms=$lt_exclude_expsyms_RC
  26522. # Symbols that must always be exported.
  26523. include_expsyms=$lt_include_expsyms_RC
  26524. # Commands necessary for linking programs (against libraries) with templates.
  26525. prelink_cmds=$lt_prelink_cmds_RC
  26526. # Commands necessary for finishing linking programs.
  26527. postlink_cmds=$lt_postlink_cmds_RC
  26528. # Specify filename containing input files.
  26529. file_list_spec=$lt_file_list_spec_RC
  26530. # How to hardcode a shared library path into an executable.
  26531. hardcode_action=$hardcode_action_RC
  26532. # The directories searched by this compiler when creating a shared library.
  26533. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  26534. # Dependencies to place before and after the objects being linked to
  26535. # create a shared library.
  26536. predep_objects=$lt_predep_objects_RC
  26537. postdep_objects=$lt_postdep_objects_RC
  26538. predeps=$lt_predeps_RC
  26539. postdeps=$lt_postdeps_RC
  26540. # The library search path used internally by the compiler when linking
  26541. # a shared library.
  26542. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  26543. # ### END LIBTOOL TAG CONFIG: RC
  26544. _LT_EOF
  26545. cat <<_LT_EOF >> "$ofile"
  26546. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  26547. # The linker used to build libraries.
  26548. LD=$lt_LD_CXX
  26549. # How to create reloadable object files.
  26550. reload_flag=$lt_reload_flag_CXX
  26551. reload_cmds=$lt_reload_cmds_CXX
  26552. # Commands used to build an old-style archive.
  26553. old_archive_cmds=$lt_old_archive_cmds_CXX
  26554. # A language specific compiler.
  26555. CC=$lt_compiler_CXX
  26556. # Is the compiler the GNU compiler?
  26557. with_gcc=$GCC_CXX
  26558. # Compiler flag to turn off builtin functions.
  26559. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  26560. # Additional compiler flags for building library objects.
  26561. pic_flag=$lt_lt_prog_compiler_pic_CXX
  26562. # How to pass a linker flag through the compiler.
  26563. wl=$lt_lt_prog_compiler_wl_CXX
  26564. # Compiler flag to prevent dynamic linking.
  26565. link_static_flag=$lt_lt_prog_compiler_static_CXX
  26566. # Does compiler simultaneously support -c and -o options?
  26567. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  26568. # Whether or not to add -lc for building shared libraries.
  26569. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  26570. # Whether or not to disallow shared libs when runtime libs are static.
  26571. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  26572. # Compiler flag to allow reflexive dlopens.
  26573. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  26574. # Compiler flag to generate shared objects directly from archives.
  26575. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  26576. # Whether the compiler copes with passing no objects directly.
  26577. compiler_needs_object=$lt_compiler_needs_object_CXX
  26578. # Create an old-style archive from a shared archive.
  26579. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  26580. # Create a temporary old-style archive to link instead of a shared archive.
  26581. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  26582. # Commands used to build a shared archive.
  26583. archive_cmds=$lt_archive_cmds_CXX
  26584. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  26585. # Commands used to build a loadable module if different from building
  26586. # a shared archive.
  26587. module_cmds=$lt_module_cmds_CXX
  26588. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  26589. # Whether we are building with GNU ld or not.
  26590. with_gnu_ld=$lt_with_gnu_ld_CXX
  26591. # Flag that allows shared libraries with undefined symbols to be built.
  26592. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  26593. # Flag that enforces no undefined symbols.
  26594. no_undefined_flag=$lt_no_undefined_flag_CXX
  26595. # Flag to hardcode \$libdir into a binary during linking.
  26596. # This must work even if \$libdir does not exist
  26597. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  26598. # Whether we need a single "-rpath" flag with a separated argument.
  26599. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  26600. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26601. # DIR into the resulting binary.
  26602. hardcode_direct=$hardcode_direct_CXX
  26603. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26604. # DIR into the resulting binary and the resulting library dependency is
  26605. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26606. # library is relocated.
  26607. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  26608. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26609. # into the resulting binary.
  26610. hardcode_minus_L=$hardcode_minus_L_CXX
  26611. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26612. # into the resulting binary.
  26613. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  26614. # Set to "yes" if building a shared library automatically hardcodes DIR
  26615. # into the library and all subsequent libraries and executables linked
  26616. # against it.
  26617. hardcode_automatic=$hardcode_automatic_CXX
  26618. # Set to yes if linker adds runtime paths of dependent libraries
  26619. # to runtime path list.
  26620. inherit_rpath=$inherit_rpath_CXX
  26621. # Whether libtool must link a program against all its dependency libraries.
  26622. link_all_deplibs=$link_all_deplibs_CXX
  26623. # Set to "yes" if exported symbols are required.
  26624. always_export_symbols=$always_export_symbols_CXX
  26625. # The commands to list exported symbols.
  26626. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  26627. # Symbols that should not be listed in the preloaded symbols.
  26628. exclude_expsyms=$lt_exclude_expsyms_CXX
  26629. # Symbols that must always be exported.
  26630. include_expsyms=$lt_include_expsyms_CXX
  26631. # Commands necessary for linking programs (against libraries) with templates.
  26632. prelink_cmds=$lt_prelink_cmds_CXX
  26633. # Commands necessary for finishing linking programs.
  26634. postlink_cmds=$lt_postlink_cmds_CXX
  26635. # Specify filename containing input files.
  26636. file_list_spec=$lt_file_list_spec_CXX
  26637. # How to hardcode a shared library path into an executable.
  26638. hardcode_action=$hardcode_action_CXX
  26639. # The directories searched by this compiler when creating a shared library.
  26640. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  26641. # Dependencies to place before and after the objects being linked to
  26642. # create a shared library.
  26643. predep_objects=$lt_predep_objects_CXX
  26644. postdep_objects=$lt_postdep_objects_CXX
  26645. predeps=$lt_predeps_CXX
  26646. postdeps=$lt_postdeps_CXX
  26647. # The library search path used internally by the compiler when linking
  26648. # a shared library.
  26649. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  26650. # ### END LIBTOOL TAG CONFIG: CXX
  26651. _LT_EOF
  26652. ;;
  26653. "sdl3_config":C) chmod a+x sdl3-config ;;
  26654. "summary":C) printf "$SUMMARY" ;;
  26655. esac
  26656. done # for ac_tag
  26657. as_fn_exit 0
  26658. _ACEOF
  26659. ac_clean_files=$ac_clean_files_save
  26660. test $ac_write_fail = 0 ||
  26661. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  26662. # configure is writing to config.log, and then calls config.status.
  26663. # config.status does its own redirection, appending to config.log.
  26664. # Unfortunately, on DOS this fails, as config.log is still kept open
  26665. # by configure, so config.status won't be able to write to it; its
  26666. # output is simply discarded. So we exec the FD to /dev/null,
  26667. # effectively closing config.log, so it can be properly (re)opened and
  26668. # appended to by config.status. When coming back to configure, we
  26669. # need to make the FD available again.
  26670. if test "$no_create" != yes; then
  26671. ac_cs_success=:
  26672. ac_config_status_args=
  26673. test "$silent" = yes &&
  26674. ac_config_status_args="$ac_config_status_args --quiet"
  26675. exec 5>/dev/null
  26676. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  26677. exec 5>>config.log
  26678. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  26679. # would make configure fail if this is the last instruction.
  26680. $ac_cs_success || as_fn_exit 1
  26681. fi
  26682. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  26683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  26684. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  26685. fi