configure 963 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. as_nop=:
  18. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19. then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else $as_nop
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as `sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed `exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="as_nop=:
  127. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  128. then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else \$as_nop
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else \$as_nop
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1
  160. blah=\$(echo \$(echo blah))
  161. test x\"\$blah\" = xblah || exit 1
  162. test -x / || exit 1"
  163. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  164. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  165. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  166. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  167. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  168. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  169. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  170. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  171. PATH=/empty FPATH=/empty; export PATH FPATH
  172. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  173. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  174. test \$(( 1 + 1 )) = 2 || exit 1"
  175. if (eval "$as_required") 2>/dev/null
  176. then :
  177. as_have_required=yes
  178. else $as_nop
  179. as_have_required=no
  180. fi
  181. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  182. then :
  183. else $as_nop
  184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  185. as_found=false
  186. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  187. do
  188. IFS=$as_save_IFS
  189. case $as_dir in #(((
  190. '') as_dir=./ ;;
  191. */) ;;
  192. *) as_dir=$as_dir/ ;;
  193. esac
  194. as_found=:
  195. case $as_dir in #(
  196. /*)
  197. for as_base in sh bash ksh sh5; do
  198. # Try only shells that exist, to save several forks.
  199. as_shell=$as_dir$as_base
  200. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  201. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  202. then :
  203. CONFIG_SHELL=$as_shell as_have_required=yes
  204. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  205. then :
  206. break 2
  207. fi
  208. fi
  209. done;;
  210. esac
  211. as_found=false
  212. done
  213. IFS=$as_save_IFS
  214. if $as_found
  215. then :
  216. else $as_nop
  217. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  219. then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi
  222. fi
  223. if test "x$CONFIG_SHELL" != x
  224. then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno
  246. then :
  247. printf "%s\n" "$0: This script requires a shell more modern than all"
  248. printf "%s\n" "$0: the shells that I found on your system."
  249. if test ${ZSH_VERSION+y} ; then
  250. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  251. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  252. else
  253. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  254. $0: including any error possibly output before this
  255. $0: message. Then install a modern shell, or manually run
  256. $0: the script under such a shell if you do have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_nop
  295. # ---------
  296. # Do nothing but, unlike ":", preserve the value of $?.
  297. as_fn_nop ()
  298. {
  299. return $?
  300. }
  301. as_nop=as_fn_nop
  302. # as_fn_mkdir_p
  303. # -------------
  304. # Create "$as_dir" as a directory, including parents if necessary.
  305. as_fn_mkdir_p ()
  306. {
  307. case $as_dir in #(
  308. -*) as_dir=./$as_dir;;
  309. esac
  310. test -d "$as_dir" || eval $as_mkdir_p || {
  311. as_dirs=
  312. while :; do
  313. case $as_dir in #(
  314. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  315. *) as_qdir=$as_dir;;
  316. esac
  317. as_dirs="'$as_qdir' $as_dirs"
  318. as_dir=`$as_dirname -- "$as_dir" ||
  319. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  320. X"$as_dir" : 'X\(//\)[^/]' \| \
  321. X"$as_dir" : 'X\(//\)$' \| \
  322. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  323. printf "%s\n" X"$as_dir" |
  324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)[^/].*/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\/\)$/{
  333. s//\1/
  334. q
  335. }
  336. /^X\(\/\).*/{
  337. s//\1/
  338. q
  339. }
  340. s/.*/./; q'`
  341. test -d "$as_dir" && break
  342. done
  343. test -z "$as_dirs" || eval "mkdir $as_dirs"
  344. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  345. } # as_fn_mkdir_p
  346. # as_fn_executable_p FILE
  347. # -----------------------
  348. # Test if FILE is an executable regular file.
  349. as_fn_executable_p ()
  350. {
  351. test -f "$1" && test -x "$1"
  352. } # as_fn_executable_p
  353. # as_fn_append VAR VALUE
  354. # ----------------------
  355. # Append the text in VALUE to the end of the definition contained in VAR. Take
  356. # advantage of any shell optimizations that allow amortized linear growth over
  357. # repeated appends, instead of the typical quadratic growth present in naive
  358. # implementations.
  359. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  360. then :
  361. eval 'as_fn_append ()
  362. {
  363. eval $1+=\$2
  364. }'
  365. else $as_nop
  366. as_fn_append ()
  367. {
  368. eval $1=\$$1\$2
  369. }
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else $as_nop
  383. as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. }
  387. fi # as_fn_arith
  388. # as_fn_nop
  389. # ---------
  390. # Do nothing but, unlike ":", preserve the value of $?.
  391. as_fn_nop ()
  392. {
  393. return $?
  394. }
  395. as_nop=as_fn_nop
  396. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  397. # ----------------------------------------
  398. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  399. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  400. # script with STATUS, using 1 if that was 0.
  401. as_fn_error ()
  402. {
  403. as_status=$1; test $as_status -eq 0 && as_status=1
  404. if test "$4"; then
  405. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  407. fi
  408. printf "%s\n" "$as_me: error: $2" >&2
  409. as_fn_exit $as_status
  410. } # as_fn_error
  411. if expr a : '\(a\)' >/dev/null 2>&1 &&
  412. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  413. as_expr=expr
  414. else
  415. as_expr=false
  416. fi
  417. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  418. as_basename=basename
  419. else
  420. as_basename=false
  421. fi
  422. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  423. as_dirname=dirname
  424. else
  425. as_dirname=false
  426. fi
  427. as_me=`$as_basename -- "$0" ||
  428. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  429. X"$0" : 'X\(//\)$' \| \
  430. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  431. printf "%s\n" X/"$0" |
  432. sed '/^.*\/\([^/][^/]*\)\/*$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\/\)$/{
  437. s//\1/
  438. q
  439. }
  440. /^X\/\(\/\).*/{
  441. s//\1/
  442. q
  443. }
  444. s/.*/./; q'`
  445. # Avoid depending upon Character Ranges.
  446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  449. as_cr_digits='0123456789'
  450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  451. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  452. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  453. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  454. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  455. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  456. sed -n '
  457. p
  458. /[$]LINENO/=
  459. ' <$as_myself |
  460. sed '
  461. s/[$]LINENO.*/&-/
  462. t lineno
  463. b
  464. :lineno
  465. N
  466. :loop
  467. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  468. t loop
  469. s/-\n.*//
  470. ' >$as_me.lineno &&
  471. chmod +x "$as_me.lineno" ||
  472. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  473. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  474. # already done that, so ensure we don't try to do so again and fall
  475. # in an infinite loop. This has already happened in practice.
  476. _as_can_reexec=no; export _as_can_reexec
  477. # Don't try to exec as it changes $[0], causing all sort of problems
  478. # (the dirname of $[0] is not the place where we might find the
  479. # original and so on. Autoconf is especially sensitive to this).
  480. . "./$as_me.lineno"
  481. # Exit status is that of the last command.
  482. exit
  483. }
  484. # Determine whether it's possible to make 'echo' print without a newline.
  485. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  486. # for compatibility with existing Makefiles.
  487. ECHO_C= ECHO_N= ECHO_T=
  488. case `echo -n x` in #(((((
  489. -n*)
  490. case `echo 'xy\c'` in
  491. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  492. xy) ECHO_C='\c';;
  493. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  494. ECHO_T=' ';;
  495. esac;;
  496. *)
  497. ECHO_N='-n';;
  498. esac
  499. # For backward compatibility with old third-party macros, we provide
  500. # the shell variables $as_echo and $as_echo_n. New code should use
  501. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  502. as_echo='printf %s\n'
  503. as_echo_n='printf %s'
  504. rm -f conf$$ conf$$.exe conf$$.file
  505. if test -d conf$$.dir; then
  506. rm -f conf$$.dir/conf$$.file
  507. else
  508. rm -f conf$$.dir
  509. mkdir conf$$.dir 2>/dev/null
  510. fi
  511. if (echo >conf$$.file) 2>/dev/null; then
  512. if ln -s conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s='ln -s'
  514. # ... but there are two gotchas:
  515. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  516. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  517. # In both cases, we have to default to `cp -pR'.
  518. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  519. as_ln_s='cp -pR'
  520. elif ln conf$$.file conf$$ 2>/dev/null; then
  521. as_ln_s=ln
  522. else
  523. as_ln_s='cp -pR'
  524. fi
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  529. rmdir conf$$.dir 2>/dev/null
  530. if mkdir -p . 2>/dev/null; then
  531. as_mkdir_p='mkdir -p "$as_dir"'
  532. else
  533. test -d ./-p && rmdir ./-p
  534. as_mkdir_p=false
  535. fi
  536. as_test_x='test -x'
  537. as_executable_p=as_fn_executable_p
  538. # Sed expression to map a string onto a valid CPP name.
  539. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  540. # Sed expression to map a string onto a valid variable name.
  541. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  542. SHELL=${CONFIG_SHELL-/bin/sh}
  543. test -n "$DJDIR" || exec 7<&0 </dev/null
  544. exec 6>&1
  545. # Name of the host.
  546. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  547. # so uname gets run too.
  548. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  549. #
  550. # Initializations.
  551. #
  552. ac_default_prefix=/usr/local
  553. ac_clean_files=
  554. ac_config_libobj_dir=.
  555. LIBOBJS=
  556. cross_compiling=no
  557. subdirs=
  558. MFLAGS=
  559. MAKEFLAGS=
  560. # Identity of this package.
  561. PACKAGE_NAME=''
  562. PACKAGE_TARNAME=''
  563. PACKAGE_VERSION=''
  564. PACKAGE_STRING=''
  565. PACKAGE_BUGREPORT=''
  566. PACKAGE_URL=''
  567. ac_unique_file="src/SDL.c"
  568. # Factoring default headers for most tests.
  569. ac_includes_default="\
  570. #include <stddef.h>
  571. #ifdef HAVE_STDIO_H
  572. # include <stdio.h>
  573. #endif
  574. #ifdef HAVE_STDLIB_H
  575. # include <stdlib.h>
  576. #endif
  577. #ifdef HAVE_STRING_H
  578. # include <string.h>
  579. #endif
  580. #ifdef HAVE_INTTYPES_H
  581. # include <inttypes.h>
  582. #endif
  583. #ifdef HAVE_STDINT_H
  584. # include <stdint.h>
  585. #endif
  586. #ifdef HAVE_STRINGS_H
  587. # include <strings.h>
  588. #endif
  589. #ifdef HAVE_SYS_TYPES_H
  590. # include <sys/types.h>
  591. #endif
  592. #ifdef HAVE_SYS_STAT_H
  593. # include <sys/stat.h>
  594. #endif
  595. #ifdef HAVE_UNISTD_H
  596. # include <unistd.h>
  597. #endif"
  598. ac_header_c_list=
  599. ac_subst_vars='LTLIBOBJS
  600. LIBOBJS
  601. WAYLAND_SCANNER_CODE_MODE
  602. WAYLAND_SCANNER
  603. EXTRA_LDFLAGS
  604. BUILD_LDFLAGS
  605. EXTRA_CFLAGS
  606. BUILD_CFLAGS
  607. SDLTEST_OBJECTS
  608. SDLMAIN_OBJECTS
  609. VERSION_OBJECTS
  610. GEN_OBJECTS
  611. GEN_HEADERS
  612. OBJECTS
  613. INCLUDE
  614. ac_aux_dir
  615. ENABLE_STATIC_FALSE
  616. ENABLE_STATIC_TRUE
  617. ENABLE_SHARED_FALSE
  618. ENABLE_SHARED_TRUE
  619. PKGCONFIG_LIBS_PRIV
  620. PKGCONFIG_DEPENDS
  621. SDL_RLD_FLAGS
  622. SDL_STATIC_LIBS
  623. SDL_LIBS
  624. SDL_CFLAGS
  625. bin_prefix_relpath
  626. cmake_prefix_relpath
  627. SDL_VENDOR_INFO
  628. INSTALL_SDL2_CONFIG
  629. LIBUSB_LIBS
  630. LIBUSB_CFLAGS
  631. IBUS_LIBS
  632. IBUS_CFLAGS
  633. DBUS_LIBS
  634. DBUS_CFLAGS
  635. LIBGBM_LIBS
  636. LIBGBM_CFLAGS
  637. LIBDRM_LIBS
  638. LIBDRM_CFLAGS
  639. DIRECTFB_LIBS
  640. DIRECTFB_CFLAGS
  641. X_EXTRA_LIBS
  642. X_LIBS
  643. X_PRE_LIBS
  644. X_CFLAGS
  645. XMKMF
  646. RPI_EGL_LIBS
  647. RPI_EGL_CFLAGS
  648. RPI_LIBS
  649. RPI_CFLAGS
  650. DECOR_LIBS
  651. DECOR_CFLAGS
  652. FUSIONSOUND_LIBS
  653. FUSIONSOUND_CFLAGS
  654. SNDIO_LIBS
  655. SNDIO_CFLAGS
  656. ARTSCONFIG
  657. PULSEAUDIO_LIBS
  658. PULSEAUDIO_CFLAGS
  659. PIPEWIRE_LIBS
  660. PIPEWIRE_CFLAGS
  661. ESD_CONFIG
  662. ESD_LIBS
  663. ESD_CFLAGS
  664. JACK_LIBS
  665. JACK_CFLAGS
  666. ALSA_LIBS
  667. ALSA_CFLAGS
  668. ALLOCA
  669. CPP
  670. LIBTOOLLINKERTAG
  671. LINKER
  672. SORT
  673. PKG_CONFIG_LIBDIR
  674. PKG_CONFIG_PATH
  675. PKG_CONFIG
  676. SET_MAKE
  677. INSTALL_DATA
  678. INSTALL_SCRIPT
  679. INSTALL_PROGRAM
  680. CXXCPP
  681. ac_ct_CXX
  682. CXXFLAGS
  683. CXX
  684. LT_AGE
  685. LT_REVISION
  686. LT_CURRENT
  687. LT_RELEASE
  688. RC
  689. LT_SYS_LIBRARY_PATH
  690. OTOOL64
  691. OTOOL
  692. LIPO
  693. NMEDIT
  694. DSYMUTIL
  695. MANIFEST_TOOL
  696. AWK
  697. RANLIB
  698. STRIP
  699. ac_ct_AR
  700. AR
  701. LN_S
  702. NM
  703. ac_ct_DUMPBIN
  704. DUMPBIN
  705. LD
  706. FGREP
  707. EGREP
  708. GREP
  709. SED
  710. OBJEXT
  711. EXEEXT
  712. ac_ct_CC
  713. CPPFLAGS
  714. LDFLAGS
  715. CFLAGS
  716. CC
  717. host_os
  718. host_vendor
  719. host_cpu
  720. host
  721. build_os
  722. build_vendor
  723. build_cpu
  724. build
  725. LIBTOOL
  726. OBJDUMP
  727. DLLTOOL
  728. AS
  729. SDL_VERSION
  730. SDL_BINARY_AGE
  731. SDL_INTERFACE_AGE
  732. SDL_MICRO_VERSION
  733. SDL_MINOR_VERSION
  734. SDL_MAJOR_VERSION
  735. target_alias
  736. host_alias
  737. build_alias
  738. LIBS
  739. ECHO_T
  740. ECHO_N
  741. ECHO_C
  742. DEFS
  743. mandir
  744. localedir
  745. libdir
  746. psdir
  747. pdfdir
  748. dvidir
  749. htmldir
  750. infodir
  751. docdir
  752. oldincludedir
  753. includedir
  754. runstatedir
  755. localstatedir
  756. sharedstatedir
  757. sysconfdir
  758. datadir
  759. datarootdir
  760. libexecdir
  761. sbindir
  762. bindir
  763. program_transform_name
  764. prefix
  765. exec_prefix
  766. PACKAGE_URL
  767. PACKAGE_BUGREPORT
  768. PACKAGE_STRING
  769. PACKAGE_VERSION
  770. PACKAGE_TARNAME
  771. PACKAGE_NAME
  772. PATH_SEPARATOR
  773. SHELL'
  774. ac_subst_files=''
  775. ac_user_opts='
  776. enable_option_checking
  777. enable_shared
  778. enable_static
  779. with_pic
  780. enable_fast_install
  781. with_aix_soname
  782. with_gnu_ld
  783. with_sysroot
  784. enable_libtool_lock
  785. enable_largefile
  786. enable_assertions
  787. enable_dependency_tracking
  788. enable_libc
  789. enable_system_iconv
  790. enable_libiconv
  791. enable_gcc_atomics
  792. enable_atomic
  793. enable_audio
  794. enable_video
  795. enable_render
  796. enable_events
  797. enable_joystick
  798. enable_haptic
  799. enable_hidapi
  800. enable_sensor
  801. enable_power
  802. enable_filesystem
  803. enable_timers
  804. enable_file
  805. enable_misc
  806. enable_locale
  807. enable_loadso
  808. enable_cpuinfo
  809. enable_assembly
  810. enable_ssemath
  811. enable_mmx
  812. enable_3dnow
  813. enable_sse
  814. enable_sse2
  815. enable_sse3
  816. enable_altivec
  817. enable_lsx
  818. enable_oss
  819. enable_alsa
  820. with_alsa_prefix
  821. with_alsa_inc_prefix
  822. enable_alsatest
  823. enable_alsa_shared
  824. enable_jack
  825. enable_jack_shared
  826. enable_esd
  827. with_esd_prefix
  828. with_esd_exec_prefix
  829. enable_esdtest
  830. enable_esd_shared
  831. enable_pipewire
  832. enable_pipewire_shared
  833. enable_pulseaudio
  834. enable_pulseaudio_shared
  835. enable_arts
  836. enable_arts_shared
  837. enable_nas
  838. enable_nas_shared
  839. enable_sndio
  840. enable_sndio_shared
  841. enable_fusionsound
  842. enable_fusionsound_shared
  843. enable_diskaudio
  844. enable_dummyaudio
  845. enable_libsamplerate
  846. enable_libsamplerate_shared
  847. enable_arm_simd
  848. enable_arm_neon
  849. enable_werror
  850. enable_video_wayland
  851. enable_video_wayland_qt_touch
  852. enable_wayland_shared
  853. enable_libdecor
  854. enable_libdecor_shared
  855. enable_video_rpi
  856. enable_video_x11
  857. with_x
  858. enable_x11_shared
  859. enable_video_x11_xcursor
  860. enable_video_x11_xdbe
  861. enable_video_x11_xinput
  862. enable_video_x11_xfixes
  863. enable_video_x11_xrandr
  864. enable_video_x11_scrnsaver
  865. enable_video_x11_xshape
  866. enable_video_vivante
  867. enable_video_cocoa
  868. enable_video_metal
  869. enable_render_metal
  870. enable_video_directfb
  871. enable_directfb_shared
  872. enable_video_kmsdrm
  873. enable_kmsdrm_shared
  874. enable_video_dummy
  875. enable_video_offscreen
  876. enable_video_opengl
  877. enable_video_opengles
  878. enable_video_opengles1
  879. enable_video_opengles2
  880. enable_video_vulkan
  881. enable_libudev
  882. enable_dbus
  883. enable_ime
  884. enable_ibus
  885. enable_fcitx
  886. enable_joystick_mfi
  887. enable_pthreads
  888. enable_pthread_sem
  889. enable_directx
  890. enable_xinput
  891. enable_wasapi
  892. enable_hidapi_joystick
  893. enable_hidapi_libusb
  894. enable_clock_gettime
  895. enable_rpath
  896. enable_backgrounding_signal
  897. enable_foregrounding_signal
  898. enable_joystick_virtual
  899. enable_render_d3d
  900. enable_sdl2_config
  901. enable_vendor_info
  902. '
  903. ac_precious_vars='build_alias
  904. host_alias
  905. target_alias
  906. CC
  907. CFLAGS
  908. LDFLAGS
  909. LIBS
  910. CPPFLAGS
  911. LT_SYS_LIBRARY_PATH
  912. CXX
  913. CXXFLAGS
  914. CCC
  915. CXXCPP
  916. PKG_CONFIG
  917. PKG_CONFIG_PATH
  918. PKG_CONFIG_LIBDIR
  919. CPP
  920. JACK_CFLAGS
  921. JACK_LIBS
  922. ESD_CFLAGS
  923. ESD_LIBS
  924. PIPEWIRE_CFLAGS
  925. PIPEWIRE_LIBS
  926. PULSEAUDIO_CFLAGS
  927. PULSEAUDIO_LIBS
  928. SNDIO_CFLAGS
  929. SNDIO_LIBS
  930. FUSIONSOUND_CFLAGS
  931. FUSIONSOUND_LIBS
  932. DECOR_CFLAGS
  933. DECOR_LIBS
  934. RPI_CFLAGS
  935. RPI_LIBS
  936. RPI_EGL_CFLAGS
  937. RPI_EGL_LIBS
  938. XMKMF
  939. DIRECTFB_CFLAGS
  940. DIRECTFB_LIBS
  941. LIBDRM_CFLAGS
  942. LIBDRM_LIBS
  943. LIBGBM_CFLAGS
  944. LIBGBM_LIBS
  945. DBUS_CFLAGS
  946. DBUS_LIBS
  947. IBUS_CFLAGS
  948. IBUS_LIBS
  949. LIBUSB_CFLAGS
  950. LIBUSB_LIBS'
  951. # Initialize some variables set by options.
  952. ac_init_help=
  953. ac_init_version=false
  954. ac_unrecognized_opts=
  955. ac_unrecognized_sep=
  956. # The variables have the same names as the options, with
  957. # dashes changed to underlines.
  958. cache_file=/dev/null
  959. exec_prefix=NONE
  960. no_create=
  961. no_recursion=
  962. prefix=NONE
  963. program_prefix=NONE
  964. program_suffix=NONE
  965. program_transform_name=s,x,x,
  966. silent=
  967. site=
  968. srcdir=
  969. verbose=
  970. x_includes=NONE
  971. x_libraries=NONE
  972. # Installation directory options.
  973. # These are left unexpanded so users can "make install exec_prefix=/foo"
  974. # and all the variables that are supposed to be based on exec_prefix
  975. # by default will actually change.
  976. # Use braces instead of parens because sh, perl, etc. also accept them.
  977. # (The list follows the same order as the GNU Coding Standards.)
  978. bindir='${exec_prefix}/bin'
  979. sbindir='${exec_prefix}/sbin'
  980. libexecdir='${exec_prefix}/libexec'
  981. datarootdir='${prefix}/share'
  982. datadir='${datarootdir}'
  983. sysconfdir='${prefix}/etc'
  984. sharedstatedir='${prefix}/com'
  985. localstatedir='${prefix}/var'
  986. runstatedir='${localstatedir}/run'
  987. includedir='${prefix}/include'
  988. oldincludedir='/usr/include'
  989. docdir='${datarootdir}/doc/${PACKAGE}'
  990. infodir='${datarootdir}/info'
  991. htmldir='${docdir}'
  992. dvidir='${docdir}'
  993. pdfdir='${docdir}'
  994. psdir='${docdir}'
  995. libdir='${exec_prefix}/lib'
  996. localedir='${datarootdir}/locale'
  997. mandir='${datarootdir}/man'
  998. ac_prev=
  999. ac_dashdash=
  1000. for ac_option
  1001. do
  1002. # If the previous option needs an argument, assign it.
  1003. if test -n "$ac_prev"; then
  1004. eval $ac_prev=\$ac_option
  1005. ac_prev=
  1006. continue
  1007. fi
  1008. case $ac_option in
  1009. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1010. *=) ac_optarg= ;;
  1011. *) ac_optarg=yes ;;
  1012. esac
  1013. case $ac_dashdash$ac_option in
  1014. --)
  1015. ac_dashdash=yes ;;
  1016. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1017. ac_prev=bindir ;;
  1018. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1019. bindir=$ac_optarg ;;
  1020. -build | --build | --buil | --bui | --bu)
  1021. ac_prev=build_alias ;;
  1022. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1023. build_alias=$ac_optarg ;;
  1024. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1025. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1026. ac_prev=cache_file ;;
  1027. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1028. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1029. cache_file=$ac_optarg ;;
  1030. --config-cache | -C)
  1031. cache_file=config.cache ;;
  1032. -datadir | --datadir | --datadi | --datad)
  1033. ac_prev=datadir ;;
  1034. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1035. datadir=$ac_optarg ;;
  1036. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1037. | --dataroo | --dataro | --datar)
  1038. ac_prev=datarootdir ;;
  1039. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1040. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1041. datarootdir=$ac_optarg ;;
  1042. -disable-* | --disable-*)
  1043. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1044. # Reject names that are not valid shell variable names.
  1045. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1046. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1047. ac_useropt_orig=$ac_useropt
  1048. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1049. case $ac_user_opts in
  1050. *"
  1051. "enable_$ac_useropt"
  1052. "*) ;;
  1053. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1054. ac_unrecognized_sep=', ';;
  1055. esac
  1056. eval enable_$ac_useropt=no ;;
  1057. -docdir | --docdir | --docdi | --doc | --do)
  1058. ac_prev=docdir ;;
  1059. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1060. docdir=$ac_optarg ;;
  1061. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1062. ac_prev=dvidir ;;
  1063. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1064. dvidir=$ac_optarg ;;
  1065. -enable-* | --enable-*)
  1066. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1067. # Reject names that are not valid shell variable names.
  1068. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1069. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1070. ac_useropt_orig=$ac_useropt
  1071. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1072. case $ac_user_opts in
  1073. *"
  1074. "enable_$ac_useropt"
  1075. "*) ;;
  1076. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1077. ac_unrecognized_sep=', ';;
  1078. esac
  1079. eval enable_$ac_useropt=\$ac_optarg ;;
  1080. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1081. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1082. | --exec | --exe | --ex)
  1083. ac_prev=exec_prefix ;;
  1084. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1085. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1086. | --exec=* | --exe=* | --ex=*)
  1087. exec_prefix=$ac_optarg ;;
  1088. -gas | --gas | --ga | --g)
  1089. # Obsolete; use --with-gas.
  1090. with_gas=yes ;;
  1091. -help | --help | --hel | --he | -h)
  1092. ac_init_help=long ;;
  1093. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1094. ac_init_help=recursive ;;
  1095. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1096. ac_init_help=short ;;
  1097. -host | --host | --hos | --ho)
  1098. ac_prev=host_alias ;;
  1099. -host=* | --host=* | --hos=* | --ho=*)
  1100. host_alias=$ac_optarg ;;
  1101. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1102. ac_prev=htmldir ;;
  1103. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1104. | --ht=*)
  1105. htmldir=$ac_optarg ;;
  1106. -includedir | --includedir | --includedi | --included | --include \
  1107. | --includ | --inclu | --incl | --inc)
  1108. ac_prev=includedir ;;
  1109. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1110. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1111. includedir=$ac_optarg ;;
  1112. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1113. ac_prev=infodir ;;
  1114. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1115. infodir=$ac_optarg ;;
  1116. -libdir | --libdir | --libdi | --libd)
  1117. ac_prev=libdir ;;
  1118. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1119. libdir=$ac_optarg ;;
  1120. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1121. | --libexe | --libex | --libe)
  1122. ac_prev=libexecdir ;;
  1123. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1124. | --libexe=* | --libex=* | --libe=*)
  1125. libexecdir=$ac_optarg ;;
  1126. -localedir | --localedir | --localedi | --localed | --locale)
  1127. ac_prev=localedir ;;
  1128. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1129. localedir=$ac_optarg ;;
  1130. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1131. | --localstate | --localstat | --localsta | --localst | --locals)
  1132. ac_prev=localstatedir ;;
  1133. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1134. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1135. localstatedir=$ac_optarg ;;
  1136. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1137. ac_prev=mandir ;;
  1138. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1139. mandir=$ac_optarg ;;
  1140. -nfp | --nfp | --nf)
  1141. # Obsolete; use --without-fp.
  1142. with_fp=no ;;
  1143. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1144. | --no-cr | --no-c | -n)
  1145. no_create=yes ;;
  1146. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1147. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1148. no_recursion=yes ;;
  1149. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1150. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1151. | --oldin | --oldi | --old | --ol | --o)
  1152. ac_prev=oldincludedir ;;
  1153. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1154. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1155. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1156. oldincludedir=$ac_optarg ;;
  1157. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1158. ac_prev=prefix ;;
  1159. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1160. prefix=$ac_optarg ;;
  1161. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1162. | --program-pre | --program-pr | --program-p)
  1163. ac_prev=program_prefix ;;
  1164. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1165. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1166. program_prefix=$ac_optarg ;;
  1167. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1168. | --program-suf | --program-su | --program-s)
  1169. ac_prev=program_suffix ;;
  1170. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1171. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1172. program_suffix=$ac_optarg ;;
  1173. -program-transform-name | --program-transform-name \
  1174. | --program-transform-nam | --program-transform-na \
  1175. | --program-transform-n | --program-transform- \
  1176. | --program-transform | --program-transfor \
  1177. | --program-transfo | --program-transf \
  1178. | --program-trans | --program-tran \
  1179. | --progr-tra | --program-tr | --program-t)
  1180. ac_prev=program_transform_name ;;
  1181. -program-transform-name=* | --program-transform-name=* \
  1182. | --program-transform-nam=* | --program-transform-na=* \
  1183. | --program-transform-n=* | --program-transform-=* \
  1184. | --program-transform=* | --program-transfor=* \
  1185. | --program-transfo=* | --program-transf=* \
  1186. | --program-trans=* | --program-tran=* \
  1187. | --progr-tra=* | --program-tr=* | --program-t=*)
  1188. program_transform_name=$ac_optarg ;;
  1189. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1190. ac_prev=pdfdir ;;
  1191. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1192. pdfdir=$ac_optarg ;;
  1193. -psdir | --psdir | --psdi | --psd | --ps)
  1194. ac_prev=psdir ;;
  1195. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1196. psdir=$ac_optarg ;;
  1197. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1198. | -silent | --silent | --silen | --sile | --sil)
  1199. silent=yes ;;
  1200. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1201. | --runstate | --runstat | --runsta | --runst | --runs \
  1202. | --run | --ru | --r)
  1203. ac_prev=runstatedir ;;
  1204. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1205. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1206. | --run=* | --ru=* | --r=*)
  1207. runstatedir=$ac_optarg ;;
  1208. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1209. ac_prev=sbindir ;;
  1210. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1211. | --sbi=* | --sb=*)
  1212. sbindir=$ac_optarg ;;
  1213. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1214. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1215. | --sharedst | --shareds | --shared | --share | --shar \
  1216. | --sha | --sh)
  1217. ac_prev=sharedstatedir ;;
  1218. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1219. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1220. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1221. | --sha=* | --sh=*)
  1222. sharedstatedir=$ac_optarg ;;
  1223. -site | --site | --sit)
  1224. ac_prev=site ;;
  1225. -site=* | --site=* | --sit=*)
  1226. site=$ac_optarg ;;
  1227. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1228. ac_prev=srcdir ;;
  1229. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1230. srcdir=$ac_optarg ;;
  1231. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1232. | --syscon | --sysco | --sysc | --sys | --sy)
  1233. ac_prev=sysconfdir ;;
  1234. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1235. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1236. sysconfdir=$ac_optarg ;;
  1237. -target | --target | --targe | --targ | --tar | --ta | --t)
  1238. ac_prev=target_alias ;;
  1239. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1240. target_alias=$ac_optarg ;;
  1241. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1242. verbose=yes ;;
  1243. -version | --version | --versio | --versi | --vers | -V)
  1244. ac_init_version=: ;;
  1245. -with-* | --with-*)
  1246. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1247. # Reject names that are not valid shell variable names.
  1248. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1249. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1250. ac_useropt_orig=$ac_useropt
  1251. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1252. case $ac_user_opts in
  1253. *"
  1254. "with_$ac_useropt"
  1255. "*) ;;
  1256. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1257. ac_unrecognized_sep=', ';;
  1258. esac
  1259. eval with_$ac_useropt=\$ac_optarg ;;
  1260. -without-* | --without-*)
  1261. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1262. # Reject names that are not valid shell variable names.
  1263. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1264. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1265. ac_useropt_orig=$ac_useropt
  1266. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1267. case $ac_user_opts in
  1268. *"
  1269. "with_$ac_useropt"
  1270. "*) ;;
  1271. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1272. ac_unrecognized_sep=', ';;
  1273. esac
  1274. eval with_$ac_useropt=no ;;
  1275. --x)
  1276. # Obsolete; use --with-x.
  1277. with_x=yes ;;
  1278. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1279. | --x-incl | --x-inc | --x-in | --x-i)
  1280. ac_prev=x_includes ;;
  1281. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1282. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1283. x_includes=$ac_optarg ;;
  1284. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1285. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1286. ac_prev=x_libraries ;;
  1287. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1288. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1289. x_libraries=$ac_optarg ;;
  1290. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1291. Try \`$0 --help' for more information"
  1292. ;;
  1293. *=*)
  1294. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1295. # Reject names that are not valid shell variable names.
  1296. case $ac_envvar in #(
  1297. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1298. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1299. esac
  1300. eval $ac_envvar=\$ac_optarg
  1301. export $ac_envvar ;;
  1302. *)
  1303. # FIXME: should be removed in autoconf 3.0.
  1304. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1305. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1306. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1307. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1308. ;;
  1309. esac
  1310. done
  1311. if test -n "$ac_prev"; then
  1312. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1313. as_fn_error $? "missing argument to $ac_option"
  1314. fi
  1315. if test -n "$ac_unrecognized_opts"; then
  1316. case $enable_option_checking in
  1317. no) ;;
  1318. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1319. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1320. esac
  1321. fi
  1322. # Check all directory arguments for consistency.
  1323. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1324. datadir sysconfdir sharedstatedir localstatedir includedir \
  1325. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1326. libdir localedir mandir runstatedir
  1327. do
  1328. eval ac_val=\$$ac_var
  1329. # Remove trailing slashes.
  1330. case $ac_val in
  1331. */ )
  1332. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1333. eval $ac_var=\$ac_val;;
  1334. esac
  1335. # Be sure to have absolute directory names.
  1336. case $ac_val in
  1337. [\\/$]* | ?:[\\/]* ) continue;;
  1338. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1339. esac
  1340. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1341. done
  1342. # There might be people who depend on the old broken behavior: `$host'
  1343. # used to hold the argument of --host etc.
  1344. # FIXME: To remove some day.
  1345. build=$build_alias
  1346. host=$host_alias
  1347. target=$target_alias
  1348. # FIXME: To remove some day.
  1349. if test "x$host_alias" != x; then
  1350. if test "x$build_alias" = x; then
  1351. cross_compiling=maybe
  1352. elif test "x$build_alias" != "x$host_alias"; then
  1353. cross_compiling=yes
  1354. fi
  1355. fi
  1356. ac_tool_prefix=
  1357. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1358. test "$silent" = yes && exec 6>/dev/null
  1359. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1360. ac_ls_di=`ls -di .` &&
  1361. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1362. as_fn_error $? "working directory cannot be determined"
  1363. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1364. as_fn_error $? "pwd does not report name of working directory"
  1365. # Find the source files, if location was not specified.
  1366. if test -z "$srcdir"; then
  1367. ac_srcdir_defaulted=yes
  1368. # Try the directory containing this script, then the parent directory.
  1369. ac_confdir=`$as_dirname -- "$as_myself" ||
  1370. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1371. X"$as_myself" : 'X\(//\)[^/]' \| \
  1372. X"$as_myself" : 'X\(//\)$' \| \
  1373. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1374. printf "%s\n" X"$as_myself" |
  1375. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1376. s//\1/
  1377. q
  1378. }
  1379. /^X\(\/\/\)[^/].*/{
  1380. s//\1/
  1381. q
  1382. }
  1383. /^X\(\/\/\)$/{
  1384. s//\1/
  1385. q
  1386. }
  1387. /^X\(\/\).*/{
  1388. s//\1/
  1389. q
  1390. }
  1391. s/.*/./; q'`
  1392. srcdir=$ac_confdir
  1393. if test ! -r "$srcdir/$ac_unique_file"; then
  1394. srcdir=..
  1395. fi
  1396. else
  1397. ac_srcdir_defaulted=no
  1398. fi
  1399. if test ! -r "$srcdir/$ac_unique_file"; then
  1400. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1401. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1402. fi
  1403. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1404. ac_abs_confdir=`(
  1405. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1406. pwd)`
  1407. # When building in place, set srcdir=.
  1408. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1409. srcdir=.
  1410. fi
  1411. # Remove unnecessary trailing slashes from srcdir.
  1412. # Double slashes in file names in object file debugging info
  1413. # mess up M-x gdb in Emacs.
  1414. case $srcdir in
  1415. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1416. esac
  1417. for ac_var in $ac_precious_vars; do
  1418. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1419. eval ac_env_${ac_var}_value=\$${ac_var}
  1420. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1421. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1422. done
  1423. #
  1424. # Report the --help message.
  1425. #
  1426. if test "$ac_init_help" = "long"; then
  1427. # Omit some internal or obsolete options to make the list less imposing.
  1428. # This message is too long to be a string in the A/UX 3.1 sh.
  1429. cat <<_ACEOF
  1430. \`configure' configures this package to adapt to many kinds of systems.
  1431. Usage: $0 [OPTION]... [VAR=VALUE]...
  1432. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1433. VAR=VALUE. See below for descriptions of some of the useful variables.
  1434. Defaults for the options are specified in brackets.
  1435. Configuration:
  1436. -h, --help display this help and exit
  1437. --help=short display options specific to this package
  1438. --help=recursive display the short help of all the included packages
  1439. -V, --version display version information and exit
  1440. -q, --quiet, --silent do not print \`checking ...' messages
  1441. --cache-file=FILE cache test results in FILE [disabled]
  1442. -C, --config-cache alias for \`--cache-file=config.cache'
  1443. -n, --no-create do not create output files
  1444. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1445. Installation directories:
  1446. --prefix=PREFIX install architecture-independent files in PREFIX
  1447. [$ac_default_prefix]
  1448. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1449. [PREFIX]
  1450. By default, \`make install' will install all the files in
  1451. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1452. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1453. for instance \`--prefix=\$HOME'.
  1454. For better control, use the options below.
  1455. Fine tuning of the installation directories:
  1456. --bindir=DIR user executables [EPREFIX/bin]
  1457. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1458. --libexecdir=DIR program executables [EPREFIX/libexec]
  1459. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1460. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1461. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1462. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1463. --libdir=DIR object code libraries [EPREFIX/lib]
  1464. --includedir=DIR C header files [PREFIX/include]
  1465. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1466. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1467. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1468. --infodir=DIR info documentation [DATAROOTDIR/info]
  1469. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1470. --mandir=DIR man documentation [DATAROOTDIR/man]
  1471. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1472. --htmldir=DIR html documentation [DOCDIR]
  1473. --dvidir=DIR dvi documentation [DOCDIR]
  1474. --pdfdir=DIR pdf documentation [DOCDIR]
  1475. --psdir=DIR ps documentation [DOCDIR]
  1476. _ACEOF
  1477. cat <<\_ACEOF
  1478. X features:
  1479. --x-includes=DIR X include files are in DIR
  1480. --x-libraries=DIR X library files are in DIR
  1481. System types:
  1482. --build=BUILD configure for building on BUILD [guessed]
  1483. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1484. _ACEOF
  1485. fi
  1486. if test -n "$ac_init_help"; then
  1487. cat <<\_ACEOF
  1488. Optional Features:
  1489. --disable-option-checking ignore unrecognized --enable/--with options
  1490. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1491. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1492. --enable-shared[=PKGS] build shared libraries [default=yes]
  1493. --enable-static[=PKGS] build static libraries [default=yes]
  1494. --enable-fast-install[=PKGS]
  1495. optimize for fast installation [default=yes]
  1496. --disable-libtool-lock avoid locking (might break parallel builds)
  1497. --disable-largefile omit support for large files
  1498. --enable-assertions Enable internal sanity checks
  1499. (auto/disabled/release/enabled/paranoid)
  1500. [default=auto]
  1501. --enable-dependency-tracking
  1502. Use gcc -MMD -MT dependency tracking [default=yes]
  1503. --enable-libc Use the system C library [default=yes]
  1504. --enable-system-iconv Use iconv() from system-installed libraries
  1505. [default=no for windows, yes for others]
  1506. --enable-libiconv Prefer iconv() from libiconv, if available, over
  1507. libc version [default=no]
  1508. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1509. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1510. --enable-audio Enable the audio subsystem [default=yes]
  1511. --enable-video Enable the video subsystem [default=yes]
  1512. --enable-render Enable the render subsystem [default=yes]
  1513. --enable-events Enable the events subsystem [default=yes]
  1514. --enable-joystick Enable the joystick subsystem [default=yes]
  1515. --enable-haptic Enable the haptic (force feedback) subsystem
  1516. [default=yes]
  1517. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1518. --enable-sensor Enable the sensor subsystem [default=yes]
  1519. --enable-power Enable the power subsystem [default=yes]
  1520. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1521. --enable-timers Enable the timer subsystem [default=yes]
  1522. --enable-file Enable the file subsystem [default=yes]
  1523. --enable-misc Enable the misc subsystem [default=yes]
  1524. --enable-locale Enable the locale subsystem [default=yes]
  1525. --enable-loadso Enable the shared object loading subsystem
  1526. [default=yes]
  1527. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1528. --enable-assembly Enable assembly routines [default=yes]
  1529. --enable-ssemath Allow GCC to use SSE floating point math
  1530. [default=maybe]
  1531. --enable-mmx use MMX assembly routines [default=yes]
  1532. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1533. --enable-sse use SSE assembly routines [default=yes]
  1534. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1535. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1536. --enable-altivec use Altivec assembly routines [default=yes]
  1537. --enable-lsx use LSX assembly routines [default=yes]
  1538. --enable-oss support the OSS audio API [default=maybe]
  1539. --enable-alsa support the ALSA audio API [default=yes]
  1540. --disable-alsatest Do not try to compile and run a test Alsa program
  1541. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1542. --enable-jack use JACK audio [default=yes]
  1543. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1544. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1545. --disable-esdtest Do not try to compile and run a test ESD program
  1546. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1547. --enable-pipewire use Pipewire audio [default=yes]
  1548. --enable-pipewire-shared
  1549. dynamically load Pipewire support [default=yes]
  1550. --enable-pulseaudio use PulseAudio [default=yes]
  1551. --enable-pulseaudio-shared
  1552. dynamically load PulseAudio support [default=yes]
  1553. --enable-arts support the Analog Real Time Synthesizer
  1554. [default=yes]
  1555. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1556. --enable-nas support the NAS audio API [default=yes]
  1557. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1558. --enable-sndio support the sndio audio API [default=yes]
  1559. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1560. --enable-fusionsound use FusionSound audio driver [default=no]
  1561. --enable-fusionsound-shared
  1562. dynamically load fusionsound audio support
  1563. [default=yes]
  1564. --enable-diskaudio support the disk writer audio driver [default=yes]
  1565. --enable-dummyaudio support the dummy audio driver [default=yes]
  1566. --enable-libsamplerate use libsamplerate for audio rate conversion
  1567. [default=yes]
  1568. --enable-libsamplerate-shared
  1569. dynamically load libsamplerate [default=yes]
  1570. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1571. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1572. --enable-werror treat warnings as errors [default=no]
  1573. --enable-video-wayland use Wayland video driver [default=yes]
  1574. --enable-video-wayland-qt-touch
  1575. QtWayland server support for Wayland video driver
  1576. [default=yes]
  1577. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1578. --enable-libdecor use libdecor for Wayland client-side decorations
  1579. [default=yes]
  1580. --enable-libdecor-shared
  1581. dynamically load libdecor [default=yes]
  1582. --enable-video-rpi use Raspberry Pi 0-3 video driver [default=yes]
  1583. --enable-video-x11 use X11 video driver [default=maybe]
  1584. --enable-x11-shared dynamically load X11 support [default=maybe]
  1585. --enable-video-x11-xcursor
  1586. enable X11 Xcursor support [default=yes]
  1587. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1588. --enable-video-x11-xinput
  1589. enable X11 XInput extension for manymouse, tablets,
  1590. etc [default=yes]
  1591. --enable-video-x11-xfixes
  1592. enable X11 Xfixes support [default=yes]
  1593. --enable-video-x11-xrandr
  1594. enable X11 Xrandr extension for fullscreen
  1595. [default=yes]
  1596. --enable-video-x11-scrnsaver
  1597. enable X11 screensaver extension [default=yes]
  1598. --enable-video-x11-xshape
  1599. enable X11 XShape support [default=yes]
  1600. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1601. --enable-video-cocoa use Cocoa video driver [default=yes]
  1602. --enable-video-metal include Metal support [default=yes]
  1603. --enable-render-metal enable the Metal render driver [default=yes]
  1604. --enable-video-directfb use DirectFB video driver [default=no]
  1605. --enable-directfb-shared
  1606. dynamically load directfb support [default=yes]
  1607. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1608. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1609. --enable-video-dummy use dummy video driver [default=yes]
  1610. --enable-video-offscreen
  1611. use offscreen video driver [default=yes]
  1612. --enable-video-opengl include OpenGL support [default=yes]
  1613. --enable-video-opengles include OpenGL ES support [default=yes]
  1614. --enable-video-opengles1
  1615. include OpenGL ES 1.1 support [default=yes]
  1616. --enable-video-opengles2
  1617. include OpenGL ES 2.0 support [default=yes]
  1618. --enable-video-vulkan include Vulkan support [default=yes]
  1619. --enable-libudev enable libudev support [default=yes]
  1620. --enable-dbus enable D-Bus support [default=yes]
  1621. --enable-ime enable IME support [default=yes]
  1622. --enable-ibus enable IBus support [default=yes]
  1623. --enable-fcitx enable fcitx support [default=yes]
  1624. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1625. --enable-pthreads use POSIX threads for multi-threading
  1626. [default=maybe]
  1627. --enable-pthread-sem use pthread semaphores [default=maybe]
  1628. --enable-directx use DirectX for Windows audio/video [default=yes]
  1629. --enable-xinput use Xinput for Windows [default=yes]
  1630. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1631. --enable-hidapi-joystick
  1632. use HIDAPI for low level joystick drivers
  1633. [default=yes]
  1634. --enable-hidapi-libusb use libusb for low level joystick drivers
  1635. [default=maybe]
  1636. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1637. UNIX [default=yes]
  1638. --enable-rpath use an rpath when linking SDL [default=yes]
  1639. --enable-backgrounding-signal
  1640. number to use for magic backgrounding signal or 'no'
  1641. [default=no]
  1642. --enable-foregrounding-signal
  1643. number to use for magic foregrounding signal or 'no'
  1644. [default=no]
  1645. --enable-joystick-virtual
  1646. enable virtual joystick APIs [default=yes]
  1647. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1648. --enable-sdl2-config Install sdl2-config [default=yes]
  1649. --enable-vendor-info=STRING
  1650. Add vendor info to SDL_REVISION
  1651. Optional Packages:
  1652. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1653. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1654. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1655. both]
  1656. --with-aix-soname=aix|svr4|both
  1657. shared library versioning (aka "SONAME") variant to
  1658. provide on AIX, [default=aix].
  1659. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1660. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1661. compiler's sysroot if not specified).
  1662. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1663. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1664. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1665. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1666. --with-x use the X Window System
  1667. Some influential environment variables:
  1668. CC C compiler command
  1669. CFLAGS C compiler flags
  1670. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1671. nonstandard directory <lib dir>
  1672. LIBS libraries to pass to the linker, e.g. -l<library>
  1673. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1674. you have headers in a nonstandard directory <include dir>
  1675. LT_SYS_LIBRARY_PATH
  1676. User-defined run-time library search path.
  1677. CXX C++ compiler command
  1678. CXXFLAGS C++ compiler flags
  1679. CXXCPP C++ preprocessor
  1680. PKG_CONFIG path to pkg-config utility
  1681. PKG_CONFIG_PATH
  1682. directories to add to pkg-config's search path
  1683. PKG_CONFIG_LIBDIR
  1684. path overriding pkg-config's built-in search path
  1685. CPP C preprocessor
  1686. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1687. JACK_LIBS linker flags for JACK, overriding pkg-config
  1688. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1689. ESD_LIBS linker flags for ESD, overriding pkg-config
  1690. PIPEWIRE_CFLAGS
  1691. C compiler flags for PIPEWIRE, overriding pkg-config
  1692. PIPEWIRE_LIBS
  1693. linker flags for PIPEWIRE, overriding pkg-config
  1694. PULSEAUDIO_CFLAGS
  1695. C compiler flags for PULSEAUDIO, overriding pkg-config
  1696. PULSEAUDIO_LIBS
  1697. linker flags for PULSEAUDIO, overriding pkg-config
  1698. SNDIO_CFLAGS
  1699. C compiler flags for SNDIO, overriding pkg-config
  1700. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1701. FUSIONSOUND_CFLAGS
  1702. C compiler flags for FUSIONSOUND, overriding pkg-config
  1703. FUSIONSOUND_LIBS
  1704. linker flags for FUSIONSOUND, overriding pkg-config
  1705. DECOR_CFLAGS
  1706. C compiler flags for DECOR, overriding pkg-config
  1707. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1708. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1709. RPI_LIBS linker flags for RPI, overriding pkg-config
  1710. RPI_EGL_CFLAGS
  1711. C compiler flags for RPI_EGL, overriding pkg-config
  1712. RPI_EGL_LIBS
  1713. linker flags for RPI_EGL, overriding pkg-config
  1714. XMKMF Path to xmkmf, Makefile generator for X Window System
  1715. DIRECTFB_CFLAGS
  1716. C compiler flags for DIRECTFB, overriding pkg-config
  1717. DIRECTFB_LIBS
  1718. linker flags for DIRECTFB, overriding pkg-config
  1719. LIBDRM_CFLAGS
  1720. C compiler flags for LIBDRM, overriding pkg-config
  1721. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1722. LIBGBM_CFLAGS
  1723. C compiler flags for LIBGBM, overriding pkg-config
  1724. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1725. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1726. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1727. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1728. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1729. LIBUSB_CFLAGS
  1730. C compiler flags for LIBUSB, overriding pkg-config
  1731. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1732. Use these variables to override the choices made by `configure' or to help
  1733. it to find libraries and programs with nonstandard names/locations.
  1734. Report bugs to the package provider.
  1735. _ACEOF
  1736. ac_status=$?
  1737. fi
  1738. if test "$ac_init_help" = "recursive"; then
  1739. # If there are subdirs, report their specific --help.
  1740. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1741. test -d "$ac_dir" ||
  1742. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1743. continue
  1744. ac_builddir=.
  1745. case "$ac_dir" in
  1746. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1747. *)
  1748. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1749. # A ".." for each directory in $ac_dir_suffix.
  1750. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1751. case $ac_top_builddir_sub in
  1752. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1753. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1754. esac ;;
  1755. esac
  1756. ac_abs_top_builddir=$ac_pwd
  1757. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1758. # for backward compatibility:
  1759. ac_top_builddir=$ac_top_build_prefix
  1760. case $srcdir in
  1761. .) # We are building in place.
  1762. ac_srcdir=.
  1763. ac_top_srcdir=$ac_top_builddir_sub
  1764. ac_abs_top_srcdir=$ac_pwd ;;
  1765. [\\/]* | ?:[\\/]* ) # Absolute name.
  1766. ac_srcdir=$srcdir$ac_dir_suffix;
  1767. ac_top_srcdir=$srcdir
  1768. ac_abs_top_srcdir=$srcdir ;;
  1769. *) # Relative name.
  1770. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1771. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1772. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1773. esac
  1774. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1775. cd "$ac_dir" || { ac_status=$?; continue; }
  1776. # Check for configure.gnu first; this name is used for a wrapper for
  1777. # Metaconfig's "Configure" on case-insensitive file systems.
  1778. if test -f "$ac_srcdir/configure.gnu"; then
  1779. echo &&
  1780. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1781. elif test -f "$ac_srcdir/configure"; then
  1782. echo &&
  1783. $SHELL "$ac_srcdir/configure" --help=recursive
  1784. else
  1785. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1786. fi || ac_status=$?
  1787. cd "$ac_pwd" || { ac_status=$?; break; }
  1788. done
  1789. fi
  1790. test -n "$ac_init_help" && exit $ac_status
  1791. if $ac_init_version; then
  1792. cat <<\_ACEOF
  1793. configure
  1794. generated by GNU Autoconf 2.71
  1795. Copyright (C) 2021 Free Software Foundation, Inc.
  1796. This configure script is free software; the Free Software Foundation
  1797. gives unlimited permission to copy, distribute and modify it.
  1798. _ACEOF
  1799. exit
  1800. fi
  1801. ## ------------------------ ##
  1802. ## Autoconf initialization. ##
  1803. ## ------------------------ ##
  1804. # ac_fn_c_try_compile LINENO
  1805. # --------------------------
  1806. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1807. ac_fn_c_try_compile ()
  1808. {
  1809. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1810. rm -f conftest.$ac_objext conftest.beam
  1811. if { { ac_try="$ac_compile"
  1812. case "(($ac_try" in
  1813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1814. *) ac_try_echo=$ac_try;;
  1815. esac
  1816. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1817. printf "%s\n" "$ac_try_echo"; } >&5
  1818. (eval "$ac_compile") 2>conftest.err
  1819. ac_status=$?
  1820. if test -s conftest.err; then
  1821. grep -v '^ *+' conftest.err >conftest.er1
  1822. cat conftest.er1 >&5
  1823. mv -f conftest.er1 conftest.err
  1824. fi
  1825. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1826. test $ac_status = 0; } && {
  1827. test -z "$ac_c_werror_flag" ||
  1828. test ! -s conftest.err
  1829. } && test -s conftest.$ac_objext
  1830. then :
  1831. ac_retval=0
  1832. else $as_nop
  1833. printf "%s\n" "$as_me: failed program was:" >&5
  1834. sed 's/^/| /' conftest.$ac_ext >&5
  1835. ac_retval=1
  1836. fi
  1837. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1838. as_fn_set_status $ac_retval
  1839. } # ac_fn_c_try_compile
  1840. # ac_fn_c_try_link LINENO
  1841. # -----------------------
  1842. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1843. ac_fn_c_try_link ()
  1844. {
  1845. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1846. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1847. if { { ac_try="$ac_link"
  1848. case "(($ac_try" in
  1849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1850. *) ac_try_echo=$ac_try;;
  1851. esac
  1852. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1853. printf "%s\n" "$ac_try_echo"; } >&5
  1854. (eval "$ac_link") 2>conftest.err
  1855. ac_status=$?
  1856. if test -s conftest.err; then
  1857. grep -v '^ *+' conftest.err >conftest.er1
  1858. cat conftest.er1 >&5
  1859. mv -f conftest.er1 conftest.err
  1860. fi
  1861. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1862. test $ac_status = 0; } && {
  1863. test -z "$ac_c_werror_flag" ||
  1864. test ! -s conftest.err
  1865. } && test -s conftest$ac_exeext && {
  1866. test "$cross_compiling" = yes ||
  1867. test -x conftest$ac_exeext
  1868. }
  1869. then :
  1870. ac_retval=0
  1871. else $as_nop
  1872. printf "%s\n" "$as_me: failed program was:" >&5
  1873. sed 's/^/| /' conftest.$ac_ext >&5
  1874. ac_retval=1
  1875. fi
  1876. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1877. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1878. # interfere with the next link command; also delete a directory that is
  1879. # left behind by Apple's compiler. We do this before executing the actions.
  1880. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1881. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1882. as_fn_set_status $ac_retval
  1883. } # ac_fn_c_try_link
  1884. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1885. # -------------------------------------------------------
  1886. # Tests whether HEADER exists and can be compiled using the include files in
  1887. # INCLUDES, setting the cache variable VAR accordingly.
  1888. ac_fn_c_check_header_compile ()
  1889. {
  1890. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1892. printf %s "checking for $2... " >&6; }
  1893. if eval test \${$3+y}
  1894. then :
  1895. printf %s "(cached) " >&6
  1896. else $as_nop
  1897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1898. /* end confdefs.h. */
  1899. $4
  1900. #include <$2>
  1901. _ACEOF
  1902. if ac_fn_c_try_compile "$LINENO"
  1903. then :
  1904. eval "$3=yes"
  1905. else $as_nop
  1906. eval "$3=no"
  1907. fi
  1908. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1909. fi
  1910. eval ac_res=\$$3
  1911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1912. printf "%s\n" "$ac_res" >&6; }
  1913. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1914. } # ac_fn_c_check_header_compile
  1915. # ac_fn_c_check_func LINENO FUNC VAR
  1916. # ----------------------------------
  1917. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1918. ac_fn_c_check_func ()
  1919. {
  1920. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1922. printf %s "checking for $2... " >&6; }
  1923. if eval test \${$3+y}
  1924. then :
  1925. printf %s "(cached) " >&6
  1926. else $as_nop
  1927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1928. /* end confdefs.h. */
  1929. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1930. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1931. #define $2 innocuous_$2
  1932. /* System header to define __stub macros and hopefully few prototypes,
  1933. which can conflict with char $2 (); below. */
  1934. #include <limits.h>
  1935. #undef $2
  1936. /* Override any GCC internal prototype to avoid an error.
  1937. Use char because int might match the return type of a GCC
  1938. builtin and then its argument prototype would still apply. */
  1939. #ifdef __cplusplus
  1940. extern "C"
  1941. #endif
  1942. char $2 ();
  1943. /* The GNU C library defines this for functions which it implements
  1944. to always fail with ENOSYS. Some functions are actually named
  1945. something starting with __ and the normal name is an alias. */
  1946. #if defined __stub_$2 || defined __stub___$2
  1947. choke me
  1948. #endif
  1949. int
  1950. main (void)
  1951. {
  1952. return $2 ();
  1953. ;
  1954. return 0;
  1955. }
  1956. _ACEOF
  1957. if ac_fn_c_try_link "$LINENO"
  1958. then :
  1959. eval "$3=yes"
  1960. else $as_nop
  1961. eval "$3=no"
  1962. fi
  1963. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1964. conftest$ac_exeext conftest.$ac_ext
  1965. fi
  1966. eval ac_res=\$$3
  1967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1968. printf "%s\n" "$ac_res" >&6; }
  1969. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1970. } # ac_fn_c_check_func
  1971. # ac_fn_cxx_try_compile LINENO
  1972. # ----------------------------
  1973. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1974. ac_fn_cxx_try_compile ()
  1975. {
  1976. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1977. rm -f conftest.$ac_objext conftest.beam
  1978. if { { ac_try="$ac_compile"
  1979. case "(($ac_try" in
  1980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1981. *) ac_try_echo=$ac_try;;
  1982. esac
  1983. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1984. printf "%s\n" "$ac_try_echo"; } >&5
  1985. (eval "$ac_compile") 2>conftest.err
  1986. ac_status=$?
  1987. if test -s conftest.err; then
  1988. grep -v '^ *+' conftest.err >conftest.er1
  1989. cat conftest.er1 >&5
  1990. mv -f conftest.er1 conftest.err
  1991. fi
  1992. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1993. test $ac_status = 0; } && {
  1994. test -z "$ac_cxx_werror_flag" ||
  1995. test ! -s conftest.err
  1996. } && test -s conftest.$ac_objext
  1997. then :
  1998. ac_retval=0
  1999. else $as_nop
  2000. printf "%s\n" "$as_me: failed program was:" >&5
  2001. sed 's/^/| /' conftest.$ac_ext >&5
  2002. ac_retval=1
  2003. fi
  2004. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2005. as_fn_set_status $ac_retval
  2006. } # ac_fn_cxx_try_compile
  2007. # ac_fn_cxx_try_cpp LINENO
  2008. # ------------------------
  2009. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2010. ac_fn_cxx_try_cpp ()
  2011. {
  2012. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2013. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2014. case "(($ac_try" in
  2015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2016. *) ac_try_echo=$ac_try;;
  2017. esac
  2018. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2019. printf "%s\n" "$ac_try_echo"; } >&5
  2020. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2021. ac_status=$?
  2022. if test -s conftest.err; then
  2023. grep -v '^ *+' conftest.err >conftest.er1
  2024. cat conftest.er1 >&5
  2025. mv -f conftest.er1 conftest.err
  2026. fi
  2027. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2028. test $ac_status = 0; } > conftest.i && {
  2029. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2030. test ! -s conftest.err
  2031. }
  2032. then :
  2033. ac_retval=0
  2034. else $as_nop
  2035. printf "%s\n" "$as_me: failed program was:" >&5
  2036. sed 's/^/| /' conftest.$ac_ext >&5
  2037. ac_retval=1
  2038. fi
  2039. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2040. as_fn_set_status $ac_retval
  2041. } # ac_fn_cxx_try_cpp
  2042. # ac_fn_cxx_try_link LINENO
  2043. # -------------------------
  2044. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2045. ac_fn_cxx_try_link ()
  2046. {
  2047. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2048. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2049. if { { ac_try="$ac_link"
  2050. case "(($ac_try" in
  2051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2052. *) ac_try_echo=$ac_try;;
  2053. esac
  2054. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2055. printf "%s\n" "$ac_try_echo"; } >&5
  2056. (eval "$ac_link") 2>conftest.err
  2057. ac_status=$?
  2058. if test -s conftest.err; then
  2059. grep -v '^ *+' conftest.err >conftest.er1
  2060. cat conftest.er1 >&5
  2061. mv -f conftest.er1 conftest.err
  2062. fi
  2063. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2064. test $ac_status = 0; } && {
  2065. test -z "$ac_cxx_werror_flag" ||
  2066. test ! -s conftest.err
  2067. } && test -s conftest$ac_exeext && {
  2068. test "$cross_compiling" = yes ||
  2069. test -x conftest$ac_exeext
  2070. }
  2071. then :
  2072. ac_retval=0
  2073. else $as_nop
  2074. printf "%s\n" "$as_me: failed program was:" >&5
  2075. sed 's/^/| /' conftest.$ac_ext >&5
  2076. ac_retval=1
  2077. fi
  2078. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2079. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2080. # interfere with the next link command; also delete a directory that is
  2081. # left behind by Apple's compiler. We do this before executing the actions.
  2082. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2083. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2084. as_fn_set_status $ac_retval
  2085. } # ac_fn_cxx_try_link
  2086. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2087. # -------------------------------------------
  2088. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2089. # variable VAR accordingly.
  2090. ac_fn_c_check_type ()
  2091. {
  2092. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2094. printf %s "checking for $2... " >&6; }
  2095. if eval test \${$3+y}
  2096. then :
  2097. printf %s "(cached) " >&6
  2098. else $as_nop
  2099. eval "$3=no"
  2100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2101. /* end confdefs.h. */
  2102. $4
  2103. int
  2104. main (void)
  2105. {
  2106. if (sizeof ($2))
  2107. return 0;
  2108. ;
  2109. return 0;
  2110. }
  2111. _ACEOF
  2112. if ac_fn_c_try_compile "$LINENO"
  2113. then :
  2114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2115. /* end confdefs.h. */
  2116. $4
  2117. int
  2118. main (void)
  2119. {
  2120. if (sizeof (($2)))
  2121. return 0;
  2122. ;
  2123. return 0;
  2124. }
  2125. _ACEOF
  2126. if ac_fn_c_try_compile "$LINENO"
  2127. then :
  2128. else $as_nop
  2129. eval "$3=yes"
  2130. fi
  2131. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2132. fi
  2133. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2134. fi
  2135. eval ac_res=\$$3
  2136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2137. printf "%s\n" "$ac_res" >&6; }
  2138. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2139. } # ac_fn_c_check_type
  2140. # ac_fn_c_try_cpp LINENO
  2141. # ----------------------
  2142. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2143. ac_fn_c_try_cpp ()
  2144. {
  2145. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2146. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2147. case "(($ac_try" in
  2148. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2149. *) ac_try_echo=$ac_try;;
  2150. esac
  2151. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2152. printf "%s\n" "$ac_try_echo"; } >&5
  2153. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2154. ac_status=$?
  2155. if test -s conftest.err; then
  2156. grep -v '^ *+' conftest.err >conftest.er1
  2157. cat conftest.er1 >&5
  2158. mv -f conftest.er1 conftest.err
  2159. fi
  2160. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2161. test $ac_status = 0; } > conftest.i && {
  2162. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2163. test ! -s conftest.err
  2164. }
  2165. then :
  2166. ac_retval=0
  2167. else $as_nop
  2168. printf "%s\n" "$as_me: failed program was:" >&5
  2169. sed 's/^/| /' conftest.$ac_ext >&5
  2170. ac_retval=1
  2171. fi
  2172. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2173. as_fn_set_status $ac_retval
  2174. } # ac_fn_c_try_cpp
  2175. # ac_fn_c_try_run LINENO
  2176. # ----------------------
  2177. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2178. # executables *can* be run.
  2179. ac_fn_c_try_run ()
  2180. {
  2181. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2182. if { { ac_try="$ac_link"
  2183. case "(($ac_try" in
  2184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2185. *) ac_try_echo=$ac_try;;
  2186. esac
  2187. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2188. printf "%s\n" "$ac_try_echo"; } >&5
  2189. (eval "$ac_link") 2>&5
  2190. ac_status=$?
  2191. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2192. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2193. { { case "(($ac_try" in
  2194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2195. *) ac_try_echo=$ac_try;;
  2196. esac
  2197. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2198. printf "%s\n" "$ac_try_echo"; } >&5
  2199. (eval "$ac_try") 2>&5
  2200. ac_status=$?
  2201. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2202. test $ac_status = 0; }; }
  2203. then :
  2204. ac_retval=0
  2205. else $as_nop
  2206. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2207. printf "%s\n" "$as_me: failed program was:" >&5
  2208. sed 's/^/| /' conftest.$ac_ext >&5
  2209. ac_retval=$ac_status
  2210. fi
  2211. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2212. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2213. as_fn_set_status $ac_retval
  2214. } # ac_fn_c_try_run
  2215. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2216. # ----------------------------------------------------
  2217. # Tries to find if the field MEMBER exists in type AGGR, after including
  2218. # INCLUDES, setting cache variable VAR accordingly.
  2219. ac_fn_c_check_member ()
  2220. {
  2221. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2223. printf %s "checking for $2.$3... " >&6; }
  2224. if eval test \${$4+y}
  2225. then :
  2226. printf %s "(cached) " >&6
  2227. else $as_nop
  2228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2229. /* end confdefs.h. */
  2230. $5
  2231. int
  2232. main (void)
  2233. {
  2234. static $2 ac_aggr;
  2235. if (ac_aggr.$3)
  2236. return 0;
  2237. ;
  2238. return 0;
  2239. }
  2240. _ACEOF
  2241. if ac_fn_c_try_compile "$LINENO"
  2242. then :
  2243. eval "$4=yes"
  2244. else $as_nop
  2245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2246. /* end confdefs.h. */
  2247. $5
  2248. int
  2249. main (void)
  2250. {
  2251. static $2 ac_aggr;
  2252. if (sizeof ac_aggr.$3)
  2253. return 0;
  2254. ;
  2255. return 0;
  2256. }
  2257. _ACEOF
  2258. if ac_fn_c_try_compile "$LINENO"
  2259. then :
  2260. eval "$4=yes"
  2261. else $as_nop
  2262. eval "$4=no"
  2263. fi
  2264. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2265. fi
  2266. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2267. fi
  2268. eval ac_res=\$$4
  2269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2270. printf "%s\n" "$ac_res" >&6; }
  2271. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2272. } # ac_fn_c_check_member
  2273. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  2274. # ------------------------------------------------------------------
  2275. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2276. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  2277. ac_fn_check_decl ()
  2278. {
  2279. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2280. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2282. printf %s "checking whether $as_decl_name is declared... " >&6; }
  2283. if eval test \${$3+y}
  2284. then :
  2285. printf %s "(cached) " >&6
  2286. else $as_nop
  2287. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2288. eval ac_save_FLAGS=\$$6
  2289. as_fn_append $6 " $5"
  2290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2291. /* end confdefs.h. */
  2292. $4
  2293. int
  2294. main (void)
  2295. {
  2296. #ifndef $as_decl_name
  2297. #ifdef __cplusplus
  2298. (void) $as_decl_use;
  2299. #else
  2300. (void) $as_decl_name;
  2301. #endif
  2302. #endif
  2303. ;
  2304. return 0;
  2305. }
  2306. _ACEOF
  2307. if ac_fn_c_try_compile "$LINENO"
  2308. then :
  2309. eval "$3=yes"
  2310. else $as_nop
  2311. eval "$3=no"
  2312. fi
  2313. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2314. eval $6=\$ac_save_FLAGS
  2315. fi
  2316. eval ac_res=\$$3
  2317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2318. printf "%s\n" "$ac_res" >&6; }
  2319. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2320. } # ac_fn_check_decl
  2321. ac_configure_args_raw=
  2322. for ac_arg
  2323. do
  2324. case $ac_arg in
  2325. *\'*)
  2326. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2327. esac
  2328. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2329. done
  2330. case $ac_configure_args_raw in
  2331. *$as_nl*)
  2332. ac_safe_unquote= ;;
  2333. *)
  2334. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2335. ac_unsafe_a="$ac_unsafe_z#~"
  2336. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2337. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2338. esac
  2339. cat >config.log <<_ACEOF
  2340. This file contains any messages produced by compilers while
  2341. running configure, to aid debugging if configure makes a mistake.
  2342. It was created by $as_me, which was
  2343. generated by GNU Autoconf 2.71. Invocation command line was
  2344. $ $0$ac_configure_args_raw
  2345. _ACEOF
  2346. exec 5>>config.log
  2347. {
  2348. cat <<_ASUNAME
  2349. ## --------- ##
  2350. ## Platform. ##
  2351. ## --------- ##
  2352. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2353. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2354. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2355. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2356. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2357. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2358. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2359. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2360. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2361. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2362. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2363. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2364. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2365. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2366. _ASUNAME
  2367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2368. for as_dir in $PATH
  2369. do
  2370. IFS=$as_save_IFS
  2371. case $as_dir in #(((
  2372. '') as_dir=./ ;;
  2373. */) ;;
  2374. *) as_dir=$as_dir/ ;;
  2375. esac
  2376. printf "%s\n" "PATH: $as_dir"
  2377. done
  2378. IFS=$as_save_IFS
  2379. } >&5
  2380. cat >&5 <<_ACEOF
  2381. ## ----------- ##
  2382. ## Core tests. ##
  2383. ## ----------- ##
  2384. _ACEOF
  2385. # Keep a trace of the command line.
  2386. # Strip out --no-create and --no-recursion so they do not pile up.
  2387. # Strip out --silent because we don't want to record it for future runs.
  2388. # Also quote any args containing shell meta-characters.
  2389. # Make two passes to allow for proper duplicate-argument suppression.
  2390. ac_configure_args=
  2391. ac_configure_args0=
  2392. ac_configure_args1=
  2393. ac_must_keep_next=false
  2394. for ac_pass in 1 2
  2395. do
  2396. for ac_arg
  2397. do
  2398. case $ac_arg in
  2399. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2400. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2401. | -silent | --silent | --silen | --sile | --sil)
  2402. continue ;;
  2403. *\'*)
  2404. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2405. esac
  2406. case $ac_pass in
  2407. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2408. 2)
  2409. as_fn_append ac_configure_args1 " '$ac_arg'"
  2410. if test $ac_must_keep_next = true; then
  2411. ac_must_keep_next=false # Got value, back to normal.
  2412. else
  2413. case $ac_arg in
  2414. *=* | --config-cache | -C | -disable-* | --disable-* \
  2415. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2416. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2417. | -with-* | --with-* | -without-* | --without-* | --x)
  2418. case "$ac_configure_args0 " in
  2419. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2420. esac
  2421. ;;
  2422. -* ) ac_must_keep_next=true ;;
  2423. esac
  2424. fi
  2425. as_fn_append ac_configure_args " '$ac_arg'"
  2426. ;;
  2427. esac
  2428. done
  2429. done
  2430. { ac_configure_args0=; unset ac_configure_args0;}
  2431. { ac_configure_args1=; unset ac_configure_args1;}
  2432. # When interrupted or exit'd, cleanup temporary files, and complete
  2433. # config.log. We remove comments because anyway the quotes in there
  2434. # would cause problems or look ugly.
  2435. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2436. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2437. trap 'exit_status=$?
  2438. # Sanitize IFS.
  2439. IFS=" "" $as_nl"
  2440. # Save into config.log some information that might help in debugging.
  2441. {
  2442. echo
  2443. printf "%s\n" "## ---------------- ##
  2444. ## Cache variables. ##
  2445. ## ---------------- ##"
  2446. echo
  2447. # The following way of writing the cache mishandles newlines in values,
  2448. (
  2449. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2450. eval ac_val=\$$ac_var
  2451. case $ac_val in #(
  2452. *${as_nl}*)
  2453. case $ac_var in #(
  2454. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2455. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2456. esac
  2457. case $ac_var in #(
  2458. _ | IFS | as_nl) ;; #(
  2459. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2460. *) { eval $ac_var=; unset $ac_var;} ;;
  2461. esac ;;
  2462. esac
  2463. done
  2464. (set) 2>&1 |
  2465. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2466. *${as_nl}ac_space=\ *)
  2467. sed -n \
  2468. "s/'\''/'\''\\\\'\'''\''/g;
  2469. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2470. ;; #(
  2471. *)
  2472. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2473. ;;
  2474. esac |
  2475. sort
  2476. )
  2477. echo
  2478. printf "%s\n" "## ----------------- ##
  2479. ## Output variables. ##
  2480. ## ----------------- ##"
  2481. echo
  2482. for ac_var in $ac_subst_vars
  2483. do
  2484. eval ac_val=\$$ac_var
  2485. case $ac_val in
  2486. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2487. esac
  2488. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2489. done | sort
  2490. echo
  2491. if test -n "$ac_subst_files"; then
  2492. printf "%s\n" "## ------------------- ##
  2493. ## File substitutions. ##
  2494. ## ------------------- ##"
  2495. echo
  2496. for ac_var in $ac_subst_files
  2497. do
  2498. eval ac_val=\$$ac_var
  2499. case $ac_val in
  2500. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2501. esac
  2502. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2503. done | sort
  2504. echo
  2505. fi
  2506. if test -s confdefs.h; then
  2507. printf "%s\n" "## ----------- ##
  2508. ## confdefs.h. ##
  2509. ## ----------- ##"
  2510. echo
  2511. cat confdefs.h
  2512. echo
  2513. fi
  2514. test "$ac_signal" != 0 &&
  2515. printf "%s\n" "$as_me: caught signal $ac_signal"
  2516. printf "%s\n" "$as_me: exit $exit_status"
  2517. } >&5
  2518. rm -f core *.core core.conftest.* &&
  2519. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2520. exit $exit_status
  2521. ' 0
  2522. for ac_signal in 1 2 13 15; do
  2523. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2524. done
  2525. ac_signal=0
  2526. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2527. rm -f -r conftest* confdefs.h
  2528. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2529. # Predefined preprocessor variables.
  2530. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2531. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2532. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2533. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2534. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2535. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2536. # Let the site file select an alternate cache file if it wants to.
  2537. # Prefer an explicitly selected file to automatically selected ones.
  2538. if test -n "$CONFIG_SITE"; then
  2539. ac_site_files="$CONFIG_SITE"
  2540. elif test "x$prefix" != xNONE; then
  2541. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2542. else
  2543. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2544. fi
  2545. for ac_site_file in $ac_site_files
  2546. do
  2547. case $ac_site_file in #(
  2548. */*) :
  2549. ;; #(
  2550. *) :
  2551. ac_site_file=./$ac_site_file ;;
  2552. esac
  2553. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2555. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2556. sed 's/^/| /' "$ac_site_file" >&5
  2557. . "$ac_site_file" \
  2558. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2559. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2560. as_fn_error $? "failed to load site script $ac_site_file
  2561. See \`config.log' for more details" "$LINENO" 5; }
  2562. fi
  2563. done
  2564. if test -r "$cache_file"; then
  2565. # Some versions of bash will fail to source /dev/null (special files
  2566. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2567. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2569. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2570. case $cache_file in
  2571. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2572. *) . "./$cache_file";;
  2573. esac
  2574. fi
  2575. else
  2576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2577. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2578. >$cache_file
  2579. fi
  2580. # Test code for whether the C compiler supports C89 (global declarations)
  2581. ac_c_conftest_c89_globals='
  2582. /* Does the compiler advertise C89 conformance?
  2583. Do not test the value of __STDC__, because some compilers set it to 0
  2584. while being otherwise adequately conformant. */
  2585. #if !defined __STDC__
  2586. # error "Compiler does not advertise C89 conformance"
  2587. #endif
  2588. #include <stddef.h>
  2589. #include <stdarg.h>
  2590. struct stat;
  2591. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2592. struct buf { int x; };
  2593. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2594. static char *e (p, i)
  2595. char **p;
  2596. int i;
  2597. {
  2598. return p[i];
  2599. }
  2600. static char *f (char * (*g) (char **, int), char **p, ...)
  2601. {
  2602. char *s;
  2603. va_list v;
  2604. va_start (v,p);
  2605. s = g (p, va_arg (v,int));
  2606. va_end (v);
  2607. return s;
  2608. }
  2609. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2610. function prototypes and stuff, but not \xHH hex character constants.
  2611. These do not provoke an error unfortunately, instead are silently treated
  2612. as an "x". The following induces an error, until -std is added to get
  2613. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2614. array size at least. It is necessary to write \x00 == 0 to get something
  2615. that is true only with -std. */
  2616. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2617. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2618. inside strings and character constants. */
  2619. #define FOO(x) '\''x'\''
  2620. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2621. int test (int i, double x);
  2622. struct s1 {int (*f) (int a);};
  2623. struct s2 {int (*f) (double a);};
  2624. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2625. int, int);'
  2626. # Test code for whether the C compiler supports C89 (body of main).
  2627. ac_c_conftest_c89_main='
  2628. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2629. '
  2630. # Test code for whether the C compiler supports C99 (global declarations)
  2631. ac_c_conftest_c99_globals='
  2632. // Does the compiler advertise C99 conformance?
  2633. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2634. # error "Compiler does not advertise C99 conformance"
  2635. #endif
  2636. #include <stdbool.h>
  2637. extern int puts (const char *);
  2638. extern int printf (const char *, ...);
  2639. extern int dprintf (int, const char *, ...);
  2640. extern void *malloc (size_t);
  2641. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2642. // dprintf is used instead of fprintf to avoid needing to declare
  2643. // FILE and stderr.
  2644. #define debug(...) dprintf (2, __VA_ARGS__)
  2645. #define showlist(...) puts (#__VA_ARGS__)
  2646. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2647. static void
  2648. test_varargs_macros (void)
  2649. {
  2650. int x = 1234;
  2651. int y = 5678;
  2652. debug ("Flag");
  2653. debug ("X = %d\n", x);
  2654. showlist (The first, second, and third items.);
  2655. report (x>y, "x is %d but y is %d", x, y);
  2656. }
  2657. // Check long long types.
  2658. #define BIG64 18446744073709551615ull
  2659. #define BIG32 4294967295ul
  2660. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2661. #if !BIG_OK
  2662. #error "your preprocessor is broken"
  2663. #endif
  2664. #if BIG_OK
  2665. #else
  2666. #error "your preprocessor is broken"
  2667. #endif
  2668. static long long int bignum = -9223372036854775807LL;
  2669. static unsigned long long int ubignum = BIG64;
  2670. struct incomplete_array
  2671. {
  2672. int datasize;
  2673. double data[];
  2674. };
  2675. struct named_init {
  2676. int number;
  2677. const wchar_t *name;
  2678. double average;
  2679. };
  2680. typedef const char *ccp;
  2681. static inline int
  2682. test_restrict (ccp restrict text)
  2683. {
  2684. // See if C++-style comments work.
  2685. // Iterate through items via the restricted pointer.
  2686. // Also check for declarations in for loops.
  2687. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2688. continue;
  2689. return 0;
  2690. }
  2691. // Check varargs and va_copy.
  2692. static bool
  2693. test_varargs (const char *format, ...)
  2694. {
  2695. va_list args;
  2696. va_start (args, format);
  2697. va_list args_copy;
  2698. va_copy (args_copy, args);
  2699. const char *str = "";
  2700. int number = 0;
  2701. float fnumber = 0;
  2702. while (*format)
  2703. {
  2704. switch (*format++)
  2705. {
  2706. case '\''s'\'': // string
  2707. str = va_arg (args_copy, const char *);
  2708. break;
  2709. case '\''d'\'': // int
  2710. number = va_arg (args_copy, int);
  2711. break;
  2712. case '\''f'\'': // float
  2713. fnumber = va_arg (args_copy, double);
  2714. break;
  2715. default:
  2716. break;
  2717. }
  2718. }
  2719. va_end (args_copy);
  2720. va_end (args);
  2721. return *str && number && fnumber;
  2722. }
  2723. '
  2724. # Test code for whether the C compiler supports C99 (body of main).
  2725. ac_c_conftest_c99_main='
  2726. // Check bool.
  2727. _Bool success = false;
  2728. success |= (argc != 0);
  2729. // Check restrict.
  2730. if (test_restrict ("String literal") == 0)
  2731. success = true;
  2732. char *restrict newvar = "Another string";
  2733. // Check varargs.
  2734. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2735. test_varargs_macros ();
  2736. // Check flexible array members.
  2737. struct incomplete_array *ia =
  2738. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2739. ia->datasize = 10;
  2740. for (int i = 0; i < ia->datasize; ++i)
  2741. ia->data[i] = i * 1.234;
  2742. // Check named initializers.
  2743. struct named_init ni = {
  2744. .number = 34,
  2745. .name = L"Test wide string",
  2746. .average = 543.34343,
  2747. };
  2748. ni.number = 58;
  2749. int dynamic_array[ni.number];
  2750. dynamic_array[0] = argv[0][0];
  2751. dynamic_array[ni.number - 1] = 543;
  2752. // work around unused variable warnings
  2753. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2754. || dynamic_array[ni.number - 1] != 543);
  2755. '
  2756. # Test code for whether the C compiler supports C11 (global declarations)
  2757. ac_c_conftest_c11_globals='
  2758. // Does the compiler advertise C11 conformance?
  2759. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2760. # error "Compiler does not advertise C11 conformance"
  2761. #endif
  2762. // Check _Alignas.
  2763. char _Alignas (double) aligned_as_double;
  2764. char _Alignas (0) no_special_alignment;
  2765. extern char aligned_as_int;
  2766. char _Alignas (0) _Alignas (int) aligned_as_int;
  2767. // Check _Alignof.
  2768. enum
  2769. {
  2770. int_alignment = _Alignof (int),
  2771. int_array_alignment = _Alignof (int[100]),
  2772. char_alignment = _Alignof (char)
  2773. };
  2774. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2775. // Check _Noreturn.
  2776. int _Noreturn does_not_return (void) { for (;;) continue; }
  2777. // Check _Static_assert.
  2778. struct test_static_assert
  2779. {
  2780. int x;
  2781. _Static_assert (sizeof (int) <= sizeof (long int),
  2782. "_Static_assert does not work in struct");
  2783. long int y;
  2784. };
  2785. // Check UTF-8 literals.
  2786. #define u8 syntax error!
  2787. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2788. // Check duplicate typedefs.
  2789. typedef long *long_ptr;
  2790. typedef long int *long_ptr;
  2791. typedef long_ptr long_ptr;
  2792. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2793. struct anonymous
  2794. {
  2795. union {
  2796. struct { int i; int j; };
  2797. struct { int k; long int l; } w;
  2798. };
  2799. int m;
  2800. } v1;
  2801. '
  2802. # Test code for whether the C compiler supports C11 (body of main).
  2803. ac_c_conftest_c11_main='
  2804. _Static_assert ((offsetof (struct anonymous, i)
  2805. == offsetof (struct anonymous, w.k)),
  2806. "Anonymous union alignment botch");
  2807. v1.i = 2;
  2808. v1.w.k = 5;
  2809. ok |= v1.i != 5;
  2810. '
  2811. # Test code for whether the C compiler supports C11 (complete).
  2812. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2813. ${ac_c_conftest_c99_globals}
  2814. ${ac_c_conftest_c11_globals}
  2815. int
  2816. main (int argc, char **argv)
  2817. {
  2818. int ok = 0;
  2819. ${ac_c_conftest_c89_main}
  2820. ${ac_c_conftest_c99_main}
  2821. ${ac_c_conftest_c11_main}
  2822. return ok;
  2823. }
  2824. "
  2825. # Test code for whether the C compiler supports C99 (complete).
  2826. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2827. ${ac_c_conftest_c99_globals}
  2828. int
  2829. main (int argc, char **argv)
  2830. {
  2831. int ok = 0;
  2832. ${ac_c_conftest_c89_main}
  2833. ${ac_c_conftest_c99_main}
  2834. return ok;
  2835. }
  2836. "
  2837. # Test code for whether the C compiler supports C89 (complete).
  2838. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2839. int
  2840. main (int argc, char **argv)
  2841. {
  2842. int ok = 0;
  2843. ${ac_c_conftest_c89_main}
  2844. return ok;
  2845. }
  2846. "
  2847. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2848. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2849. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2850. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2851. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2852. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2853. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2854. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2855. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2856. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2857. ac_cxx_conftest_cxx98_globals='
  2858. // Does the compiler advertise C++98 conformance?
  2859. #if !defined __cplusplus || __cplusplus < 199711L
  2860. # error "Compiler does not advertise C++98 conformance"
  2861. #endif
  2862. // These inclusions are to reject old compilers that
  2863. // lack the unsuffixed header files.
  2864. #include <cstdlib>
  2865. #include <exception>
  2866. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2867. extern void assert (int);
  2868. namespace std {
  2869. extern int strcmp (const char *, const char *);
  2870. }
  2871. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2872. using std::exception;
  2873. using std::strcmp;
  2874. namespace {
  2875. void test_exception_syntax()
  2876. {
  2877. try {
  2878. throw "test";
  2879. } catch (const char *s) {
  2880. // Extra parentheses suppress a warning when building autoconf itself,
  2881. // due to lint rules shared with more typical C programs.
  2882. assert (!(strcmp) (s, "test"));
  2883. }
  2884. }
  2885. template <typename T> struct test_template
  2886. {
  2887. T const val;
  2888. explicit test_template(T t) : val(t) {}
  2889. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2890. };
  2891. } // anonymous namespace
  2892. '
  2893. # Test code for whether the C++ compiler supports C++98 (body of main)
  2894. ac_cxx_conftest_cxx98_main='
  2895. assert (argc);
  2896. assert (! argv[0]);
  2897. {
  2898. test_exception_syntax ();
  2899. test_template<double> tt (2.0);
  2900. assert (tt.add (4) == 6.0);
  2901. assert (true && !false);
  2902. }
  2903. '
  2904. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2905. ac_cxx_conftest_cxx11_globals='
  2906. // Does the compiler advertise C++ 2011 conformance?
  2907. #if !defined __cplusplus || __cplusplus < 201103L
  2908. # error "Compiler does not advertise C++11 conformance"
  2909. #endif
  2910. namespace cxx11test
  2911. {
  2912. constexpr int get_val() { return 20; }
  2913. struct testinit
  2914. {
  2915. int i;
  2916. double d;
  2917. };
  2918. class delegate
  2919. {
  2920. public:
  2921. delegate(int n) : n(n) {}
  2922. delegate(): delegate(2354) {}
  2923. virtual int getval() { return this->n; };
  2924. protected:
  2925. int n;
  2926. };
  2927. class overridden : public delegate
  2928. {
  2929. public:
  2930. overridden(int n): delegate(n) {}
  2931. virtual int getval() override final { return this->n * 2; }
  2932. };
  2933. class nocopy
  2934. {
  2935. public:
  2936. nocopy(int i): i(i) {}
  2937. nocopy() = default;
  2938. nocopy(const nocopy&) = delete;
  2939. nocopy & operator=(const nocopy&) = delete;
  2940. private:
  2941. int i;
  2942. };
  2943. // for testing lambda expressions
  2944. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2945. {
  2946. return f(v);
  2947. }
  2948. // for testing variadic templates and trailing return types
  2949. template <typename V> auto sum(V first) -> V
  2950. {
  2951. return first;
  2952. }
  2953. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2954. {
  2955. return first + sum(rest...);
  2956. }
  2957. }
  2958. '
  2959. # Test code for whether the C++ compiler supports C++11 (body of main)
  2960. ac_cxx_conftest_cxx11_main='
  2961. {
  2962. // Test auto and decltype
  2963. auto a1 = 6538;
  2964. auto a2 = 48573953.4;
  2965. auto a3 = "String literal";
  2966. int total = 0;
  2967. for (auto i = a3; *i; ++i) { total += *i; }
  2968. decltype(a2) a4 = 34895.034;
  2969. }
  2970. {
  2971. // Test constexpr
  2972. short sa[cxx11test::get_val()] = { 0 };
  2973. }
  2974. {
  2975. // Test initializer lists
  2976. cxx11test::testinit il = { 4323, 435234.23544 };
  2977. }
  2978. {
  2979. // Test range-based for
  2980. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2981. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2982. for (auto &x : array) { x += 23; }
  2983. }
  2984. {
  2985. // Test lambda expressions
  2986. using cxx11test::eval;
  2987. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2988. double d = 2.0;
  2989. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2990. assert (d == 5.0);
  2991. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2992. assert (d == 5.0);
  2993. }
  2994. {
  2995. // Test use of variadic templates
  2996. using cxx11test::sum;
  2997. auto a = sum(1);
  2998. auto b = sum(1, 2);
  2999. auto c = sum(1.0, 2.0, 3.0);
  3000. }
  3001. {
  3002. // Test constructor delegation
  3003. cxx11test::delegate d1;
  3004. cxx11test::delegate d2();
  3005. cxx11test::delegate d3(45);
  3006. }
  3007. {
  3008. // Test override and final
  3009. cxx11test::overridden o1(55464);
  3010. }
  3011. {
  3012. // Test nullptr
  3013. char *c = nullptr;
  3014. }
  3015. {
  3016. // Test template brackets
  3017. test_template<::test_template<int>> v(test_template<int>(12));
  3018. }
  3019. {
  3020. // Unicode literals
  3021. char const *utf8 = u8"UTF-8 string \u2500";
  3022. char16_t const *utf16 = u"UTF-8 string \u2500";
  3023. char32_t const *utf32 = U"UTF-32 string \u2500";
  3024. }
  3025. '
  3026. # Test code for whether the C compiler supports C++11 (complete).
  3027. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  3028. ${ac_cxx_conftest_cxx11_globals}
  3029. int
  3030. main (int argc, char **argv)
  3031. {
  3032. int ok = 0;
  3033. ${ac_cxx_conftest_cxx98_main}
  3034. ${ac_cxx_conftest_cxx11_main}
  3035. return ok;
  3036. }
  3037. "
  3038. # Test code for whether the C compiler supports C++98 (complete).
  3039. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  3040. int
  3041. main (int argc, char **argv)
  3042. {
  3043. int ok = 0;
  3044. ${ac_cxx_conftest_cxx98_main}
  3045. return ok;
  3046. }
  3047. "
  3048. # Auxiliary files required by this configure script.
  3049. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  3050. # Locations in which to look for auxiliary files.
  3051. ac_aux_dir_candidates="${srcdir}/build-scripts"
  3052. # Search for a directory containing all of the required auxiliary files,
  3053. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  3054. # If we don't find one directory that contains all the files we need,
  3055. # we report the set of missing files from the *first* directory in
  3056. # $ac_aux_dir_candidates and give up.
  3057. ac_missing_aux_files=""
  3058. ac_first_candidate=:
  3059. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  3060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3061. as_found=false
  3062. for as_dir in $ac_aux_dir_candidates
  3063. do
  3064. IFS=$as_save_IFS
  3065. case $as_dir in #(((
  3066. '') as_dir=./ ;;
  3067. */) ;;
  3068. *) as_dir=$as_dir/ ;;
  3069. esac
  3070. as_found=:
  3071. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3072. ac_aux_dir_found=yes
  3073. ac_install_sh=
  3074. for ac_aux in $ac_aux_files
  3075. do
  3076. # As a special case, if "install-sh" is required, that requirement
  3077. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3078. # and $ac_install_sh is set appropriately for whichever one is found.
  3079. if test x"$ac_aux" = x"install-sh"
  3080. then
  3081. if test -f "${as_dir}install-sh"; then
  3082. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3083. ac_install_sh="${as_dir}install-sh -c"
  3084. elif test -f "${as_dir}install.sh"; then
  3085. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3086. ac_install_sh="${as_dir}install.sh -c"
  3087. elif test -f "${as_dir}shtool"; then
  3088. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3089. ac_install_sh="${as_dir}shtool install -c"
  3090. else
  3091. ac_aux_dir_found=no
  3092. if $ac_first_candidate; then
  3093. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3094. else
  3095. break
  3096. fi
  3097. fi
  3098. else
  3099. if test -f "${as_dir}${ac_aux}"; then
  3100. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3101. else
  3102. ac_aux_dir_found=no
  3103. if $ac_first_candidate; then
  3104. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3105. else
  3106. break
  3107. fi
  3108. fi
  3109. fi
  3110. done
  3111. if test "$ac_aux_dir_found" = yes; then
  3112. ac_aux_dir="$as_dir"
  3113. break
  3114. fi
  3115. ac_first_candidate=false
  3116. as_found=false
  3117. done
  3118. IFS=$as_save_IFS
  3119. if $as_found
  3120. then :
  3121. else $as_nop
  3122. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3123. fi
  3124. # These three variables are undocumented and unsupported,
  3125. # and are intended to be withdrawn in a future Autoconf release.
  3126. # They can cause serious problems if a builder's source tree is in a directory
  3127. # whose full name contains unusual characters.
  3128. if test -f "${ac_aux_dir}config.guess"; then
  3129. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3130. fi
  3131. if test -f "${ac_aux_dir}config.sub"; then
  3132. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3133. fi
  3134. if test -f "$ac_aux_dir/configure"; then
  3135. ac_configure="$SHELL ${ac_aux_dir}configure"
  3136. fi
  3137. # Check that the precious variables saved in the cache have kept the same
  3138. # value.
  3139. ac_cache_corrupted=false
  3140. for ac_var in $ac_precious_vars; do
  3141. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3142. eval ac_new_set=\$ac_env_${ac_var}_set
  3143. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3144. eval ac_new_val=\$ac_env_${ac_var}_value
  3145. case $ac_old_set,$ac_new_set in
  3146. set,)
  3147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3148. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3149. ac_cache_corrupted=: ;;
  3150. ,set)
  3151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3152. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3153. ac_cache_corrupted=: ;;
  3154. ,);;
  3155. *)
  3156. if test "x$ac_old_val" != "x$ac_new_val"; then
  3157. # differences in whitespace do not lead to failure.
  3158. ac_old_val_w=`echo x $ac_old_val`
  3159. ac_new_val_w=`echo x $ac_new_val`
  3160. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3162. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3163. ac_cache_corrupted=:
  3164. else
  3165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3166. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3167. eval $ac_var=\$ac_old_val
  3168. fi
  3169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3170. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3172. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3173. fi;;
  3174. esac
  3175. # Pass precious variables to config.status.
  3176. if test "$ac_new_set" = set; then
  3177. case $ac_new_val in
  3178. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3179. *) ac_arg=$ac_var=$ac_new_val ;;
  3180. esac
  3181. case " $ac_configure_args " in
  3182. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3183. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3184. esac
  3185. fi
  3186. done
  3187. if $ac_cache_corrupted; then
  3188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3189. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3191. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3192. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3193. and start over" "$LINENO" 5
  3194. fi
  3195. ## -------------------- ##
  3196. ## Main body of script. ##
  3197. ## -------------------- ##
  3198. ac_ext=c
  3199. ac_cpp='$CPP $CPPFLAGS'
  3200. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3201. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3202. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3203. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3204. orig_CFLAGS="$CFLAGS"
  3205. # See docs/release_checklist.md
  3206. SDL_MAJOR_VERSION=2
  3207. SDL_MINOR_VERSION=31
  3208. SDL_MICRO_VERSION=0
  3209. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3210. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3211. case "$SDL_MINOR_VERSION" in #(
  3212. *[02468]) :
  3213. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3214. *) :
  3215. SDL_INTERFACE_AGE=0 ;; #(
  3216. *) :
  3217. ;;
  3218. esac
  3219. # libtool versioning
  3220. case `pwd` in
  3221. *\ * | *\ *)
  3222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3223. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3224. esac
  3225. macro_version='2.4.6'
  3226. macro_revision='2.4.6'
  3227. ltmain=$ac_aux_dir/ltmain.sh
  3228. # Make sure we can run config.sub.
  3229. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3230. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3232. printf %s "checking build system type... " >&6; }
  3233. if test ${ac_cv_build+y}
  3234. then :
  3235. printf %s "(cached) " >&6
  3236. else $as_nop
  3237. ac_build_alias=$build_alias
  3238. test "x$ac_build_alias" = x &&
  3239. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3240. test "x$ac_build_alias" = x &&
  3241. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3242. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3243. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3244. fi
  3245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3246. printf "%s\n" "$ac_cv_build" >&6; }
  3247. case $ac_cv_build in
  3248. *-*-*) ;;
  3249. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3250. esac
  3251. build=$ac_cv_build
  3252. ac_save_IFS=$IFS; IFS='-'
  3253. set x $ac_cv_build
  3254. shift
  3255. build_cpu=$1
  3256. build_vendor=$2
  3257. shift; shift
  3258. # Remember, the first character of IFS is used to create $*,
  3259. # except with old shells:
  3260. build_os=$*
  3261. IFS=$ac_save_IFS
  3262. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3264. printf %s "checking host system type... " >&6; }
  3265. if test ${ac_cv_host+y}
  3266. then :
  3267. printf %s "(cached) " >&6
  3268. else $as_nop
  3269. if test "x$host_alias" = x; then
  3270. ac_cv_host=$ac_cv_build
  3271. else
  3272. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3273. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3274. fi
  3275. fi
  3276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3277. printf "%s\n" "$ac_cv_host" >&6; }
  3278. case $ac_cv_host in
  3279. *-*-*) ;;
  3280. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3281. esac
  3282. host=$ac_cv_host
  3283. ac_save_IFS=$IFS; IFS='-'
  3284. set x $ac_cv_host
  3285. shift
  3286. host_cpu=$1
  3287. host_vendor=$2
  3288. shift; shift
  3289. # Remember, the first character of IFS is used to create $*,
  3290. # except with old shells:
  3291. host_os=$*
  3292. IFS=$ac_save_IFS
  3293. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3294. # Backslashify metacharacters that are still active within
  3295. # double-quoted strings.
  3296. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3297. # Same as above, but do not quote variable references.
  3298. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3299. # Sed substitution to delay expansion of an escaped shell variable in a
  3300. # double_quote_subst'ed string.
  3301. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3302. # Sed substitution to delay expansion of an escaped single quote.
  3303. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3304. # Sed substitution to avoid accidental globbing in evaled expressions
  3305. no_glob_subst='s/\*/\\\*/g'
  3306. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3307. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3308. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3310. printf %s "checking how to print strings... " >&6; }
  3311. # Test print first, because it will be a builtin if present.
  3312. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3313. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3314. ECHO='print -r --'
  3315. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3316. ECHO='printf %s\n'
  3317. else
  3318. # Use this function as a fallback that always works.
  3319. func_fallback_echo ()
  3320. {
  3321. eval 'cat <<_LTECHO_EOF
  3322. $1
  3323. _LTECHO_EOF'
  3324. }
  3325. ECHO='func_fallback_echo'
  3326. fi
  3327. # func_echo_all arg...
  3328. # Invoke $ECHO with all args, space-separated.
  3329. func_echo_all ()
  3330. {
  3331. $ECHO ""
  3332. }
  3333. case $ECHO in
  3334. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3335. printf "%s\n" "printf" >&6; } ;;
  3336. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3337. printf "%s\n" "print -r" >&6; } ;;
  3338. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3339. printf "%s\n" "cat" >&6; } ;;
  3340. esac
  3341. ac_ext=c
  3342. ac_cpp='$CPP $CPPFLAGS'
  3343. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3344. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3345. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3346. if test -n "$ac_tool_prefix"; then
  3347. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3348. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3350. printf %s "checking for $ac_word... " >&6; }
  3351. if test ${ac_cv_prog_CC+y}
  3352. then :
  3353. printf %s "(cached) " >&6
  3354. else $as_nop
  3355. if test -n "$CC"; then
  3356. ac_cv_prog_CC="$CC" # Let the user override the test.
  3357. else
  3358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3359. for as_dir in $PATH
  3360. do
  3361. IFS=$as_save_IFS
  3362. case $as_dir in #(((
  3363. '') as_dir=./ ;;
  3364. */) ;;
  3365. *) as_dir=$as_dir/ ;;
  3366. esac
  3367. for ac_exec_ext in '' $ac_executable_extensions; do
  3368. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3369. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3370. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3371. break 2
  3372. fi
  3373. done
  3374. done
  3375. IFS=$as_save_IFS
  3376. fi
  3377. fi
  3378. CC=$ac_cv_prog_CC
  3379. if test -n "$CC"; then
  3380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3381. printf "%s\n" "$CC" >&6; }
  3382. else
  3383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3384. printf "%s\n" "no" >&6; }
  3385. fi
  3386. fi
  3387. if test -z "$ac_cv_prog_CC"; then
  3388. ac_ct_CC=$CC
  3389. # Extract the first word of "gcc", so it can be a program name with args.
  3390. set dummy gcc; ac_word=$2
  3391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3392. printf %s "checking for $ac_word... " >&6; }
  3393. if test ${ac_cv_prog_ac_ct_CC+y}
  3394. then :
  3395. printf %s "(cached) " >&6
  3396. else $as_nop
  3397. if test -n "$ac_ct_CC"; then
  3398. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3399. else
  3400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3401. for as_dir in $PATH
  3402. do
  3403. IFS=$as_save_IFS
  3404. case $as_dir in #(((
  3405. '') as_dir=./ ;;
  3406. */) ;;
  3407. *) as_dir=$as_dir/ ;;
  3408. esac
  3409. for ac_exec_ext in '' $ac_executable_extensions; do
  3410. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3411. ac_cv_prog_ac_ct_CC="gcc"
  3412. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3413. break 2
  3414. fi
  3415. done
  3416. done
  3417. IFS=$as_save_IFS
  3418. fi
  3419. fi
  3420. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3421. if test -n "$ac_ct_CC"; then
  3422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3423. printf "%s\n" "$ac_ct_CC" >&6; }
  3424. else
  3425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3426. printf "%s\n" "no" >&6; }
  3427. fi
  3428. if test "x$ac_ct_CC" = x; then
  3429. CC=""
  3430. else
  3431. case $cross_compiling:$ac_tool_warned in
  3432. yes:)
  3433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3434. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3435. ac_tool_warned=yes ;;
  3436. esac
  3437. CC=$ac_ct_CC
  3438. fi
  3439. else
  3440. CC="$ac_cv_prog_CC"
  3441. fi
  3442. if test -z "$CC"; then
  3443. if test -n "$ac_tool_prefix"; then
  3444. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3445. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3447. printf %s "checking for $ac_word... " >&6; }
  3448. if test ${ac_cv_prog_CC+y}
  3449. then :
  3450. printf %s "(cached) " >&6
  3451. else $as_nop
  3452. if test -n "$CC"; then
  3453. ac_cv_prog_CC="$CC" # Let the user override the test.
  3454. else
  3455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3456. for as_dir in $PATH
  3457. do
  3458. IFS=$as_save_IFS
  3459. case $as_dir in #(((
  3460. '') as_dir=./ ;;
  3461. */) ;;
  3462. *) as_dir=$as_dir/ ;;
  3463. esac
  3464. for ac_exec_ext in '' $ac_executable_extensions; do
  3465. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3466. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3467. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3468. break 2
  3469. fi
  3470. done
  3471. done
  3472. IFS=$as_save_IFS
  3473. fi
  3474. fi
  3475. CC=$ac_cv_prog_CC
  3476. if test -n "$CC"; then
  3477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3478. printf "%s\n" "$CC" >&6; }
  3479. else
  3480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3481. printf "%s\n" "no" >&6; }
  3482. fi
  3483. fi
  3484. fi
  3485. if test -z "$CC"; then
  3486. # Extract the first word of "cc", so it can be a program name with args.
  3487. set dummy cc; ac_word=$2
  3488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3489. printf %s "checking for $ac_word... " >&6; }
  3490. if test ${ac_cv_prog_CC+y}
  3491. then :
  3492. printf %s "(cached) " >&6
  3493. else $as_nop
  3494. if test -n "$CC"; then
  3495. ac_cv_prog_CC="$CC" # Let the user override the test.
  3496. else
  3497. ac_prog_rejected=no
  3498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3499. for as_dir in $PATH
  3500. do
  3501. IFS=$as_save_IFS
  3502. case $as_dir in #(((
  3503. '') as_dir=./ ;;
  3504. */) ;;
  3505. *) as_dir=$as_dir/ ;;
  3506. esac
  3507. for ac_exec_ext in '' $ac_executable_extensions; do
  3508. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3509. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3510. ac_prog_rejected=yes
  3511. continue
  3512. fi
  3513. ac_cv_prog_CC="cc"
  3514. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3515. break 2
  3516. fi
  3517. done
  3518. done
  3519. IFS=$as_save_IFS
  3520. if test $ac_prog_rejected = yes; then
  3521. # We found a bogon in the path, so make sure we never use it.
  3522. set dummy $ac_cv_prog_CC
  3523. shift
  3524. if test $# != 0; then
  3525. # We chose a different compiler from the bogus one.
  3526. # However, it has the same basename, so the bogon will be chosen
  3527. # first if we set CC to just the basename; use the full file name.
  3528. shift
  3529. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3530. fi
  3531. fi
  3532. fi
  3533. fi
  3534. CC=$ac_cv_prog_CC
  3535. if test -n "$CC"; then
  3536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3537. printf "%s\n" "$CC" >&6; }
  3538. else
  3539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3540. printf "%s\n" "no" >&6; }
  3541. fi
  3542. fi
  3543. if test -z "$CC"; then
  3544. if test -n "$ac_tool_prefix"; then
  3545. for ac_prog in cl.exe
  3546. do
  3547. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3548. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3550. printf %s "checking for $ac_word... " >&6; }
  3551. if test ${ac_cv_prog_CC+y}
  3552. then :
  3553. printf %s "(cached) " >&6
  3554. else $as_nop
  3555. if test -n "$CC"; then
  3556. ac_cv_prog_CC="$CC" # Let the user override the test.
  3557. else
  3558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3559. for as_dir in $PATH
  3560. do
  3561. IFS=$as_save_IFS
  3562. case $as_dir in #(((
  3563. '') as_dir=./ ;;
  3564. */) ;;
  3565. *) as_dir=$as_dir/ ;;
  3566. esac
  3567. for ac_exec_ext in '' $ac_executable_extensions; do
  3568. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3569. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3570. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3571. break 2
  3572. fi
  3573. done
  3574. done
  3575. IFS=$as_save_IFS
  3576. fi
  3577. fi
  3578. CC=$ac_cv_prog_CC
  3579. if test -n "$CC"; then
  3580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3581. printf "%s\n" "$CC" >&6; }
  3582. else
  3583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3584. printf "%s\n" "no" >&6; }
  3585. fi
  3586. test -n "$CC" && break
  3587. done
  3588. fi
  3589. if test -z "$CC"; then
  3590. ac_ct_CC=$CC
  3591. for ac_prog in cl.exe
  3592. do
  3593. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3594. set dummy $ac_prog; ac_word=$2
  3595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3596. printf %s "checking for $ac_word... " >&6; }
  3597. if test ${ac_cv_prog_ac_ct_CC+y}
  3598. then :
  3599. printf %s "(cached) " >&6
  3600. else $as_nop
  3601. if test -n "$ac_ct_CC"; then
  3602. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3603. else
  3604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3605. for as_dir in $PATH
  3606. do
  3607. IFS=$as_save_IFS
  3608. case $as_dir in #(((
  3609. '') as_dir=./ ;;
  3610. */) ;;
  3611. *) as_dir=$as_dir/ ;;
  3612. esac
  3613. for ac_exec_ext in '' $ac_executable_extensions; do
  3614. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3615. ac_cv_prog_ac_ct_CC="$ac_prog"
  3616. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3617. break 2
  3618. fi
  3619. done
  3620. done
  3621. IFS=$as_save_IFS
  3622. fi
  3623. fi
  3624. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3625. if test -n "$ac_ct_CC"; then
  3626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3627. printf "%s\n" "$ac_ct_CC" >&6; }
  3628. else
  3629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3630. printf "%s\n" "no" >&6; }
  3631. fi
  3632. test -n "$ac_ct_CC" && break
  3633. done
  3634. if test "x$ac_ct_CC" = x; then
  3635. CC=""
  3636. else
  3637. case $cross_compiling:$ac_tool_warned in
  3638. yes:)
  3639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3640. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3641. ac_tool_warned=yes ;;
  3642. esac
  3643. CC=$ac_ct_CC
  3644. fi
  3645. fi
  3646. fi
  3647. if test -z "$CC"; then
  3648. if test -n "$ac_tool_prefix"; then
  3649. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3650. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3652. printf %s "checking for $ac_word... " >&6; }
  3653. if test ${ac_cv_prog_CC+y}
  3654. then :
  3655. printf %s "(cached) " >&6
  3656. else $as_nop
  3657. if test -n "$CC"; then
  3658. ac_cv_prog_CC="$CC" # Let the user override the test.
  3659. else
  3660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3661. for as_dir in $PATH
  3662. do
  3663. IFS=$as_save_IFS
  3664. case $as_dir in #(((
  3665. '') as_dir=./ ;;
  3666. */) ;;
  3667. *) as_dir=$as_dir/ ;;
  3668. esac
  3669. for ac_exec_ext in '' $ac_executable_extensions; do
  3670. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3671. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3672. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3673. break 2
  3674. fi
  3675. done
  3676. done
  3677. IFS=$as_save_IFS
  3678. fi
  3679. fi
  3680. CC=$ac_cv_prog_CC
  3681. if test -n "$CC"; then
  3682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3683. printf "%s\n" "$CC" >&6; }
  3684. else
  3685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3686. printf "%s\n" "no" >&6; }
  3687. fi
  3688. fi
  3689. if test -z "$ac_cv_prog_CC"; then
  3690. ac_ct_CC=$CC
  3691. # Extract the first word of "clang", so it can be a program name with args.
  3692. set dummy clang; ac_word=$2
  3693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3694. printf %s "checking for $ac_word... " >&6; }
  3695. if test ${ac_cv_prog_ac_ct_CC+y}
  3696. then :
  3697. printf %s "(cached) " >&6
  3698. else $as_nop
  3699. if test -n "$ac_ct_CC"; then
  3700. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3701. else
  3702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3703. for as_dir in $PATH
  3704. do
  3705. IFS=$as_save_IFS
  3706. case $as_dir in #(((
  3707. '') as_dir=./ ;;
  3708. */) ;;
  3709. *) as_dir=$as_dir/ ;;
  3710. esac
  3711. for ac_exec_ext in '' $ac_executable_extensions; do
  3712. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3713. ac_cv_prog_ac_ct_CC="clang"
  3714. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3715. break 2
  3716. fi
  3717. done
  3718. done
  3719. IFS=$as_save_IFS
  3720. fi
  3721. fi
  3722. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3723. if test -n "$ac_ct_CC"; then
  3724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3725. printf "%s\n" "$ac_ct_CC" >&6; }
  3726. else
  3727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3728. printf "%s\n" "no" >&6; }
  3729. fi
  3730. if test "x$ac_ct_CC" = x; then
  3731. CC=""
  3732. else
  3733. case $cross_compiling:$ac_tool_warned in
  3734. yes:)
  3735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3736. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3737. ac_tool_warned=yes ;;
  3738. esac
  3739. CC=$ac_ct_CC
  3740. fi
  3741. else
  3742. CC="$ac_cv_prog_CC"
  3743. fi
  3744. fi
  3745. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3746. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3747. as_fn_error $? "no acceptable C compiler found in \$PATH
  3748. See \`config.log' for more details" "$LINENO" 5; }
  3749. # Provide some information about the compiler.
  3750. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3751. set X $ac_compile
  3752. ac_compiler=$2
  3753. for ac_option in --version -v -V -qversion -version; do
  3754. { { ac_try="$ac_compiler $ac_option >&5"
  3755. case "(($ac_try" in
  3756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3757. *) ac_try_echo=$ac_try;;
  3758. esac
  3759. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3760. printf "%s\n" "$ac_try_echo"; } >&5
  3761. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3762. ac_status=$?
  3763. if test -s conftest.err; then
  3764. sed '10a\
  3765. ... rest of stderr output deleted ...
  3766. 10q' conftest.err >conftest.er1
  3767. cat conftest.er1 >&5
  3768. fi
  3769. rm -f conftest.er1 conftest.err
  3770. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3771. test $ac_status = 0; }
  3772. done
  3773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3774. /* end confdefs.h. */
  3775. int
  3776. main (void)
  3777. {
  3778. ;
  3779. return 0;
  3780. }
  3781. _ACEOF
  3782. ac_clean_files_save=$ac_clean_files
  3783. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3784. # Try to create an executable without -o first, disregard a.out.
  3785. # It will help us diagnose broken compilers, and finding out an intuition
  3786. # of exeext.
  3787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3788. printf %s "checking whether the C compiler works... " >&6; }
  3789. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3790. # The possible output files:
  3791. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3792. ac_rmfiles=
  3793. for ac_file in $ac_files
  3794. do
  3795. case $ac_file in
  3796. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3797. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3798. esac
  3799. done
  3800. rm -f $ac_rmfiles
  3801. if { { ac_try="$ac_link_default"
  3802. case "(($ac_try" in
  3803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3804. *) ac_try_echo=$ac_try;;
  3805. esac
  3806. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3807. printf "%s\n" "$ac_try_echo"; } >&5
  3808. (eval "$ac_link_default") 2>&5
  3809. ac_status=$?
  3810. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3811. test $ac_status = 0; }
  3812. then :
  3813. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3814. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3815. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3816. # so that the user can short-circuit this test for compilers unknown to
  3817. # Autoconf.
  3818. for ac_file in $ac_files ''
  3819. do
  3820. test -f "$ac_file" || continue
  3821. case $ac_file in
  3822. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3823. ;;
  3824. [ab].out )
  3825. # We found the default executable, but exeext='' is most
  3826. # certainly right.
  3827. break;;
  3828. *.* )
  3829. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3830. then :; else
  3831. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3832. fi
  3833. # We set ac_cv_exeext here because the later test for it is not
  3834. # safe: cross compilers may not add the suffix if given an `-o'
  3835. # argument, so we may need to know it at that point already.
  3836. # Even if this section looks crufty: it has the advantage of
  3837. # actually working.
  3838. break;;
  3839. * )
  3840. break;;
  3841. esac
  3842. done
  3843. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3844. else $as_nop
  3845. ac_file=''
  3846. fi
  3847. if test -z "$ac_file"
  3848. then :
  3849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3850. printf "%s\n" "no" >&6; }
  3851. printf "%s\n" "$as_me: failed program was:" >&5
  3852. sed 's/^/| /' conftest.$ac_ext >&5
  3853. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3854. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3855. as_fn_error 77 "C compiler cannot create executables
  3856. See \`config.log' for more details" "$LINENO" 5; }
  3857. else $as_nop
  3858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3859. printf "%s\n" "yes" >&6; }
  3860. fi
  3861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3862. printf %s "checking for C compiler default output file name... " >&6; }
  3863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3864. printf "%s\n" "$ac_file" >&6; }
  3865. ac_exeext=$ac_cv_exeext
  3866. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3867. ac_clean_files=$ac_clean_files_save
  3868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3869. printf %s "checking for suffix of executables... " >&6; }
  3870. if { { ac_try="$ac_link"
  3871. case "(($ac_try" in
  3872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3873. *) ac_try_echo=$ac_try;;
  3874. esac
  3875. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3876. printf "%s\n" "$ac_try_echo"; } >&5
  3877. (eval "$ac_link") 2>&5
  3878. ac_status=$?
  3879. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3880. test $ac_status = 0; }
  3881. then :
  3882. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3883. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3884. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3885. # `rm'.
  3886. for ac_file in conftest.exe conftest conftest.*; do
  3887. test -f "$ac_file" || continue
  3888. case $ac_file in
  3889. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3890. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3891. break;;
  3892. * ) break;;
  3893. esac
  3894. done
  3895. else $as_nop
  3896. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3897. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3898. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3899. See \`config.log' for more details" "$LINENO" 5; }
  3900. fi
  3901. rm -f conftest conftest$ac_cv_exeext
  3902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3903. printf "%s\n" "$ac_cv_exeext" >&6; }
  3904. rm -f conftest.$ac_ext
  3905. EXEEXT=$ac_cv_exeext
  3906. ac_exeext=$EXEEXT
  3907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3908. /* end confdefs.h. */
  3909. #include <stdio.h>
  3910. int
  3911. main (void)
  3912. {
  3913. FILE *f = fopen ("conftest.out", "w");
  3914. return ferror (f) || fclose (f) != 0;
  3915. ;
  3916. return 0;
  3917. }
  3918. _ACEOF
  3919. ac_clean_files="$ac_clean_files conftest.out"
  3920. # Check that the compiler produces executables we can run. If not, either
  3921. # the compiler is broken, or we cross compile.
  3922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3923. printf %s "checking whether we are cross compiling... " >&6; }
  3924. if test "$cross_compiling" != yes; then
  3925. { { ac_try="$ac_link"
  3926. case "(($ac_try" in
  3927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3928. *) ac_try_echo=$ac_try;;
  3929. esac
  3930. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3931. printf "%s\n" "$ac_try_echo"; } >&5
  3932. (eval "$ac_link") 2>&5
  3933. ac_status=$?
  3934. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3935. test $ac_status = 0; }
  3936. if { ac_try='./conftest$ac_cv_exeext'
  3937. { { case "(($ac_try" in
  3938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3939. *) ac_try_echo=$ac_try;;
  3940. esac
  3941. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3942. printf "%s\n" "$ac_try_echo"; } >&5
  3943. (eval "$ac_try") 2>&5
  3944. ac_status=$?
  3945. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3946. test $ac_status = 0; }; }; then
  3947. cross_compiling=no
  3948. else
  3949. if test "$cross_compiling" = maybe; then
  3950. cross_compiling=yes
  3951. else
  3952. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3953. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3954. as_fn_error 77 "cannot run C compiled programs.
  3955. If you meant to cross compile, use \`--host'.
  3956. See \`config.log' for more details" "$LINENO" 5; }
  3957. fi
  3958. fi
  3959. fi
  3960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3961. printf "%s\n" "$cross_compiling" >&6; }
  3962. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3963. ac_clean_files=$ac_clean_files_save
  3964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3965. printf %s "checking for suffix of object files... " >&6; }
  3966. if test ${ac_cv_objext+y}
  3967. then :
  3968. printf %s "(cached) " >&6
  3969. else $as_nop
  3970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3971. /* end confdefs.h. */
  3972. int
  3973. main (void)
  3974. {
  3975. ;
  3976. return 0;
  3977. }
  3978. _ACEOF
  3979. rm -f conftest.o conftest.obj
  3980. if { { ac_try="$ac_compile"
  3981. case "(($ac_try" in
  3982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3983. *) ac_try_echo=$ac_try;;
  3984. esac
  3985. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3986. printf "%s\n" "$ac_try_echo"; } >&5
  3987. (eval "$ac_compile") 2>&5
  3988. ac_status=$?
  3989. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3990. test $ac_status = 0; }
  3991. then :
  3992. for ac_file in conftest.o conftest.obj conftest.*; do
  3993. test -f "$ac_file" || continue;
  3994. case $ac_file in
  3995. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3996. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3997. break;;
  3998. esac
  3999. done
  4000. else $as_nop
  4001. printf "%s\n" "$as_me: failed program was:" >&5
  4002. sed 's/^/| /' conftest.$ac_ext >&5
  4003. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4004. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4005. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4006. See \`config.log' for more details" "$LINENO" 5; }
  4007. fi
  4008. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4009. fi
  4010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4011. printf "%s\n" "$ac_cv_objext" >&6; }
  4012. OBJEXT=$ac_cv_objext
  4013. ac_objext=$OBJEXT
  4014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4015. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4016. if test ${ac_cv_c_compiler_gnu+y}
  4017. then :
  4018. printf %s "(cached) " >&6
  4019. else $as_nop
  4020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4021. /* end confdefs.h. */
  4022. int
  4023. main (void)
  4024. {
  4025. #ifndef __GNUC__
  4026. choke me
  4027. #endif
  4028. ;
  4029. return 0;
  4030. }
  4031. _ACEOF
  4032. if ac_fn_c_try_compile "$LINENO"
  4033. then :
  4034. ac_compiler_gnu=yes
  4035. else $as_nop
  4036. ac_compiler_gnu=no
  4037. fi
  4038. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4039. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4040. fi
  4041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4042. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4043. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4044. if test $ac_compiler_gnu = yes; then
  4045. GCC=yes
  4046. else
  4047. GCC=
  4048. fi
  4049. ac_test_CFLAGS=${CFLAGS+y}
  4050. ac_save_CFLAGS=$CFLAGS
  4051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4052. printf %s "checking whether $CC accepts -g... " >&6; }
  4053. if test ${ac_cv_prog_cc_g+y}
  4054. then :
  4055. printf %s "(cached) " >&6
  4056. else $as_nop
  4057. ac_save_c_werror_flag=$ac_c_werror_flag
  4058. ac_c_werror_flag=yes
  4059. ac_cv_prog_cc_g=no
  4060. CFLAGS="-g"
  4061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4062. /* end confdefs.h. */
  4063. int
  4064. main (void)
  4065. {
  4066. ;
  4067. return 0;
  4068. }
  4069. _ACEOF
  4070. if ac_fn_c_try_compile "$LINENO"
  4071. then :
  4072. ac_cv_prog_cc_g=yes
  4073. else $as_nop
  4074. CFLAGS=""
  4075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4076. /* end confdefs.h. */
  4077. int
  4078. main (void)
  4079. {
  4080. ;
  4081. return 0;
  4082. }
  4083. _ACEOF
  4084. if ac_fn_c_try_compile "$LINENO"
  4085. then :
  4086. else $as_nop
  4087. ac_c_werror_flag=$ac_save_c_werror_flag
  4088. CFLAGS="-g"
  4089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4090. /* end confdefs.h. */
  4091. int
  4092. main (void)
  4093. {
  4094. ;
  4095. return 0;
  4096. }
  4097. _ACEOF
  4098. if ac_fn_c_try_compile "$LINENO"
  4099. then :
  4100. ac_cv_prog_cc_g=yes
  4101. fi
  4102. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4103. fi
  4104. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4105. fi
  4106. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4107. ac_c_werror_flag=$ac_save_c_werror_flag
  4108. fi
  4109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4110. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4111. if test $ac_test_CFLAGS; then
  4112. CFLAGS=$ac_save_CFLAGS
  4113. elif test $ac_cv_prog_cc_g = yes; then
  4114. if test "$GCC" = yes; then
  4115. CFLAGS="-g -O2"
  4116. else
  4117. CFLAGS="-g"
  4118. fi
  4119. else
  4120. if test "$GCC" = yes; then
  4121. CFLAGS="-O2"
  4122. else
  4123. CFLAGS=
  4124. fi
  4125. fi
  4126. ac_prog_cc_stdc=no
  4127. if test x$ac_prog_cc_stdc = xno
  4128. then :
  4129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4130. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4131. if test ${ac_cv_prog_cc_c11+y}
  4132. then :
  4133. printf %s "(cached) " >&6
  4134. else $as_nop
  4135. ac_cv_prog_cc_c11=no
  4136. ac_save_CC=$CC
  4137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4138. /* end confdefs.h. */
  4139. $ac_c_conftest_c11_program
  4140. _ACEOF
  4141. for ac_arg in '' -std=gnu11
  4142. do
  4143. CC="$ac_save_CC $ac_arg"
  4144. if ac_fn_c_try_compile "$LINENO"
  4145. then :
  4146. ac_cv_prog_cc_c11=$ac_arg
  4147. fi
  4148. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4149. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4150. done
  4151. rm -f conftest.$ac_ext
  4152. CC=$ac_save_CC
  4153. fi
  4154. if test "x$ac_cv_prog_cc_c11" = xno
  4155. then :
  4156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4157. printf "%s\n" "unsupported" >&6; }
  4158. else $as_nop
  4159. if test "x$ac_cv_prog_cc_c11" = x
  4160. then :
  4161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4162. printf "%s\n" "none needed" >&6; }
  4163. else $as_nop
  4164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4165. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4166. CC="$CC $ac_cv_prog_cc_c11"
  4167. fi
  4168. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4169. ac_prog_cc_stdc=c11
  4170. fi
  4171. fi
  4172. if test x$ac_prog_cc_stdc = xno
  4173. then :
  4174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4175. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4176. if test ${ac_cv_prog_cc_c99+y}
  4177. then :
  4178. printf %s "(cached) " >&6
  4179. else $as_nop
  4180. ac_cv_prog_cc_c99=no
  4181. ac_save_CC=$CC
  4182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4183. /* end confdefs.h. */
  4184. $ac_c_conftest_c99_program
  4185. _ACEOF
  4186. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4187. do
  4188. CC="$ac_save_CC $ac_arg"
  4189. if ac_fn_c_try_compile "$LINENO"
  4190. then :
  4191. ac_cv_prog_cc_c99=$ac_arg
  4192. fi
  4193. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4194. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4195. done
  4196. rm -f conftest.$ac_ext
  4197. CC=$ac_save_CC
  4198. fi
  4199. if test "x$ac_cv_prog_cc_c99" = xno
  4200. then :
  4201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4202. printf "%s\n" "unsupported" >&6; }
  4203. else $as_nop
  4204. if test "x$ac_cv_prog_cc_c99" = x
  4205. then :
  4206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4207. printf "%s\n" "none needed" >&6; }
  4208. else $as_nop
  4209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4210. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4211. CC="$CC $ac_cv_prog_cc_c99"
  4212. fi
  4213. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4214. ac_prog_cc_stdc=c99
  4215. fi
  4216. fi
  4217. if test x$ac_prog_cc_stdc = xno
  4218. then :
  4219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4220. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4221. if test ${ac_cv_prog_cc_c89+y}
  4222. then :
  4223. printf %s "(cached) " >&6
  4224. else $as_nop
  4225. ac_cv_prog_cc_c89=no
  4226. ac_save_CC=$CC
  4227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4228. /* end confdefs.h. */
  4229. $ac_c_conftest_c89_program
  4230. _ACEOF
  4231. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4232. do
  4233. CC="$ac_save_CC $ac_arg"
  4234. if ac_fn_c_try_compile "$LINENO"
  4235. then :
  4236. ac_cv_prog_cc_c89=$ac_arg
  4237. fi
  4238. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4239. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4240. done
  4241. rm -f conftest.$ac_ext
  4242. CC=$ac_save_CC
  4243. fi
  4244. if test "x$ac_cv_prog_cc_c89" = xno
  4245. then :
  4246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4247. printf "%s\n" "unsupported" >&6; }
  4248. else $as_nop
  4249. if test "x$ac_cv_prog_cc_c89" = x
  4250. then :
  4251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4252. printf "%s\n" "none needed" >&6; }
  4253. else $as_nop
  4254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4255. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4256. CC="$CC $ac_cv_prog_cc_c89"
  4257. fi
  4258. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4259. ac_prog_cc_stdc=c89
  4260. fi
  4261. fi
  4262. ac_ext=c
  4263. ac_cpp='$CPP $CPPFLAGS'
  4264. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4265. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4266. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4268. printf %s "checking for a sed that does not truncate output... " >&6; }
  4269. if test ${ac_cv_path_SED+y}
  4270. then :
  4271. printf %s "(cached) " >&6
  4272. else $as_nop
  4273. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4274. for ac_i in 1 2 3 4 5 6 7; do
  4275. ac_script="$ac_script$as_nl$ac_script"
  4276. done
  4277. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4278. { ac_script=; unset ac_script;}
  4279. if test -z "$SED"; then
  4280. ac_path_SED_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
  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 sed gsed
  4292. do
  4293. for ac_exec_ext in '' $ac_executable_extensions; do
  4294. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4295. as_fn_executable_p "$ac_path_SED" || continue
  4296. # Check for GNU ac_path_SED and select it if it is found.
  4297. # Check for GNU $ac_path_SED
  4298. case `"$ac_path_SED" --version 2>&1` in
  4299. *GNU*)
  4300. ac_cv_path_SED="$ac_path_SED" ac_path_SED_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" '' >> "conftest.nl"
  4310. "$ac_path_SED" -f conftest.sed < "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_SED_max-0}; then
  4314. # Best one so far, save it but keep looking for a better one
  4315. ac_cv_path_SED="$ac_path_SED"
  4316. ac_path_SED_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_SED_found && break 3
  4324. done
  4325. done
  4326. done
  4327. IFS=$as_save_IFS
  4328. if test -z "$ac_cv_path_SED"; then
  4329. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4330. fi
  4331. else
  4332. ac_cv_path_SED=$SED
  4333. fi
  4334. fi
  4335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4336. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4337. SED="$ac_cv_path_SED"
  4338. rm -f conftest.sed
  4339. test -z "$SED" && SED=sed
  4340. Xsed="$SED -e 1s/^X//"
  4341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4342. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4343. if test ${ac_cv_path_GREP+y}
  4344. then :
  4345. printf %s "(cached) " >&6
  4346. else $as_nop
  4347. if test -z "$GREP"; then
  4348. ac_path_GREP_found=false
  4349. # Loop through the user's path and test for each of PROGNAME-LIST
  4350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4351. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4352. do
  4353. IFS=$as_save_IFS
  4354. case $as_dir in #(((
  4355. '') as_dir=./ ;;
  4356. */) ;;
  4357. *) as_dir=$as_dir/ ;;
  4358. esac
  4359. for ac_prog in grep ggrep
  4360. do
  4361. for ac_exec_ext in '' $ac_executable_extensions; do
  4362. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4363. as_fn_executable_p "$ac_path_GREP" || continue
  4364. # Check for GNU ac_path_GREP and select it if it is found.
  4365. # Check for GNU $ac_path_GREP
  4366. case `"$ac_path_GREP" --version 2>&1` in
  4367. *GNU*)
  4368. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4369. *)
  4370. ac_count=0
  4371. printf %s 0123456789 >"conftest.in"
  4372. while :
  4373. do
  4374. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4375. mv "conftest.tmp" "conftest.in"
  4376. cp "conftest.in" "conftest.nl"
  4377. printf "%s\n" 'GREP' >> "conftest.nl"
  4378. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4379. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4380. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4381. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4382. # Best one so far, save it but keep looking for a better one
  4383. ac_cv_path_GREP="$ac_path_GREP"
  4384. ac_path_GREP_max=$ac_count
  4385. fi
  4386. # 10*(2^10) chars as input seems more than enough
  4387. test $ac_count -gt 10 && break
  4388. done
  4389. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4390. esac
  4391. $ac_path_GREP_found && break 3
  4392. done
  4393. done
  4394. done
  4395. IFS=$as_save_IFS
  4396. if test -z "$ac_cv_path_GREP"; then
  4397. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4398. fi
  4399. else
  4400. ac_cv_path_GREP=$GREP
  4401. fi
  4402. fi
  4403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4404. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4405. GREP="$ac_cv_path_GREP"
  4406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4407. printf %s "checking for egrep... " >&6; }
  4408. if test ${ac_cv_path_EGREP+y}
  4409. then :
  4410. printf %s "(cached) " >&6
  4411. else $as_nop
  4412. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4413. then ac_cv_path_EGREP="$GREP -E"
  4414. else
  4415. if test -z "$EGREP"; then
  4416. ac_path_EGREP_found=false
  4417. # Loop through the user's path and test for each of PROGNAME-LIST
  4418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4419. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4420. do
  4421. IFS=$as_save_IFS
  4422. case $as_dir in #(((
  4423. '') as_dir=./ ;;
  4424. */) ;;
  4425. *) as_dir=$as_dir/ ;;
  4426. esac
  4427. for ac_prog in egrep
  4428. do
  4429. for ac_exec_ext in '' $ac_executable_extensions; do
  4430. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4431. as_fn_executable_p "$ac_path_EGREP" || continue
  4432. # Check for GNU ac_path_EGREP and select it if it is found.
  4433. # Check for GNU $ac_path_EGREP
  4434. case `"$ac_path_EGREP" --version 2>&1` in
  4435. *GNU*)
  4436. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4437. *)
  4438. ac_count=0
  4439. printf %s 0123456789 >"conftest.in"
  4440. while :
  4441. do
  4442. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4443. mv "conftest.tmp" "conftest.in"
  4444. cp "conftest.in" "conftest.nl"
  4445. printf "%s\n" 'EGREP' >> "conftest.nl"
  4446. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4447. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4448. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4449. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4450. # Best one so far, save it but keep looking for a better one
  4451. ac_cv_path_EGREP="$ac_path_EGREP"
  4452. ac_path_EGREP_max=$ac_count
  4453. fi
  4454. # 10*(2^10) chars as input seems more than enough
  4455. test $ac_count -gt 10 && break
  4456. done
  4457. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4458. esac
  4459. $ac_path_EGREP_found && break 3
  4460. done
  4461. done
  4462. done
  4463. IFS=$as_save_IFS
  4464. if test -z "$ac_cv_path_EGREP"; then
  4465. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4466. fi
  4467. else
  4468. ac_cv_path_EGREP=$EGREP
  4469. fi
  4470. fi
  4471. fi
  4472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4473. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4474. EGREP="$ac_cv_path_EGREP"
  4475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4476. printf %s "checking for fgrep... " >&6; }
  4477. if test ${ac_cv_path_FGREP+y}
  4478. then :
  4479. printf %s "(cached) " >&6
  4480. else $as_nop
  4481. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4482. then ac_cv_path_FGREP="$GREP -F"
  4483. else
  4484. if test -z "$FGREP"; then
  4485. ac_path_FGREP_found=false
  4486. # Loop through the user's path and test for each of PROGNAME-LIST
  4487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4488. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4489. do
  4490. IFS=$as_save_IFS
  4491. case $as_dir in #(((
  4492. '') as_dir=./ ;;
  4493. */) ;;
  4494. *) as_dir=$as_dir/ ;;
  4495. esac
  4496. for ac_prog in fgrep
  4497. do
  4498. for ac_exec_ext in '' $ac_executable_extensions; do
  4499. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4500. as_fn_executable_p "$ac_path_FGREP" || continue
  4501. # Check for GNU ac_path_FGREP and select it if it is found.
  4502. # Check for GNU $ac_path_FGREP
  4503. case `"$ac_path_FGREP" --version 2>&1` in
  4504. *GNU*)
  4505. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4506. *)
  4507. ac_count=0
  4508. printf %s 0123456789 >"conftest.in"
  4509. while :
  4510. do
  4511. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4512. mv "conftest.tmp" "conftest.in"
  4513. cp "conftest.in" "conftest.nl"
  4514. printf "%s\n" 'FGREP' >> "conftest.nl"
  4515. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4516. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4517. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4518. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4519. # Best one so far, save it but keep looking for a better one
  4520. ac_cv_path_FGREP="$ac_path_FGREP"
  4521. ac_path_FGREP_max=$ac_count
  4522. fi
  4523. # 10*(2^10) chars as input seems more than enough
  4524. test $ac_count -gt 10 && break
  4525. done
  4526. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4527. esac
  4528. $ac_path_FGREP_found && break 3
  4529. done
  4530. done
  4531. done
  4532. IFS=$as_save_IFS
  4533. if test -z "$ac_cv_path_FGREP"; then
  4534. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4535. fi
  4536. else
  4537. ac_cv_path_FGREP=$FGREP
  4538. fi
  4539. fi
  4540. fi
  4541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4542. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4543. FGREP="$ac_cv_path_FGREP"
  4544. test -z "$GREP" && GREP=grep
  4545. # Check whether --with-gnu-ld was given.
  4546. if test ${with_gnu_ld+y}
  4547. then :
  4548. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4549. else $as_nop
  4550. with_gnu_ld=no
  4551. fi
  4552. ac_prog=ld
  4553. if test yes = "$GCC"; then
  4554. # Check if gcc -print-prog-name=ld gives a path.
  4555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4556. printf %s "checking for ld used by $CC... " >&6; }
  4557. case $host in
  4558. *-*-mingw* | *-*-windows*)
  4559. # gcc leaves a trailing carriage return, which upsets mingw
  4560. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4561. *)
  4562. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4563. esac
  4564. case $ac_prog in
  4565. # Accept absolute paths.
  4566. [\\/]* | ?:[\\/]*)
  4567. re_direlt='/[^/][^/]*/\.\./'
  4568. # Canonicalize the pathname of ld
  4569. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4570. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4571. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4572. done
  4573. test -z "$LD" && LD=$ac_prog
  4574. ;;
  4575. "")
  4576. # If it fails, then pretend we aren't using GCC.
  4577. ac_prog=ld
  4578. ;;
  4579. *)
  4580. # If it is relative, then search for the first ld in PATH.
  4581. with_gnu_ld=unknown
  4582. ;;
  4583. esac
  4584. elif test yes = "$with_gnu_ld"; then
  4585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4586. printf %s "checking for GNU ld... " >&6; }
  4587. else
  4588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4589. printf %s "checking for non-GNU ld... " >&6; }
  4590. fi
  4591. if test ${lt_cv_path_LD+y}
  4592. then :
  4593. printf %s "(cached) " >&6
  4594. else $as_nop
  4595. if test -z "$LD"; then
  4596. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4597. for ac_dir in $PATH; do
  4598. IFS=$lt_save_ifs
  4599. test -z "$ac_dir" && ac_dir=.
  4600. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4601. lt_cv_path_LD=$ac_dir/$ac_prog
  4602. # Check to see if the program is GNU ld. I'd rather use --version,
  4603. # but apparently some variants of GNU ld only accept -v.
  4604. # Break only if it was the GNU/non-GNU ld that we prefer.
  4605. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4606. *GNU* | *'with BFD'*)
  4607. test no != "$with_gnu_ld" && break
  4608. ;;
  4609. *)
  4610. test yes != "$with_gnu_ld" && break
  4611. ;;
  4612. esac
  4613. fi
  4614. done
  4615. IFS=$lt_save_ifs
  4616. else
  4617. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4618. fi
  4619. fi
  4620. LD=$lt_cv_path_LD
  4621. if test -n "$LD"; then
  4622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4623. printf "%s\n" "$LD" >&6; }
  4624. else
  4625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4626. printf "%s\n" "no" >&6; }
  4627. fi
  4628. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4630. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4631. if test ${lt_cv_prog_gnu_ld+y}
  4632. then :
  4633. printf %s "(cached) " >&6
  4634. else $as_nop
  4635. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4636. case `$LD -v 2>&1 </dev/null` in
  4637. *GNU* | *'with BFD'*)
  4638. lt_cv_prog_gnu_ld=yes
  4639. ;;
  4640. *)
  4641. lt_cv_prog_gnu_ld=no
  4642. ;;
  4643. esac
  4644. fi
  4645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4646. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4647. with_gnu_ld=$lt_cv_prog_gnu_ld
  4648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4649. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4650. if test ${lt_cv_path_NM+y}
  4651. then :
  4652. printf %s "(cached) " >&6
  4653. else $as_nop
  4654. if test -n "$NM"; then
  4655. # Let the user override the test.
  4656. lt_cv_path_NM=$NM
  4657. else
  4658. lt_nm_to_check=${ac_tool_prefix}nm
  4659. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4660. lt_nm_to_check="$lt_nm_to_check nm"
  4661. fi
  4662. for lt_tmp_nm in $lt_nm_to_check; do
  4663. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4664. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4665. IFS=$lt_save_ifs
  4666. test -z "$ac_dir" && ac_dir=.
  4667. tmp_nm=$ac_dir/$lt_tmp_nm
  4668. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4669. # Check to see if the nm accepts a BSD-compat flag.
  4670. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4671. # nm: unknown option "B" ignored
  4672. # Tru64's nm complains that /dev/null is an invalid object file
  4673. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4674. case $build_os in
  4675. mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
  4676. *) lt_bad_file=/dev/null ;;
  4677. esac
  4678. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4679. *$lt_bad_file* | *'Invalid file or object type'*)
  4680. lt_cv_path_NM="$tmp_nm -B"
  4681. break 2
  4682. ;;
  4683. *)
  4684. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4685. */dev/null*)
  4686. lt_cv_path_NM="$tmp_nm -p"
  4687. break 2
  4688. ;;
  4689. *)
  4690. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4691. continue # so that we can try to find one that supports BSD flags
  4692. ;;
  4693. esac
  4694. ;;
  4695. esac
  4696. fi
  4697. done
  4698. IFS=$lt_save_ifs
  4699. done
  4700. : ${lt_cv_path_NM=no}
  4701. fi
  4702. fi
  4703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4704. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4705. if test no != "$lt_cv_path_NM"; then
  4706. NM=$lt_cv_path_NM
  4707. else
  4708. # Didn't find any BSD compatible name lister, look for dumpbin.
  4709. if test -n "$DUMPBIN"; then :
  4710. # Let the user override the test.
  4711. else
  4712. if test -n "$ac_tool_prefix"; then
  4713. for ac_prog in dumpbin "link -dump"
  4714. do
  4715. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4716. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4718. printf %s "checking for $ac_word... " >&6; }
  4719. if test ${ac_cv_prog_DUMPBIN+y}
  4720. then :
  4721. printf %s "(cached) " >&6
  4722. else $as_nop
  4723. if test -n "$DUMPBIN"; then
  4724. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4725. else
  4726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4727. for as_dir in $PATH
  4728. do
  4729. IFS=$as_save_IFS
  4730. case $as_dir in #(((
  4731. '') as_dir=./ ;;
  4732. */) ;;
  4733. *) as_dir=$as_dir/ ;;
  4734. esac
  4735. for ac_exec_ext in '' $ac_executable_extensions; do
  4736. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4737. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4738. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4739. break 2
  4740. fi
  4741. done
  4742. done
  4743. IFS=$as_save_IFS
  4744. fi
  4745. fi
  4746. DUMPBIN=$ac_cv_prog_DUMPBIN
  4747. if test -n "$DUMPBIN"; then
  4748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4749. printf "%s\n" "$DUMPBIN" >&6; }
  4750. else
  4751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4752. printf "%s\n" "no" >&6; }
  4753. fi
  4754. test -n "$DUMPBIN" && break
  4755. done
  4756. fi
  4757. if test -z "$DUMPBIN"; then
  4758. ac_ct_DUMPBIN=$DUMPBIN
  4759. for ac_prog in dumpbin "link -dump"
  4760. do
  4761. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4762. set dummy $ac_prog; ac_word=$2
  4763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4764. printf %s "checking for $ac_word... " >&6; }
  4765. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4766. then :
  4767. printf %s "(cached) " >&6
  4768. else $as_nop
  4769. if test -n "$ac_ct_DUMPBIN"; then
  4770. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4771. else
  4772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4773. for as_dir in $PATH
  4774. do
  4775. IFS=$as_save_IFS
  4776. case $as_dir in #(((
  4777. '') as_dir=./ ;;
  4778. */) ;;
  4779. *) as_dir=$as_dir/ ;;
  4780. esac
  4781. for ac_exec_ext in '' $ac_executable_extensions; do
  4782. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4783. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4784. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4785. break 2
  4786. fi
  4787. done
  4788. done
  4789. IFS=$as_save_IFS
  4790. fi
  4791. fi
  4792. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4793. if test -n "$ac_ct_DUMPBIN"; then
  4794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4795. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4796. else
  4797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4798. printf "%s\n" "no" >&6; }
  4799. fi
  4800. test -n "$ac_ct_DUMPBIN" && break
  4801. done
  4802. if test "x$ac_ct_DUMPBIN" = x; then
  4803. DUMPBIN=":"
  4804. else
  4805. case $cross_compiling:$ac_tool_warned in
  4806. yes:)
  4807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4808. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4809. ac_tool_warned=yes ;;
  4810. esac
  4811. DUMPBIN=$ac_ct_DUMPBIN
  4812. fi
  4813. fi
  4814. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4815. *COFF*)
  4816. DUMPBIN="$DUMPBIN -symbols -headers"
  4817. ;;
  4818. *)
  4819. DUMPBIN=:
  4820. ;;
  4821. esac
  4822. fi
  4823. if test : != "$DUMPBIN"; then
  4824. NM=$DUMPBIN
  4825. fi
  4826. fi
  4827. test -z "$NM" && NM=nm
  4828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4829. printf %s "checking the name lister ($NM) interface... " >&6; }
  4830. if test ${lt_cv_nm_interface+y}
  4831. then :
  4832. printf %s "(cached) " >&6
  4833. else $as_nop
  4834. lt_cv_nm_interface="BSD nm"
  4835. echo "int some_variable = 0;" > conftest.$ac_ext
  4836. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4837. (eval "$ac_compile" 2>conftest.err)
  4838. cat conftest.err >&5
  4839. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4840. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4841. cat conftest.err >&5
  4842. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4843. cat conftest.out >&5
  4844. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4845. lt_cv_nm_interface="MS dumpbin"
  4846. fi
  4847. rm -f conftest*
  4848. fi
  4849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4850. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4852. printf %s "checking whether ln -s works... " >&6; }
  4853. LN_S=$as_ln_s
  4854. if test "$LN_S" = "ln -s"; then
  4855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4856. printf "%s\n" "yes" >&6; }
  4857. else
  4858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4859. printf "%s\n" "no, using $LN_S" >&6; }
  4860. fi
  4861. # find the maximum length of command line arguments
  4862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4863. printf %s "checking the maximum length of command line arguments... " >&6; }
  4864. if test ${lt_cv_sys_max_cmd_len+y}
  4865. then :
  4866. printf %s "(cached) " >&6
  4867. else $as_nop
  4868. i=0
  4869. teststring=ABCD
  4870. case $build_os in
  4871. msdosdjgpp*)
  4872. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4873. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4874. # during glob expansion). Even if it were fixed, the result of this
  4875. # check would be larger than it should be.
  4876. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4877. ;;
  4878. gnu*)
  4879. # Under GNU Hurd, this test is not required because there is
  4880. # no limit to the length of command line arguments.
  4881. # Libtool will interpret -1 as no limit whatsoever
  4882. lt_cv_sys_max_cmd_len=-1;
  4883. ;;
  4884. cygwin* | mingw* | windows* | cegcc*)
  4885. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4886. # about 5 minutes as the teststring grows exponentially.
  4887. # Worse, since 9x/ME are not pre-emptively multitasking,
  4888. # you end up with a "frozen" computer, even though with patience
  4889. # the test eventually succeeds (with a max line length of 256k).
  4890. # Instead, let's just punt: use the minimum linelength reported by
  4891. # all of the supported platforms: 8192 (on NT/2K/XP).
  4892. lt_cv_sys_max_cmd_len=8192;
  4893. ;;
  4894. mint*)
  4895. # On MiNT this can take a long time and run out of memory.
  4896. lt_cv_sys_max_cmd_len=8192;
  4897. ;;
  4898. amigaos*)
  4899. # On AmigaOS with pdksh, this test takes hours, literally.
  4900. # So we just punt and use a minimum line length of 8192.
  4901. lt_cv_sys_max_cmd_len=8192;
  4902. ;;
  4903. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4904. # This has been around since 386BSD, at least. Likely further.
  4905. if test -x /sbin/sysctl; then
  4906. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4907. elif test -x /usr/sbin/sysctl; then
  4908. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4909. else
  4910. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4911. fi
  4912. # And add a safety zone
  4913. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4914. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4915. ;;
  4916. interix*)
  4917. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4918. lt_cv_sys_max_cmd_len=196608
  4919. ;;
  4920. os2*)
  4921. # The test takes a long time on OS/2.
  4922. lt_cv_sys_max_cmd_len=8192
  4923. ;;
  4924. osf*)
  4925. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4926. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4927. # nice to cause kernel panics so lets avoid the loop below.
  4928. # First set a reasonable default.
  4929. lt_cv_sys_max_cmd_len=16384
  4930. #
  4931. if test -x /sbin/sysconfig; then
  4932. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4933. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4934. esac
  4935. fi
  4936. ;;
  4937. sco3.2v5*)
  4938. lt_cv_sys_max_cmd_len=102400
  4939. ;;
  4940. sysv5* | sco5v6* | sysv4.2uw2*)
  4941. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4942. if test -n "$kargmax"; then
  4943. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4944. else
  4945. lt_cv_sys_max_cmd_len=32768
  4946. fi
  4947. ;;
  4948. *)
  4949. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4950. if test -n "$lt_cv_sys_max_cmd_len" && \
  4951. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4952. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4953. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4954. else
  4955. # Make teststring a little bigger before we do anything with it.
  4956. # a 1K string should be a reasonable start.
  4957. for i in 1 2 3 4 5 6 7 8; do
  4958. teststring=$teststring$teststring
  4959. done
  4960. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4961. # If test is not a shell built-in, we'll probably end up computing a
  4962. # maximum length that is only half of the actual maximum length, but
  4963. # we can't tell.
  4964. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4965. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4966. test 17 != "$i" # 1/2 MB should be enough
  4967. do
  4968. i=`expr $i + 1`
  4969. teststring=$teststring$teststring
  4970. done
  4971. # Only check the string length outside the loop.
  4972. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4973. teststring=
  4974. # Add a significant safety factor because C++ compilers can tack on
  4975. # massive amounts of additional arguments before passing them to the
  4976. # linker. It appears as though 1/2 is a usable value.
  4977. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4978. fi
  4979. ;;
  4980. esac
  4981. fi
  4982. if test -n "$lt_cv_sys_max_cmd_len"; then
  4983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4984. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4985. else
  4986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4987. printf "%s\n" "none" >&6; }
  4988. fi
  4989. max_cmd_len=$lt_cv_sys_max_cmd_len
  4990. : ${CP="cp -f"}
  4991. : ${MV="mv -f"}
  4992. : ${RM="rm -f"}
  4993. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4994. lt_unset=unset
  4995. else
  4996. lt_unset=false
  4997. fi
  4998. # test EBCDIC or ASCII
  4999. case `echo X|tr X '\101'` in
  5000. A) # ASCII based system
  5001. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5002. lt_SP2NL='tr \040 \012'
  5003. lt_NL2SP='tr \015\012 \040\040'
  5004. ;;
  5005. *) # EBCDIC based system
  5006. lt_SP2NL='tr \100 \n'
  5007. lt_NL2SP='tr \r\n \100\100'
  5008. ;;
  5009. esac
  5010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5011. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5012. if test ${lt_cv_to_host_file_cmd+y}
  5013. then :
  5014. printf %s "(cached) " >&6
  5015. else $as_nop
  5016. case $host in
  5017. *-*-mingw* )
  5018. case $build in
  5019. *-*-mingw* | *-*-windows* ) # actually msys
  5020. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5021. ;;
  5022. *-*-cygwin* )
  5023. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5024. ;;
  5025. * ) # otherwise, assume *nix
  5026. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5027. ;;
  5028. esac
  5029. ;;
  5030. *-*-cygwin* )
  5031. case $build in
  5032. *-*-mingw* | *-*-windows* ) # actually msys
  5033. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5034. ;;
  5035. *-*-cygwin* )
  5036. lt_cv_to_host_file_cmd=func_convert_file_noop
  5037. ;;
  5038. * ) # otherwise, assume *nix
  5039. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5040. ;;
  5041. esac
  5042. ;;
  5043. * ) # unhandled hosts (and "normal" native builds)
  5044. lt_cv_to_host_file_cmd=func_convert_file_noop
  5045. ;;
  5046. esac
  5047. fi
  5048. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5050. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5052. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5053. if test ${lt_cv_to_tool_file_cmd+y}
  5054. then :
  5055. printf %s "(cached) " >&6
  5056. else $as_nop
  5057. #assume ordinary cross tools, or native build.
  5058. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5059. case $host in
  5060. *-*-mingw* | *-*-windows* )
  5061. case $build in
  5062. *-*-mingw* | *-*-windows* ) # actually msys
  5063. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5064. ;;
  5065. esac
  5066. ;;
  5067. esac
  5068. fi
  5069. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5071. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5073. printf %s "checking for $LD option to reload object files... " >&6; }
  5074. if test ${lt_cv_ld_reload_flag+y}
  5075. then :
  5076. printf %s "(cached) " >&6
  5077. else $as_nop
  5078. lt_cv_ld_reload_flag='-r'
  5079. fi
  5080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5081. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5082. reload_flag=$lt_cv_ld_reload_flag
  5083. case $reload_flag in
  5084. "" | " "*) ;;
  5085. *) reload_flag=" $reload_flag" ;;
  5086. esac
  5087. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5088. case $host_os in
  5089. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5090. if test yes != "$GCC"; then
  5091. reload_cmds=false
  5092. fi
  5093. ;;
  5094. darwin*)
  5095. if test yes = "$GCC"; then
  5096. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5097. else
  5098. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5099. fi
  5100. ;;
  5101. esac
  5102. if test -n "$ac_tool_prefix"; then
  5103. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5104. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5106. printf %s "checking for $ac_word... " >&6; }
  5107. if test ${ac_cv_prog_OBJDUMP+y}
  5108. then :
  5109. printf %s "(cached) " >&6
  5110. else $as_nop
  5111. if test -n "$OBJDUMP"; then
  5112. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5113. else
  5114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5115. for as_dir in $PATH
  5116. do
  5117. IFS=$as_save_IFS
  5118. case $as_dir in #(((
  5119. '') as_dir=./ ;;
  5120. */) ;;
  5121. *) as_dir=$as_dir/ ;;
  5122. esac
  5123. for ac_exec_ext in '' $ac_executable_extensions; do
  5124. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5125. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5126. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5127. break 2
  5128. fi
  5129. done
  5130. done
  5131. IFS=$as_save_IFS
  5132. fi
  5133. fi
  5134. OBJDUMP=$ac_cv_prog_OBJDUMP
  5135. if test -n "$OBJDUMP"; then
  5136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5137. printf "%s\n" "$OBJDUMP" >&6; }
  5138. else
  5139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5140. printf "%s\n" "no" >&6; }
  5141. fi
  5142. fi
  5143. if test -z "$ac_cv_prog_OBJDUMP"; then
  5144. ac_ct_OBJDUMP=$OBJDUMP
  5145. # Extract the first word of "objdump", so it can be a program name with args.
  5146. set dummy objdump; ac_word=$2
  5147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5148. printf %s "checking for $ac_word... " >&6; }
  5149. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5150. then :
  5151. printf %s "(cached) " >&6
  5152. else $as_nop
  5153. if test -n "$ac_ct_OBJDUMP"; then
  5154. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5155. else
  5156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5157. for as_dir in $PATH
  5158. do
  5159. IFS=$as_save_IFS
  5160. case $as_dir in #(((
  5161. '') as_dir=./ ;;
  5162. */) ;;
  5163. *) as_dir=$as_dir/ ;;
  5164. esac
  5165. for ac_exec_ext in '' $ac_executable_extensions; do
  5166. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5167. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5168. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5169. break 2
  5170. fi
  5171. done
  5172. done
  5173. IFS=$as_save_IFS
  5174. fi
  5175. fi
  5176. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5177. if test -n "$ac_ct_OBJDUMP"; then
  5178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5179. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5180. else
  5181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5182. printf "%s\n" "no" >&6; }
  5183. fi
  5184. if test "x$ac_ct_OBJDUMP" = x; then
  5185. OBJDUMP="false"
  5186. else
  5187. case $cross_compiling:$ac_tool_warned in
  5188. yes:)
  5189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5190. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5191. ac_tool_warned=yes ;;
  5192. esac
  5193. OBJDUMP=$ac_ct_OBJDUMP
  5194. fi
  5195. else
  5196. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5197. fi
  5198. test -z "$OBJDUMP" && OBJDUMP=objdump
  5199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5200. printf %s "checking how to recognize dependent libraries... " >&6; }
  5201. if test ${lt_cv_deplibs_check_method+y}
  5202. then :
  5203. printf %s "(cached) " >&6
  5204. else $as_nop
  5205. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5206. lt_cv_file_magic_test_file=
  5207. lt_cv_deplibs_check_method='unknown'
  5208. # Need to set the preceding variable on all platforms that support
  5209. # interlibrary dependencies.
  5210. # 'none' -- dependencies not supported.
  5211. # 'unknown' -- same as none, but documents that we really don't know.
  5212. # 'pass_all' -- all dependencies passed with no checks.
  5213. # 'test_compile' -- check by making test program.
  5214. # 'file_magic [[regex]]' -- check by looking for files in library path
  5215. # that responds to the $file_magic_cmd with a given extended regex.
  5216. # If you have 'file' or equivalent on your system and you're not sure
  5217. # whether 'pass_all' will *always* work, you probably want this one.
  5218. case $host_os in
  5219. aix[4-9]*)
  5220. lt_cv_deplibs_check_method=pass_all
  5221. ;;
  5222. beos*)
  5223. lt_cv_deplibs_check_method=pass_all
  5224. ;;
  5225. bsdi[45]*)
  5226. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5227. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5228. lt_cv_file_magic_test_file=/shlib/libc.so
  5229. ;;
  5230. cygwin*)
  5231. # func_win32_libid is a shell function defined in ltmain.sh
  5232. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5233. lt_cv_file_magic_cmd='func_win32_libid'
  5234. lt_cv_deplibs_check_method=pass_all # SDL customization
  5235. ;;
  5236. mingw* | windows* | pw32*)
  5237. # Base MSYS/MinGW do not provide the 'file' command needed by
  5238. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5239. # unless we find 'file', for example because we are cross-compiling.
  5240. if ( file / ) >/dev/null 2>&1; then
  5241. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5242. lt_cv_file_magic_cmd='func_win32_libid'
  5243. else
  5244. # Keep this pattern in sync with the one in func_win32_libid.
  5245. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5246. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5247. fi
  5248. lt_cv_deplibs_check_method=pass_all # SDL customization
  5249. ;;
  5250. cegcc*)
  5251. # use the weaker test based on 'objdump'. See mingw*.
  5252. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5253. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5254. ;;
  5255. darwin* | rhapsody*)
  5256. lt_cv_deplibs_check_method=pass_all
  5257. ;;
  5258. freebsd* | dragonfly* | midnightbsd*)
  5259. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5260. case $host_cpu in
  5261. i*86 )
  5262. # Not sure whether the presence of OpenBSD here was a mistake.
  5263. # Let's accept both of them until this is cleared up.
  5264. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5265. lt_cv_file_magic_cmd=/usr/bin/file
  5266. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5267. ;;
  5268. esac
  5269. else
  5270. lt_cv_deplibs_check_method=pass_all
  5271. fi
  5272. ;;
  5273. haiku*)
  5274. lt_cv_deplibs_check_method=pass_all
  5275. ;;
  5276. hpux10.20* | hpux11*)
  5277. lt_cv_file_magic_cmd=/usr/bin/file
  5278. case $host_cpu in
  5279. ia64*)
  5280. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5281. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5282. ;;
  5283. hppa*64*)
  5284. 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]'
  5285. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5286. ;;
  5287. *)
  5288. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5289. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5290. ;;
  5291. esac
  5292. ;;
  5293. interix[3-9]*)
  5294. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5295. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5296. ;;
  5297. irix5* | irix6* | nonstopux*)
  5298. case $LD in
  5299. *-32|*"-32 ") libmagic=32-bit;;
  5300. *-n32|*"-n32 ") libmagic=N32;;
  5301. *-64|*"-64 ") libmagic=64-bit;;
  5302. *) libmagic=never-match;;
  5303. esac
  5304. lt_cv_deplibs_check_method=pass_all
  5305. ;;
  5306. # This must be glibc/ELF.
  5307. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5308. lt_cv_deplibs_check_method=pass_all
  5309. ;;
  5310. netbsd*)
  5311. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5312. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5313. else
  5314. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5315. fi
  5316. ;;
  5317. newos6*)
  5318. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5319. lt_cv_file_magic_cmd=/usr/bin/file
  5320. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5321. ;;
  5322. *nto* | *qnx*)
  5323. lt_cv_deplibs_check_method=pass_all
  5324. ;;
  5325. openbsd* | bitrig*)
  5326. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5327. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5328. else
  5329. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5330. fi
  5331. ;;
  5332. osf3* | osf4* | osf5*)
  5333. lt_cv_deplibs_check_method=pass_all
  5334. ;;
  5335. rdos*)
  5336. lt_cv_deplibs_check_method=pass_all
  5337. ;;
  5338. solaris*)
  5339. lt_cv_deplibs_check_method=pass_all
  5340. ;;
  5341. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5342. lt_cv_deplibs_check_method=pass_all
  5343. ;;
  5344. sysv4 | sysv4.3*)
  5345. case $host_vendor in
  5346. motorola)
  5347. 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]'
  5348. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5349. ;;
  5350. ncr)
  5351. lt_cv_deplibs_check_method=pass_all
  5352. ;;
  5353. sequent)
  5354. lt_cv_file_magic_cmd='/bin/file'
  5355. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5356. ;;
  5357. sni)
  5358. lt_cv_file_magic_cmd='/bin/file'
  5359. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5360. lt_cv_file_magic_test_file=/lib/libc.so
  5361. ;;
  5362. siemens)
  5363. lt_cv_deplibs_check_method=pass_all
  5364. ;;
  5365. pc)
  5366. lt_cv_deplibs_check_method=pass_all
  5367. ;;
  5368. esac
  5369. ;;
  5370. tpf*)
  5371. lt_cv_deplibs_check_method=pass_all
  5372. ;;
  5373. os2*)
  5374. lt_cv_deplibs_check_method=pass_all
  5375. ;;
  5376. esac
  5377. fi
  5378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5379. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5380. file_magic_glob=
  5381. want_nocaseglob=no
  5382. if test "$build" = "$host"; then
  5383. case $host_os in
  5384. mingw* | windows* | pw32*)
  5385. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5386. want_nocaseglob=yes
  5387. else
  5388. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5389. fi
  5390. ;;
  5391. esac
  5392. fi
  5393. file_magic_cmd=$lt_cv_file_magic_cmd
  5394. deplibs_check_method=$lt_cv_deplibs_check_method
  5395. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5396. if test -n "$ac_tool_prefix"; then
  5397. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5398. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5400. printf %s "checking for $ac_word... " >&6; }
  5401. if test ${ac_cv_prog_DLLTOOL+y}
  5402. then :
  5403. printf %s "(cached) " >&6
  5404. else $as_nop
  5405. if test -n "$DLLTOOL"; then
  5406. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5407. else
  5408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5409. for as_dir in $PATH
  5410. do
  5411. IFS=$as_save_IFS
  5412. case $as_dir in #(((
  5413. '') as_dir=./ ;;
  5414. */) ;;
  5415. *) as_dir=$as_dir/ ;;
  5416. esac
  5417. for ac_exec_ext in '' $ac_executable_extensions; do
  5418. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5419. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5420. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5421. break 2
  5422. fi
  5423. done
  5424. done
  5425. IFS=$as_save_IFS
  5426. fi
  5427. fi
  5428. DLLTOOL=$ac_cv_prog_DLLTOOL
  5429. if test -n "$DLLTOOL"; then
  5430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5431. printf "%s\n" "$DLLTOOL" >&6; }
  5432. else
  5433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5434. printf "%s\n" "no" >&6; }
  5435. fi
  5436. fi
  5437. if test -z "$ac_cv_prog_DLLTOOL"; then
  5438. ac_ct_DLLTOOL=$DLLTOOL
  5439. # Extract the first word of "dlltool", so it can be a program name with args.
  5440. set dummy dlltool; ac_word=$2
  5441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5442. printf %s "checking for $ac_word... " >&6; }
  5443. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5444. then :
  5445. printf %s "(cached) " >&6
  5446. else $as_nop
  5447. if test -n "$ac_ct_DLLTOOL"; then
  5448. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5449. else
  5450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5451. for as_dir in $PATH
  5452. do
  5453. IFS=$as_save_IFS
  5454. case $as_dir in #(((
  5455. '') as_dir=./ ;;
  5456. */) ;;
  5457. *) as_dir=$as_dir/ ;;
  5458. esac
  5459. for ac_exec_ext in '' $ac_executable_extensions; do
  5460. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5461. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5462. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5463. break 2
  5464. fi
  5465. done
  5466. done
  5467. IFS=$as_save_IFS
  5468. fi
  5469. fi
  5470. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5471. if test -n "$ac_ct_DLLTOOL"; then
  5472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5473. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5474. else
  5475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5476. printf "%s\n" "no" >&6; }
  5477. fi
  5478. if test "x$ac_ct_DLLTOOL" = x; then
  5479. DLLTOOL="false"
  5480. else
  5481. case $cross_compiling:$ac_tool_warned in
  5482. yes:)
  5483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5484. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5485. ac_tool_warned=yes ;;
  5486. esac
  5487. DLLTOOL=$ac_ct_DLLTOOL
  5488. fi
  5489. else
  5490. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5491. fi
  5492. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5494. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5495. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5496. then :
  5497. printf %s "(cached) " >&6
  5498. else $as_nop
  5499. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5500. case $host_os in
  5501. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5502. # two different shell functions defined in ltmain.sh;
  5503. # decide which one to use based on capabilities of $DLLTOOL
  5504. case `$DLLTOOL --help 2>&1` in
  5505. *--identify-strict*)
  5506. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5507. ;;
  5508. *)
  5509. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5510. ;;
  5511. esac
  5512. ;;
  5513. *)
  5514. # fallback: assume linklib IS sharedlib
  5515. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5516. ;;
  5517. esac
  5518. fi
  5519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5520. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5521. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5522. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5523. if test -n "$ac_tool_prefix"; then
  5524. for ac_prog in ar
  5525. do
  5526. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5527. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5529. printf %s "checking for $ac_word... " >&6; }
  5530. if test ${ac_cv_prog_AR+y}
  5531. then :
  5532. printf %s "(cached) " >&6
  5533. else $as_nop
  5534. if test -n "$AR"; then
  5535. ac_cv_prog_AR="$AR" # Let the user override the test.
  5536. else
  5537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5538. for as_dir in $PATH
  5539. do
  5540. IFS=$as_save_IFS
  5541. case $as_dir in #(((
  5542. '') as_dir=./ ;;
  5543. */) ;;
  5544. *) as_dir=$as_dir/ ;;
  5545. esac
  5546. for ac_exec_ext in '' $ac_executable_extensions; do
  5547. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5548. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5549. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5550. break 2
  5551. fi
  5552. done
  5553. done
  5554. IFS=$as_save_IFS
  5555. fi
  5556. fi
  5557. AR=$ac_cv_prog_AR
  5558. if test -n "$AR"; then
  5559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5560. printf "%s\n" "$AR" >&6; }
  5561. else
  5562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5563. printf "%s\n" "no" >&6; }
  5564. fi
  5565. test -n "$AR" && break
  5566. done
  5567. fi
  5568. if test -z "$AR"; then
  5569. ac_ct_AR=$AR
  5570. for ac_prog in ar
  5571. do
  5572. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5573. set dummy $ac_prog; ac_word=$2
  5574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5575. printf %s "checking for $ac_word... " >&6; }
  5576. if test ${ac_cv_prog_ac_ct_AR+y}
  5577. then :
  5578. printf %s "(cached) " >&6
  5579. else $as_nop
  5580. if test -n "$ac_ct_AR"; then
  5581. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5582. else
  5583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5584. for as_dir in $PATH
  5585. do
  5586. IFS=$as_save_IFS
  5587. case $as_dir in #(((
  5588. '') as_dir=./ ;;
  5589. */) ;;
  5590. *) as_dir=$as_dir/ ;;
  5591. esac
  5592. for ac_exec_ext in '' $ac_executable_extensions; do
  5593. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5594. ac_cv_prog_ac_ct_AR="$ac_prog"
  5595. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5596. break 2
  5597. fi
  5598. done
  5599. done
  5600. IFS=$as_save_IFS
  5601. fi
  5602. fi
  5603. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5604. if test -n "$ac_ct_AR"; then
  5605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5606. printf "%s\n" "$ac_ct_AR" >&6; }
  5607. else
  5608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5609. printf "%s\n" "no" >&6; }
  5610. fi
  5611. test -n "$ac_ct_AR" && break
  5612. done
  5613. if test "x$ac_ct_AR" = x; then
  5614. AR="false"
  5615. else
  5616. case $cross_compiling:$ac_tool_warned in
  5617. yes:)
  5618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5619. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5620. ac_tool_warned=yes ;;
  5621. esac
  5622. AR=$ac_ct_AR
  5623. fi
  5624. fi
  5625. : ${AR=ar}
  5626. : ${AR_FLAGS=cru}
  5627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5628. printf %s "checking for archiver @FILE support... " >&6; }
  5629. if test ${lt_cv_ar_at_file+y}
  5630. then :
  5631. printf %s "(cached) " >&6
  5632. else $as_nop
  5633. lt_cv_ar_at_file=no
  5634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5635. /* end confdefs.h. */
  5636. int
  5637. main (void)
  5638. {
  5639. ;
  5640. return 0;
  5641. }
  5642. _ACEOF
  5643. if ac_fn_c_try_compile "$LINENO"
  5644. then :
  5645. echo conftest.$ac_objext > conftest.lst
  5646. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5647. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5648. (eval $lt_ar_try) 2>&5
  5649. ac_status=$?
  5650. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5651. test $ac_status = 0; }
  5652. if test 0 -eq "$ac_status"; then
  5653. # Ensure the archiver fails upon bogus file names.
  5654. rm -f conftest.$ac_objext libconftest.a
  5655. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5656. (eval $lt_ar_try) 2>&5
  5657. ac_status=$?
  5658. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5659. test $ac_status = 0; }
  5660. if test 0 -ne "$ac_status"; then
  5661. lt_cv_ar_at_file=@
  5662. fi
  5663. fi
  5664. rm -f conftest.* libconftest.a
  5665. fi
  5666. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5667. fi
  5668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5669. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5670. if test no = "$lt_cv_ar_at_file"; then
  5671. archiver_list_spec=
  5672. else
  5673. archiver_list_spec=$lt_cv_ar_at_file
  5674. fi
  5675. if test -n "$ac_tool_prefix"; then
  5676. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5677. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5679. printf %s "checking for $ac_word... " >&6; }
  5680. if test ${ac_cv_prog_STRIP+y}
  5681. then :
  5682. printf %s "(cached) " >&6
  5683. else $as_nop
  5684. if test -n "$STRIP"; then
  5685. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5686. else
  5687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5688. for as_dir in $PATH
  5689. do
  5690. IFS=$as_save_IFS
  5691. case $as_dir in #(((
  5692. '') as_dir=./ ;;
  5693. */) ;;
  5694. *) as_dir=$as_dir/ ;;
  5695. esac
  5696. for ac_exec_ext in '' $ac_executable_extensions; do
  5697. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5698. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5699. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5700. break 2
  5701. fi
  5702. done
  5703. done
  5704. IFS=$as_save_IFS
  5705. fi
  5706. fi
  5707. STRIP=$ac_cv_prog_STRIP
  5708. if test -n "$STRIP"; then
  5709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5710. printf "%s\n" "$STRIP" >&6; }
  5711. else
  5712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5713. printf "%s\n" "no" >&6; }
  5714. fi
  5715. fi
  5716. if test -z "$ac_cv_prog_STRIP"; then
  5717. ac_ct_STRIP=$STRIP
  5718. # Extract the first word of "strip", so it can be a program name with args.
  5719. set dummy strip; ac_word=$2
  5720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5721. printf %s "checking for $ac_word... " >&6; }
  5722. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5723. then :
  5724. printf %s "(cached) " >&6
  5725. else $as_nop
  5726. if test -n "$ac_ct_STRIP"; then
  5727. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5728. else
  5729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5730. for as_dir in $PATH
  5731. do
  5732. IFS=$as_save_IFS
  5733. case $as_dir in #(((
  5734. '') as_dir=./ ;;
  5735. */) ;;
  5736. *) as_dir=$as_dir/ ;;
  5737. esac
  5738. for ac_exec_ext in '' $ac_executable_extensions; do
  5739. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5740. ac_cv_prog_ac_ct_STRIP="strip"
  5741. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5742. break 2
  5743. fi
  5744. done
  5745. done
  5746. IFS=$as_save_IFS
  5747. fi
  5748. fi
  5749. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5750. if test -n "$ac_ct_STRIP"; then
  5751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5752. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5753. else
  5754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5755. printf "%s\n" "no" >&6; }
  5756. fi
  5757. if test "x$ac_ct_STRIP" = x; then
  5758. STRIP=":"
  5759. else
  5760. case $cross_compiling:$ac_tool_warned in
  5761. yes:)
  5762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5763. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5764. ac_tool_warned=yes ;;
  5765. esac
  5766. STRIP=$ac_ct_STRIP
  5767. fi
  5768. else
  5769. STRIP="$ac_cv_prog_STRIP"
  5770. fi
  5771. test -z "$STRIP" && STRIP=:
  5772. if test -n "$ac_tool_prefix"; then
  5773. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5774. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5776. printf %s "checking for $ac_word... " >&6; }
  5777. if test ${ac_cv_prog_RANLIB+y}
  5778. then :
  5779. printf %s "(cached) " >&6
  5780. else $as_nop
  5781. if test -n "$RANLIB"; then
  5782. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5783. else
  5784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5785. for as_dir in $PATH
  5786. do
  5787. IFS=$as_save_IFS
  5788. case $as_dir in #(((
  5789. '') as_dir=./ ;;
  5790. */) ;;
  5791. *) as_dir=$as_dir/ ;;
  5792. esac
  5793. for ac_exec_ext in '' $ac_executable_extensions; do
  5794. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5795. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5796. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5797. break 2
  5798. fi
  5799. done
  5800. done
  5801. IFS=$as_save_IFS
  5802. fi
  5803. fi
  5804. RANLIB=$ac_cv_prog_RANLIB
  5805. if test -n "$RANLIB"; then
  5806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5807. printf "%s\n" "$RANLIB" >&6; }
  5808. else
  5809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5810. printf "%s\n" "no" >&6; }
  5811. fi
  5812. fi
  5813. if test -z "$ac_cv_prog_RANLIB"; then
  5814. ac_ct_RANLIB=$RANLIB
  5815. # Extract the first word of "ranlib", so it can be a program name with args.
  5816. set dummy ranlib; ac_word=$2
  5817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5818. printf %s "checking for $ac_word... " >&6; }
  5819. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5820. then :
  5821. printf %s "(cached) " >&6
  5822. else $as_nop
  5823. if test -n "$ac_ct_RANLIB"; then
  5824. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5825. else
  5826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5827. for as_dir in $PATH
  5828. do
  5829. IFS=$as_save_IFS
  5830. case $as_dir in #(((
  5831. '') as_dir=./ ;;
  5832. */) ;;
  5833. *) as_dir=$as_dir/ ;;
  5834. esac
  5835. for ac_exec_ext in '' $ac_executable_extensions; do
  5836. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5837. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5838. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5839. break 2
  5840. fi
  5841. done
  5842. done
  5843. IFS=$as_save_IFS
  5844. fi
  5845. fi
  5846. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5847. if test -n "$ac_ct_RANLIB"; then
  5848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5849. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5850. else
  5851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5852. printf "%s\n" "no" >&6; }
  5853. fi
  5854. if test "x$ac_ct_RANLIB" = x; then
  5855. RANLIB=":"
  5856. else
  5857. case $cross_compiling:$ac_tool_warned in
  5858. yes:)
  5859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5860. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5861. ac_tool_warned=yes ;;
  5862. esac
  5863. RANLIB=$ac_ct_RANLIB
  5864. fi
  5865. else
  5866. RANLIB="$ac_cv_prog_RANLIB"
  5867. fi
  5868. test -z "$RANLIB" && RANLIB=:
  5869. # Determine commands to create old-style static archives.
  5870. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5871. old_postinstall_cmds='chmod 644 $oldlib'
  5872. old_postuninstall_cmds=
  5873. if test -n "$RANLIB"; then
  5874. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5875. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5876. fi
  5877. case $host_os in
  5878. darwin*)
  5879. lock_old_archive_extraction=yes ;;
  5880. *)
  5881. lock_old_archive_extraction=no ;;
  5882. esac
  5883. for ac_prog in gawk mawk nawk awk
  5884. do
  5885. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5886. set dummy $ac_prog; ac_word=$2
  5887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5888. printf %s "checking for $ac_word... " >&6; }
  5889. if test ${ac_cv_prog_AWK+y}
  5890. then :
  5891. printf %s "(cached) " >&6
  5892. else $as_nop
  5893. if test -n "$AWK"; then
  5894. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5895. else
  5896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5897. for as_dir in $PATH
  5898. do
  5899. IFS=$as_save_IFS
  5900. case $as_dir in #(((
  5901. '') as_dir=./ ;;
  5902. */) ;;
  5903. *) as_dir=$as_dir/ ;;
  5904. esac
  5905. for ac_exec_ext in '' $ac_executable_extensions; do
  5906. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5907. ac_cv_prog_AWK="$ac_prog"
  5908. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5909. break 2
  5910. fi
  5911. done
  5912. done
  5913. IFS=$as_save_IFS
  5914. fi
  5915. fi
  5916. AWK=$ac_cv_prog_AWK
  5917. if test -n "$AWK"; then
  5918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5919. printf "%s\n" "$AWK" >&6; }
  5920. else
  5921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5922. printf "%s\n" "no" >&6; }
  5923. fi
  5924. test -n "$AWK" && break
  5925. done
  5926. # If no C compiler was specified, use CC.
  5927. LTCC=${LTCC-"$CC"}
  5928. # If no C compiler flags were specified, use CFLAGS.
  5929. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5930. # Allow CC to be a program name with arguments.
  5931. compiler=$CC
  5932. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5934. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5935. if test ${lt_cv_sys_global_symbol_pipe+y}
  5936. then :
  5937. printf %s "(cached) " >&6
  5938. else $as_nop
  5939. # These are sane defaults that work on at least a few old systems.
  5940. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5941. # Character class describing NM global symbol codes.
  5942. symcode='[BCDEGRST]'
  5943. # Regexp to match symbols that can be accessed directly from C.
  5944. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5945. # Define system-specific variables.
  5946. case $host_os in
  5947. aix*)
  5948. symcode='[BCDT]'
  5949. ;;
  5950. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5951. symcode='[ABCDGISTW]'
  5952. ;;
  5953. hpux*)
  5954. if test ia64 = "$host_cpu"; then
  5955. symcode='[ABCDEGRST]'
  5956. fi
  5957. ;;
  5958. irix* | nonstopux*)
  5959. symcode='[BCDEGRST]'
  5960. ;;
  5961. osf*)
  5962. symcode='[BCDEGQRST]'
  5963. ;;
  5964. solaris*)
  5965. symcode='[BCDRT]'
  5966. ;;
  5967. sco3.2v5*)
  5968. symcode='[DT]'
  5969. ;;
  5970. sysv4.2uw2*)
  5971. symcode='[DT]'
  5972. ;;
  5973. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5974. symcode='[ABDT]'
  5975. ;;
  5976. sysv4)
  5977. symcode='[DFNSTU]'
  5978. ;;
  5979. esac
  5980. # If we're using GNU nm, then use its standard symbol codes.
  5981. case `$NM -V 2>&1` in
  5982. *GNU* | *'with BFD'*)
  5983. symcode='[ABCDGIRSTW]' ;;
  5984. esac
  5985. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5986. # Gets list of data symbols to import.
  5987. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5988. # Adjust the below global symbol transforms to fixup imported variables.
  5989. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5990. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5991. lt_c_name_lib_hook="\
  5992. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5993. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5994. else
  5995. # Disable hooks by default.
  5996. lt_cv_sys_global_symbol_to_import=
  5997. lt_cdecl_hook=
  5998. lt_c_name_hook=
  5999. lt_c_name_lib_hook=
  6000. fi
  6001. # Transform an extracted symbol line into a proper C declaration.
  6002. # Some systems (esp. on ia64) link data and code symbols differently,
  6003. # so use this general approach.
  6004. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6005. $lt_cdecl_hook\
  6006. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6007. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6008. # Transform an extracted symbol line into symbol name and symbol address
  6009. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6010. $lt_c_name_hook\
  6011. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6012. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6013. # Transform an extracted symbol line into symbol name with lib prefix and
  6014. # symbol address.
  6015. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6016. $lt_c_name_lib_hook\
  6017. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6018. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6019. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6020. # Handle CRLF in mingw tool chain
  6021. opt_cr=
  6022. case $build_os in
  6023. mingw* | windows*)
  6024. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6025. ;;
  6026. esac
  6027. # Try without a prefix underscore, then with it.
  6028. for ac_symprfx in "" "_"; do
  6029. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6030. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6031. # Write the raw and C identifiers.
  6032. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6033. # Fake it for dumpbin and say T for any non-static function,
  6034. # D for any global variable and I for any imported variable.
  6035. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  6036. # which start with @ or ?.
  6037. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6038. " {last_section=section; section=\$ 3};"\
  6039. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6040. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6041. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6042. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6043. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6044. " \$ 0!~/External *\|/{next};"\
  6045. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6046. " {if(hide[section]) next};"\
  6047. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6048. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6049. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6050. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6051. " ' prfx=^$ac_symprfx"
  6052. else
  6053. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6054. fi
  6055. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6056. # Check to see that the pipe works correctly.
  6057. pipe_works=no
  6058. rm -f conftest*
  6059. cat > conftest.$ac_ext <<_LT_EOF
  6060. #ifdef __cplusplus
  6061. extern "C" {
  6062. #endif
  6063. char nm_test_var;
  6064. void nm_test_func(void);
  6065. void nm_test_func(void){}
  6066. #ifdef __cplusplus
  6067. }
  6068. #endif
  6069. int main(){nm_test_var='a';nm_test_func();return(0);}
  6070. _LT_EOF
  6071. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6072. (eval $ac_compile) 2>&5
  6073. ac_status=$?
  6074. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6075. test $ac_status = 0; }; then
  6076. # Now try to grab the symbols.
  6077. nlist=conftest.nm
  6078. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6079. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6080. ac_status=$?
  6081. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6082. test $ac_status = 0; } && test -s "$nlist"; then
  6083. # Try sorting and uniquifying the output.
  6084. if sort "$nlist" | uniq > "$nlist"T; then
  6085. mv -f "$nlist"T "$nlist"
  6086. else
  6087. rm -f "$nlist"T
  6088. fi
  6089. # Make sure that we snagged all the symbols we need.
  6090. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6091. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6092. cat <<_LT_EOF > conftest.$ac_ext
  6093. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6094. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6095. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6096. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6097. # define LT_DLSYM_CONST
  6098. #elif defined __osf__
  6099. /* This system does not cope well with relocations in const data. */
  6100. # define LT_DLSYM_CONST
  6101. #else
  6102. # define LT_DLSYM_CONST const
  6103. #endif
  6104. #ifdef __cplusplus
  6105. extern "C" {
  6106. #endif
  6107. _LT_EOF
  6108. # Now generate the symbol file.
  6109. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6110. cat <<_LT_EOF >> conftest.$ac_ext
  6111. /* The mapping between symbol names and symbols. */
  6112. LT_DLSYM_CONST struct {
  6113. const char *name;
  6114. void *address;
  6115. }
  6116. lt__PROGRAM__LTX_preloaded_symbols[] =
  6117. {
  6118. { "@PROGRAM@", (void *) 0 },
  6119. _LT_EOF
  6120. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6121. cat <<\_LT_EOF >> conftest.$ac_ext
  6122. {0, (void *) 0}
  6123. };
  6124. /* This works around a problem in FreeBSD linker */
  6125. #ifdef FREEBSD_WORKAROUND
  6126. static const void *lt_preloaded_setup() {
  6127. return lt__PROGRAM__LTX_preloaded_symbols;
  6128. }
  6129. #endif
  6130. #ifdef __cplusplus
  6131. }
  6132. #endif
  6133. _LT_EOF
  6134. # Now try linking the two files.
  6135. mv conftest.$ac_objext conftstm.$ac_objext
  6136. lt_globsym_save_LIBS=$LIBS
  6137. lt_globsym_save_CFLAGS=$CFLAGS
  6138. LIBS=conftstm.$ac_objext
  6139. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6140. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6141. (eval $ac_link) 2>&5
  6142. ac_status=$?
  6143. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6144. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6145. pipe_works=yes
  6146. fi
  6147. LIBS=$lt_globsym_save_LIBS
  6148. CFLAGS=$lt_globsym_save_CFLAGS
  6149. else
  6150. echo "cannot find nm_test_func in $nlist" >&5
  6151. fi
  6152. else
  6153. echo "cannot find nm_test_var in $nlist" >&5
  6154. fi
  6155. else
  6156. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6157. fi
  6158. else
  6159. echo "$progname: failed program was:" >&5
  6160. cat conftest.$ac_ext >&5
  6161. fi
  6162. rm -rf conftest* conftst*
  6163. # Do not use the global_symbol_pipe unless it works.
  6164. if test yes = "$pipe_works"; then
  6165. break
  6166. else
  6167. lt_cv_sys_global_symbol_pipe=
  6168. fi
  6169. done
  6170. fi
  6171. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6172. lt_cv_sys_global_symbol_to_cdecl=
  6173. fi
  6174. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6176. printf "%s\n" "failed" >&6; }
  6177. else
  6178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6179. printf "%s\n" "ok" >&6; }
  6180. fi
  6181. # Response file support.
  6182. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6183. nm_file_list_spec='@'
  6184. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6185. nm_file_list_spec='@'
  6186. fi
  6187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6188. printf %s "checking for sysroot... " >&6; }
  6189. # Check whether --with-sysroot was given.
  6190. if test ${with_sysroot+y}
  6191. then :
  6192. withval=$with_sysroot;
  6193. else $as_nop
  6194. with_sysroot=no
  6195. fi
  6196. lt_sysroot=
  6197. case $with_sysroot in #(
  6198. yes)
  6199. if test yes = "$GCC"; then
  6200. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6201. fi
  6202. ;; #(
  6203. /*)
  6204. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6205. ;; #(
  6206. no|'')
  6207. ;; #(
  6208. *)
  6209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6210. printf "%s\n" "$with_sysroot" >&6; }
  6211. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6212. ;;
  6213. esac
  6214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6215. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6217. printf %s "checking for a working dd... " >&6; }
  6218. if test ${ac_cv_path_lt_DD+y}
  6219. then :
  6220. printf %s "(cached) " >&6
  6221. else $as_nop
  6222. printf 0123456789abcdef0123456789abcdef >conftest.i
  6223. cat conftest.i conftest.i >conftest2.i
  6224. : ${lt_DD:=$DD}
  6225. if test -z "$lt_DD"; then
  6226. ac_path_lt_DD_found=false
  6227. # Loop through the user's path and test for each of PROGNAME-LIST
  6228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6229. for as_dir in $PATH
  6230. do
  6231. IFS=$as_save_IFS
  6232. case $as_dir in #(((
  6233. '') as_dir=./ ;;
  6234. */) ;;
  6235. *) as_dir=$as_dir/ ;;
  6236. esac
  6237. for ac_prog in dd
  6238. do
  6239. for ac_exec_ext in '' $ac_executable_extensions; do
  6240. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6241. as_fn_executable_p "$ac_path_lt_DD" || continue
  6242. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6243. cmp -s conftest.i conftest.out \
  6244. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6245. fi
  6246. $ac_path_lt_DD_found && break 3
  6247. done
  6248. done
  6249. done
  6250. IFS=$as_save_IFS
  6251. if test -z "$ac_cv_path_lt_DD"; then
  6252. :
  6253. fi
  6254. else
  6255. ac_cv_path_lt_DD=$lt_DD
  6256. fi
  6257. rm -f conftest.i conftest2.i conftest.out
  6258. fi
  6259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6260. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6262. printf %s "checking how to truncate binary pipes... " >&6; }
  6263. if test ${lt_cv_truncate_bin+y}
  6264. then :
  6265. printf %s "(cached) " >&6
  6266. else $as_nop
  6267. printf 0123456789abcdef0123456789abcdef >conftest.i
  6268. cat conftest.i conftest.i >conftest2.i
  6269. lt_cv_truncate_bin=
  6270. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6271. cmp -s conftest.i conftest.out \
  6272. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6273. fi
  6274. rm -f conftest.i conftest2.i conftest.out
  6275. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6276. fi
  6277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6278. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6279. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6280. func_cc_basename ()
  6281. {
  6282. for cc_temp in $*""; do
  6283. case $cc_temp in
  6284. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6285. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6286. \-*) ;;
  6287. *) break;;
  6288. esac
  6289. done
  6290. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6291. }
  6292. # Check whether --enable-libtool-lock was given.
  6293. if test ${enable_libtool_lock+y}
  6294. then :
  6295. enableval=$enable_libtool_lock;
  6296. fi
  6297. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6298. # Some flags need to be propagated to the compiler or linker for good
  6299. # libtool support.
  6300. case $host in
  6301. ia64-*-hpux*)
  6302. # Find out what ABI is being produced by ac_compile, and set mode
  6303. # options accordingly.
  6304. echo 'int i;' > conftest.$ac_ext
  6305. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6306. (eval $ac_compile) 2>&5
  6307. ac_status=$?
  6308. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6309. test $ac_status = 0; }; then
  6310. case `/usr/bin/file conftest.$ac_objext` in
  6311. *ELF-32*)
  6312. HPUX_IA64_MODE=32
  6313. ;;
  6314. *ELF-64*)
  6315. HPUX_IA64_MODE=64
  6316. ;;
  6317. esac
  6318. fi
  6319. rm -rf conftest*
  6320. ;;
  6321. *-*-irix6*)
  6322. # Find out what ABI is being produced by ac_compile, and set linker
  6323. # options accordingly.
  6324. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6325. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6326. (eval $ac_compile) 2>&5
  6327. ac_status=$?
  6328. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6329. test $ac_status = 0; }; then
  6330. if test yes = "$lt_cv_prog_gnu_ld"; then
  6331. case `/usr/bin/file conftest.$ac_objext` in
  6332. *32-bit*)
  6333. LD="${LD-ld} -melf32bsmip"
  6334. ;;
  6335. *N32*)
  6336. LD="${LD-ld} -melf32bmipn32"
  6337. ;;
  6338. *64-bit*)
  6339. LD="${LD-ld} -melf64bmip"
  6340. ;;
  6341. esac
  6342. else
  6343. case `/usr/bin/file conftest.$ac_objext` in
  6344. *32-bit*)
  6345. LD="${LD-ld} -32"
  6346. ;;
  6347. *N32*)
  6348. LD="${LD-ld} -n32"
  6349. ;;
  6350. *64-bit*)
  6351. LD="${LD-ld} -64"
  6352. ;;
  6353. esac
  6354. fi
  6355. fi
  6356. rm -rf conftest*
  6357. ;;
  6358. mips64*-*linux*)
  6359. # Find out what ABI is being produced by ac_compile, and set linker
  6360. # options accordingly.
  6361. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6362. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6363. (eval $ac_compile) 2>&5
  6364. ac_status=$?
  6365. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6366. test $ac_status = 0; }; then
  6367. emul=elf
  6368. case `/usr/bin/file conftest.$ac_objext` in
  6369. *32-bit*)
  6370. emul="${emul}32"
  6371. ;;
  6372. *64-bit*)
  6373. emul="${emul}64"
  6374. ;;
  6375. esac
  6376. case `/usr/bin/file conftest.$ac_objext` in
  6377. *MSB*)
  6378. emul="${emul}btsmip"
  6379. ;;
  6380. *LSB*)
  6381. emul="${emul}ltsmip"
  6382. ;;
  6383. esac
  6384. case `/usr/bin/file conftest.$ac_objext` in
  6385. *N32*)
  6386. emul="${emul}n32"
  6387. ;;
  6388. esac
  6389. LD="${LD-ld} -m $emul"
  6390. fi
  6391. rm -rf conftest*
  6392. ;;
  6393. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6394. s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
  6395. # Find out what ABI is being produced by ac_compile, and set linker
  6396. # options accordingly. Note that the listed cases only cover the
  6397. # situations where additional linker options are needed (such as when
  6398. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6399. # vice versa); the common cases where no linker options are needed do
  6400. # not appear in the list.
  6401. echo 'int i;' > conftest.$ac_ext
  6402. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6403. (eval $ac_compile) 2>&5
  6404. ac_status=$?
  6405. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6406. test $ac_status = 0; }; then
  6407. case `/usr/bin/file conftest.o` in
  6408. *32-bit*)
  6409. case $host in
  6410. x86_64-*kfreebsd*-gnu)
  6411. LD="${LD-ld} -m elf_i386_fbsd"
  6412. ;;
  6413. x86_64-*linux*|x86_64-gnu*)
  6414. case `/usr/bin/file conftest.o` in
  6415. *x86-64*)
  6416. LD="${LD-ld} -m elf32_x86_64"
  6417. ;;
  6418. *)
  6419. LD="${LD-ld} -m elf_i386"
  6420. ;;
  6421. esac
  6422. ;;
  6423. powerpc64le-*linux*)
  6424. LD="${LD-ld} -m elf32lppclinux"
  6425. ;;
  6426. powerpc64-*linux*)
  6427. LD="${LD-ld} -m elf32ppclinux"
  6428. ;;
  6429. s390x-*linux*)
  6430. LD="${LD-ld} -m elf_s390"
  6431. ;;
  6432. sparc64-*linux*)
  6433. LD="${LD-ld} -m elf32_sparc"
  6434. ;;
  6435. esac
  6436. ;;
  6437. *64-bit*)
  6438. case $host in
  6439. x86_64-*kfreebsd*-gnu)
  6440. LD="${LD-ld} -m elf_x86_64_fbsd"
  6441. ;;
  6442. x86_64-*linux*|x86_64-gnu*)
  6443. LD="${LD-ld} -m elf_x86_64"
  6444. ;;
  6445. powerpcle-*linux*|powerpc64le-*linux*)
  6446. LD="${LD-ld} -m elf64lppc"
  6447. ;;
  6448. powerpc-*linux*|powerpc64-*linux*)
  6449. LD="${LD-ld} -m elf64ppc"
  6450. ;;
  6451. s390*-*linux*|s390*-*tpf*)
  6452. LD="${LD-ld} -m elf64_s390"
  6453. ;;
  6454. sparc*-*linux*)
  6455. LD="${LD-ld} -m elf64_sparc"
  6456. ;;
  6457. esac
  6458. ;;
  6459. esac
  6460. fi
  6461. rm -rf conftest*
  6462. ;;
  6463. *-*-sco3.2v5*)
  6464. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6465. SAVE_CFLAGS=$CFLAGS
  6466. CFLAGS="$CFLAGS -belf"
  6467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6468. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6469. if test ${lt_cv_cc_needs_belf+y}
  6470. then :
  6471. printf %s "(cached) " >&6
  6472. else $as_nop
  6473. ac_ext=c
  6474. ac_cpp='$CPP $CPPFLAGS'
  6475. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6476. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6477. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6479. /* end confdefs.h. */
  6480. int
  6481. main (void)
  6482. {
  6483. ;
  6484. return 0;
  6485. }
  6486. _ACEOF
  6487. if ac_fn_c_try_link "$LINENO"
  6488. then :
  6489. lt_cv_cc_needs_belf=yes
  6490. else $as_nop
  6491. lt_cv_cc_needs_belf=no
  6492. fi
  6493. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6494. conftest$ac_exeext conftest.$ac_ext
  6495. ac_ext=c
  6496. ac_cpp='$CPP $CPPFLAGS'
  6497. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6498. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6499. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6500. fi
  6501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6502. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6503. if test yes != "$lt_cv_cc_needs_belf"; then
  6504. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6505. CFLAGS=$SAVE_CFLAGS
  6506. fi
  6507. ;;
  6508. *-*solaris*)
  6509. # Find out what ABI is being produced by ac_compile, and set linker
  6510. # options accordingly.
  6511. echo 'int i;' > conftest.$ac_ext
  6512. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6513. (eval $ac_compile) 2>&5
  6514. ac_status=$?
  6515. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6516. test $ac_status = 0; }; then
  6517. case `/usr/bin/file conftest.o` in
  6518. *64-bit*)
  6519. case $lt_cv_prog_gnu_ld in
  6520. yes*)
  6521. case $host in
  6522. i?86-*-solaris*|x86_64-*-solaris*)
  6523. LD="${LD-ld} -m elf_x86_64"
  6524. ;;
  6525. sparc*-*-solaris*)
  6526. LD="${LD-ld} -m elf64_sparc"
  6527. ;;
  6528. esac
  6529. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6530. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6531. LD=${LD-ld}_sol2
  6532. fi
  6533. ;;
  6534. *)
  6535. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6536. LD="${LD-ld} -64"
  6537. fi
  6538. ;;
  6539. esac
  6540. ;;
  6541. esac
  6542. fi
  6543. rm -rf conftest*
  6544. ;;
  6545. esac
  6546. need_locks=$enable_libtool_lock
  6547. if test -n "$ac_tool_prefix"; then
  6548. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6549. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6551. printf %s "checking for $ac_word... " >&6; }
  6552. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6553. then :
  6554. printf %s "(cached) " >&6
  6555. else $as_nop
  6556. if test -n "$MANIFEST_TOOL"; then
  6557. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6558. else
  6559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6560. for as_dir in $PATH
  6561. do
  6562. IFS=$as_save_IFS
  6563. case $as_dir in #(((
  6564. '') as_dir=./ ;;
  6565. */) ;;
  6566. *) as_dir=$as_dir/ ;;
  6567. esac
  6568. for ac_exec_ext in '' $ac_executable_extensions; do
  6569. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6570. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6571. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6572. break 2
  6573. fi
  6574. done
  6575. done
  6576. IFS=$as_save_IFS
  6577. fi
  6578. fi
  6579. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6580. if test -n "$MANIFEST_TOOL"; then
  6581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6582. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6583. else
  6584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6585. printf "%s\n" "no" >&6; }
  6586. fi
  6587. fi
  6588. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6589. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6590. # Extract the first word of "mt", so it can be a program name with args.
  6591. set dummy mt; ac_word=$2
  6592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6593. printf %s "checking for $ac_word... " >&6; }
  6594. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6595. then :
  6596. printf %s "(cached) " >&6
  6597. else $as_nop
  6598. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6599. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6600. else
  6601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6602. for as_dir in $PATH
  6603. do
  6604. IFS=$as_save_IFS
  6605. case $as_dir in #(((
  6606. '') as_dir=./ ;;
  6607. */) ;;
  6608. *) as_dir=$as_dir/ ;;
  6609. esac
  6610. for ac_exec_ext in '' $ac_executable_extensions; do
  6611. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6612. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6613. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6614. break 2
  6615. fi
  6616. done
  6617. done
  6618. IFS=$as_save_IFS
  6619. fi
  6620. fi
  6621. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6622. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6624. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6625. else
  6626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6627. printf "%s\n" "no" >&6; }
  6628. fi
  6629. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6630. MANIFEST_TOOL=":"
  6631. else
  6632. case $cross_compiling:$ac_tool_warned in
  6633. yes:)
  6634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6635. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6636. ac_tool_warned=yes ;;
  6637. esac
  6638. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6639. fi
  6640. else
  6641. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6642. fi
  6643. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6645. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6646. if test ${lt_cv_path_mainfest_tool+y}
  6647. then :
  6648. printf %s "(cached) " >&6
  6649. else $as_nop
  6650. lt_cv_path_mainfest_tool=no
  6651. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6652. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6653. cat conftest.err >&5
  6654. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6655. lt_cv_path_mainfest_tool=yes
  6656. fi
  6657. rm -f conftest*
  6658. fi
  6659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6660. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6661. if test yes != "$lt_cv_path_mainfest_tool"; then
  6662. MANIFEST_TOOL=:
  6663. fi
  6664. case $host_os in
  6665. rhapsody* | darwin*)
  6666. if test -n "$ac_tool_prefix"; then
  6667. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6668. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6670. printf %s "checking for $ac_word... " >&6; }
  6671. if test ${ac_cv_prog_DSYMUTIL+y}
  6672. then :
  6673. printf %s "(cached) " >&6
  6674. else $as_nop
  6675. if test -n "$DSYMUTIL"; then
  6676. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6677. else
  6678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6679. for as_dir in $PATH
  6680. do
  6681. IFS=$as_save_IFS
  6682. case $as_dir in #(((
  6683. '') as_dir=./ ;;
  6684. */) ;;
  6685. *) as_dir=$as_dir/ ;;
  6686. esac
  6687. for ac_exec_ext in '' $ac_executable_extensions; do
  6688. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6689. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6690. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6691. break 2
  6692. fi
  6693. done
  6694. done
  6695. IFS=$as_save_IFS
  6696. fi
  6697. fi
  6698. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6699. if test -n "$DSYMUTIL"; then
  6700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6701. printf "%s\n" "$DSYMUTIL" >&6; }
  6702. else
  6703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6704. printf "%s\n" "no" >&6; }
  6705. fi
  6706. fi
  6707. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6708. ac_ct_DSYMUTIL=$DSYMUTIL
  6709. # Extract the first word of "dsymutil", so it can be a program name with args.
  6710. set dummy dsymutil; ac_word=$2
  6711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6712. printf %s "checking for $ac_word... " >&6; }
  6713. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6714. then :
  6715. printf %s "(cached) " >&6
  6716. else $as_nop
  6717. if test -n "$ac_ct_DSYMUTIL"; then
  6718. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6719. else
  6720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6721. for as_dir in $PATH
  6722. do
  6723. IFS=$as_save_IFS
  6724. case $as_dir in #(((
  6725. '') as_dir=./ ;;
  6726. */) ;;
  6727. *) as_dir=$as_dir/ ;;
  6728. esac
  6729. for ac_exec_ext in '' $ac_executable_extensions; do
  6730. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6731. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6732. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6733. break 2
  6734. fi
  6735. done
  6736. done
  6737. IFS=$as_save_IFS
  6738. fi
  6739. fi
  6740. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6741. if test -n "$ac_ct_DSYMUTIL"; then
  6742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6743. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6744. else
  6745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6746. printf "%s\n" "no" >&6; }
  6747. fi
  6748. if test "x$ac_ct_DSYMUTIL" = x; then
  6749. DSYMUTIL=":"
  6750. else
  6751. case $cross_compiling:$ac_tool_warned in
  6752. yes:)
  6753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6754. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6755. ac_tool_warned=yes ;;
  6756. esac
  6757. DSYMUTIL=$ac_ct_DSYMUTIL
  6758. fi
  6759. else
  6760. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6761. fi
  6762. if test -n "$ac_tool_prefix"; then
  6763. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6764. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6766. printf %s "checking for $ac_word... " >&6; }
  6767. if test ${ac_cv_prog_NMEDIT+y}
  6768. then :
  6769. printf %s "(cached) " >&6
  6770. else $as_nop
  6771. if test -n "$NMEDIT"; then
  6772. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6773. else
  6774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6775. for as_dir in $PATH
  6776. do
  6777. IFS=$as_save_IFS
  6778. case $as_dir in #(((
  6779. '') as_dir=./ ;;
  6780. */) ;;
  6781. *) as_dir=$as_dir/ ;;
  6782. esac
  6783. for ac_exec_ext in '' $ac_executable_extensions; do
  6784. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6785. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6786. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6787. break 2
  6788. fi
  6789. done
  6790. done
  6791. IFS=$as_save_IFS
  6792. fi
  6793. fi
  6794. NMEDIT=$ac_cv_prog_NMEDIT
  6795. if test -n "$NMEDIT"; then
  6796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6797. printf "%s\n" "$NMEDIT" >&6; }
  6798. else
  6799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6800. printf "%s\n" "no" >&6; }
  6801. fi
  6802. fi
  6803. if test -z "$ac_cv_prog_NMEDIT"; then
  6804. ac_ct_NMEDIT=$NMEDIT
  6805. # Extract the first word of "nmedit", so it can be a program name with args.
  6806. set dummy nmedit; ac_word=$2
  6807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6808. printf %s "checking for $ac_word... " >&6; }
  6809. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6810. then :
  6811. printf %s "(cached) " >&6
  6812. else $as_nop
  6813. if test -n "$ac_ct_NMEDIT"; then
  6814. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6815. else
  6816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6817. for as_dir in $PATH
  6818. do
  6819. IFS=$as_save_IFS
  6820. case $as_dir in #(((
  6821. '') as_dir=./ ;;
  6822. */) ;;
  6823. *) as_dir=$as_dir/ ;;
  6824. esac
  6825. for ac_exec_ext in '' $ac_executable_extensions; do
  6826. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6827. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6828. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6829. break 2
  6830. fi
  6831. done
  6832. done
  6833. IFS=$as_save_IFS
  6834. fi
  6835. fi
  6836. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6837. if test -n "$ac_ct_NMEDIT"; then
  6838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6839. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6840. else
  6841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6842. printf "%s\n" "no" >&6; }
  6843. fi
  6844. if test "x$ac_ct_NMEDIT" = x; then
  6845. NMEDIT=":"
  6846. else
  6847. case $cross_compiling:$ac_tool_warned in
  6848. yes:)
  6849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6850. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6851. ac_tool_warned=yes ;;
  6852. esac
  6853. NMEDIT=$ac_ct_NMEDIT
  6854. fi
  6855. else
  6856. NMEDIT="$ac_cv_prog_NMEDIT"
  6857. fi
  6858. if test -n "$ac_tool_prefix"; then
  6859. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6860. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6862. printf %s "checking for $ac_word... " >&6; }
  6863. if test ${ac_cv_prog_LIPO+y}
  6864. then :
  6865. printf %s "(cached) " >&6
  6866. else $as_nop
  6867. if test -n "$LIPO"; then
  6868. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6869. else
  6870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6871. for as_dir in $PATH
  6872. do
  6873. IFS=$as_save_IFS
  6874. case $as_dir in #(((
  6875. '') as_dir=./ ;;
  6876. */) ;;
  6877. *) as_dir=$as_dir/ ;;
  6878. esac
  6879. for ac_exec_ext in '' $ac_executable_extensions; do
  6880. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6881. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6882. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6883. break 2
  6884. fi
  6885. done
  6886. done
  6887. IFS=$as_save_IFS
  6888. fi
  6889. fi
  6890. LIPO=$ac_cv_prog_LIPO
  6891. if test -n "$LIPO"; then
  6892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6893. printf "%s\n" "$LIPO" >&6; }
  6894. else
  6895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6896. printf "%s\n" "no" >&6; }
  6897. fi
  6898. fi
  6899. if test -z "$ac_cv_prog_LIPO"; then
  6900. ac_ct_LIPO=$LIPO
  6901. # Extract the first word of "lipo", so it can be a program name with args.
  6902. set dummy lipo; ac_word=$2
  6903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6904. printf %s "checking for $ac_word... " >&6; }
  6905. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6906. then :
  6907. printf %s "(cached) " >&6
  6908. else $as_nop
  6909. if test -n "$ac_ct_LIPO"; then
  6910. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6911. else
  6912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6913. for as_dir in $PATH
  6914. do
  6915. IFS=$as_save_IFS
  6916. case $as_dir in #(((
  6917. '') as_dir=./ ;;
  6918. */) ;;
  6919. *) as_dir=$as_dir/ ;;
  6920. esac
  6921. for ac_exec_ext in '' $ac_executable_extensions; do
  6922. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6923. ac_cv_prog_ac_ct_LIPO="lipo"
  6924. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6925. break 2
  6926. fi
  6927. done
  6928. done
  6929. IFS=$as_save_IFS
  6930. fi
  6931. fi
  6932. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6933. if test -n "$ac_ct_LIPO"; then
  6934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6935. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6936. else
  6937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6938. printf "%s\n" "no" >&6; }
  6939. fi
  6940. if test "x$ac_ct_LIPO" = x; then
  6941. LIPO=":"
  6942. else
  6943. case $cross_compiling:$ac_tool_warned in
  6944. yes:)
  6945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6946. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6947. ac_tool_warned=yes ;;
  6948. esac
  6949. LIPO=$ac_ct_LIPO
  6950. fi
  6951. else
  6952. LIPO="$ac_cv_prog_LIPO"
  6953. fi
  6954. if test -n "$ac_tool_prefix"; then
  6955. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6956. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6958. printf %s "checking for $ac_word... " >&6; }
  6959. if test ${ac_cv_prog_OTOOL+y}
  6960. then :
  6961. printf %s "(cached) " >&6
  6962. else $as_nop
  6963. if test -n "$OTOOL"; then
  6964. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6965. else
  6966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6967. for as_dir in $PATH
  6968. do
  6969. IFS=$as_save_IFS
  6970. case $as_dir in #(((
  6971. '') as_dir=./ ;;
  6972. */) ;;
  6973. *) as_dir=$as_dir/ ;;
  6974. esac
  6975. for ac_exec_ext in '' $ac_executable_extensions; do
  6976. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6977. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6978. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6979. break 2
  6980. fi
  6981. done
  6982. done
  6983. IFS=$as_save_IFS
  6984. fi
  6985. fi
  6986. OTOOL=$ac_cv_prog_OTOOL
  6987. if test -n "$OTOOL"; then
  6988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6989. printf "%s\n" "$OTOOL" >&6; }
  6990. else
  6991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6992. printf "%s\n" "no" >&6; }
  6993. fi
  6994. fi
  6995. if test -z "$ac_cv_prog_OTOOL"; then
  6996. ac_ct_OTOOL=$OTOOL
  6997. # Extract the first word of "otool", so it can be a program name with args.
  6998. set dummy otool; ac_word=$2
  6999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7000. printf %s "checking for $ac_word... " >&6; }
  7001. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  7002. then :
  7003. printf %s "(cached) " >&6
  7004. else $as_nop
  7005. if test -n "$ac_ct_OTOOL"; then
  7006. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7007. else
  7008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7009. for as_dir in $PATH
  7010. do
  7011. IFS=$as_save_IFS
  7012. case $as_dir in #(((
  7013. '') as_dir=./ ;;
  7014. */) ;;
  7015. *) as_dir=$as_dir/ ;;
  7016. esac
  7017. for ac_exec_ext in '' $ac_executable_extensions; do
  7018. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7019. ac_cv_prog_ac_ct_OTOOL="otool"
  7020. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7021. break 2
  7022. fi
  7023. done
  7024. done
  7025. IFS=$as_save_IFS
  7026. fi
  7027. fi
  7028. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7029. if test -n "$ac_ct_OTOOL"; then
  7030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7031. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7032. else
  7033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7034. printf "%s\n" "no" >&6; }
  7035. fi
  7036. if test "x$ac_ct_OTOOL" = x; then
  7037. OTOOL=":"
  7038. else
  7039. case $cross_compiling:$ac_tool_warned in
  7040. yes:)
  7041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7042. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7043. ac_tool_warned=yes ;;
  7044. esac
  7045. OTOOL=$ac_ct_OTOOL
  7046. fi
  7047. else
  7048. OTOOL="$ac_cv_prog_OTOOL"
  7049. fi
  7050. if test -n "$ac_tool_prefix"; then
  7051. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7052. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7054. printf %s "checking for $ac_word... " >&6; }
  7055. if test ${ac_cv_prog_OTOOL64+y}
  7056. then :
  7057. printf %s "(cached) " >&6
  7058. else $as_nop
  7059. if test -n "$OTOOL64"; then
  7060. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7061. else
  7062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7063. for as_dir in $PATH
  7064. do
  7065. IFS=$as_save_IFS
  7066. case $as_dir in #(((
  7067. '') as_dir=./ ;;
  7068. */) ;;
  7069. *) as_dir=$as_dir/ ;;
  7070. esac
  7071. for ac_exec_ext in '' $ac_executable_extensions; do
  7072. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7073. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7074. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7075. break 2
  7076. fi
  7077. done
  7078. done
  7079. IFS=$as_save_IFS
  7080. fi
  7081. fi
  7082. OTOOL64=$ac_cv_prog_OTOOL64
  7083. if test -n "$OTOOL64"; then
  7084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7085. printf "%s\n" "$OTOOL64" >&6; }
  7086. else
  7087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7088. printf "%s\n" "no" >&6; }
  7089. fi
  7090. fi
  7091. if test -z "$ac_cv_prog_OTOOL64"; then
  7092. ac_ct_OTOOL64=$OTOOL64
  7093. # Extract the first word of "otool64", so it can be a program name with args.
  7094. set dummy otool64; ac_word=$2
  7095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7096. printf %s "checking for $ac_word... " >&6; }
  7097. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7098. then :
  7099. printf %s "(cached) " >&6
  7100. else $as_nop
  7101. if test -n "$ac_ct_OTOOL64"; then
  7102. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7103. else
  7104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7105. for as_dir in $PATH
  7106. do
  7107. IFS=$as_save_IFS
  7108. case $as_dir in #(((
  7109. '') as_dir=./ ;;
  7110. */) ;;
  7111. *) as_dir=$as_dir/ ;;
  7112. esac
  7113. for ac_exec_ext in '' $ac_executable_extensions; do
  7114. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7115. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7116. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7117. break 2
  7118. fi
  7119. done
  7120. done
  7121. IFS=$as_save_IFS
  7122. fi
  7123. fi
  7124. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7125. if test -n "$ac_ct_OTOOL64"; then
  7126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7127. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7128. else
  7129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7130. printf "%s\n" "no" >&6; }
  7131. fi
  7132. if test "x$ac_ct_OTOOL64" = x; then
  7133. OTOOL64=":"
  7134. else
  7135. case $cross_compiling:$ac_tool_warned in
  7136. yes:)
  7137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7138. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7139. ac_tool_warned=yes ;;
  7140. esac
  7141. OTOOL64=$ac_ct_OTOOL64
  7142. fi
  7143. else
  7144. OTOOL64="$ac_cv_prog_OTOOL64"
  7145. fi
  7146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7147. printf %s "checking for -single_module linker flag... " >&6; }
  7148. if test ${lt_cv_apple_cc_single_mod+y}
  7149. then :
  7150. printf %s "(cached) " >&6
  7151. else $as_nop
  7152. lt_cv_apple_cc_single_mod=no
  7153. if test -z "$LT_MULTI_MODULE"; then
  7154. # By default we will add the -single_module flag. You can override
  7155. # by either setting the environment variable LT_MULTI_MODULE
  7156. # non-empty at configure time, or by adding -multi_module to the
  7157. # link flags.
  7158. rm -rf libconftest.dylib*
  7159. echo "int foo(void){return 1;}" > conftest.c
  7160. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7161. -dynamiclib -Wl,-single_module conftest.c" >&5
  7162. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7163. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7164. _lt_result=$?
  7165. # If there is a non-empty error log, and "single_module"
  7166. # appears in it, assume the flag caused a linker warning
  7167. if test -s conftest.err && $GREP single_module conftest.err; then
  7168. cat conftest.err >&5
  7169. # Otherwise, if the output was created with a 0 exit code from
  7170. # the compiler, it worked.
  7171. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7172. lt_cv_apple_cc_single_mod=yes
  7173. else
  7174. cat conftest.err >&5
  7175. fi
  7176. rm -rf libconftest.dylib*
  7177. rm -f conftest.*
  7178. fi
  7179. fi
  7180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7181. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7183. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7184. if test ${lt_cv_ld_exported_symbols_list+y}
  7185. then :
  7186. printf %s "(cached) " >&6
  7187. else $as_nop
  7188. lt_cv_ld_exported_symbols_list=no
  7189. save_LDFLAGS=$LDFLAGS
  7190. echo "_main" > conftest.sym
  7191. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7193. /* end confdefs.h. */
  7194. int
  7195. main (void)
  7196. {
  7197. ;
  7198. return 0;
  7199. }
  7200. _ACEOF
  7201. if ac_fn_c_try_link "$LINENO"
  7202. then :
  7203. lt_cv_ld_exported_symbols_list=yes
  7204. else $as_nop
  7205. lt_cv_ld_exported_symbols_list=no
  7206. fi
  7207. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7208. conftest$ac_exeext conftest.$ac_ext
  7209. LDFLAGS=$save_LDFLAGS
  7210. fi
  7211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7212. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7214. printf %s "checking for -force_load linker flag... " >&6; }
  7215. if test ${lt_cv_ld_force_load+y}
  7216. then :
  7217. printf %s "(cached) " >&6
  7218. else $as_nop
  7219. lt_cv_ld_force_load=no
  7220. cat > conftest.c << _LT_EOF
  7221. int forced_loaded() { return 2;}
  7222. _LT_EOF
  7223. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7224. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7225. echo "$AR cru libconftest.a conftest.o" >&5
  7226. $AR cru libconftest.a conftest.o 2>&5
  7227. echo "$RANLIB libconftest.a" >&5
  7228. $RANLIB libconftest.a 2>&5
  7229. cat > conftest.c << _LT_EOF
  7230. int main() { return 0;}
  7231. _LT_EOF
  7232. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7233. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7234. _lt_result=$?
  7235. if test -s conftest.err && $GREP force_load conftest.err; then
  7236. cat conftest.err >&5
  7237. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7238. lt_cv_ld_force_load=yes
  7239. else
  7240. cat conftest.err >&5
  7241. fi
  7242. rm -f conftest.err libconftest.a conftest conftest.c
  7243. rm -rf conftest.dSYM
  7244. fi
  7245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7246. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7247. case $host_os in
  7248. rhapsody* | darwin1.[012])
  7249. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7250. darwin1.*)
  7251. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7252. darwin*)
  7253. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7254. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7255. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7256. *)
  7257. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7258. esac
  7259. ;;
  7260. esac
  7261. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7262. _lt_dar_single_mod='$single_module'
  7263. fi
  7264. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7265. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7266. else
  7267. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7268. fi
  7269. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7270. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7271. else
  7272. _lt_dsymutil=
  7273. fi
  7274. ;;
  7275. esac
  7276. # func_munge_path_list VARIABLE PATH
  7277. # -----------------------------------
  7278. # VARIABLE is name of variable containing _space_ separated list of
  7279. # directories to be munged by the contents of PATH, which is string
  7280. # having a format:
  7281. # "DIR[:DIR]:"
  7282. # string "DIR[ DIR]" will be prepended to VARIABLE
  7283. # ":DIR[:DIR]"
  7284. # string "DIR[ DIR]" will be appended to VARIABLE
  7285. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7286. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7287. # "DIRA[ DIRA]" will be appended to VARIABLE
  7288. # "DIR[:DIR]"
  7289. # VARIABLE will be replaced by "DIR[ DIR]"
  7290. func_munge_path_list ()
  7291. {
  7292. case x$2 in
  7293. x)
  7294. ;;
  7295. *:)
  7296. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7297. ;;
  7298. x:*)
  7299. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7300. ;;
  7301. *::*)
  7302. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7303. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7304. ;;
  7305. *)
  7306. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7307. ;;
  7308. esac
  7309. }
  7310. ac_header= ac_cache=
  7311. for ac_item in $ac_header_c_list
  7312. do
  7313. if test $ac_cache; then
  7314. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7315. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7316. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7317. fi
  7318. ac_header= ac_cache=
  7319. elif test $ac_header; then
  7320. ac_cache=$ac_item
  7321. else
  7322. ac_header=$ac_item
  7323. fi
  7324. done
  7325. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7326. then :
  7327. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7328. fi
  7329. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7330. "
  7331. if test "x$ac_cv_header_dlfcn_h" = xyes
  7332. then :
  7333. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7334. fi
  7335. # Set options
  7336. enable_win32_dll=yes
  7337. case $host in
  7338. *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
  7339. if test -n "$ac_tool_prefix"; then
  7340. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7341. set dummy ${ac_tool_prefix}as; ac_word=$2
  7342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7343. printf %s "checking for $ac_word... " >&6; }
  7344. if test ${ac_cv_prog_AS+y}
  7345. then :
  7346. printf %s "(cached) " >&6
  7347. else $as_nop
  7348. if test -n "$AS"; then
  7349. ac_cv_prog_AS="$AS" # Let the user override the test.
  7350. else
  7351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7352. for as_dir in $PATH
  7353. do
  7354. IFS=$as_save_IFS
  7355. case $as_dir in #(((
  7356. '') as_dir=./ ;;
  7357. */) ;;
  7358. *) as_dir=$as_dir/ ;;
  7359. esac
  7360. for ac_exec_ext in '' $ac_executable_extensions; do
  7361. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7362. ac_cv_prog_AS="${ac_tool_prefix}as"
  7363. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7364. break 2
  7365. fi
  7366. done
  7367. done
  7368. IFS=$as_save_IFS
  7369. fi
  7370. fi
  7371. AS=$ac_cv_prog_AS
  7372. if test -n "$AS"; then
  7373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7374. printf "%s\n" "$AS" >&6; }
  7375. else
  7376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7377. printf "%s\n" "no" >&6; }
  7378. fi
  7379. fi
  7380. if test -z "$ac_cv_prog_AS"; then
  7381. ac_ct_AS=$AS
  7382. # Extract the first word of "as", so it can be a program name with args.
  7383. set dummy as; ac_word=$2
  7384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7385. printf %s "checking for $ac_word... " >&6; }
  7386. if test ${ac_cv_prog_ac_ct_AS+y}
  7387. then :
  7388. printf %s "(cached) " >&6
  7389. else $as_nop
  7390. if test -n "$ac_ct_AS"; then
  7391. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7392. else
  7393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7394. for as_dir in $PATH
  7395. do
  7396. IFS=$as_save_IFS
  7397. case $as_dir in #(((
  7398. '') as_dir=./ ;;
  7399. */) ;;
  7400. *) as_dir=$as_dir/ ;;
  7401. esac
  7402. for ac_exec_ext in '' $ac_executable_extensions; do
  7403. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7404. ac_cv_prog_ac_ct_AS="as"
  7405. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7406. break 2
  7407. fi
  7408. done
  7409. done
  7410. IFS=$as_save_IFS
  7411. fi
  7412. fi
  7413. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7414. if test -n "$ac_ct_AS"; then
  7415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7416. printf "%s\n" "$ac_ct_AS" >&6; }
  7417. else
  7418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7419. printf "%s\n" "no" >&6; }
  7420. fi
  7421. if test "x$ac_ct_AS" = x; then
  7422. AS="false"
  7423. else
  7424. case $cross_compiling:$ac_tool_warned in
  7425. yes:)
  7426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7427. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7428. ac_tool_warned=yes ;;
  7429. esac
  7430. AS=$ac_ct_AS
  7431. fi
  7432. else
  7433. AS="$ac_cv_prog_AS"
  7434. fi
  7435. if test -n "$ac_tool_prefix"; then
  7436. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7437. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7439. printf %s "checking for $ac_word... " >&6; }
  7440. if test ${ac_cv_prog_DLLTOOL+y}
  7441. then :
  7442. printf %s "(cached) " >&6
  7443. else $as_nop
  7444. if test -n "$DLLTOOL"; then
  7445. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7446. else
  7447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7448. for as_dir in $PATH
  7449. do
  7450. IFS=$as_save_IFS
  7451. case $as_dir in #(((
  7452. '') as_dir=./ ;;
  7453. */) ;;
  7454. *) as_dir=$as_dir/ ;;
  7455. esac
  7456. for ac_exec_ext in '' $ac_executable_extensions; do
  7457. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7458. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7459. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7460. break 2
  7461. fi
  7462. done
  7463. done
  7464. IFS=$as_save_IFS
  7465. fi
  7466. fi
  7467. DLLTOOL=$ac_cv_prog_DLLTOOL
  7468. if test -n "$DLLTOOL"; then
  7469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7470. printf "%s\n" "$DLLTOOL" >&6; }
  7471. else
  7472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7473. printf "%s\n" "no" >&6; }
  7474. fi
  7475. fi
  7476. if test -z "$ac_cv_prog_DLLTOOL"; then
  7477. ac_ct_DLLTOOL=$DLLTOOL
  7478. # Extract the first word of "dlltool", so it can be a program name with args.
  7479. set dummy dlltool; ac_word=$2
  7480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7481. printf %s "checking for $ac_word... " >&6; }
  7482. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7483. then :
  7484. printf %s "(cached) " >&6
  7485. else $as_nop
  7486. if test -n "$ac_ct_DLLTOOL"; then
  7487. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7488. else
  7489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7490. for as_dir in $PATH
  7491. do
  7492. IFS=$as_save_IFS
  7493. case $as_dir in #(((
  7494. '') as_dir=./ ;;
  7495. */) ;;
  7496. *) as_dir=$as_dir/ ;;
  7497. esac
  7498. for ac_exec_ext in '' $ac_executable_extensions; do
  7499. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7500. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7501. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7502. break 2
  7503. fi
  7504. done
  7505. done
  7506. IFS=$as_save_IFS
  7507. fi
  7508. fi
  7509. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7510. if test -n "$ac_ct_DLLTOOL"; then
  7511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7512. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7513. else
  7514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7515. printf "%s\n" "no" >&6; }
  7516. fi
  7517. if test "x$ac_ct_DLLTOOL" = x; then
  7518. DLLTOOL="false"
  7519. else
  7520. case $cross_compiling:$ac_tool_warned in
  7521. yes:)
  7522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7523. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7524. ac_tool_warned=yes ;;
  7525. esac
  7526. DLLTOOL=$ac_ct_DLLTOOL
  7527. fi
  7528. else
  7529. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7530. fi
  7531. if test -n "$ac_tool_prefix"; then
  7532. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7533. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7535. printf %s "checking for $ac_word... " >&6; }
  7536. if test ${ac_cv_prog_OBJDUMP+y}
  7537. then :
  7538. printf %s "(cached) " >&6
  7539. else $as_nop
  7540. if test -n "$OBJDUMP"; then
  7541. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7542. else
  7543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7544. for as_dir in $PATH
  7545. do
  7546. IFS=$as_save_IFS
  7547. case $as_dir in #(((
  7548. '') as_dir=./ ;;
  7549. */) ;;
  7550. *) as_dir=$as_dir/ ;;
  7551. esac
  7552. for ac_exec_ext in '' $ac_executable_extensions; do
  7553. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7554. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7555. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7556. break 2
  7557. fi
  7558. done
  7559. done
  7560. IFS=$as_save_IFS
  7561. fi
  7562. fi
  7563. OBJDUMP=$ac_cv_prog_OBJDUMP
  7564. if test -n "$OBJDUMP"; then
  7565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7566. printf "%s\n" "$OBJDUMP" >&6; }
  7567. else
  7568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7569. printf "%s\n" "no" >&6; }
  7570. fi
  7571. fi
  7572. if test -z "$ac_cv_prog_OBJDUMP"; then
  7573. ac_ct_OBJDUMP=$OBJDUMP
  7574. # Extract the first word of "objdump", so it can be a program name with args.
  7575. set dummy objdump; ac_word=$2
  7576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7577. printf %s "checking for $ac_word... " >&6; }
  7578. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7579. then :
  7580. printf %s "(cached) " >&6
  7581. else $as_nop
  7582. if test -n "$ac_ct_OBJDUMP"; then
  7583. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7584. else
  7585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7586. for as_dir in $PATH
  7587. do
  7588. IFS=$as_save_IFS
  7589. case $as_dir in #(((
  7590. '') as_dir=./ ;;
  7591. */) ;;
  7592. *) as_dir=$as_dir/ ;;
  7593. esac
  7594. for ac_exec_ext in '' $ac_executable_extensions; do
  7595. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7596. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7597. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7598. break 2
  7599. fi
  7600. done
  7601. done
  7602. IFS=$as_save_IFS
  7603. fi
  7604. fi
  7605. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7606. if test -n "$ac_ct_OBJDUMP"; then
  7607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7608. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7609. else
  7610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7611. printf "%s\n" "no" >&6; }
  7612. fi
  7613. if test "x$ac_ct_OBJDUMP" = x; then
  7614. OBJDUMP="false"
  7615. else
  7616. case $cross_compiling:$ac_tool_warned in
  7617. yes:)
  7618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7619. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7620. ac_tool_warned=yes ;;
  7621. esac
  7622. OBJDUMP=$ac_ct_OBJDUMP
  7623. fi
  7624. else
  7625. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7626. fi
  7627. ;;
  7628. esac
  7629. test -z "$AS" && AS=as
  7630. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7631. test -z "$OBJDUMP" && OBJDUMP=objdump
  7632. enable_dlopen=no
  7633. # Check whether --enable-shared was given.
  7634. if test ${enable_shared+y}
  7635. then :
  7636. enableval=$enable_shared; p=${PACKAGE-default}
  7637. case $enableval in
  7638. yes) enable_shared=yes ;;
  7639. no) enable_shared=no ;;
  7640. *)
  7641. enable_shared=no
  7642. # Look at the argument we got. We use all the common list separators.
  7643. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7644. for pkg in $enableval; do
  7645. IFS=$lt_save_ifs
  7646. if test "X$pkg" = "X$p"; then
  7647. enable_shared=yes
  7648. fi
  7649. done
  7650. IFS=$lt_save_ifs
  7651. ;;
  7652. esac
  7653. else $as_nop
  7654. enable_shared=yes
  7655. fi
  7656. # Check whether --enable-static was given.
  7657. if test ${enable_static+y}
  7658. then :
  7659. enableval=$enable_static; p=${PACKAGE-default}
  7660. case $enableval in
  7661. yes) enable_static=yes ;;
  7662. no) enable_static=no ;;
  7663. *)
  7664. enable_static=no
  7665. # Look at the argument we got. We use all the common list separators.
  7666. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7667. for pkg in $enableval; do
  7668. IFS=$lt_save_ifs
  7669. if test "X$pkg" = "X$p"; then
  7670. enable_static=yes
  7671. fi
  7672. done
  7673. IFS=$lt_save_ifs
  7674. ;;
  7675. esac
  7676. else $as_nop
  7677. enable_static=yes
  7678. fi
  7679. # Check whether --with-pic was given.
  7680. if test ${with_pic+y}
  7681. then :
  7682. withval=$with_pic; lt_p=${PACKAGE-default}
  7683. case $withval in
  7684. yes|no) pic_mode=$withval ;;
  7685. *)
  7686. pic_mode=default
  7687. # Look at the argument we got. We use all the common list separators.
  7688. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7689. for lt_pkg in $withval; do
  7690. IFS=$lt_save_ifs
  7691. if test "X$lt_pkg" = "X$lt_p"; then
  7692. pic_mode=yes
  7693. fi
  7694. done
  7695. IFS=$lt_save_ifs
  7696. ;;
  7697. esac
  7698. else $as_nop
  7699. pic_mode=default
  7700. fi
  7701. # Check whether --enable-fast-install was given.
  7702. if test ${enable_fast_install+y}
  7703. then :
  7704. enableval=$enable_fast_install; p=${PACKAGE-default}
  7705. case $enableval in
  7706. yes) enable_fast_install=yes ;;
  7707. no) enable_fast_install=no ;;
  7708. *)
  7709. enable_fast_install=no
  7710. # Look at the argument we got. We use all the common list separators.
  7711. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7712. for pkg in $enableval; do
  7713. IFS=$lt_save_ifs
  7714. if test "X$pkg" = "X$p"; then
  7715. enable_fast_install=yes
  7716. fi
  7717. done
  7718. IFS=$lt_save_ifs
  7719. ;;
  7720. esac
  7721. else $as_nop
  7722. enable_fast_install=yes
  7723. fi
  7724. shared_archive_member_spec=
  7725. case $host,$enable_shared in
  7726. power*-*-aix[5-9]*,yes)
  7727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7728. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7729. # Check whether --with-aix-soname was given.
  7730. if test ${with_aix_soname+y}
  7731. then :
  7732. withval=$with_aix_soname; case $withval in
  7733. aix|svr4|both)
  7734. ;;
  7735. *)
  7736. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7737. ;;
  7738. esac
  7739. lt_cv_with_aix_soname=$with_aix_soname
  7740. else $as_nop
  7741. if test ${lt_cv_with_aix_soname+y}
  7742. then :
  7743. printf %s "(cached) " >&6
  7744. else $as_nop
  7745. lt_cv_with_aix_soname=aix
  7746. fi
  7747. with_aix_soname=$lt_cv_with_aix_soname
  7748. fi
  7749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7750. printf "%s\n" "$with_aix_soname" >&6; }
  7751. if test aix != "$with_aix_soname"; then
  7752. # For the AIX way of multilib, we name the shared archive member
  7753. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7754. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7755. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7756. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7757. if test 64 = "${OBJECT_MODE-32}"; then
  7758. shared_archive_member_spec=shr_64
  7759. else
  7760. shared_archive_member_spec=shr
  7761. fi
  7762. fi
  7763. ;;
  7764. *)
  7765. with_aix_soname=aix
  7766. ;;
  7767. esac
  7768. # This can be used to rebuild libtool when needed
  7769. LIBTOOL_DEPS=$ltmain
  7770. # Always use our own libtool.
  7771. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7772. test -z "$LN_S" && LN_S="ln -s"
  7773. if test -n "${ZSH_VERSION+set}"; then
  7774. setopt NO_GLOB_SUBST
  7775. fi
  7776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7777. printf %s "checking for objdir... " >&6; }
  7778. if test ${lt_cv_objdir+y}
  7779. then :
  7780. printf %s "(cached) " >&6
  7781. else $as_nop
  7782. rm -f .libs 2>/dev/null
  7783. mkdir .libs 2>/dev/null
  7784. if test -d .libs; then
  7785. lt_cv_objdir=.libs
  7786. else
  7787. # MS-DOS does not allow filenames that begin with a dot.
  7788. lt_cv_objdir=_libs
  7789. fi
  7790. rmdir .libs 2>/dev/null
  7791. fi
  7792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7793. printf "%s\n" "$lt_cv_objdir" >&6; }
  7794. objdir=$lt_cv_objdir
  7795. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7796. case $host_os in
  7797. aix3*)
  7798. # AIX sometimes has problems with the GCC collect2 program. For some
  7799. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7800. # vanish in a puff of smoke.
  7801. if test set != "${COLLECT_NAMES+set}"; then
  7802. COLLECT_NAMES=
  7803. export COLLECT_NAMES
  7804. fi
  7805. ;;
  7806. esac
  7807. # Global variables:
  7808. ofile=libtool
  7809. can_build_shared=yes
  7810. # All known linkers require a '.a' archive for static linking (except MSVC and
  7811. # ICC, which need '.lib').
  7812. libext=a
  7813. with_gnu_ld=$lt_cv_prog_gnu_ld
  7814. old_CC=$CC
  7815. old_CFLAGS=$CFLAGS
  7816. # Set sane defaults for various variables
  7817. test -z "$CC" && CC=cc
  7818. test -z "$LTCC" && LTCC=$CC
  7819. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7820. test -z "$LD" && LD=ld
  7821. test -z "$ac_objext" && ac_objext=o
  7822. func_cc_basename $compiler
  7823. cc_basename=$func_cc_basename_result
  7824. # Only perform the check for file, if the check method requires it
  7825. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7826. case $deplibs_check_method in
  7827. file_magic*)
  7828. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7830. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7831. if test ${lt_cv_path_MAGIC_CMD+y}
  7832. then :
  7833. printf %s "(cached) " >&6
  7834. else $as_nop
  7835. case $MAGIC_CMD in
  7836. [\\/*] | ?:[\\/]*)
  7837. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7838. ;;
  7839. *)
  7840. lt_save_MAGIC_CMD=$MAGIC_CMD
  7841. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7842. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7843. for ac_dir in $ac_dummy; do
  7844. IFS=$lt_save_ifs
  7845. test -z "$ac_dir" && ac_dir=.
  7846. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7847. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7848. if test -n "$file_magic_test_file"; then
  7849. case $deplibs_check_method in
  7850. "file_magic "*)
  7851. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7852. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7853. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7854. $EGREP "$file_magic_regex" > /dev/null; then
  7855. :
  7856. else
  7857. cat <<_LT_EOF 1>&2
  7858. *** Warning: the command libtool uses to detect shared libraries,
  7859. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7860. *** The result is that libtool may fail to recognize shared libraries
  7861. *** as such. This will affect the creation of libtool libraries that
  7862. *** depend on shared libraries, but programs linked with such libtool
  7863. *** libraries will work regardless of this problem. Nevertheless, you
  7864. *** may want to report the problem to your system manager and/or to
  7865. *** bug-libtool@gnu.org
  7866. _LT_EOF
  7867. fi ;;
  7868. esac
  7869. fi
  7870. break
  7871. fi
  7872. done
  7873. IFS=$lt_save_ifs
  7874. MAGIC_CMD=$lt_save_MAGIC_CMD
  7875. ;;
  7876. esac
  7877. fi
  7878. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7879. if test -n "$MAGIC_CMD"; then
  7880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7881. printf "%s\n" "$MAGIC_CMD" >&6; }
  7882. else
  7883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7884. printf "%s\n" "no" >&6; }
  7885. fi
  7886. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7887. if test -n "$ac_tool_prefix"; then
  7888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7889. printf %s "checking for file... " >&6; }
  7890. if test ${lt_cv_path_MAGIC_CMD+y}
  7891. then :
  7892. printf %s "(cached) " >&6
  7893. else $as_nop
  7894. case $MAGIC_CMD in
  7895. [\\/*] | ?:[\\/]*)
  7896. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7897. ;;
  7898. *)
  7899. lt_save_MAGIC_CMD=$MAGIC_CMD
  7900. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7901. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7902. for ac_dir in $ac_dummy; do
  7903. IFS=$lt_save_ifs
  7904. test -z "$ac_dir" && ac_dir=.
  7905. if test -f "$ac_dir/file"; then
  7906. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7907. if test -n "$file_magic_test_file"; then
  7908. case $deplibs_check_method in
  7909. "file_magic "*)
  7910. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7911. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7912. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7913. $EGREP "$file_magic_regex" > /dev/null; then
  7914. :
  7915. else
  7916. cat <<_LT_EOF 1>&2
  7917. *** Warning: the command libtool uses to detect shared libraries,
  7918. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7919. *** The result is that libtool may fail to recognize shared libraries
  7920. *** as such. This will affect the creation of libtool libraries that
  7921. *** depend on shared libraries, but programs linked with such libtool
  7922. *** libraries will work regardless of this problem. Nevertheless, you
  7923. *** may want to report the problem to your system manager and/or to
  7924. *** bug-libtool@gnu.org
  7925. _LT_EOF
  7926. fi ;;
  7927. esac
  7928. fi
  7929. break
  7930. fi
  7931. done
  7932. IFS=$lt_save_ifs
  7933. MAGIC_CMD=$lt_save_MAGIC_CMD
  7934. ;;
  7935. esac
  7936. fi
  7937. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7938. if test -n "$MAGIC_CMD"; then
  7939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7940. printf "%s\n" "$MAGIC_CMD" >&6; }
  7941. else
  7942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7943. printf "%s\n" "no" >&6; }
  7944. fi
  7945. else
  7946. MAGIC_CMD=:
  7947. fi
  7948. fi
  7949. fi
  7950. ;;
  7951. esac
  7952. # Use C for the default configuration in the libtool script
  7953. lt_save_CC=$CC
  7954. ac_ext=c
  7955. ac_cpp='$CPP $CPPFLAGS'
  7956. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7957. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7958. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7959. # Source file extension for C test sources.
  7960. ac_ext=c
  7961. # Object file extension for compiled C test sources.
  7962. objext=o
  7963. objext=$objext
  7964. # Code to be used in simple compile tests
  7965. lt_simple_compile_test_code="int some_variable = 0;"
  7966. # Code to be used in simple link tests
  7967. lt_simple_link_test_code='int main(){return(0);}'
  7968. # If no C compiler was specified, use CC.
  7969. LTCC=${LTCC-"$CC"}
  7970. # If no C compiler flags were specified, use CFLAGS.
  7971. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7972. # Allow CC to be a program name with arguments.
  7973. compiler=$CC
  7974. # Save the default compiler, since it gets overwritten when the other
  7975. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7976. compiler_DEFAULT=$CC
  7977. # save warnings/boilerplate of simple test code
  7978. ac_outfile=conftest.$ac_objext
  7979. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7980. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7981. _lt_compiler_boilerplate=`cat conftest.err`
  7982. $RM conftest*
  7983. ac_outfile=conftest.$ac_objext
  7984. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7985. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7986. _lt_linker_boilerplate=`cat conftest.err`
  7987. $RM -r conftest*
  7988. ## CAVEAT EMPTOR:
  7989. ## There is no encapsulation within the following macros, do not change
  7990. ## the running order or otherwise move them around unless you know exactly
  7991. ## what you are doing...
  7992. if test -n "$compiler"; then
  7993. lt_prog_compiler_no_builtin_flag=
  7994. if test yes = "$GCC"; then
  7995. case $cc_basename in
  7996. nvcc*)
  7997. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7998. *)
  7999. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8000. esac
  8001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8002. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8003. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8004. then :
  8005. printf %s "(cached) " >&6
  8006. else $as_nop
  8007. lt_cv_prog_compiler_rtti_exceptions=no
  8008. ac_outfile=conftest.$ac_objext
  8009. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8010. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8011. # Insert the option either (1) after the last *FLAGS variable, or
  8012. # (2) before a word containing "conftest.", or (3) at the end.
  8013. # Note that $ac_compile itself does not contain backslashes and begins
  8014. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8015. # The option is referenced via a variable to avoid confusing sed.
  8016. lt_compile=`echo "$ac_compile" | $SED \
  8017. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8018. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8019. -e 's:$: $lt_compiler_flag:'`
  8020. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8021. (eval "$lt_compile" 2>conftest.err)
  8022. ac_status=$?
  8023. cat conftest.err >&5
  8024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8025. if (exit $ac_status) && test -s "$ac_outfile"; then
  8026. # The compiler can only warn and ignore the option if not recognized
  8027. # So say no if there are warnings other than the usual output.
  8028. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8029. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8030. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8031. lt_cv_prog_compiler_rtti_exceptions=yes
  8032. fi
  8033. fi
  8034. $RM conftest*
  8035. fi
  8036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8037. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8038. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8039. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8040. else
  8041. :
  8042. fi
  8043. fi
  8044. lt_prog_compiler_wl=
  8045. lt_prog_compiler_pic=
  8046. lt_prog_compiler_static=
  8047. if test yes = "$GCC"; then
  8048. lt_prog_compiler_wl='-Wl,'
  8049. lt_prog_compiler_static='-static'
  8050. case $host_os in
  8051. aix*)
  8052. # All AIX code is PIC.
  8053. if test ia64 = "$host_cpu"; then
  8054. # AIX 5 now supports IA64 processor
  8055. lt_prog_compiler_static='-Bstatic'
  8056. fi
  8057. lt_prog_compiler_pic='-fPIC'
  8058. ;;
  8059. amigaos*)
  8060. case $host_cpu in
  8061. powerpc)
  8062. # see comment about AmigaOS4 .so support
  8063. lt_prog_compiler_pic='-fPIC'
  8064. ;;
  8065. m68k)
  8066. # FIXME: we need at least 68020 code to build shared libraries, but
  8067. # adding the '-m68020' flag to GCC prevents building anything better,
  8068. # like '-m68040'.
  8069. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8070. ;;
  8071. esac
  8072. ;;
  8073. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8074. # PIC is the default for these OSes.
  8075. ;;
  8076. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8077. # This hack is so that the source file can tell whether it is being
  8078. # built for inclusion in a dll (and should export symbols for example).
  8079. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8080. # (--disable-auto-import) libraries
  8081. lt_prog_compiler_pic='-DDLL_EXPORT'
  8082. case $host_os in
  8083. os2*)
  8084. lt_prog_compiler_static='$wl-static'
  8085. ;;
  8086. esac
  8087. ;;
  8088. darwin* | rhapsody*)
  8089. # PIC is the default on this platform
  8090. # Common symbols not allowed in MH_DYLIB files
  8091. lt_prog_compiler_pic='-fno-common'
  8092. ;;
  8093. haiku*)
  8094. # PIC is the default for Haiku.
  8095. # The "-static" flag exists, but is broken.
  8096. lt_prog_compiler_static=
  8097. ;;
  8098. hpux*)
  8099. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8100. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8101. # sets the default TLS model and affects inlining.
  8102. case $host_cpu in
  8103. hppa*64*)
  8104. # +Z the default
  8105. ;;
  8106. *)
  8107. lt_prog_compiler_pic='-fPIC'
  8108. ;;
  8109. esac
  8110. ;;
  8111. interix[3-9]*)
  8112. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8113. # Instead, we relocate shared libraries at runtime.
  8114. ;;
  8115. msdosdjgpp*)
  8116. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8117. # on systems that don't support them.
  8118. lt_prog_compiler_can_build_shared=no
  8119. enable_shared=no
  8120. ;;
  8121. *nto* | *qnx*)
  8122. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8123. # it will coredump.
  8124. lt_prog_compiler_pic='-fPIC -shared'
  8125. ;;
  8126. sysv4*MP*)
  8127. if test -d /usr/nec; then
  8128. lt_prog_compiler_pic=-Kconform_pic
  8129. fi
  8130. ;;
  8131. *)
  8132. lt_prog_compiler_pic='-fPIC'
  8133. ;;
  8134. esac
  8135. case $cc_basename in
  8136. nvcc*) # Cuda Compiler Driver 2.2
  8137. lt_prog_compiler_wl='-Xlinker '
  8138. if test -n "$lt_prog_compiler_pic"; then
  8139. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8140. fi
  8141. ;;
  8142. esac
  8143. else
  8144. # PORTME Check for flag to pass linker flags through the system compiler.
  8145. case $host_os in
  8146. aix*)
  8147. lt_prog_compiler_wl='-Wl,'
  8148. if test ia64 = "$host_cpu"; then
  8149. # AIX 5 now supports IA64 processor
  8150. lt_prog_compiler_static='-Bstatic'
  8151. else
  8152. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8153. fi
  8154. ;;
  8155. darwin* | rhapsody*)
  8156. # PIC is the default on this platform
  8157. # Common symbols not allowed in MH_DYLIB files
  8158. lt_prog_compiler_pic='-fno-common'
  8159. case $cc_basename in
  8160. nagfor*)
  8161. # NAG Fortran compiler
  8162. lt_prog_compiler_wl='-Wl,-Wl,,'
  8163. lt_prog_compiler_pic='-PIC'
  8164. lt_prog_compiler_static='-Bstatic'
  8165. ;;
  8166. esac
  8167. ;;
  8168. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8169. # This hack is so that the source file can tell whether it is being
  8170. # built for inclusion in a dll (and should export symbols for example).
  8171. lt_prog_compiler_pic='-DDLL_EXPORT'
  8172. case $host_os in
  8173. os2*)
  8174. lt_prog_compiler_static='$wl-static'
  8175. ;;
  8176. esac
  8177. ;;
  8178. hpux9* | hpux10* | hpux11*)
  8179. lt_prog_compiler_wl='-Wl,'
  8180. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8181. # not for PA HP-UX.
  8182. case $host_cpu in
  8183. hppa*64*|ia64*)
  8184. # +Z the default
  8185. ;;
  8186. *)
  8187. lt_prog_compiler_pic='+Z'
  8188. ;;
  8189. esac
  8190. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8191. lt_prog_compiler_static='$wl-a ${wl}archive'
  8192. ;;
  8193. irix5* | irix6* | nonstopux*)
  8194. lt_prog_compiler_wl='-Wl,'
  8195. # PIC (with -KPIC) is the default.
  8196. lt_prog_compiler_static='-non_shared'
  8197. ;;
  8198. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8199. case $cc_basename in
  8200. # old Intel for x86_64, which still supported -KPIC.
  8201. ecc*)
  8202. lt_prog_compiler_wl='-Wl,'
  8203. lt_prog_compiler_pic='-KPIC'
  8204. lt_prog_compiler_static='-static'
  8205. ;;
  8206. # icc used to be incompatible with GCC.
  8207. # ICC 10 doesn't accept -KPIC any more.
  8208. icc* | ifort*)
  8209. lt_prog_compiler_wl='-Wl,'
  8210. lt_prog_compiler_pic='-fPIC'
  8211. lt_prog_compiler_static='-static'
  8212. ;;
  8213. # Lahey Fortran 8.1.
  8214. lf95*)
  8215. lt_prog_compiler_wl='-Wl,'
  8216. lt_prog_compiler_pic='--shared'
  8217. lt_prog_compiler_static='--static'
  8218. ;;
  8219. nagfor*)
  8220. # NAG Fortran compiler
  8221. lt_prog_compiler_wl='-Wl,-Wl,,'
  8222. lt_prog_compiler_pic='-PIC'
  8223. lt_prog_compiler_static='-Bstatic'
  8224. ;;
  8225. tcc*)
  8226. # Fabrice Bellard et al's Tiny C Compiler
  8227. lt_prog_compiler_wl='-Wl,'
  8228. lt_prog_compiler_pic='-fPIC'
  8229. lt_prog_compiler_static='-static'
  8230. ;;
  8231. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8232. # Portland Group compilers (*not* the Pentium gcc compiler,
  8233. # which looks to be a dead project)
  8234. lt_prog_compiler_wl='-Wl,'
  8235. lt_prog_compiler_pic='-fpic'
  8236. lt_prog_compiler_static='-Bstatic'
  8237. ;;
  8238. ccc*)
  8239. lt_prog_compiler_wl='-Wl,'
  8240. # All Alpha code is PIC.
  8241. lt_prog_compiler_static='-non_shared'
  8242. ;;
  8243. xl* | bgxl* | bgf* | mpixl*)
  8244. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8245. lt_prog_compiler_wl='-Wl,'
  8246. lt_prog_compiler_pic='-qpic'
  8247. lt_prog_compiler_static='-qstaticlink'
  8248. ;;
  8249. *)
  8250. case `$CC -V 2>&1 | sed 5q` in
  8251. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8252. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8253. lt_prog_compiler_pic='-KPIC'
  8254. lt_prog_compiler_static='-Bstatic'
  8255. lt_prog_compiler_wl=''
  8256. ;;
  8257. *Sun\ F* | *Sun*Fortran*)
  8258. lt_prog_compiler_pic='-KPIC'
  8259. lt_prog_compiler_static='-Bstatic'
  8260. lt_prog_compiler_wl='-Qoption ld '
  8261. ;;
  8262. *Sun\ C*)
  8263. # Sun C 5.9
  8264. lt_prog_compiler_pic='-KPIC'
  8265. lt_prog_compiler_static='-Bstatic'
  8266. lt_prog_compiler_wl='-Wl,'
  8267. ;;
  8268. *Intel*\ [CF]*Compiler*)
  8269. lt_prog_compiler_wl='-Wl,'
  8270. lt_prog_compiler_pic='-fPIC'
  8271. lt_prog_compiler_static='-static'
  8272. ;;
  8273. *Portland\ Group*)
  8274. lt_prog_compiler_wl='-Wl,'
  8275. lt_prog_compiler_pic='-fpic'
  8276. lt_prog_compiler_static='-Bstatic'
  8277. ;;
  8278. esac
  8279. ;;
  8280. esac
  8281. ;;
  8282. newsos6)
  8283. lt_prog_compiler_pic='-KPIC'
  8284. lt_prog_compiler_static='-Bstatic'
  8285. ;;
  8286. *nto* | *qnx*)
  8287. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8288. # it will coredump.
  8289. lt_prog_compiler_pic='-fPIC -shared'
  8290. ;;
  8291. osf3* | osf4* | osf5*)
  8292. lt_prog_compiler_wl='-Wl,'
  8293. # All OSF/1 code is PIC.
  8294. lt_prog_compiler_static='-non_shared'
  8295. ;;
  8296. rdos*)
  8297. lt_prog_compiler_static='-non_shared'
  8298. ;;
  8299. solaris*)
  8300. lt_prog_compiler_pic='-KPIC'
  8301. lt_prog_compiler_static='-Bstatic'
  8302. case $cc_basename in
  8303. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8304. lt_prog_compiler_wl='-Qoption ld ';;
  8305. *)
  8306. lt_prog_compiler_wl='-Wl,';;
  8307. esac
  8308. ;;
  8309. sunos4*)
  8310. lt_prog_compiler_wl='-Qoption ld '
  8311. lt_prog_compiler_pic='-PIC'
  8312. lt_prog_compiler_static='-Bstatic'
  8313. ;;
  8314. sysv4 | sysv4.2uw2* | sysv4.3*)
  8315. lt_prog_compiler_wl='-Wl,'
  8316. lt_prog_compiler_pic='-KPIC'
  8317. lt_prog_compiler_static='-Bstatic'
  8318. ;;
  8319. sysv4*MP*)
  8320. if test -d /usr/nec; then
  8321. lt_prog_compiler_pic='-Kconform_pic'
  8322. lt_prog_compiler_static='-Bstatic'
  8323. fi
  8324. ;;
  8325. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8326. lt_prog_compiler_wl='-Wl,'
  8327. lt_prog_compiler_pic='-KPIC'
  8328. lt_prog_compiler_static='-Bstatic'
  8329. ;;
  8330. unicos*)
  8331. lt_prog_compiler_wl='-Wl,'
  8332. lt_prog_compiler_can_build_shared=no
  8333. ;;
  8334. uts4*)
  8335. lt_prog_compiler_pic='-pic'
  8336. lt_prog_compiler_static='-Bstatic'
  8337. ;;
  8338. *)
  8339. lt_prog_compiler_can_build_shared=no
  8340. ;;
  8341. esac
  8342. fi
  8343. case $host_os in
  8344. # For platforms that do not support PIC, -DPIC is meaningless:
  8345. *djgpp*)
  8346. lt_prog_compiler_pic=
  8347. ;;
  8348. *)
  8349. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8350. ;;
  8351. esac
  8352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8353. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8354. if test ${lt_cv_prog_compiler_pic+y}
  8355. then :
  8356. printf %s "(cached) " >&6
  8357. else $as_nop
  8358. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8359. fi
  8360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8361. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8362. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8363. #
  8364. # Check to make sure the PIC flag actually works.
  8365. #
  8366. if test -n "$lt_prog_compiler_pic"; then
  8367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8368. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8369. if test ${lt_cv_prog_compiler_pic_works+y}
  8370. then :
  8371. printf %s "(cached) " >&6
  8372. else $as_nop
  8373. lt_cv_prog_compiler_pic_works=no
  8374. ac_outfile=conftest.$ac_objext
  8375. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8376. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8377. # Insert the option either (1) after the last *FLAGS variable, or
  8378. # (2) before a word containing "conftest.", or (3) at the end.
  8379. # Note that $ac_compile itself does not contain backslashes and begins
  8380. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8381. # The option is referenced via a variable to avoid confusing sed.
  8382. lt_compile=`echo "$ac_compile" | $SED \
  8383. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8384. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8385. -e 's:$: $lt_compiler_flag:'`
  8386. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8387. (eval "$lt_compile" 2>conftest.err)
  8388. ac_status=$?
  8389. cat conftest.err >&5
  8390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8391. if (exit $ac_status) && test -s "$ac_outfile"; then
  8392. # The compiler can only warn and ignore the option if not recognized
  8393. # So say no if there are warnings other than the usual output.
  8394. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8395. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8396. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8397. lt_cv_prog_compiler_pic_works=yes
  8398. fi
  8399. fi
  8400. $RM conftest*
  8401. fi
  8402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8403. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8404. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8405. case $lt_prog_compiler_pic in
  8406. "" | " "*) ;;
  8407. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8408. esac
  8409. else
  8410. lt_prog_compiler_pic=
  8411. lt_prog_compiler_can_build_shared=no
  8412. fi
  8413. fi
  8414. #
  8415. # Check to make sure the static flag actually works.
  8416. #
  8417. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8419. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8420. if test ${lt_cv_prog_compiler_static_works+y}
  8421. then :
  8422. printf %s "(cached) " >&6
  8423. else $as_nop
  8424. lt_cv_prog_compiler_static_works=no
  8425. save_LDFLAGS=$LDFLAGS
  8426. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8427. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8428. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8429. # The linker can only warn and ignore the option if not recognized
  8430. # So say no if there are warnings
  8431. if test -s conftest.err; then
  8432. # Append any errors to the config.log.
  8433. cat conftest.err 1>&5
  8434. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8435. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8436. if diff conftest.exp conftest.er2 >/dev/null; then
  8437. lt_cv_prog_compiler_static_works=yes
  8438. fi
  8439. else
  8440. lt_cv_prog_compiler_static_works=yes
  8441. fi
  8442. fi
  8443. $RM -r conftest*
  8444. LDFLAGS=$save_LDFLAGS
  8445. fi
  8446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8447. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8448. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8449. :
  8450. else
  8451. lt_prog_compiler_static=
  8452. fi
  8453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8454. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8455. if test ${lt_cv_prog_compiler_c_o+y}
  8456. then :
  8457. printf %s "(cached) " >&6
  8458. else $as_nop
  8459. lt_cv_prog_compiler_c_o=no
  8460. $RM -r conftest 2>/dev/null
  8461. mkdir conftest
  8462. cd conftest
  8463. mkdir out
  8464. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8465. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8466. # Insert the option either (1) after the last *FLAGS variable, or
  8467. # (2) before a word containing "conftest.", or (3) at the end.
  8468. # Note that $ac_compile itself does not contain backslashes and begins
  8469. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8470. lt_compile=`echo "$ac_compile" | $SED \
  8471. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8472. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8473. -e 's:$: $lt_compiler_flag:'`
  8474. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8475. (eval "$lt_compile" 2>out/conftest.err)
  8476. ac_status=$?
  8477. cat out/conftest.err >&5
  8478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8479. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8480. then
  8481. # The compiler can only warn and ignore the option if not recognized
  8482. # So say no if there are warnings
  8483. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8484. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8485. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8486. lt_cv_prog_compiler_c_o=yes
  8487. fi
  8488. fi
  8489. chmod u+w . 2>&5
  8490. $RM conftest*
  8491. # SGI C++ compiler will create directory out/ii_files/ for
  8492. # template instantiation
  8493. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8494. $RM out/* && rmdir out
  8495. cd ..
  8496. $RM -r conftest
  8497. $RM conftest*
  8498. fi
  8499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8500. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8502. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8503. if test ${lt_cv_prog_compiler_c_o+y}
  8504. then :
  8505. printf %s "(cached) " >&6
  8506. else $as_nop
  8507. lt_cv_prog_compiler_c_o=no
  8508. $RM -r conftest 2>/dev/null
  8509. mkdir conftest
  8510. cd conftest
  8511. mkdir out
  8512. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8513. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8514. # Insert the option either (1) after the last *FLAGS variable, or
  8515. # (2) before a word containing "conftest.", or (3) at the end.
  8516. # Note that $ac_compile itself does not contain backslashes and begins
  8517. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8518. lt_compile=`echo "$ac_compile" | $SED \
  8519. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8520. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8521. -e 's:$: $lt_compiler_flag:'`
  8522. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8523. (eval "$lt_compile" 2>out/conftest.err)
  8524. ac_status=$?
  8525. cat out/conftest.err >&5
  8526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8527. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8528. then
  8529. # The compiler can only warn and ignore the option if not recognized
  8530. # So say no if there are warnings
  8531. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8532. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8533. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8534. lt_cv_prog_compiler_c_o=yes
  8535. fi
  8536. fi
  8537. chmod u+w . 2>&5
  8538. $RM conftest*
  8539. # SGI C++ compiler will create directory out/ii_files/ for
  8540. # template instantiation
  8541. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8542. $RM out/* && rmdir out
  8543. cd ..
  8544. $RM -r conftest
  8545. $RM conftest*
  8546. fi
  8547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8548. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8549. hard_links=nottested
  8550. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8551. # do not overwrite the value of need_locks provided by the user
  8552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8553. printf %s "checking if we can lock with hard links... " >&6; }
  8554. hard_links=yes
  8555. $RM conftest*
  8556. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8557. touch conftest.a
  8558. ln conftest.a conftest.b 2>&5 || hard_links=no
  8559. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8561. printf "%s\n" "$hard_links" >&6; }
  8562. if test no = "$hard_links"; then
  8563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8564. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8565. need_locks=warn
  8566. fi
  8567. else
  8568. need_locks=no
  8569. fi
  8570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8571. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8572. runpath_var=
  8573. allow_undefined_flag=
  8574. always_export_symbols=no
  8575. archive_cmds=
  8576. archive_expsym_cmds=
  8577. compiler_needs_object=no
  8578. enable_shared_with_static_runtimes=no
  8579. export_dynamic_flag_spec=
  8580. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8581. hardcode_automatic=no
  8582. hardcode_direct=no
  8583. hardcode_direct_absolute=no
  8584. hardcode_libdir_flag_spec=
  8585. hardcode_libdir_separator=
  8586. hardcode_minus_L=no
  8587. hardcode_shlibpath_var=unsupported
  8588. inherit_rpath=no
  8589. link_all_deplibs=unknown
  8590. module_cmds=
  8591. module_expsym_cmds=
  8592. old_archive_from_new_cmds=
  8593. old_archive_from_expsyms_cmds=
  8594. thread_safe_flag_spec=
  8595. whole_archive_flag_spec=
  8596. # include_expsyms should be a list of space-separated symbols to be *always*
  8597. # included in the symbol list
  8598. include_expsyms=
  8599. # exclude_expsyms can be an extended regexp of symbols to exclude
  8600. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8601. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8602. # as well as any symbol that contains 'd'.
  8603. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8604. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8605. # platforms (ab)use it in PIC code, but their linkers get confused if
  8606. # the symbol is explicitly referenced. Since portable code cannot
  8607. # rely on this symbol name, it's probably fine to never include it in
  8608. # preloaded symbol tables.
  8609. # Exclude shared library initialization/finalization symbols.
  8610. extract_expsyms_cmds=
  8611. case $host_os in
  8612. cygwin* | mingw* | windows* | pw32* | cegcc*)
  8613. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  8614. # When not using gcc, we currently assume that we are using
  8615. # Microsoft Visual C++ or Intel C++ Compiler.
  8616. if test yes != "$GCC"; then
  8617. with_gnu_ld=no
  8618. fi
  8619. ;;
  8620. interix*)
  8621. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  8622. with_gnu_ld=yes
  8623. ;;
  8624. openbsd* | bitrig*)
  8625. with_gnu_ld=no
  8626. ;;
  8627. esac
  8628. ld_shlibs=yes
  8629. # On some targets, GNU ld is compatible enough with the native linker
  8630. # that we're better off using the native interface for both.
  8631. lt_use_gnu_ld_interface=no
  8632. if test yes = "$with_gnu_ld"; then
  8633. case $host_os in
  8634. aix*)
  8635. # The AIX port of GNU ld has always aspired to compatibility
  8636. # with the native linker. However, as the warning in the GNU ld
  8637. # block says, versions before 2.19.5* couldn't really create working
  8638. # shared libraries, regardless of the interface used.
  8639. case `$LD -v 2>&1` in
  8640. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8641. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8642. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8643. *)
  8644. lt_use_gnu_ld_interface=yes
  8645. ;;
  8646. esac
  8647. ;;
  8648. *)
  8649. lt_use_gnu_ld_interface=yes
  8650. ;;
  8651. esac
  8652. fi
  8653. if test yes = "$lt_use_gnu_ld_interface"; then
  8654. # If archive_cmds runs LD, not CC, wlarc should be empty
  8655. wlarc='$wl'
  8656. # Set some defaults for GNU ld with shared library support. These
  8657. # are reset later if shared libraries are not supported. Putting them
  8658. # here allows them to be overridden if necessary.
  8659. runpath_var=LD_RUN_PATH
  8660. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8661. export_dynamic_flag_spec='$wl--export-dynamic'
  8662. # ancient GNU ld didn't support --whole-archive et. al.
  8663. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8664. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8665. else
  8666. whole_archive_flag_spec=
  8667. fi
  8668. supports_anon_versioning=no
  8669. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8670. *GNU\ gold*) supports_anon_versioning=yes ;;
  8671. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8672. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8673. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8674. *\ 2.11.*) ;; # other 2.11 versions
  8675. *) supports_anon_versioning=yes ;;
  8676. esac
  8677. # See if GNU ld supports shared libraries.
  8678. case $host_os in
  8679. aix[3-9]*)
  8680. # On AIX/PPC, the GNU linker is very broken
  8681. if test ia64 != "$host_cpu"; then
  8682. ld_shlibs=no
  8683. cat <<_LT_EOF 1>&2
  8684. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8685. *** to be unable to reliably create shared libraries on AIX.
  8686. *** Therefore, libtool is disabling shared libraries support. If you
  8687. *** really care for shared libraries, you may want to install binutils
  8688. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8689. *** You will then need to restart the configuration process.
  8690. _LT_EOF
  8691. fi
  8692. ;;
  8693. amigaos*)
  8694. case $host_cpu in
  8695. powerpc)
  8696. # see comment about AmigaOS4 .so support
  8697. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8698. archive_expsym_cmds=''
  8699. ;;
  8700. m68k)
  8701. 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)'
  8702. hardcode_libdir_flag_spec='-L$libdir'
  8703. hardcode_minus_L=yes
  8704. ;;
  8705. esac
  8706. ;;
  8707. beos*)
  8708. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8709. allow_undefined_flag=unsupported
  8710. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8711. # support --undefined. This deserves some investigation. FIXME
  8712. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8713. else
  8714. ld_shlibs=no
  8715. fi
  8716. ;;
  8717. cygwin* | mingw* | windows* | pw32* | cegcc*)
  8718. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8719. # as there is no search path for DLLs.
  8720. hardcode_libdir_flag_spec='-L$libdir'
  8721. export_dynamic_flag_spec='$wl--export-all-symbols'
  8722. allow_undefined_flag=unsupported
  8723. always_export_symbols=no
  8724. enable_shared_with_static_runtimes=yes
  8725. 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'
  8726. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8727. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8728. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8729. # If the export-symbols file already is a .def file, use it as
  8730. # is; otherwise, prepend EXPORTS...
  8731. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8732. cp $export_symbols $output_objdir/$soname.def;
  8733. else
  8734. echo EXPORTS > $output_objdir/$soname.def;
  8735. cat $export_symbols >> $output_objdir/$soname.def;
  8736. fi~
  8737. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8738. else
  8739. ld_shlibs=no
  8740. fi
  8741. ;;
  8742. haiku*)
  8743. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8744. link_all_deplibs=yes
  8745. ;;
  8746. os2*)
  8747. hardcode_libdir_flag_spec='-L$libdir'
  8748. hardcode_minus_L=yes
  8749. allow_undefined_flag=unsupported
  8750. shrext_cmds=.dll
  8751. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8752. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8753. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8754. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8755. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8756. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8757. emximp -o $lib $output_objdir/$libname.def'
  8758. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8759. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8760. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8761. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8762. prefix_cmds="$SED"~
  8763. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8764. prefix_cmds="$prefix_cmds -e 1d";
  8765. fi~
  8766. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8767. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8768. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8769. emximp -o $lib $output_objdir/$libname.def'
  8770. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8771. enable_shared_with_static_runtimes=yes
  8772. file_list_spec='@'
  8773. ;;
  8774. interix[3-9]*)
  8775. hardcode_direct=no
  8776. hardcode_shlibpath_var=no
  8777. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8778. export_dynamic_flag_spec='$wl-E'
  8779. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8780. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8781. # default) and relocated if they conflict, which is a slow very memory
  8782. # consuming and fragmenting process. To avoid this, we pick a random,
  8783. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8784. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8785. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8786. 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'
  8787. ;;
  8788. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8789. tmp_diet=no
  8790. if test linux-dietlibc = "$host_os"; then
  8791. case $cc_basename in
  8792. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8793. esac
  8794. fi
  8795. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8796. && test no = "$tmp_diet"
  8797. then
  8798. tmp_addflag=' $pic_flag'
  8799. tmp_sharedflag='-shared'
  8800. case $cc_basename,$host_cpu in
  8801. pgcc*) # Portland Group C compiler
  8802. 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'
  8803. tmp_addflag=' $pic_flag'
  8804. ;;
  8805. pgf77* | pgf90* | pgf95* | pgfortran*)
  8806. # Portland Group f77 and f90 compilers
  8807. 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'
  8808. tmp_addflag=' $pic_flag -Mnomain' ;;
  8809. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8810. tmp_addflag=' -i_dynamic' ;;
  8811. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8812. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8813. ifc* | ifort*) # Intel Fortran compiler
  8814. tmp_addflag=' -nofor_main' ;;
  8815. lf95*) # Lahey Fortran 8.1
  8816. whole_archive_flag_spec=
  8817. tmp_sharedflag='--shared' ;;
  8818. nagfor*) # NAGFOR 5.3
  8819. tmp_sharedflag='-Wl,-shared' ;;
  8820. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8821. tmp_sharedflag='-qmkshrobj'
  8822. tmp_addflag= ;;
  8823. nvcc*) # Cuda Compiler Driver 2.2
  8824. 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'
  8825. compiler_needs_object=yes
  8826. ;;
  8827. esac
  8828. case `$CC -V 2>&1 | sed 5q` in
  8829. *Sun\ C*) # Sun C 5.9
  8830. 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'
  8831. compiler_needs_object=yes
  8832. tmp_sharedflag='-G' ;;
  8833. *Sun\ F*) # Sun Fortran 8.3
  8834. tmp_sharedflag='-G' ;;
  8835. esac
  8836. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8837. if test yes = "$supports_anon_versioning"; then
  8838. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8839. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8840. echo "local: *; };" >> $output_objdir/$libname.ver~
  8841. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8842. fi
  8843. case $cc_basename in
  8844. tcc*)
  8845. export_dynamic_flag_spec='-rdynamic'
  8846. ;;
  8847. xlf* | bgf* | bgxlf* | mpixlf*)
  8848. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8849. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8850. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8851. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8852. if test yes = "$supports_anon_versioning"; then
  8853. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8854. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8855. echo "local: *; };" >> $output_objdir/$libname.ver~
  8856. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8857. fi
  8858. ;;
  8859. esac
  8860. else
  8861. ld_shlibs=no
  8862. fi
  8863. ;;
  8864. netbsd*)
  8865. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8866. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8867. wlarc=
  8868. else
  8869. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8870. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8871. fi
  8872. ;;
  8873. solaris*)
  8874. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8875. ld_shlibs=no
  8876. cat <<_LT_EOF 1>&2
  8877. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8878. *** create shared libraries on Solaris systems. Therefore, libtool
  8879. *** is disabling shared libraries support. We urge you to upgrade GNU
  8880. *** binutils to release 2.9.1 or newer. Another option is to modify
  8881. *** your PATH or compiler configuration so that the native linker is
  8882. *** used, and then restart.
  8883. _LT_EOF
  8884. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8885. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8886. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8887. else
  8888. ld_shlibs=no
  8889. fi
  8890. ;;
  8891. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8892. case `$LD -v 2>&1` in
  8893. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8894. ld_shlibs=no
  8895. cat <<_LT_EOF 1>&2
  8896. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8897. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8898. *** is disabling shared libraries support. We urge you to upgrade GNU
  8899. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8900. *** your PATH or compiler configuration so that the native linker is
  8901. *** used, and then restart.
  8902. _LT_EOF
  8903. ;;
  8904. *)
  8905. # For security reasons, it is highly recommended that you always
  8906. # use absolute paths for naming shared libraries, and exclude the
  8907. # DT_RUNPATH tag from executables and libraries. But doing so
  8908. # requires that you compile everything twice, which is a pain.
  8909. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8910. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8911. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8912. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8913. else
  8914. ld_shlibs=no
  8915. fi
  8916. ;;
  8917. esac
  8918. ;;
  8919. sunos4*)
  8920. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8921. wlarc=
  8922. hardcode_direct=yes
  8923. hardcode_shlibpath_var=no
  8924. ;;
  8925. *)
  8926. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8927. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8928. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8929. else
  8930. ld_shlibs=no
  8931. fi
  8932. ;;
  8933. esac
  8934. if test no = "$ld_shlibs"; then
  8935. runpath_var=
  8936. hardcode_libdir_flag_spec=
  8937. export_dynamic_flag_spec=
  8938. whole_archive_flag_spec=
  8939. fi
  8940. else
  8941. # PORTME fill in a description of your system's linker (not GNU ld)
  8942. case $host_os in
  8943. aix3*)
  8944. allow_undefined_flag=unsupported
  8945. always_export_symbols=yes
  8946. 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'
  8947. # Note: this linker hardcodes the directories in LIBPATH if there
  8948. # are no directories specified by -L.
  8949. hardcode_minus_L=yes
  8950. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8951. # Neither direct hardcoding nor static linking is supported with a
  8952. # broken collect2.
  8953. hardcode_direct=unsupported
  8954. fi
  8955. ;;
  8956. aix[4-9]*)
  8957. if test ia64 = "$host_cpu"; then
  8958. # On IA64, the linker does run time linking by default, so we don't
  8959. # have to do anything special.
  8960. aix_use_runtimelinking=no
  8961. exp_sym_flag='-Bexport'
  8962. no_entry_flag=
  8963. else
  8964. # If we're using GNU nm, then we don't want the "-C" option.
  8965. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8966. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8967. # weak defined symbols like other global defined symbols, whereas
  8968. # GNU nm marks them as "W".
  8969. # While the 'weak' keyword is ignored in the Export File, we need
  8970. # it in the Import File for the 'aix-soname' feature, so we have
  8971. # to replace the "-B" option with "-P" for AIX nm.
  8972. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8973. 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'
  8974. else
  8975. 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'
  8976. fi
  8977. aix_use_runtimelinking=no
  8978. # Test if we are trying to use run time linking or normal
  8979. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8980. # have runtime linking enabled, and use it for executables.
  8981. # For shared libraries, we enable/disable runtime linking
  8982. # depending on the kind of the shared library created -
  8983. # when "with_aix_soname,aix_use_runtimelinking" is:
  8984. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8985. # "aix,yes" lib.so shared, rtl:yes, for executables
  8986. # lib.a static archive
  8987. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8988. # lib.a(lib.so.V) shared, rtl:no, for executables
  8989. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8990. # lib.a(lib.so.V) shared, rtl:no
  8991. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8992. # lib.a static archive
  8993. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8994. for ld_flag in $LDFLAGS; do
  8995. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8996. aix_use_runtimelinking=yes
  8997. break
  8998. fi
  8999. done
  9000. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9001. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9002. # so we don't have lib.a shared libs to link our executables.
  9003. # We have to force runtime linking in this case.
  9004. aix_use_runtimelinking=yes
  9005. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9006. fi
  9007. ;;
  9008. esac
  9009. exp_sym_flag='-bexport'
  9010. no_entry_flag='-bnoentry'
  9011. fi
  9012. # When large executables or shared objects are built, AIX ld can
  9013. # have problems creating the table of contents. If linking a library
  9014. # or program results in "error TOC overflow" add -mminimal-toc to
  9015. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9016. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9017. archive_cmds=''
  9018. hardcode_direct=yes
  9019. hardcode_direct_absolute=yes
  9020. hardcode_libdir_separator=':'
  9021. link_all_deplibs=yes
  9022. file_list_spec='$wl-f,'
  9023. case $with_aix_soname,$aix_use_runtimelinking in
  9024. aix,*) ;; # traditional, no import file
  9025. svr4,* | *,yes) # use import file
  9026. # The Import File defines what to hardcode.
  9027. hardcode_direct=no
  9028. hardcode_direct_absolute=no
  9029. ;;
  9030. esac
  9031. if test yes = "$GCC"; then
  9032. case $host_os in aix4.[012]|aix4.[012].*)
  9033. # We only want to do this on AIX 4.2 and lower, the check
  9034. # below for broken collect2 doesn't work under 4.3+
  9035. collect2name=`$CC -print-prog-name=collect2`
  9036. if test -f "$collect2name" &&
  9037. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9038. then
  9039. # We have reworked collect2
  9040. :
  9041. else
  9042. # We have old collect2
  9043. hardcode_direct=unsupported
  9044. # It fails to find uninstalled libraries when the uninstalled
  9045. # path is not listed in the libpath. Setting hardcode_minus_L
  9046. # to unsupported forces relinking
  9047. hardcode_minus_L=yes
  9048. hardcode_libdir_flag_spec='-L$libdir'
  9049. hardcode_libdir_separator=
  9050. fi
  9051. ;;
  9052. esac
  9053. shared_flag='-shared'
  9054. if test yes = "$aix_use_runtimelinking"; then
  9055. shared_flag="$shared_flag "'$wl-G'
  9056. fi
  9057. # Need to ensure runtime linking is disabled for the traditional
  9058. # shared library, or the linker may eventually find shared libraries
  9059. # /with/ Import File - we do not want to mix them.
  9060. shared_flag_aix='-shared'
  9061. shared_flag_svr4='-shared $wl-G'
  9062. else
  9063. # not using gcc
  9064. if test ia64 = "$host_cpu"; then
  9065. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9066. # chokes on -Wl,-G. The following line is correct:
  9067. shared_flag='-G'
  9068. else
  9069. if test yes = "$aix_use_runtimelinking"; then
  9070. shared_flag='$wl-G'
  9071. else
  9072. shared_flag='$wl-bM:SRE'
  9073. fi
  9074. shared_flag_aix='$wl-bM:SRE'
  9075. shared_flag_svr4='$wl-G'
  9076. fi
  9077. fi
  9078. export_dynamic_flag_spec='$wl-bexpall'
  9079. # It seems that -bexpall does not export symbols beginning with
  9080. # underscore (_), so it is better to generate a list of symbols to export.
  9081. always_export_symbols=yes
  9082. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9083. # Warning - without using the other runtime loading flags (-brtl),
  9084. # -berok will link without error, but may produce a broken library.
  9085. allow_undefined_flag='-berok'
  9086. # Determine the default libpath from the value encoded in an
  9087. # empty executable.
  9088. if test set = "${lt_cv_aix_libpath+set}"; then
  9089. aix_libpath=$lt_cv_aix_libpath
  9090. else
  9091. if test ${lt_cv_aix_libpath_+y}
  9092. then :
  9093. printf %s "(cached) " >&6
  9094. else $as_nop
  9095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9096. /* end confdefs.h. */
  9097. int
  9098. main (void)
  9099. {
  9100. ;
  9101. return 0;
  9102. }
  9103. _ACEOF
  9104. if ac_fn_c_try_link "$LINENO"
  9105. then :
  9106. lt_aix_libpath_sed='
  9107. /Import File Strings/,/^$/ {
  9108. /^0/ {
  9109. s/^0 *\([^ ]*\) *$/\1/
  9110. p
  9111. }
  9112. }'
  9113. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9114. # Check for a 64-bit object if we didn't find anything.
  9115. if test -z "$lt_cv_aix_libpath_"; then
  9116. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9117. fi
  9118. fi
  9119. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9120. conftest$ac_exeext conftest.$ac_ext
  9121. if test -z "$lt_cv_aix_libpath_"; then
  9122. lt_cv_aix_libpath_=/usr/lib:/lib
  9123. fi
  9124. fi
  9125. aix_libpath=$lt_cv_aix_libpath_
  9126. fi
  9127. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9128. 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
  9129. else
  9130. if test ia64 = "$host_cpu"; then
  9131. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9132. allow_undefined_flag="-z nodefs"
  9133. 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"
  9134. else
  9135. # Determine the default libpath from the value encoded in an
  9136. # empty executable.
  9137. if test set = "${lt_cv_aix_libpath+set}"; then
  9138. aix_libpath=$lt_cv_aix_libpath
  9139. else
  9140. if test ${lt_cv_aix_libpath_+y}
  9141. then :
  9142. printf %s "(cached) " >&6
  9143. else $as_nop
  9144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9145. /* end confdefs.h. */
  9146. int
  9147. main (void)
  9148. {
  9149. ;
  9150. return 0;
  9151. }
  9152. _ACEOF
  9153. if ac_fn_c_try_link "$LINENO"
  9154. then :
  9155. lt_aix_libpath_sed='
  9156. /Import File Strings/,/^$/ {
  9157. /^0/ {
  9158. s/^0 *\([^ ]*\) *$/\1/
  9159. p
  9160. }
  9161. }'
  9162. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9163. # Check for a 64-bit object if we didn't find anything.
  9164. if test -z "$lt_cv_aix_libpath_"; then
  9165. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9166. fi
  9167. fi
  9168. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9169. conftest$ac_exeext conftest.$ac_ext
  9170. if test -z "$lt_cv_aix_libpath_"; then
  9171. lt_cv_aix_libpath_=/usr/lib:/lib
  9172. fi
  9173. fi
  9174. aix_libpath=$lt_cv_aix_libpath_
  9175. fi
  9176. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9177. # Warning - without using the other run time loading flags,
  9178. # -berok will link without error, but may produce a broken library.
  9179. no_undefined_flag=' $wl-bernotok'
  9180. allow_undefined_flag=' $wl-berok'
  9181. if test yes = "$with_gnu_ld"; then
  9182. # We only use this code for GNU lds that support --whole-archive.
  9183. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9184. else
  9185. # Exported symbols can be pulled into shared objects from archives
  9186. whole_archive_flag_spec='$convenience'
  9187. fi
  9188. archive_cmds_need_lc=yes
  9189. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9190. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9191. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9192. if test svr4 != "$with_aix_soname"; then
  9193. # This is similar to how AIX traditionally builds its shared libraries.
  9194. 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'
  9195. fi
  9196. if test aix != "$with_aix_soname"; then
  9197. 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'
  9198. else
  9199. # used by -dlpreopen to get the symbols
  9200. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9201. fi
  9202. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9203. fi
  9204. fi
  9205. ;;
  9206. amigaos*)
  9207. case $host_cpu in
  9208. powerpc)
  9209. # see comment about AmigaOS4 .so support
  9210. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9211. archive_expsym_cmds=''
  9212. ;;
  9213. m68k)
  9214. 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)'
  9215. hardcode_libdir_flag_spec='-L$libdir'
  9216. hardcode_minus_L=yes
  9217. ;;
  9218. esac
  9219. ;;
  9220. bsdi[45]*)
  9221. export_dynamic_flag_spec=-rdynamic
  9222. ;;
  9223. cygwin* | mingw* | windows* | pw32* | cegcc*)
  9224. # When not using gcc, we currently assume that we are using
  9225. # Microsoft Visual C++ or Intel C++ Compiler.
  9226. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9227. # no search path for DLLs.
  9228. case $cc_basename in
  9229. cl* | icl*)
  9230. # Native MSVC or ICC
  9231. hardcode_libdir_flag_spec=' '
  9232. allow_undefined_flag=unsupported
  9233. always_export_symbols=yes
  9234. file_list_spec='@'
  9235. # Tell ltmain to make .lib files, not .a files.
  9236. libext=lib
  9237. # Tell ltmain to make .dll files, not .so files.
  9238. shrext_cmds=.dll
  9239. # FIXME: Setting linknames here is a bad hack.
  9240. archive_cmds='$CC -Fe $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9241. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9242. cp "$export_symbols" "$output_objdir/$soname.def";
  9243. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9244. else
  9245. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9246. fi~
  9247. $CC -Fe $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9248. linknames='
  9249. # The linker will not automatically build a static lib if we build a DLL.
  9250. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9251. enable_shared_with_static_runtimes=yes
  9252. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9253. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9254. # Don't use ranlib
  9255. old_postinstall_cmds='chmod 644 $oldlib'
  9256. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9257. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9258. case $lt_outputfile in
  9259. *.exe|*.EXE) ;;
  9260. *)
  9261. lt_outputfile=$lt_outputfile.exe
  9262. lt_tool_outputfile=$lt_tool_outputfile.exe
  9263. ;;
  9264. esac~
  9265. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9266. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9267. $RM "$lt_outputfile.manifest";
  9268. fi'
  9269. ;;
  9270. *)
  9271. # Assume MSVC and ICC wrapper
  9272. hardcode_libdir_flag_spec=' '
  9273. allow_undefined_flag=unsupported
  9274. # Tell ltmain to make .lib files, not .a files.
  9275. libext=lib
  9276. # Tell ltmain to make .dll files, not .so files.
  9277. shrext_cmds=.dll
  9278. # FIXME: Setting linknames here is a bad hack.
  9279. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9280. # The linker will automatically build a .lib file if we build a DLL.
  9281. old_archive_from_new_cmds='true'
  9282. # FIXME: Should let the user specify the lib program.
  9283. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9284. enable_shared_with_static_runtimes=yes
  9285. ;;
  9286. esac
  9287. ;;
  9288. darwin* | rhapsody*)
  9289. archive_cmds_need_lc=no
  9290. hardcode_direct=no
  9291. hardcode_automatic=yes
  9292. hardcode_shlibpath_var=unsupported
  9293. if test yes = "$lt_cv_ld_force_load"; then
  9294. 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\"`'
  9295. else
  9296. whole_archive_flag_spec=''
  9297. fi
  9298. link_all_deplibs=yes
  9299. allow_undefined_flag=$_lt_dar_allow_undefined
  9300. case $cc_basename in
  9301. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9302. *) _lt_dar_can_shared=$GCC ;;
  9303. esac
  9304. if test yes = "$_lt_dar_can_shared"; then
  9305. output_verbose_link_cmd=func_echo_all
  9306. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9307. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9308. 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"
  9309. 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"
  9310. else
  9311. ld_shlibs=no
  9312. fi
  9313. ;;
  9314. dgux*)
  9315. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9316. hardcode_libdir_flag_spec='-L$libdir'
  9317. hardcode_shlibpath_var=no
  9318. ;;
  9319. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9320. # support. Future versions do this automatically, but an explicit c++rt0.o
  9321. # does not break anything, and helps significantly (at the cost of a little
  9322. # extra space).
  9323. freebsd2.2*)
  9324. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9325. hardcode_libdir_flag_spec='-R$libdir'
  9326. hardcode_direct=yes
  9327. hardcode_shlibpath_var=no
  9328. ;;
  9329. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9330. freebsd2.*)
  9331. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9332. hardcode_direct=yes
  9333. hardcode_minus_L=yes
  9334. hardcode_shlibpath_var=no
  9335. ;;
  9336. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9337. freebsd* | dragonfly* | midnightbsd*)
  9338. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9339. hardcode_libdir_flag_spec='-R$libdir'
  9340. hardcode_direct=yes
  9341. hardcode_shlibpath_var=no
  9342. ;;
  9343. hpux9*)
  9344. if test yes = "$GCC"; then
  9345. 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'
  9346. else
  9347. 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'
  9348. fi
  9349. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9350. hardcode_libdir_separator=:
  9351. hardcode_direct=yes
  9352. # hardcode_minus_L: Not really in the search PATH,
  9353. # but as the default location of the library.
  9354. hardcode_minus_L=yes
  9355. export_dynamic_flag_spec='$wl-E'
  9356. ;;
  9357. hpux10*)
  9358. if test yes,no = "$GCC,$with_gnu_ld"; then
  9359. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9360. else
  9361. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9362. fi
  9363. if test no = "$with_gnu_ld"; then
  9364. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9365. hardcode_libdir_separator=:
  9366. hardcode_direct=yes
  9367. hardcode_direct_absolute=yes
  9368. export_dynamic_flag_spec='$wl-E'
  9369. # hardcode_minus_L: Not really in the search PATH,
  9370. # but as the default location of the library.
  9371. hardcode_minus_L=yes
  9372. fi
  9373. ;;
  9374. hpux11*)
  9375. if test yes,no = "$GCC,$with_gnu_ld"; then
  9376. case $host_cpu in
  9377. hppa*64*)
  9378. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9379. ;;
  9380. ia64*)
  9381. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9382. ;;
  9383. *)
  9384. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9385. ;;
  9386. esac
  9387. else
  9388. case $host_cpu in
  9389. hppa*64*)
  9390. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9391. ;;
  9392. ia64*)
  9393. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9394. ;;
  9395. *)
  9396. # Older versions of the 11.00 compiler do not understand -b yet
  9397. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9399. printf %s "checking if $CC understands -b... " >&6; }
  9400. if test ${lt_cv_prog_compiler__b+y}
  9401. then :
  9402. printf %s "(cached) " >&6
  9403. else $as_nop
  9404. lt_cv_prog_compiler__b=no
  9405. save_LDFLAGS=$LDFLAGS
  9406. LDFLAGS="$LDFLAGS -b"
  9407. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9408. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9409. # The linker can only warn and ignore the option if not recognized
  9410. # So say no if there are warnings
  9411. if test -s conftest.err; then
  9412. # Append any errors to the config.log.
  9413. cat conftest.err 1>&5
  9414. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9415. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9416. if diff conftest.exp conftest.er2 >/dev/null; then
  9417. lt_cv_prog_compiler__b=yes
  9418. fi
  9419. else
  9420. lt_cv_prog_compiler__b=yes
  9421. fi
  9422. fi
  9423. $RM -r conftest*
  9424. LDFLAGS=$save_LDFLAGS
  9425. fi
  9426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9427. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9428. if test yes = "$lt_cv_prog_compiler__b"; then
  9429. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9430. else
  9431. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9432. fi
  9433. ;;
  9434. esac
  9435. fi
  9436. if test no = "$with_gnu_ld"; then
  9437. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9438. hardcode_libdir_separator=:
  9439. case $host_cpu in
  9440. hppa*64*|ia64*)
  9441. hardcode_direct=no
  9442. hardcode_shlibpath_var=no
  9443. ;;
  9444. *)
  9445. hardcode_direct=yes
  9446. hardcode_direct_absolute=yes
  9447. export_dynamic_flag_spec='$wl-E'
  9448. # hardcode_minus_L: Not really in the search PATH,
  9449. # but as the default location of the library.
  9450. hardcode_minus_L=yes
  9451. ;;
  9452. esac
  9453. fi
  9454. ;;
  9455. irix5* | irix6* | nonstopux*)
  9456. if test yes = "$GCC"; then
  9457. 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'
  9458. # Try to use the -exported_symbol ld option, if it does not
  9459. # work, assume that -exports_file does not work either and
  9460. # implicitly export all symbols.
  9461. # This should be the same for all languages, so no per-tag cache variable.
  9462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9463. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9464. if test ${lt_cv_irix_exported_symbol+y}
  9465. then :
  9466. printf %s "(cached) " >&6
  9467. else $as_nop
  9468. save_LDFLAGS=$LDFLAGS
  9469. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9471. /* end confdefs.h. */
  9472. int foo (void) { return 0; }
  9473. _ACEOF
  9474. if ac_fn_c_try_link "$LINENO"
  9475. then :
  9476. lt_cv_irix_exported_symbol=yes
  9477. else $as_nop
  9478. lt_cv_irix_exported_symbol=no
  9479. fi
  9480. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9481. conftest$ac_exeext conftest.$ac_ext
  9482. LDFLAGS=$save_LDFLAGS
  9483. fi
  9484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9485. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9486. if test yes = "$lt_cv_irix_exported_symbol"; then
  9487. 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'
  9488. fi
  9489. else
  9490. 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'
  9491. 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'
  9492. fi
  9493. archive_cmds_need_lc='no'
  9494. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9495. hardcode_libdir_separator=:
  9496. inherit_rpath=yes
  9497. link_all_deplibs=yes
  9498. ;;
  9499. linux*)
  9500. case $cc_basename in
  9501. tcc*)
  9502. # Fabrice Bellard et al's Tiny C Compiler
  9503. ld_shlibs=yes
  9504. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9505. ;;
  9506. esac
  9507. ;;
  9508. netbsd*)
  9509. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9510. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9511. else
  9512. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9513. fi
  9514. hardcode_libdir_flag_spec='-R$libdir'
  9515. hardcode_direct=yes
  9516. hardcode_shlibpath_var=no
  9517. ;;
  9518. newsos6)
  9519. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9520. hardcode_direct=yes
  9521. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9522. hardcode_libdir_separator=:
  9523. hardcode_shlibpath_var=no
  9524. ;;
  9525. *nto* | *qnx*)
  9526. ;;
  9527. openbsd* | bitrig*)
  9528. if test -f /usr/libexec/ld.so; then
  9529. hardcode_direct=yes
  9530. hardcode_shlibpath_var=no
  9531. hardcode_direct_absolute=yes
  9532. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9533. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9534. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9535. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9536. export_dynamic_flag_spec='$wl-E'
  9537. else
  9538. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9539. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9540. fi
  9541. else
  9542. ld_shlibs=no
  9543. fi
  9544. ;;
  9545. os2*)
  9546. hardcode_libdir_flag_spec='-L$libdir'
  9547. hardcode_minus_L=yes
  9548. allow_undefined_flag=unsupported
  9549. shrext_cmds=.dll
  9550. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9551. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9552. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9553. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9554. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9555. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9556. emximp -o $lib $output_objdir/$libname.def'
  9557. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9558. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9559. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9560. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9561. prefix_cmds="$SED"~
  9562. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9563. prefix_cmds="$prefix_cmds -e 1d";
  9564. fi~
  9565. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9566. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9567. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9568. emximp -o $lib $output_objdir/$libname.def'
  9569. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9570. enable_shared_with_static_runtimes=yes
  9571. file_list_spec='@'
  9572. ;;
  9573. osf3*)
  9574. if test yes = "$GCC"; then
  9575. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9576. 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'
  9577. else
  9578. allow_undefined_flag=' -expect_unresolved \*'
  9579. 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'
  9580. fi
  9581. archive_cmds_need_lc='no'
  9582. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9583. hardcode_libdir_separator=:
  9584. ;;
  9585. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9586. if test yes = "$GCC"; then
  9587. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9588. 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'
  9589. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9590. else
  9591. allow_undefined_flag=' -expect_unresolved \*'
  9592. 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'
  9593. 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~
  9594. $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'
  9595. # Both c and cxx compiler support -rpath directly
  9596. hardcode_libdir_flag_spec='-rpath $libdir'
  9597. fi
  9598. archive_cmds_need_lc='no'
  9599. hardcode_libdir_separator=:
  9600. ;;
  9601. solaris*)
  9602. no_undefined_flag=' -z defs'
  9603. if test yes = "$GCC"; then
  9604. wlarc='$wl'
  9605. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9606. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9607. $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'
  9608. else
  9609. case `$CC -V 2>&1` in
  9610. *"Compilers 5.0"*)
  9611. wlarc=''
  9612. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9613. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9614. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9615. ;;
  9616. *)
  9617. wlarc='$wl'
  9618. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9619. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9620. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9621. ;;
  9622. esac
  9623. fi
  9624. hardcode_libdir_flag_spec='-R$libdir'
  9625. hardcode_shlibpath_var=no
  9626. case $host_os in
  9627. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9628. *)
  9629. # The compiler driver will combine and reorder linker options,
  9630. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9631. # but is careful enough not to reorder.
  9632. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9633. if test yes = "$GCC"; then
  9634. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9635. else
  9636. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9637. fi
  9638. ;;
  9639. esac
  9640. link_all_deplibs=yes
  9641. ;;
  9642. sunos4*)
  9643. if test sequent = "$host_vendor"; then
  9644. # Use $CC to link under sequent, because it throws in some extra .o
  9645. # files that make .init and .fini sections work.
  9646. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9647. else
  9648. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9649. fi
  9650. hardcode_libdir_flag_spec='-L$libdir'
  9651. hardcode_direct=yes
  9652. hardcode_minus_L=yes
  9653. hardcode_shlibpath_var=no
  9654. ;;
  9655. sysv4)
  9656. case $host_vendor in
  9657. sni)
  9658. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9659. hardcode_direct=yes # is this really true???
  9660. ;;
  9661. siemens)
  9662. ## LD is ld it makes a PLAMLIB
  9663. ## CC just makes a GrossModule.
  9664. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9665. reload_cmds='$CC -r -o $output$reload_objs'
  9666. hardcode_direct=no
  9667. ;;
  9668. motorola)
  9669. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9670. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9671. ;;
  9672. esac
  9673. runpath_var='LD_RUN_PATH'
  9674. hardcode_shlibpath_var=no
  9675. ;;
  9676. sysv4.3*)
  9677. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9678. hardcode_shlibpath_var=no
  9679. export_dynamic_flag_spec='-Bexport'
  9680. ;;
  9681. sysv4*MP*)
  9682. if test -d /usr/nec; then
  9683. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9684. hardcode_shlibpath_var=no
  9685. runpath_var=LD_RUN_PATH
  9686. hardcode_runpath_var=yes
  9687. ld_shlibs=yes
  9688. fi
  9689. ;;
  9690. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9691. no_undefined_flag='$wl-z,text'
  9692. archive_cmds_need_lc=no
  9693. hardcode_shlibpath_var=no
  9694. runpath_var='LD_RUN_PATH'
  9695. if test yes = "$GCC"; then
  9696. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9697. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9698. else
  9699. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9700. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9701. fi
  9702. ;;
  9703. sysv5* | sco3.2v5* | sco5v6*)
  9704. # Note: We CANNOT use -z defs as we might desire, because we do not
  9705. # link with -lc, and that would cause any symbols used from libc to
  9706. # always be unresolved, which means just about no library would
  9707. # ever link correctly. If we're not using GNU ld we use -z text
  9708. # though, which does catch some bad symbols but isn't as heavy-handed
  9709. # as -z defs.
  9710. no_undefined_flag='$wl-z,text'
  9711. allow_undefined_flag='$wl-z,nodefs'
  9712. archive_cmds_need_lc=no
  9713. hardcode_shlibpath_var=no
  9714. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9715. hardcode_libdir_separator=':'
  9716. link_all_deplibs=yes
  9717. export_dynamic_flag_spec='$wl-Bexport'
  9718. runpath_var='LD_RUN_PATH'
  9719. if test yes = "$GCC"; then
  9720. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9721. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9722. else
  9723. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9724. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9725. fi
  9726. ;;
  9727. uts4*)
  9728. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9729. hardcode_libdir_flag_spec='-L$libdir'
  9730. hardcode_shlibpath_var=no
  9731. ;;
  9732. *)
  9733. ld_shlibs=no
  9734. ;;
  9735. esac
  9736. if test sni = "$host_vendor"; then
  9737. case $host in
  9738. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9739. export_dynamic_flag_spec='$wl-Blargedynsym'
  9740. ;;
  9741. esac
  9742. fi
  9743. fi
  9744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9745. printf "%s\n" "$ld_shlibs" >&6; }
  9746. test no = "$ld_shlibs" && can_build_shared=no
  9747. with_gnu_ld=$with_gnu_ld
  9748. #
  9749. # Do we need to explicitly link libc?
  9750. #
  9751. case "x$archive_cmds_need_lc" in
  9752. x|xyes)
  9753. # Assume -lc should be added
  9754. archive_cmds_need_lc=yes
  9755. if test yes,yes = "$GCC,$enable_shared"; then
  9756. case $archive_cmds in
  9757. *'~'*)
  9758. # FIXME: we may have to deal with multi-command sequences.
  9759. ;;
  9760. '$CC '*)
  9761. # Test whether the compiler implicitly links with -lc since on some
  9762. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9763. # to ld, don't add -lc before -lgcc.
  9764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9765. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9766. if test ${lt_cv_archive_cmds_need_lc+y}
  9767. then :
  9768. printf %s "(cached) " >&6
  9769. else $as_nop
  9770. $RM conftest*
  9771. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9772. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9773. (eval $ac_compile) 2>&5
  9774. ac_status=$?
  9775. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9776. test $ac_status = 0; } 2>conftest.err; then
  9777. soname=conftest
  9778. lib=conftest
  9779. libobjs=conftest.$ac_objext
  9780. deplibs=
  9781. wl=$lt_prog_compiler_wl
  9782. pic_flag=$lt_prog_compiler_pic
  9783. compiler_flags=-v
  9784. linker_flags=-v
  9785. verstring=
  9786. output_objdir=.
  9787. libname=conftest
  9788. lt_save_allow_undefined_flag=$allow_undefined_flag
  9789. allow_undefined_flag=
  9790. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9791. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9792. ac_status=$?
  9793. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9794. test $ac_status = 0; }
  9795. then
  9796. lt_cv_archive_cmds_need_lc=no
  9797. else
  9798. lt_cv_archive_cmds_need_lc=yes
  9799. fi
  9800. allow_undefined_flag=$lt_save_allow_undefined_flag
  9801. else
  9802. cat conftest.err 1>&5
  9803. fi
  9804. $RM conftest*
  9805. fi
  9806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9807. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9808. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9809. ;;
  9810. esac
  9811. fi
  9812. ;;
  9813. esac
  9814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9815. printf %s "checking dynamic linker characteristics... " >&6; }
  9816. if test yes = "$GCC"; then
  9817. case $host_os in
  9818. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9819. *) lt_awk_arg='/^libraries:/' ;;
  9820. esac
  9821. case $host_os in
  9822. mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9823. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9824. esac
  9825. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9826. case $lt_search_path_spec in
  9827. *\;*)
  9828. # if the path contains ";" then we assume it to be the separator
  9829. # otherwise default to the standard path separator (i.e. ":") - it is
  9830. # assumed that no part of a normal pathname contains ";" but that should
  9831. # okay in the real world where ";" in dirpaths is itself problematic.
  9832. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9833. ;;
  9834. *)
  9835. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9836. ;;
  9837. esac
  9838. # Ok, now we have the path, separated by spaces, we can step through it
  9839. # and add multilib dir if necessary...
  9840. lt_tmp_lt_search_path_spec=
  9841. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9842. # ...but if some path component already ends with the multilib dir we assume
  9843. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9844. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9845. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9846. lt_multi_os_dir=
  9847. ;;
  9848. esac
  9849. for lt_sys_path in $lt_search_path_spec; do
  9850. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9851. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9852. elif test -n "$lt_multi_os_dir"; then
  9853. test -d "$lt_sys_path" && \
  9854. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9855. fi
  9856. done
  9857. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9858. BEGIN {RS = " "; FS = "/|\n";} {
  9859. lt_foo = "";
  9860. lt_count = 0;
  9861. for (lt_i = NF; lt_i > 0; lt_i--) {
  9862. if ($lt_i != "" && $lt_i != ".") {
  9863. if ($lt_i == "..") {
  9864. lt_count++;
  9865. } else {
  9866. if (lt_count == 0) {
  9867. lt_foo = "/" $lt_i lt_foo;
  9868. } else {
  9869. lt_count--;
  9870. }
  9871. }
  9872. }
  9873. }
  9874. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9875. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9876. }'`
  9877. # AWK program above erroneously prepends '/' to C:/dos/paths
  9878. # for these hosts.
  9879. case $host_os in
  9880. mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9881. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9882. esac
  9883. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9884. else
  9885. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9886. fi
  9887. library_names_spec=
  9888. libname_spec='lib$name'
  9889. soname_spec=
  9890. shrext_cmds=.so
  9891. postinstall_cmds=
  9892. postuninstall_cmds=
  9893. finish_cmds=
  9894. finish_eval=
  9895. shlibpath_var=
  9896. shlibpath_overrides_runpath=unknown
  9897. version_type=none
  9898. dynamic_linker="$host_os ld.so"
  9899. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9900. need_lib_prefix=unknown
  9901. hardcode_into_libs=no
  9902. # when you set need_version to no, make sure it does not cause -set_version
  9903. # flags to be left without arguments
  9904. need_version=unknown
  9905. case $host_os in
  9906. aix3*)
  9907. version_type=linux # correct to gnu/linux during the next big refactor
  9908. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9909. shlibpath_var=LIBPATH
  9910. # AIX 3 has no versioning support, so we append a major version to the name.
  9911. soname_spec='$libname$release$shared_ext$major'
  9912. ;;
  9913. aix[4-9]*)
  9914. version_type=linux # correct to gnu/linux during the next big refactor
  9915. need_lib_prefix=no
  9916. need_version=no
  9917. hardcode_into_libs=yes
  9918. if test ia64 = "$host_cpu"; then
  9919. # AIX 5 supports IA64
  9920. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9921. shlibpath_var=LD_LIBRARY_PATH
  9922. else
  9923. # With GCC up to 2.95.x, collect2 would create an import file
  9924. # for dependence libraries. The import file would start with
  9925. # the line '#! .'. This would cause the generated library to
  9926. # depend on '.', always an invalid library. This was fixed in
  9927. # development snapshots of GCC prior to 3.0.
  9928. case $host_os in
  9929. aix4 | aix4.[01] | aix4.[01].*)
  9930. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9931. echo ' yes '
  9932. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9933. :
  9934. else
  9935. can_build_shared=no
  9936. fi
  9937. ;;
  9938. esac
  9939. # Using Import Files as archive members, it is possible to support
  9940. # filename-based versioning of shared library archives on AIX. While
  9941. # this would work for both with and without runtime linking, it will
  9942. # prevent static linking of such archives. So we do filename-based
  9943. # shared library versioning with .so extension only, which is used
  9944. # when both runtime linking and shared linking is enabled.
  9945. # Unfortunately, runtime linking may impact performance, so we do
  9946. # not want this to be the default eventually. Also, we use the
  9947. # versioned .so libs for executables only if there is the -brtl
  9948. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9949. # To allow for filename-based versioning support, we need to create
  9950. # libNAME.so.V as an archive file, containing:
  9951. # *) an Import File, referring to the versioned filename of the
  9952. # archive as well as the shared archive member, telling the
  9953. # bitwidth (32 or 64) of that shared object, and providing the
  9954. # list of exported symbols of that shared object, eventually
  9955. # decorated with the 'weak' keyword
  9956. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9957. # it being seen by the linker.
  9958. # At run time we better use the real file rather than another symlink,
  9959. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9960. case $with_aix_soname,$aix_use_runtimelinking in
  9961. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9962. # soname into executable. Probably we can add versioning support to
  9963. # collect2, so additional links can be useful in future.
  9964. aix,yes) # traditional libtool
  9965. dynamic_linker='AIX unversionable lib.so'
  9966. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9967. # instead of lib<name>.a to let people know that these are not
  9968. # typical AIX shared libraries.
  9969. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9970. ;;
  9971. aix,no) # traditional AIX only
  9972. dynamic_linker='AIX lib.a(lib.so.V)'
  9973. # We preserve .a as extension for shared libraries through AIX4.2
  9974. # and later when we are not doing run time linking.
  9975. library_names_spec='$libname$release.a $libname.a'
  9976. soname_spec='$libname$release$shared_ext$major'
  9977. ;;
  9978. svr4,*) # full svr4 only
  9979. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9980. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9981. # We do not specify a path in Import Files, so LIBPATH fires.
  9982. shlibpath_overrides_runpath=yes
  9983. ;;
  9984. *,yes) # both, prefer svr4
  9985. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9986. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9987. # unpreferred sharedlib libNAME.a needs extra handling
  9988. 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"'
  9989. 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"'
  9990. # We do not specify a path in Import Files, so LIBPATH fires.
  9991. shlibpath_overrides_runpath=yes
  9992. ;;
  9993. *,no) # both, prefer aix
  9994. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9995. library_names_spec='$libname$release.a $libname.a'
  9996. soname_spec='$libname$release$shared_ext$major'
  9997. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9998. 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)'
  9999. 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"'
  10000. ;;
  10001. esac
  10002. shlibpath_var=LIBPATH
  10003. fi
  10004. ;;
  10005. amigaos*)
  10006. case $host_cpu in
  10007. powerpc)
  10008. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10009. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10010. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10011. ;;
  10012. m68k)
  10013. library_names_spec='$libname.ixlibrary $libname.a'
  10014. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10015. 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'
  10016. ;;
  10017. esac
  10018. ;;
  10019. beos*)
  10020. library_names_spec='$libname$shared_ext'
  10021. dynamic_linker="$host_os ld.so"
  10022. shlibpath_var=LIBRARY_PATH
  10023. ;;
  10024. bsdi[45]*)
  10025. version_type=linux # correct to gnu/linux during the next big refactor
  10026. need_version=no
  10027. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10028. soname_spec='$libname$release$shared_ext$major'
  10029. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10030. shlibpath_var=LD_LIBRARY_PATH
  10031. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10032. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10033. # the default ld.so.conf also contains /usr/contrib/lib and
  10034. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10035. # libtool to hard-code these into programs
  10036. ;;
  10037. cygwin* | mingw* | windows* | pw32* | cegcc*)
  10038. version_type=windows
  10039. shrext_cmds=.dll
  10040. need_version=no
  10041. need_lib_prefix=no
  10042. case $GCC,$cc_basename in
  10043. yes,*)
  10044. # gcc
  10045. library_names_spec='$libname.dll.a'
  10046. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10047. postinstall_cmds='base_file=`basename \$file`~
  10048. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10049. dldir=$destdir/`dirname \$dlpath`~
  10050. test -d \$dldir || mkdir -p \$dldir~
  10051. $install_prog $dir/$dlname \$dldir/$dlname~
  10052. chmod a+x \$dldir/$dlname~
  10053. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10054. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10055. fi'
  10056. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10057. dlpath=$dir/\$dldll~
  10058. $RM \$dlpath'
  10059. shlibpath_overrides_runpath=yes
  10060. case $host_os in
  10061. cygwin*)
  10062. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10063. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10064. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  10065. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10066. ;;
  10067. mingw* | windows* | cegcc*)
  10068. # MinGW DLLs use traditional 'lib' prefix
  10069. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10070. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10071. ;;
  10072. pw32*)
  10073. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10074. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10075. ;;
  10076. esac
  10077. dynamic_linker='Win32 ld.exe'
  10078. ;;
  10079. *,cl* | *,icl*)
  10080. # Native MSVC or ICC
  10081. libname_spec='$name'
  10082. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10083. library_names_spec='$libname.dll.lib'
  10084. case $build_os in
  10085. mingw* | windows*)
  10086. sys_lib_search_path_spec=
  10087. lt_save_ifs=$IFS
  10088. IFS=';'
  10089. for lt_path in $LIB
  10090. do
  10091. IFS=$lt_save_ifs
  10092. # Let DOS variable expansion print the short 8.3 style file name.
  10093. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10094. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10095. done
  10096. IFS=$lt_save_ifs
  10097. # Convert to MSYS style.
  10098. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10099. ;;
  10100. cygwin*)
  10101. # Convert to unix form, then to dos form, then back to unix form
  10102. # but this time dos style (no spaces!) so that the unix form looks
  10103. # like /cygdrive/c/PROGRA~1:/cygdr...
  10104. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10105. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10106. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10107. ;;
  10108. *)
  10109. sys_lib_search_path_spec=$LIB
  10110. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10111. # It is most probably a Windows format PATH.
  10112. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10113. else
  10114. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10115. fi
  10116. # FIXME: find the short name or the path components, as spaces are
  10117. # common. (e.g. "Program Files" -> "PROGRA~1")
  10118. ;;
  10119. esac
  10120. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10121. postinstall_cmds='base_file=`basename \$file`~
  10122. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10123. dldir=$destdir/`dirname \$dlpath`~
  10124. test -d \$dldir || mkdir -p \$dldir~
  10125. $install_prog $dir/$dlname \$dldir/$dlname'
  10126. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10127. dlpath=$dir/\$dldll~
  10128. $RM \$dlpath'
  10129. shlibpath_overrides_runpath=yes
  10130. dynamic_linker='Win32 link.exe'
  10131. ;;
  10132. *)
  10133. # Assume MSVC and ICC wrapper
  10134. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10135. dynamic_linker='Win32 ld.exe'
  10136. ;;
  10137. esac
  10138. # FIXME: first we should search . and the directory the executable is in
  10139. shlibpath_var=PATH
  10140. ;;
  10141. darwin* | rhapsody*)
  10142. dynamic_linker="$host_os dyld"
  10143. version_type=darwin
  10144. need_lib_prefix=no
  10145. need_version=no
  10146. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10147. soname_spec='$libname$release$major$shared_ext'
  10148. shlibpath_overrides_runpath=yes
  10149. shlibpath_var=DYLD_LIBRARY_PATH
  10150. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10151. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10152. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10153. ;;
  10154. dgux*)
  10155. version_type=linux # correct to gnu/linux during the next big refactor
  10156. need_lib_prefix=no
  10157. need_version=no
  10158. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10159. soname_spec='$libname$release$shared_ext$major'
  10160. shlibpath_var=LD_LIBRARY_PATH
  10161. ;;
  10162. freebsd* | dragonfly* | midnightbsd*)
  10163. # DragonFly does not have aout. When/if they implement a new
  10164. # versioning mechanism, adjust this.
  10165. if test -x /usr/bin/objformat; then
  10166. objformat=`/usr/bin/objformat`
  10167. else
  10168. case $host_os in
  10169. freebsd[23].*) objformat=aout ;;
  10170. *) objformat=elf ;;
  10171. esac
  10172. fi
  10173. version_type=freebsd-$objformat
  10174. case $version_type in
  10175. freebsd-elf*)
  10176. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10177. soname_spec='$libname$release$shared_ext$major'
  10178. need_version=no
  10179. need_lib_prefix=no
  10180. ;;
  10181. freebsd-*)
  10182. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10183. need_version=yes
  10184. ;;
  10185. esac
  10186. shlibpath_var=LD_LIBRARY_PATH
  10187. case $host_os in
  10188. freebsd2.*)
  10189. shlibpath_overrides_runpath=yes
  10190. ;;
  10191. freebsd3.[01]* | freebsdelf3.[01]*)
  10192. shlibpath_overrides_runpath=yes
  10193. hardcode_into_libs=yes
  10194. ;;
  10195. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10196. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10197. shlibpath_overrides_runpath=no
  10198. hardcode_into_libs=yes
  10199. ;;
  10200. *) # from 4.6 on, and DragonFly
  10201. shlibpath_overrides_runpath=yes
  10202. hardcode_into_libs=yes
  10203. ;;
  10204. esac
  10205. ;;
  10206. haiku*)
  10207. version_type=linux # correct to gnu/linux during the next big refactor
  10208. need_lib_prefix=no
  10209. need_version=no
  10210. dynamic_linker="$host_os runtime_loader"
  10211. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10212. soname_spec='$libname$release$shared_ext$major'
  10213. shlibpath_var=LIBRARY_PATH
  10214. shlibpath_overrides_runpath=no
  10215. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10216. hardcode_into_libs=yes
  10217. ;;
  10218. hpux9* | hpux10* | hpux11*)
  10219. # Give a soname corresponding to the major version so that dld.sl refuses to
  10220. # link against other versions.
  10221. version_type=sunos
  10222. need_lib_prefix=no
  10223. need_version=no
  10224. case $host_cpu in
  10225. ia64*)
  10226. shrext_cmds='.so'
  10227. hardcode_into_libs=yes
  10228. dynamic_linker="$host_os dld.so"
  10229. shlibpath_var=LD_LIBRARY_PATH
  10230. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10231. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10232. soname_spec='$libname$release$shared_ext$major'
  10233. if test 32 = "$HPUX_IA64_MODE"; then
  10234. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10235. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10236. else
  10237. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10238. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10239. fi
  10240. ;;
  10241. hppa*64*)
  10242. shrext_cmds='.sl'
  10243. hardcode_into_libs=yes
  10244. dynamic_linker="$host_os dld.sl"
  10245. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10246. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10247. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10248. soname_spec='$libname$release$shared_ext$major'
  10249. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10250. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10251. ;;
  10252. *)
  10253. shrext_cmds='.sl'
  10254. dynamic_linker="$host_os dld.sl"
  10255. shlibpath_var=SHLIB_PATH
  10256. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10257. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10258. soname_spec='$libname$release$shared_ext$major'
  10259. ;;
  10260. esac
  10261. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10262. postinstall_cmds='chmod 555 $lib'
  10263. # or fails outright, so override atomically:
  10264. install_override_mode=555
  10265. ;;
  10266. interix[3-9]*)
  10267. version_type=linux # correct to gnu/linux during the next big refactor
  10268. need_lib_prefix=no
  10269. need_version=no
  10270. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10271. soname_spec='$libname$release$shared_ext$major'
  10272. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10273. shlibpath_var=LD_LIBRARY_PATH
  10274. shlibpath_overrides_runpath=no
  10275. hardcode_into_libs=yes
  10276. ;;
  10277. irix5* | irix6* | nonstopux*)
  10278. case $host_os in
  10279. nonstopux*) version_type=nonstopux ;;
  10280. *)
  10281. if test yes = "$lt_cv_prog_gnu_ld"; then
  10282. version_type=linux # correct to gnu/linux during the next big refactor
  10283. else
  10284. version_type=irix
  10285. fi ;;
  10286. esac
  10287. need_lib_prefix=no
  10288. need_version=no
  10289. soname_spec='$libname$release$shared_ext$major'
  10290. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10291. case $host_os in
  10292. irix5* | nonstopux*)
  10293. libsuff= shlibsuff=
  10294. ;;
  10295. *)
  10296. case $LD in # libtool.m4 will add one of these switches to LD
  10297. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10298. libsuff= shlibsuff= libmagic=32-bit;;
  10299. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10300. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10301. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10302. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10303. *) libsuff= shlibsuff= libmagic=never-match;;
  10304. esac
  10305. ;;
  10306. esac
  10307. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10308. shlibpath_overrides_runpath=no
  10309. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10310. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10311. hardcode_into_libs=yes
  10312. ;;
  10313. # No shared lib support for Linux oldld, aout, or coff.
  10314. linux*oldld* | linux*aout* | linux*coff*)
  10315. dynamic_linker=no
  10316. ;;
  10317. linux*android*)
  10318. version_type=none # Android doesn't support versioned libraries.
  10319. need_lib_prefix=no
  10320. need_version=no
  10321. library_names_spec='$libname$release$shared_ext'
  10322. soname_spec='$libname$release$shared_ext'
  10323. finish_cmds=
  10324. shlibpath_var=LD_LIBRARY_PATH
  10325. shlibpath_overrides_runpath=yes
  10326. # This implies no fast_install, which is unacceptable.
  10327. # Some rework will be needed to allow for fast_install
  10328. # before this can be enabled.
  10329. hardcode_into_libs=yes
  10330. dynamic_linker='Android linker'
  10331. # Don't embed -rpath directories since the linker doesn't support them.
  10332. hardcode_libdir_flag_spec='-L$libdir'
  10333. ;;
  10334. # This must be glibc/ELF.
  10335. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10336. version_type=linux # correct to gnu/linux during the next big refactor
  10337. need_lib_prefix=no
  10338. need_version=no
  10339. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10340. soname_spec='$libname$release$shared_ext$major'
  10341. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10342. shlibpath_var=LD_LIBRARY_PATH
  10343. shlibpath_overrides_runpath=no
  10344. # Some binutils ld are patched to set DT_RUNPATH
  10345. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10346. then :
  10347. printf %s "(cached) " >&6
  10348. else $as_nop
  10349. lt_cv_shlibpath_overrides_runpath=no
  10350. save_LDFLAGS=$LDFLAGS
  10351. save_libdir=$libdir
  10352. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10353. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10355. /* end confdefs.h. */
  10356. int
  10357. main (void)
  10358. {
  10359. ;
  10360. return 0;
  10361. }
  10362. _ACEOF
  10363. if ac_fn_c_try_link "$LINENO"
  10364. then :
  10365. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10366. then :
  10367. lt_cv_shlibpath_overrides_runpath=yes
  10368. fi
  10369. fi
  10370. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10371. conftest$ac_exeext conftest.$ac_ext
  10372. LDFLAGS=$save_LDFLAGS
  10373. libdir=$save_libdir
  10374. fi
  10375. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10376. # This implies no fast_install, which is unacceptable.
  10377. # Some rework will be needed to allow for fast_install
  10378. # before this can be enabled.
  10379. hardcode_into_libs=yes
  10380. # Add ABI-specific directories to the system library path.
  10381. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10382. # Ideally, we could use ldconfig to report *all* directores which are
  10383. # searched for libraries, however this is still not possible. Aside from not
  10384. # being certain /sbin/ldconfig is available, command
  10385. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10386. # even though it is searched at run-time. Try to do the best guess by
  10387. # appending ld.so.conf contents (and includes) to the search path.
  10388. if test -f /etc/ld.so.conf; then
  10389. 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' ' '`
  10390. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10391. fi
  10392. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10393. # powerpc, because MkLinux only supported shared libraries with the
  10394. # GNU dynamic linker. Since this was broken with cross compilers,
  10395. # most powerpc-linux boxes support dynamic linking these days and
  10396. # people can always --disable-shared, the test was removed, and we
  10397. # assume the GNU/Linux dynamic linker is in use.
  10398. dynamic_linker='GNU/Linux ld.so'
  10399. ;;
  10400. netbsd*)
  10401. version_type=sunos
  10402. need_lib_prefix=no
  10403. need_version=no
  10404. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10405. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10406. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10407. dynamic_linker='NetBSD (a.out) ld.so'
  10408. else
  10409. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10410. soname_spec='$libname$release$shared_ext$major'
  10411. dynamic_linker='NetBSD ld.elf_so'
  10412. fi
  10413. shlibpath_var=LD_LIBRARY_PATH
  10414. shlibpath_overrides_runpath=yes
  10415. hardcode_into_libs=yes
  10416. ;;
  10417. newsos6)
  10418. version_type=linux # correct to gnu/linux during the next big refactor
  10419. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10420. shlibpath_var=LD_LIBRARY_PATH
  10421. shlibpath_overrides_runpath=yes
  10422. ;;
  10423. *nto* | *qnx*)
  10424. version_type=qnx
  10425. need_lib_prefix=no
  10426. need_version=no
  10427. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10428. soname_spec='$libname$release$shared_ext$major'
  10429. shlibpath_var=LD_LIBRARY_PATH
  10430. shlibpath_overrides_runpath=no
  10431. hardcode_into_libs=yes
  10432. dynamic_linker='ldqnx.so'
  10433. ;;
  10434. openbsd* | bitrig*)
  10435. version_type=sunos
  10436. sys_lib_dlsearch_path_spec=/usr/lib
  10437. need_lib_prefix=no
  10438. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10439. need_version=no
  10440. else
  10441. need_version=yes
  10442. fi
  10443. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10444. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10445. shlibpath_var=LD_LIBRARY_PATH
  10446. shlibpath_overrides_runpath=yes
  10447. ;;
  10448. os2*)
  10449. libname_spec='$name'
  10450. shrext_cmds=.dll
  10451. need_lib_prefix=no
  10452. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10453. # SDL customization: removed versioning support.
  10454. # version_type=windows
  10455. # need_version=no
  10456. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10457. # v=$($ECHO $release$versuffix | tr -d .-);
  10458. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10459. # $ECHO $n$v`$shared_ext'
  10460. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10461. library_names_spec='${libname}_dll.$libext'
  10462. dynamic_linker='OS/2 ld.exe'
  10463. shlibpath_var=BEGINLIBPATH
  10464. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10465. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10466. postinstall_cmds='base_file=`basename \$file`~
  10467. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10468. dldir=$destdir/`dirname \$dlpath`~
  10469. test -d \$dldir || mkdir -p \$dldir~
  10470. $install_prog $dir/$dlname \$dldir/$dlname~
  10471. chmod a+x \$dldir/$dlname~
  10472. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10473. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10474. fi'
  10475. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10476. dlpath=$dir/\$dldll~
  10477. $RM \$dlpath'
  10478. ;;
  10479. osf3* | osf4* | osf5*)
  10480. version_type=osf
  10481. need_lib_prefix=no
  10482. need_version=no
  10483. soname_spec='$libname$release$shared_ext$major'
  10484. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10485. shlibpath_var=LD_LIBRARY_PATH
  10486. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10487. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10488. ;;
  10489. rdos*)
  10490. dynamic_linker=no
  10491. ;;
  10492. solaris*)
  10493. version_type=linux # correct to gnu/linux during the next big refactor
  10494. need_lib_prefix=no
  10495. need_version=no
  10496. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10497. soname_spec='$libname$release$shared_ext$major'
  10498. shlibpath_var=LD_LIBRARY_PATH
  10499. shlibpath_overrides_runpath=yes
  10500. hardcode_into_libs=yes
  10501. # ldd complains unless libraries are executable
  10502. postinstall_cmds='chmod +x $lib'
  10503. ;;
  10504. sunos4*)
  10505. version_type=sunos
  10506. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10507. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10508. shlibpath_var=LD_LIBRARY_PATH
  10509. shlibpath_overrides_runpath=yes
  10510. if test yes = "$with_gnu_ld"; then
  10511. need_lib_prefix=no
  10512. fi
  10513. need_version=yes
  10514. ;;
  10515. sysv4 | sysv4.3*)
  10516. version_type=linux # correct to gnu/linux during the next big refactor
  10517. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10518. soname_spec='$libname$release$shared_ext$major'
  10519. shlibpath_var=LD_LIBRARY_PATH
  10520. case $host_vendor in
  10521. sni)
  10522. shlibpath_overrides_runpath=no
  10523. need_lib_prefix=no
  10524. runpath_var=LD_RUN_PATH
  10525. ;;
  10526. siemens)
  10527. need_lib_prefix=no
  10528. ;;
  10529. motorola)
  10530. need_lib_prefix=no
  10531. need_version=no
  10532. shlibpath_overrides_runpath=no
  10533. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10534. ;;
  10535. esac
  10536. ;;
  10537. sysv4*MP*)
  10538. if test -d /usr/nec; then
  10539. version_type=linux # correct to gnu/linux during the next big refactor
  10540. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10541. soname_spec='$libname$shared_ext.$major'
  10542. shlibpath_var=LD_LIBRARY_PATH
  10543. fi
  10544. ;;
  10545. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10546. version_type=sco
  10547. need_lib_prefix=no
  10548. need_version=no
  10549. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10550. soname_spec='$libname$release$shared_ext$major'
  10551. shlibpath_var=LD_LIBRARY_PATH
  10552. shlibpath_overrides_runpath=yes
  10553. hardcode_into_libs=yes
  10554. if test yes = "$with_gnu_ld"; then
  10555. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10556. else
  10557. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10558. case $host_os in
  10559. sco3.2v5*)
  10560. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10561. ;;
  10562. esac
  10563. fi
  10564. sys_lib_dlsearch_path_spec='/usr/lib'
  10565. ;;
  10566. tpf*)
  10567. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10568. version_type=linux # correct to gnu/linux during the next big refactor
  10569. need_lib_prefix=no
  10570. need_version=no
  10571. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10572. shlibpath_var=LD_LIBRARY_PATH
  10573. shlibpath_overrides_runpath=no
  10574. hardcode_into_libs=yes
  10575. ;;
  10576. uts4*)
  10577. version_type=linux # correct to gnu/linux during the next big refactor
  10578. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10579. soname_spec='$libname$release$shared_ext$major'
  10580. shlibpath_var=LD_LIBRARY_PATH
  10581. ;;
  10582. *)
  10583. dynamic_linker=no
  10584. ;;
  10585. esac
  10586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10587. printf "%s\n" "$dynamic_linker" >&6; }
  10588. test no = "$dynamic_linker" && can_build_shared=no
  10589. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10590. if test yes = "$GCC"; then
  10591. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10592. fi
  10593. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10594. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10595. fi
  10596. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10597. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10598. fi
  10599. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10600. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10601. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10602. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10603. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10604. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10606. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10607. hardcode_action=
  10608. if test -n "$hardcode_libdir_flag_spec" ||
  10609. test -n "$runpath_var" ||
  10610. test yes = "$hardcode_automatic"; then
  10611. # We can hardcode non-existent directories.
  10612. if test no != "$hardcode_direct" &&
  10613. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10614. # have to relink, otherwise we might link with an installed library
  10615. # when we should be linking with a yet-to-be-installed one
  10616. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10617. test no != "$hardcode_minus_L"; then
  10618. # Linking always hardcodes the temporary library directory.
  10619. hardcode_action=relink
  10620. else
  10621. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10622. hardcode_action=immediate
  10623. fi
  10624. else
  10625. # We cannot hardcode anything, or else we can only hardcode existing
  10626. # directories.
  10627. hardcode_action=unsupported
  10628. fi
  10629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10630. printf "%s\n" "$hardcode_action" >&6; }
  10631. if test relink = "$hardcode_action" ||
  10632. test yes = "$inherit_rpath"; then
  10633. # Fast installation is not supported
  10634. enable_fast_install=no
  10635. elif test yes = "$shlibpath_overrides_runpath" ||
  10636. test no = "$enable_shared"; then
  10637. # Fast installation is not necessary
  10638. enable_fast_install=needless
  10639. fi
  10640. if test yes != "$enable_dlopen"; then
  10641. enable_dlopen=unknown
  10642. enable_dlopen_self=unknown
  10643. enable_dlopen_self_static=unknown
  10644. else
  10645. lt_cv_dlopen=no
  10646. lt_cv_dlopen_libs=
  10647. case $host_os in
  10648. beos*)
  10649. lt_cv_dlopen=load_add_on
  10650. lt_cv_dlopen_libs=
  10651. lt_cv_dlopen_self=yes
  10652. ;;
  10653. mingw* | windows* | pw32* | cegcc*)
  10654. lt_cv_dlopen=LoadLibrary
  10655. lt_cv_dlopen_libs=
  10656. ;;
  10657. cygwin*)
  10658. lt_cv_dlopen=dlopen
  10659. lt_cv_dlopen_libs=
  10660. ;;
  10661. darwin*)
  10662. # if libdl is installed we need to link against it
  10663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10664. printf %s "checking for dlopen in -ldl... " >&6; }
  10665. if test ${ac_cv_lib_dl_dlopen+y}
  10666. then :
  10667. printf %s "(cached) " >&6
  10668. else $as_nop
  10669. ac_check_lib_save_LIBS=$LIBS
  10670. LIBS="-ldl $LIBS"
  10671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10672. /* end confdefs.h. */
  10673. /* Override any GCC internal prototype to avoid an error.
  10674. Use char because int might match the return type of a GCC
  10675. builtin and then its argument prototype would still apply. */
  10676. char dlopen ();
  10677. int
  10678. main (void)
  10679. {
  10680. return dlopen ();
  10681. ;
  10682. return 0;
  10683. }
  10684. _ACEOF
  10685. if ac_fn_c_try_link "$LINENO"
  10686. then :
  10687. ac_cv_lib_dl_dlopen=yes
  10688. else $as_nop
  10689. ac_cv_lib_dl_dlopen=no
  10690. fi
  10691. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10692. conftest$ac_exeext conftest.$ac_ext
  10693. LIBS=$ac_check_lib_save_LIBS
  10694. fi
  10695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10696. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10697. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10698. then :
  10699. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10700. else $as_nop
  10701. lt_cv_dlopen=dyld
  10702. lt_cv_dlopen_libs=
  10703. lt_cv_dlopen_self=yes
  10704. fi
  10705. ;;
  10706. tpf*)
  10707. # Don't try to run any link tests for TPF. We know it's impossible
  10708. # because TPF is a cross-compiler, and we know how we open DSOs.
  10709. lt_cv_dlopen=dlopen
  10710. lt_cv_dlopen_libs=
  10711. lt_cv_dlopen_self=no
  10712. ;;
  10713. *)
  10714. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10715. if test "x$ac_cv_func_shl_load" = xyes
  10716. then :
  10717. lt_cv_dlopen=shl_load
  10718. else $as_nop
  10719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10720. printf %s "checking for shl_load in -ldld... " >&6; }
  10721. if test ${ac_cv_lib_dld_shl_load+y}
  10722. then :
  10723. printf %s "(cached) " >&6
  10724. else $as_nop
  10725. ac_check_lib_save_LIBS=$LIBS
  10726. LIBS="-ldld $LIBS"
  10727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10728. /* end confdefs.h. */
  10729. /* Override any GCC internal prototype to avoid an error.
  10730. Use char because int might match the return type of a GCC
  10731. builtin and then its argument prototype would still apply. */
  10732. char shl_load ();
  10733. int
  10734. main (void)
  10735. {
  10736. return shl_load ();
  10737. ;
  10738. return 0;
  10739. }
  10740. _ACEOF
  10741. if ac_fn_c_try_link "$LINENO"
  10742. then :
  10743. ac_cv_lib_dld_shl_load=yes
  10744. else $as_nop
  10745. ac_cv_lib_dld_shl_load=no
  10746. fi
  10747. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10748. conftest$ac_exeext conftest.$ac_ext
  10749. LIBS=$ac_check_lib_save_LIBS
  10750. fi
  10751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10752. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10753. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10754. then :
  10755. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10756. else $as_nop
  10757. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10758. if test "x$ac_cv_func_dlopen" = xyes
  10759. then :
  10760. lt_cv_dlopen=dlopen
  10761. else $as_nop
  10762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10763. printf %s "checking for dlopen in -ldl... " >&6; }
  10764. if test ${ac_cv_lib_dl_dlopen+y}
  10765. then :
  10766. printf %s "(cached) " >&6
  10767. else $as_nop
  10768. ac_check_lib_save_LIBS=$LIBS
  10769. LIBS="-ldl $LIBS"
  10770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10771. /* end confdefs.h. */
  10772. /* Override any GCC internal prototype to avoid an error.
  10773. Use char because int might match the return type of a GCC
  10774. builtin and then its argument prototype would still apply. */
  10775. char dlopen ();
  10776. int
  10777. main (void)
  10778. {
  10779. return dlopen ();
  10780. ;
  10781. return 0;
  10782. }
  10783. _ACEOF
  10784. if ac_fn_c_try_link "$LINENO"
  10785. then :
  10786. ac_cv_lib_dl_dlopen=yes
  10787. else $as_nop
  10788. ac_cv_lib_dl_dlopen=no
  10789. fi
  10790. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10791. conftest$ac_exeext conftest.$ac_ext
  10792. LIBS=$ac_check_lib_save_LIBS
  10793. fi
  10794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10795. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10796. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10797. then :
  10798. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10799. else $as_nop
  10800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10801. printf %s "checking for dlopen in -lsvld... " >&6; }
  10802. if test ${ac_cv_lib_svld_dlopen+y}
  10803. then :
  10804. printf %s "(cached) " >&6
  10805. else $as_nop
  10806. ac_check_lib_save_LIBS=$LIBS
  10807. LIBS="-lsvld $LIBS"
  10808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10809. /* end confdefs.h. */
  10810. /* Override any GCC internal prototype to avoid an error.
  10811. Use char because int might match the return type of a GCC
  10812. builtin and then its argument prototype would still apply. */
  10813. char dlopen ();
  10814. int
  10815. main (void)
  10816. {
  10817. return dlopen ();
  10818. ;
  10819. return 0;
  10820. }
  10821. _ACEOF
  10822. if ac_fn_c_try_link "$LINENO"
  10823. then :
  10824. ac_cv_lib_svld_dlopen=yes
  10825. else $as_nop
  10826. ac_cv_lib_svld_dlopen=no
  10827. fi
  10828. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10829. conftest$ac_exeext conftest.$ac_ext
  10830. LIBS=$ac_check_lib_save_LIBS
  10831. fi
  10832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10833. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10834. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10835. then :
  10836. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10837. else $as_nop
  10838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10839. printf %s "checking for dld_link in -ldld... " >&6; }
  10840. if test ${ac_cv_lib_dld_dld_link+y}
  10841. then :
  10842. printf %s "(cached) " >&6
  10843. else $as_nop
  10844. ac_check_lib_save_LIBS=$LIBS
  10845. LIBS="-ldld $LIBS"
  10846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10847. /* end confdefs.h. */
  10848. /* Override any GCC internal prototype to avoid an error.
  10849. Use char because int might match the return type of a GCC
  10850. builtin and then its argument prototype would still apply. */
  10851. char dld_link ();
  10852. int
  10853. main (void)
  10854. {
  10855. return dld_link ();
  10856. ;
  10857. return 0;
  10858. }
  10859. _ACEOF
  10860. if ac_fn_c_try_link "$LINENO"
  10861. then :
  10862. ac_cv_lib_dld_dld_link=yes
  10863. else $as_nop
  10864. ac_cv_lib_dld_dld_link=no
  10865. fi
  10866. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10867. conftest$ac_exeext conftest.$ac_ext
  10868. LIBS=$ac_check_lib_save_LIBS
  10869. fi
  10870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10871. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10872. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10873. then :
  10874. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10875. fi
  10876. fi
  10877. fi
  10878. fi
  10879. fi
  10880. fi
  10881. ;;
  10882. esac
  10883. if test no = "$lt_cv_dlopen"; then
  10884. enable_dlopen=no
  10885. else
  10886. enable_dlopen=yes
  10887. fi
  10888. case $lt_cv_dlopen in
  10889. dlopen)
  10890. save_CPPFLAGS=$CPPFLAGS
  10891. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10892. save_LDFLAGS=$LDFLAGS
  10893. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10894. save_LIBS=$LIBS
  10895. LIBS="$lt_cv_dlopen_libs $LIBS"
  10896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10897. printf %s "checking whether a program can dlopen itself... " >&6; }
  10898. if test ${lt_cv_dlopen_self+y}
  10899. then :
  10900. printf %s "(cached) " >&6
  10901. else $as_nop
  10902. if test yes = "$cross_compiling"; then :
  10903. lt_cv_dlopen_self=cross
  10904. else
  10905. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10906. lt_status=$lt_dlunknown
  10907. cat > conftest.$ac_ext <<_LT_EOF
  10908. #line $LINENO "configure"
  10909. #include "confdefs.h"
  10910. #if HAVE_DLFCN_H
  10911. #include <dlfcn.h>
  10912. #endif
  10913. #include <stdio.h>
  10914. #ifdef RTLD_GLOBAL
  10915. # define LT_DLGLOBAL RTLD_GLOBAL
  10916. #else
  10917. # ifdef DL_GLOBAL
  10918. # define LT_DLGLOBAL DL_GLOBAL
  10919. # else
  10920. # define LT_DLGLOBAL 0
  10921. # endif
  10922. #endif
  10923. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10924. find out it does not work in some platform. */
  10925. #ifndef LT_DLLAZY_OR_NOW
  10926. # ifdef RTLD_LAZY
  10927. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10928. # else
  10929. # ifdef DL_LAZY
  10930. # define LT_DLLAZY_OR_NOW DL_LAZY
  10931. # else
  10932. # ifdef RTLD_NOW
  10933. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10934. # else
  10935. # ifdef DL_NOW
  10936. # define LT_DLLAZY_OR_NOW DL_NOW
  10937. # else
  10938. # define LT_DLLAZY_OR_NOW 0
  10939. # endif
  10940. # endif
  10941. # endif
  10942. # endif
  10943. #endif
  10944. /* When -fvisibility=hidden is used, assume the code has been annotated
  10945. correspondingly for the symbols needed. */
  10946. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10947. int fnord () __attribute__((visibility("default")));
  10948. #endif
  10949. int fnord () { return 42; }
  10950. int main ()
  10951. {
  10952. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10953. int status = $lt_dlunknown;
  10954. if (self)
  10955. {
  10956. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10957. else
  10958. {
  10959. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10960. else puts (dlerror ());
  10961. }
  10962. /* dlclose (self); */
  10963. }
  10964. else
  10965. puts (dlerror ());
  10966. return status;
  10967. }
  10968. _LT_EOF
  10969. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10970. (eval $ac_link) 2>&5
  10971. ac_status=$?
  10972. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10973. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10974. (./conftest; exit; ) >&5 2>/dev/null
  10975. lt_status=$?
  10976. case x$lt_status in
  10977. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10978. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10979. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10980. esac
  10981. else :
  10982. # compilation failed
  10983. lt_cv_dlopen_self=no
  10984. fi
  10985. fi
  10986. rm -fr conftest*
  10987. fi
  10988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10989. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10990. if test yes = "$lt_cv_dlopen_self"; then
  10991. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10993. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10994. if test ${lt_cv_dlopen_self_static+y}
  10995. then :
  10996. printf %s "(cached) " >&6
  10997. else $as_nop
  10998. if test yes = "$cross_compiling"; then :
  10999. lt_cv_dlopen_self_static=cross
  11000. else
  11001. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11002. lt_status=$lt_dlunknown
  11003. cat > conftest.$ac_ext <<_LT_EOF
  11004. #line $LINENO "configure"
  11005. #include "confdefs.h"
  11006. #if HAVE_DLFCN_H
  11007. #include <dlfcn.h>
  11008. #endif
  11009. #include <stdio.h>
  11010. #ifdef RTLD_GLOBAL
  11011. # define LT_DLGLOBAL RTLD_GLOBAL
  11012. #else
  11013. # ifdef DL_GLOBAL
  11014. # define LT_DLGLOBAL DL_GLOBAL
  11015. # else
  11016. # define LT_DLGLOBAL 0
  11017. # endif
  11018. #endif
  11019. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11020. find out it does not work in some platform. */
  11021. #ifndef LT_DLLAZY_OR_NOW
  11022. # ifdef RTLD_LAZY
  11023. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11024. # else
  11025. # ifdef DL_LAZY
  11026. # define LT_DLLAZY_OR_NOW DL_LAZY
  11027. # else
  11028. # ifdef RTLD_NOW
  11029. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11030. # else
  11031. # ifdef DL_NOW
  11032. # define LT_DLLAZY_OR_NOW DL_NOW
  11033. # else
  11034. # define LT_DLLAZY_OR_NOW 0
  11035. # endif
  11036. # endif
  11037. # endif
  11038. # endif
  11039. #endif
  11040. /* When -fvisibility=hidden is used, assume the code has been annotated
  11041. correspondingly for the symbols needed. */
  11042. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11043. int fnord () __attribute__((visibility("default")));
  11044. #endif
  11045. int fnord () { return 42; }
  11046. int main ()
  11047. {
  11048. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11049. int status = $lt_dlunknown;
  11050. if (self)
  11051. {
  11052. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11053. else
  11054. {
  11055. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11056. else puts (dlerror ());
  11057. }
  11058. /* dlclose (self); */
  11059. }
  11060. else
  11061. puts (dlerror ());
  11062. return status;
  11063. }
  11064. _LT_EOF
  11065. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11066. (eval $ac_link) 2>&5
  11067. ac_status=$?
  11068. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11069. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11070. (./conftest; exit; ) >&5 2>/dev/null
  11071. lt_status=$?
  11072. case x$lt_status in
  11073. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11074. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11075. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11076. esac
  11077. else :
  11078. # compilation failed
  11079. lt_cv_dlopen_self_static=no
  11080. fi
  11081. fi
  11082. rm -fr conftest*
  11083. fi
  11084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11085. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11086. fi
  11087. CPPFLAGS=$save_CPPFLAGS
  11088. LDFLAGS=$save_LDFLAGS
  11089. LIBS=$save_LIBS
  11090. ;;
  11091. esac
  11092. case $lt_cv_dlopen_self in
  11093. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11094. *) enable_dlopen_self=unknown ;;
  11095. esac
  11096. case $lt_cv_dlopen_self_static in
  11097. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11098. *) enable_dlopen_self_static=unknown ;;
  11099. esac
  11100. fi
  11101. striplib=
  11102. old_striplib=
  11103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11104. printf %s "checking whether stripping libraries is possible... " >&6; }
  11105. if test -z "$STRIP"; then
  11106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11107. printf "%s\n" "no" >&6; }
  11108. else
  11109. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11110. old_striplib="$STRIP --strip-debug"
  11111. striplib="$STRIP --strip-unneeded"
  11112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11113. printf "%s\n" "yes" >&6; }
  11114. else
  11115. case $host_os in
  11116. darwin*)
  11117. # FIXME - insert some real tests, host_os isn't really good enough
  11118. striplib="$STRIP -x"
  11119. old_striplib="$STRIP -S"
  11120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11121. printf "%s\n" "yes" >&6; }
  11122. ;;
  11123. freebsd*)
  11124. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11125. old_striplib="$STRIP --strip-debug"
  11126. striplib="$STRIP --strip-unneeded"
  11127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11128. printf "%s\n" "yes" >&6; }
  11129. else
  11130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11131. printf "%s\n" "no" >&6; }
  11132. fi
  11133. ;;
  11134. *)
  11135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11136. printf "%s\n" "no" >&6; }
  11137. ;;
  11138. esac
  11139. fi
  11140. fi
  11141. # Report what library types will actually be built
  11142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11143. printf %s "checking if libtool supports shared libraries... " >&6; }
  11144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11145. printf "%s\n" "$can_build_shared" >&6; }
  11146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11147. printf %s "checking whether to build shared libraries... " >&6; }
  11148. test no = "$can_build_shared" && enable_shared=no
  11149. # On AIX, shared libraries and static libraries use the same namespace, and
  11150. # are all built from PIC.
  11151. case $host_os in
  11152. aix3*)
  11153. test yes = "$enable_shared" && enable_static=no
  11154. if test -n "$RANLIB"; then
  11155. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11156. postinstall_cmds='$RANLIB $lib'
  11157. fi
  11158. ;;
  11159. aix[4-9]*)
  11160. if test ia64 != "$host_cpu"; then
  11161. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11162. yes,aix,yes) ;; # shared object as lib.so file only
  11163. yes,svr4,*) ;; # shared object as lib.so archive member only
  11164. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11165. esac
  11166. fi
  11167. ;;
  11168. esac
  11169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11170. printf "%s\n" "$enable_shared" >&6; }
  11171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11172. printf %s "checking whether to build static libraries... " >&6; }
  11173. # Make sure either enable_shared or enable_static is yes.
  11174. test yes = "$enable_shared" || enable_static=yes
  11175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11176. printf "%s\n" "$enable_static" >&6; }
  11177. fi
  11178. ac_ext=c
  11179. ac_cpp='$CPP $CPPFLAGS'
  11180. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11181. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11182. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11183. CC=$lt_save_CC
  11184. ac_config_commands="$ac_config_commands libtool"
  11185. # Only expand once:
  11186. if test -n "$ac_tool_prefix"; then
  11187. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11188. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11190. printf %s "checking for $ac_word... " >&6; }
  11191. if test ${ac_cv_prog_RC+y}
  11192. then :
  11193. printf %s "(cached) " >&6
  11194. else $as_nop
  11195. if test -n "$RC"; then
  11196. ac_cv_prog_RC="$RC" # Let the user override the test.
  11197. else
  11198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11199. for as_dir in $PATH
  11200. do
  11201. IFS=$as_save_IFS
  11202. case $as_dir in #(((
  11203. '') as_dir=./ ;;
  11204. */) ;;
  11205. *) as_dir=$as_dir/ ;;
  11206. esac
  11207. for ac_exec_ext in '' $ac_executable_extensions; do
  11208. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11209. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11210. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11211. break 2
  11212. fi
  11213. done
  11214. done
  11215. IFS=$as_save_IFS
  11216. fi
  11217. fi
  11218. RC=$ac_cv_prog_RC
  11219. if test -n "$RC"; then
  11220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11221. printf "%s\n" "$RC" >&6; }
  11222. else
  11223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11224. printf "%s\n" "no" >&6; }
  11225. fi
  11226. fi
  11227. if test -z "$ac_cv_prog_RC"; then
  11228. ac_ct_RC=$RC
  11229. # Extract the first word of "windres", so it can be a program name with args.
  11230. set dummy windres; ac_word=$2
  11231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11232. printf %s "checking for $ac_word... " >&6; }
  11233. if test ${ac_cv_prog_ac_ct_RC+y}
  11234. then :
  11235. printf %s "(cached) " >&6
  11236. else $as_nop
  11237. if test -n "$ac_ct_RC"; then
  11238. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11239. else
  11240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11241. for as_dir in $PATH
  11242. do
  11243. IFS=$as_save_IFS
  11244. case $as_dir in #(((
  11245. '') as_dir=./ ;;
  11246. */) ;;
  11247. *) as_dir=$as_dir/ ;;
  11248. esac
  11249. for ac_exec_ext in '' $ac_executable_extensions; do
  11250. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11251. ac_cv_prog_ac_ct_RC="windres"
  11252. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11253. break 2
  11254. fi
  11255. done
  11256. done
  11257. IFS=$as_save_IFS
  11258. fi
  11259. fi
  11260. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11261. if test -n "$ac_ct_RC"; then
  11262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11263. printf "%s\n" "$ac_ct_RC" >&6; }
  11264. else
  11265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11266. printf "%s\n" "no" >&6; }
  11267. fi
  11268. if test "x$ac_ct_RC" = x; then
  11269. RC=""
  11270. else
  11271. case $cross_compiling:$ac_tool_warned in
  11272. yes:)
  11273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11274. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11275. ac_tool_warned=yes ;;
  11276. esac
  11277. RC=$ac_ct_RC
  11278. fi
  11279. else
  11280. RC="$ac_cv_prog_RC"
  11281. fi
  11282. # Source file extension for RC test sources.
  11283. ac_ext=rc
  11284. # Object file extension for compiled RC test sources.
  11285. objext=o
  11286. objext_RC=$objext
  11287. # Code to be used in simple compile tests
  11288. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11289. # Code to be used in simple link tests
  11290. lt_simple_link_test_code=$lt_simple_compile_test_code
  11291. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11292. # If no C compiler was specified, use CC.
  11293. LTCC=${LTCC-"$CC"}
  11294. # If no C compiler flags were specified, use CFLAGS.
  11295. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11296. # Allow CC to be a program name with arguments.
  11297. compiler=$CC
  11298. # save warnings/boilerplate of simple test code
  11299. ac_outfile=conftest.$ac_objext
  11300. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11301. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11302. _lt_compiler_boilerplate=`cat conftest.err`
  11303. $RM conftest*
  11304. ac_outfile=conftest.$ac_objext
  11305. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11306. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11307. _lt_linker_boilerplate=`cat conftest.err`
  11308. $RM -r conftest*
  11309. # Allow CC to be a program name with arguments.
  11310. lt_save_CC=$CC
  11311. lt_save_CFLAGS=$CFLAGS
  11312. lt_save_GCC=$GCC
  11313. GCC=
  11314. CC=${RC-"windres"}
  11315. CFLAGS=
  11316. compiler=$CC
  11317. compiler_RC=$CC
  11318. func_cc_basename $compiler
  11319. cc_basename=$func_cc_basename_result
  11320. lt_cv_prog_compiler_c_o_RC=yes
  11321. if test -n "$compiler"; then
  11322. :
  11323. fi
  11324. GCC=$lt_save_GCC
  11325. ac_ext=c
  11326. ac_cpp='$CPP $CPPFLAGS'
  11327. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11328. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11329. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11330. CC=$lt_save_CC
  11331. CFLAGS=$lt_save_CFLAGS
  11332. # For historical reasons, the library name redundantly includes the major
  11333. # version twice: libSDL2-2.0.so.0.
  11334. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11335. LT_RELEASE=2.0
  11336. # Increment this if there is an incompatible change - but if that happens,
  11337. # we should rename the library from SDL2 to SDL3, at which point this would
  11338. # reset to 0 anyway.
  11339. LT_MAJOR=0
  11340. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11341. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11342. LT_REVISION=$SDL_INTERFACE_AGE
  11343. for ac_prog in gawk mawk nawk awk
  11344. do
  11345. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11346. set dummy $ac_prog; ac_word=$2
  11347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11348. printf %s "checking for $ac_word... " >&6; }
  11349. if test ${ac_cv_prog_AWK+y}
  11350. then :
  11351. printf %s "(cached) " >&6
  11352. else $as_nop
  11353. if test -n "$AWK"; then
  11354. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11355. else
  11356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11357. for as_dir in $PATH
  11358. do
  11359. IFS=$as_save_IFS
  11360. case $as_dir in #(((
  11361. '') as_dir=./ ;;
  11362. */) ;;
  11363. *) as_dir=$as_dir/ ;;
  11364. esac
  11365. for ac_exec_ext in '' $ac_executable_extensions; do
  11366. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11367. ac_cv_prog_AWK="$ac_prog"
  11368. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11369. break 2
  11370. fi
  11371. done
  11372. done
  11373. IFS=$as_save_IFS
  11374. fi
  11375. fi
  11376. AWK=$ac_cv_prog_AWK
  11377. if test -n "$AWK"; then
  11378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11379. printf "%s\n" "$AWK" >&6; }
  11380. else
  11381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11382. printf "%s\n" "no" >&6; }
  11383. fi
  11384. test -n "$AWK" && break
  11385. done
  11386. ac_ext=c
  11387. ac_cpp='$CPP $CPPFLAGS'
  11388. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11389. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11390. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11391. if test -n "$ac_tool_prefix"; then
  11392. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11393. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11395. printf %s "checking for $ac_word... " >&6; }
  11396. if test ${ac_cv_prog_CC+y}
  11397. then :
  11398. printf %s "(cached) " >&6
  11399. else $as_nop
  11400. if test -n "$CC"; then
  11401. ac_cv_prog_CC="$CC" # Let the user override the test.
  11402. else
  11403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11404. for as_dir in $PATH
  11405. do
  11406. IFS=$as_save_IFS
  11407. case $as_dir in #(((
  11408. '') as_dir=./ ;;
  11409. */) ;;
  11410. *) as_dir=$as_dir/ ;;
  11411. esac
  11412. for ac_exec_ext in '' $ac_executable_extensions; do
  11413. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11414. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11415. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11416. break 2
  11417. fi
  11418. done
  11419. done
  11420. IFS=$as_save_IFS
  11421. fi
  11422. fi
  11423. CC=$ac_cv_prog_CC
  11424. if test -n "$CC"; then
  11425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11426. printf "%s\n" "$CC" >&6; }
  11427. else
  11428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11429. printf "%s\n" "no" >&6; }
  11430. fi
  11431. fi
  11432. if test -z "$ac_cv_prog_CC"; then
  11433. ac_ct_CC=$CC
  11434. # Extract the first word of "gcc", so it can be a program name with args.
  11435. set dummy gcc; ac_word=$2
  11436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11437. printf %s "checking for $ac_word... " >&6; }
  11438. if test ${ac_cv_prog_ac_ct_CC+y}
  11439. then :
  11440. printf %s "(cached) " >&6
  11441. else $as_nop
  11442. if test -n "$ac_ct_CC"; then
  11443. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11444. else
  11445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11446. for as_dir in $PATH
  11447. do
  11448. IFS=$as_save_IFS
  11449. case $as_dir in #(((
  11450. '') as_dir=./ ;;
  11451. */) ;;
  11452. *) as_dir=$as_dir/ ;;
  11453. esac
  11454. for ac_exec_ext in '' $ac_executable_extensions; do
  11455. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11456. ac_cv_prog_ac_ct_CC="gcc"
  11457. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11458. break 2
  11459. fi
  11460. done
  11461. done
  11462. IFS=$as_save_IFS
  11463. fi
  11464. fi
  11465. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11466. if test -n "$ac_ct_CC"; then
  11467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11468. printf "%s\n" "$ac_ct_CC" >&6; }
  11469. else
  11470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11471. printf "%s\n" "no" >&6; }
  11472. fi
  11473. if test "x$ac_ct_CC" = x; then
  11474. CC=""
  11475. else
  11476. case $cross_compiling:$ac_tool_warned in
  11477. yes:)
  11478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11479. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11480. ac_tool_warned=yes ;;
  11481. esac
  11482. CC=$ac_ct_CC
  11483. fi
  11484. else
  11485. CC="$ac_cv_prog_CC"
  11486. fi
  11487. if test -z "$CC"; then
  11488. if test -n "$ac_tool_prefix"; then
  11489. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11490. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11492. printf %s "checking for $ac_word... " >&6; }
  11493. if test ${ac_cv_prog_CC+y}
  11494. then :
  11495. printf %s "(cached) " >&6
  11496. else $as_nop
  11497. if test -n "$CC"; then
  11498. ac_cv_prog_CC="$CC" # Let the user override the test.
  11499. else
  11500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11501. for as_dir in $PATH
  11502. do
  11503. IFS=$as_save_IFS
  11504. case $as_dir in #(((
  11505. '') as_dir=./ ;;
  11506. */) ;;
  11507. *) as_dir=$as_dir/ ;;
  11508. esac
  11509. for ac_exec_ext in '' $ac_executable_extensions; do
  11510. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11511. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11512. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11513. break 2
  11514. fi
  11515. done
  11516. done
  11517. IFS=$as_save_IFS
  11518. fi
  11519. fi
  11520. CC=$ac_cv_prog_CC
  11521. if test -n "$CC"; then
  11522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11523. printf "%s\n" "$CC" >&6; }
  11524. else
  11525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11526. printf "%s\n" "no" >&6; }
  11527. fi
  11528. fi
  11529. fi
  11530. if test -z "$CC"; then
  11531. # Extract the first word of "cc", so it can be a program name with args.
  11532. set dummy cc; ac_word=$2
  11533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11534. printf %s "checking for $ac_word... " >&6; }
  11535. if test ${ac_cv_prog_CC+y}
  11536. then :
  11537. printf %s "(cached) " >&6
  11538. else $as_nop
  11539. if test -n "$CC"; then
  11540. ac_cv_prog_CC="$CC" # Let the user override the test.
  11541. else
  11542. ac_prog_rejected=no
  11543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11544. for as_dir in $PATH
  11545. do
  11546. IFS=$as_save_IFS
  11547. case $as_dir in #(((
  11548. '') as_dir=./ ;;
  11549. */) ;;
  11550. *) as_dir=$as_dir/ ;;
  11551. esac
  11552. for ac_exec_ext in '' $ac_executable_extensions; do
  11553. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11554. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11555. ac_prog_rejected=yes
  11556. continue
  11557. fi
  11558. ac_cv_prog_CC="cc"
  11559. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11560. break 2
  11561. fi
  11562. done
  11563. done
  11564. IFS=$as_save_IFS
  11565. if test $ac_prog_rejected = yes; then
  11566. # We found a bogon in the path, so make sure we never use it.
  11567. set dummy $ac_cv_prog_CC
  11568. shift
  11569. if test $# != 0; then
  11570. # We chose a different compiler from the bogus one.
  11571. # However, it has the same basename, so the bogon will be chosen
  11572. # first if we set CC to just the basename; use the full file name.
  11573. shift
  11574. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11575. fi
  11576. fi
  11577. fi
  11578. fi
  11579. CC=$ac_cv_prog_CC
  11580. if test -n "$CC"; then
  11581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11582. printf "%s\n" "$CC" >&6; }
  11583. else
  11584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11585. printf "%s\n" "no" >&6; }
  11586. fi
  11587. fi
  11588. if test -z "$CC"; then
  11589. if test -n "$ac_tool_prefix"; then
  11590. for ac_prog in cl.exe
  11591. do
  11592. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11593. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11595. printf %s "checking for $ac_word... " >&6; }
  11596. if test ${ac_cv_prog_CC+y}
  11597. then :
  11598. printf %s "(cached) " >&6
  11599. else $as_nop
  11600. if test -n "$CC"; then
  11601. ac_cv_prog_CC="$CC" # Let the user override the test.
  11602. else
  11603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11604. for as_dir in $PATH
  11605. do
  11606. IFS=$as_save_IFS
  11607. case $as_dir in #(((
  11608. '') as_dir=./ ;;
  11609. */) ;;
  11610. *) as_dir=$as_dir/ ;;
  11611. esac
  11612. for ac_exec_ext in '' $ac_executable_extensions; do
  11613. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11614. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11615. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11616. break 2
  11617. fi
  11618. done
  11619. done
  11620. IFS=$as_save_IFS
  11621. fi
  11622. fi
  11623. CC=$ac_cv_prog_CC
  11624. if test -n "$CC"; then
  11625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11626. printf "%s\n" "$CC" >&6; }
  11627. else
  11628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11629. printf "%s\n" "no" >&6; }
  11630. fi
  11631. test -n "$CC" && break
  11632. done
  11633. fi
  11634. if test -z "$CC"; then
  11635. ac_ct_CC=$CC
  11636. for ac_prog in cl.exe
  11637. do
  11638. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11639. set dummy $ac_prog; ac_word=$2
  11640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11641. printf %s "checking for $ac_word... " >&6; }
  11642. if test ${ac_cv_prog_ac_ct_CC+y}
  11643. then :
  11644. printf %s "(cached) " >&6
  11645. else $as_nop
  11646. if test -n "$ac_ct_CC"; then
  11647. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11648. else
  11649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11650. for as_dir in $PATH
  11651. do
  11652. IFS=$as_save_IFS
  11653. case $as_dir in #(((
  11654. '') as_dir=./ ;;
  11655. */) ;;
  11656. *) as_dir=$as_dir/ ;;
  11657. esac
  11658. for ac_exec_ext in '' $ac_executable_extensions; do
  11659. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11660. ac_cv_prog_ac_ct_CC="$ac_prog"
  11661. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11662. break 2
  11663. fi
  11664. done
  11665. done
  11666. IFS=$as_save_IFS
  11667. fi
  11668. fi
  11669. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11670. if test -n "$ac_ct_CC"; then
  11671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11672. printf "%s\n" "$ac_ct_CC" >&6; }
  11673. else
  11674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11675. printf "%s\n" "no" >&6; }
  11676. fi
  11677. test -n "$ac_ct_CC" && break
  11678. done
  11679. if test "x$ac_ct_CC" = x; then
  11680. CC=""
  11681. else
  11682. case $cross_compiling:$ac_tool_warned in
  11683. yes:)
  11684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11685. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11686. ac_tool_warned=yes ;;
  11687. esac
  11688. CC=$ac_ct_CC
  11689. fi
  11690. fi
  11691. fi
  11692. if test -z "$CC"; then
  11693. if test -n "$ac_tool_prefix"; then
  11694. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11695. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11697. printf %s "checking for $ac_word... " >&6; }
  11698. if test ${ac_cv_prog_CC+y}
  11699. then :
  11700. printf %s "(cached) " >&6
  11701. else $as_nop
  11702. if test -n "$CC"; then
  11703. ac_cv_prog_CC="$CC" # Let the user override the test.
  11704. else
  11705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11706. for as_dir in $PATH
  11707. do
  11708. IFS=$as_save_IFS
  11709. case $as_dir in #(((
  11710. '') as_dir=./ ;;
  11711. */) ;;
  11712. *) as_dir=$as_dir/ ;;
  11713. esac
  11714. for ac_exec_ext in '' $ac_executable_extensions; do
  11715. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11716. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11717. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11718. break 2
  11719. fi
  11720. done
  11721. done
  11722. IFS=$as_save_IFS
  11723. fi
  11724. fi
  11725. CC=$ac_cv_prog_CC
  11726. if test -n "$CC"; then
  11727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11728. printf "%s\n" "$CC" >&6; }
  11729. else
  11730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11731. printf "%s\n" "no" >&6; }
  11732. fi
  11733. fi
  11734. if test -z "$ac_cv_prog_CC"; then
  11735. ac_ct_CC=$CC
  11736. # Extract the first word of "clang", so it can be a program name with args.
  11737. set dummy clang; ac_word=$2
  11738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11739. printf %s "checking for $ac_word... " >&6; }
  11740. if test ${ac_cv_prog_ac_ct_CC+y}
  11741. then :
  11742. printf %s "(cached) " >&6
  11743. else $as_nop
  11744. if test -n "$ac_ct_CC"; then
  11745. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11746. else
  11747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11748. for as_dir in $PATH
  11749. do
  11750. IFS=$as_save_IFS
  11751. case $as_dir in #(((
  11752. '') as_dir=./ ;;
  11753. */) ;;
  11754. *) as_dir=$as_dir/ ;;
  11755. esac
  11756. for ac_exec_ext in '' $ac_executable_extensions; do
  11757. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11758. ac_cv_prog_ac_ct_CC="clang"
  11759. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11760. break 2
  11761. fi
  11762. done
  11763. done
  11764. IFS=$as_save_IFS
  11765. fi
  11766. fi
  11767. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11768. if test -n "$ac_ct_CC"; then
  11769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11770. printf "%s\n" "$ac_ct_CC" >&6; }
  11771. else
  11772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11773. printf "%s\n" "no" >&6; }
  11774. fi
  11775. if test "x$ac_ct_CC" = x; then
  11776. CC=""
  11777. else
  11778. case $cross_compiling:$ac_tool_warned in
  11779. yes:)
  11780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11781. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11782. ac_tool_warned=yes ;;
  11783. esac
  11784. CC=$ac_ct_CC
  11785. fi
  11786. else
  11787. CC="$ac_cv_prog_CC"
  11788. fi
  11789. fi
  11790. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11791. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11792. as_fn_error $? "no acceptable C compiler found in \$PATH
  11793. See \`config.log' for more details" "$LINENO" 5; }
  11794. # Provide some information about the compiler.
  11795. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11796. set X $ac_compile
  11797. ac_compiler=$2
  11798. for ac_option in --version -v -V -qversion -version; do
  11799. { { ac_try="$ac_compiler $ac_option >&5"
  11800. case "(($ac_try" in
  11801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11802. *) ac_try_echo=$ac_try;;
  11803. esac
  11804. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11805. printf "%s\n" "$ac_try_echo"; } >&5
  11806. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11807. ac_status=$?
  11808. if test -s conftest.err; then
  11809. sed '10a\
  11810. ... rest of stderr output deleted ...
  11811. 10q' conftest.err >conftest.er1
  11812. cat conftest.er1 >&5
  11813. fi
  11814. rm -f conftest.er1 conftest.err
  11815. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11816. test $ac_status = 0; }
  11817. done
  11818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11819. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11820. if test ${ac_cv_c_compiler_gnu+y}
  11821. then :
  11822. printf %s "(cached) " >&6
  11823. else $as_nop
  11824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11825. /* end confdefs.h. */
  11826. int
  11827. main (void)
  11828. {
  11829. #ifndef __GNUC__
  11830. choke me
  11831. #endif
  11832. ;
  11833. return 0;
  11834. }
  11835. _ACEOF
  11836. if ac_fn_c_try_compile "$LINENO"
  11837. then :
  11838. ac_compiler_gnu=yes
  11839. else $as_nop
  11840. ac_compiler_gnu=no
  11841. fi
  11842. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11843. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11844. fi
  11845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11846. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11847. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11848. if test $ac_compiler_gnu = yes; then
  11849. GCC=yes
  11850. else
  11851. GCC=
  11852. fi
  11853. ac_test_CFLAGS=${CFLAGS+y}
  11854. ac_save_CFLAGS=$CFLAGS
  11855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11856. printf %s "checking whether $CC accepts -g... " >&6; }
  11857. if test ${ac_cv_prog_cc_g+y}
  11858. then :
  11859. printf %s "(cached) " >&6
  11860. else $as_nop
  11861. ac_save_c_werror_flag=$ac_c_werror_flag
  11862. ac_c_werror_flag=yes
  11863. ac_cv_prog_cc_g=no
  11864. CFLAGS="-g"
  11865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11866. /* end confdefs.h. */
  11867. int
  11868. main (void)
  11869. {
  11870. ;
  11871. return 0;
  11872. }
  11873. _ACEOF
  11874. if ac_fn_c_try_compile "$LINENO"
  11875. then :
  11876. ac_cv_prog_cc_g=yes
  11877. else $as_nop
  11878. CFLAGS=""
  11879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11880. /* end confdefs.h. */
  11881. int
  11882. main (void)
  11883. {
  11884. ;
  11885. return 0;
  11886. }
  11887. _ACEOF
  11888. if ac_fn_c_try_compile "$LINENO"
  11889. then :
  11890. else $as_nop
  11891. ac_c_werror_flag=$ac_save_c_werror_flag
  11892. CFLAGS="-g"
  11893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11894. /* end confdefs.h. */
  11895. int
  11896. main (void)
  11897. {
  11898. ;
  11899. return 0;
  11900. }
  11901. _ACEOF
  11902. if ac_fn_c_try_compile "$LINENO"
  11903. then :
  11904. ac_cv_prog_cc_g=yes
  11905. fi
  11906. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11907. fi
  11908. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11909. fi
  11910. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11911. ac_c_werror_flag=$ac_save_c_werror_flag
  11912. fi
  11913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11914. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11915. if test $ac_test_CFLAGS; then
  11916. CFLAGS=$ac_save_CFLAGS
  11917. elif test $ac_cv_prog_cc_g = yes; then
  11918. if test "$GCC" = yes; then
  11919. CFLAGS="-g -O2"
  11920. else
  11921. CFLAGS="-g"
  11922. fi
  11923. else
  11924. if test "$GCC" = yes; then
  11925. CFLAGS="-O2"
  11926. else
  11927. CFLAGS=
  11928. fi
  11929. fi
  11930. ac_prog_cc_stdc=no
  11931. if test x$ac_prog_cc_stdc = xno
  11932. then :
  11933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11934. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11935. if test ${ac_cv_prog_cc_c11+y}
  11936. then :
  11937. printf %s "(cached) " >&6
  11938. else $as_nop
  11939. ac_cv_prog_cc_c11=no
  11940. ac_save_CC=$CC
  11941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11942. /* end confdefs.h. */
  11943. $ac_c_conftest_c11_program
  11944. _ACEOF
  11945. for ac_arg in '' -std=gnu11
  11946. do
  11947. CC="$ac_save_CC $ac_arg"
  11948. if ac_fn_c_try_compile "$LINENO"
  11949. then :
  11950. ac_cv_prog_cc_c11=$ac_arg
  11951. fi
  11952. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11953. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11954. done
  11955. rm -f conftest.$ac_ext
  11956. CC=$ac_save_CC
  11957. fi
  11958. if test "x$ac_cv_prog_cc_c11" = xno
  11959. then :
  11960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11961. printf "%s\n" "unsupported" >&6; }
  11962. else $as_nop
  11963. if test "x$ac_cv_prog_cc_c11" = x
  11964. then :
  11965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11966. printf "%s\n" "none needed" >&6; }
  11967. else $as_nop
  11968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11969. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11970. CC="$CC $ac_cv_prog_cc_c11"
  11971. fi
  11972. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11973. ac_prog_cc_stdc=c11
  11974. fi
  11975. fi
  11976. if test x$ac_prog_cc_stdc = xno
  11977. then :
  11978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11979. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11980. if test ${ac_cv_prog_cc_c99+y}
  11981. then :
  11982. printf %s "(cached) " >&6
  11983. else $as_nop
  11984. ac_cv_prog_cc_c99=no
  11985. ac_save_CC=$CC
  11986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11987. /* end confdefs.h. */
  11988. $ac_c_conftest_c99_program
  11989. _ACEOF
  11990. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11991. do
  11992. CC="$ac_save_CC $ac_arg"
  11993. if ac_fn_c_try_compile "$LINENO"
  11994. then :
  11995. ac_cv_prog_cc_c99=$ac_arg
  11996. fi
  11997. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11998. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11999. done
  12000. rm -f conftest.$ac_ext
  12001. CC=$ac_save_CC
  12002. fi
  12003. if test "x$ac_cv_prog_cc_c99" = xno
  12004. then :
  12005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12006. printf "%s\n" "unsupported" >&6; }
  12007. else $as_nop
  12008. if test "x$ac_cv_prog_cc_c99" = x
  12009. then :
  12010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12011. printf "%s\n" "none needed" >&6; }
  12012. else $as_nop
  12013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  12014. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  12015. CC="$CC $ac_cv_prog_cc_c99"
  12016. fi
  12017. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  12018. ac_prog_cc_stdc=c99
  12019. fi
  12020. fi
  12021. if test x$ac_prog_cc_stdc = xno
  12022. then :
  12023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  12024. printf %s "checking for $CC option to enable C89 features... " >&6; }
  12025. if test ${ac_cv_prog_cc_c89+y}
  12026. then :
  12027. printf %s "(cached) " >&6
  12028. else $as_nop
  12029. ac_cv_prog_cc_c89=no
  12030. ac_save_CC=$CC
  12031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12032. /* end confdefs.h. */
  12033. $ac_c_conftest_c89_program
  12034. _ACEOF
  12035. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  12036. do
  12037. CC="$ac_save_CC $ac_arg"
  12038. if ac_fn_c_try_compile "$LINENO"
  12039. then :
  12040. ac_cv_prog_cc_c89=$ac_arg
  12041. fi
  12042. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12043. test "x$ac_cv_prog_cc_c89" != "xno" && break
  12044. done
  12045. rm -f conftest.$ac_ext
  12046. CC=$ac_save_CC
  12047. fi
  12048. if test "x$ac_cv_prog_cc_c89" = xno
  12049. then :
  12050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12051. printf "%s\n" "unsupported" >&6; }
  12052. else $as_nop
  12053. if test "x$ac_cv_prog_cc_c89" = x
  12054. then :
  12055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12056. printf "%s\n" "none needed" >&6; }
  12057. else $as_nop
  12058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12059. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  12060. CC="$CC $ac_cv_prog_cc_c89"
  12061. fi
  12062. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12063. ac_prog_cc_stdc=c89
  12064. fi
  12065. fi
  12066. ac_ext=c
  12067. ac_cpp='$CPP $CPPFLAGS'
  12068. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12069. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12070. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12071. ac_ext=cpp
  12072. ac_cpp='$CXXCPP $CPPFLAGS'
  12073. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12074. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12075. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12076. if test -z "$CXX"; then
  12077. if test -n "$CCC"; then
  12078. CXX=$CCC
  12079. else
  12080. if test -n "$ac_tool_prefix"; then
  12081. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12082. do
  12083. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12084. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12086. printf %s "checking for $ac_word... " >&6; }
  12087. if test ${ac_cv_prog_CXX+y}
  12088. then :
  12089. printf %s "(cached) " >&6
  12090. else $as_nop
  12091. if test -n "$CXX"; then
  12092. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12093. else
  12094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12095. for as_dir in $PATH
  12096. do
  12097. IFS=$as_save_IFS
  12098. case $as_dir in #(((
  12099. '') as_dir=./ ;;
  12100. */) ;;
  12101. *) as_dir=$as_dir/ ;;
  12102. esac
  12103. for ac_exec_ext in '' $ac_executable_extensions; do
  12104. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12105. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12106. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12107. break 2
  12108. fi
  12109. done
  12110. done
  12111. IFS=$as_save_IFS
  12112. fi
  12113. fi
  12114. CXX=$ac_cv_prog_CXX
  12115. if test -n "$CXX"; then
  12116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12117. printf "%s\n" "$CXX" >&6; }
  12118. else
  12119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12120. printf "%s\n" "no" >&6; }
  12121. fi
  12122. test -n "$CXX" && break
  12123. done
  12124. fi
  12125. if test -z "$CXX"; then
  12126. ac_ct_CXX=$CXX
  12127. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12128. do
  12129. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12130. set dummy $ac_prog; ac_word=$2
  12131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12132. printf %s "checking for $ac_word... " >&6; }
  12133. if test ${ac_cv_prog_ac_ct_CXX+y}
  12134. then :
  12135. printf %s "(cached) " >&6
  12136. else $as_nop
  12137. if test -n "$ac_ct_CXX"; then
  12138. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12139. else
  12140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12141. for as_dir in $PATH
  12142. do
  12143. IFS=$as_save_IFS
  12144. case $as_dir in #(((
  12145. '') as_dir=./ ;;
  12146. */) ;;
  12147. *) as_dir=$as_dir/ ;;
  12148. esac
  12149. for ac_exec_ext in '' $ac_executable_extensions; do
  12150. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12151. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12152. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12153. break 2
  12154. fi
  12155. done
  12156. done
  12157. IFS=$as_save_IFS
  12158. fi
  12159. fi
  12160. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12161. if test -n "$ac_ct_CXX"; then
  12162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12163. printf "%s\n" "$ac_ct_CXX" >&6; }
  12164. else
  12165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12166. printf "%s\n" "no" >&6; }
  12167. fi
  12168. test -n "$ac_ct_CXX" && break
  12169. done
  12170. if test "x$ac_ct_CXX" = x; then
  12171. CXX="g++"
  12172. else
  12173. case $cross_compiling:$ac_tool_warned in
  12174. yes:)
  12175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12176. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12177. ac_tool_warned=yes ;;
  12178. esac
  12179. CXX=$ac_ct_CXX
  12180. fi
  12181. fi
  12182. fi
  12183. fi
  12184. # Provide some information about the compiler.
  12185. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12186. set X $ac_compile
  12187. ac_compiler=$2
  12188. for ac_option in --version -v -V -qversion; do
  12189. { { ac_try="$ac_compiler $ac_option >&5"
  12190. case "(($ac_try" in
  12191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12192. *) ac_try_echo=$ac_try;;
  12193. esac
  12194. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12195. printf "%s\n" "$ac_try_echo"; } >&5
  12196. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12197. ac_status=$?
  12198. if test -s conftest.err; then
  12199. sed '10a\
  12200. ... rest of stderr output deleted ...
  12201. 10q' conftest.err >conftest.er1
  12202. cat conftest.er1 >&5
  12203. fi
  12204. rm -f conftest.er1 conftest.err
  12205. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12206. test $ac_status = 0; }
  12207. done
  12208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12209. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12210. if test ${ac_cv_cxx_compiler_gnu+y}
  12211. then :
  12212. printf %s "(cached) " >&6
  12213. else $as_nop
  12214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12215. /* end confdefs.h. */
  12216. int
  12217. main (void)
  12218. {
  12219. #ifndef __GNUC__
  12220. choke me
  12221. #endif
  12222. ;
  12223. return 0;
  12224. }
  12225. _ACEOF
  12226. if ac_fn_cxx_try_compile "$LINENO"
  12227. then :
  12228. ac_compiler_gnu=yes
  12229. else $as_nop
  12230. ac_compiler_gnu=no
  12231. fi
  12232. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12233. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12234. fi
  12235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12236. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12237. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12238. if test $ac_compiler_gnu = yes; then
  12239. GXX=yes
  12240. else
  12241. GXX=
  12242. fi
  12243. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12244. ac_save_CXXFLAGS=$CXXFLAGS
  12245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12246. printf %s "checking whether $CXX accepts -g... " >&6; }
  12247. if test ${ac_cv_prog_cxx_g+y}
  12248. then :
  12249. printf %s "(cached) " >&6
  12250. else $as_nop
  12251. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12252. ac_cxx_werror_flag=yes
  12253. ac_cv_prog_cxx_g=no
  12254. CXXFLAGS="-g"
  12255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12256. /* end confdefs.h. */
  12257. int
  12258. main (void)
  12259. {
  12260. ;
  12261. return 0;
  12262. }
  12263. _ACEOF
  12264. if ac_fn_cxx_try_compile "$LINENO"
  12265. then :
  12266. ac_cv_prog_cxx_g=yes
  12267. else $as_nop
  12268. CXXFLAGS=""
  12269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12270. /* end confdefs.h. */
  12271. int
  12272. main (void)
  12273. {
  12274. ;
  12275. return 0;
  12276. }
  12277. _ACEOF
  12278. if ac_fn_cxx_try_compile "$LINENO"
  12279. then :
  12280. else $as_nop
  12281. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12282. CXXFLAGS="-g"
  12283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12284. /* end confdefs.h. */
  12285. int
  12286. main (void)
  12287. {
  12288. ;
  12289. return 0;
  12290. }
  12291. _ACEOF
  12292. if ac_fn_cxx_try_compile "$LINENO"
  12293. then :
  12294. ac_cv_prog_cxx_g=yes
  12295. fi
  12296. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12297. fi
  12298. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12299. fi
  12300. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12301. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12302. fi
  12303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12304. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12305. if test $ac_test_CXXFLAGS; then
  12306. CXXFLAGS=$ac_save_CXXFLAGS
  12307. elif test $ac_cv_prog_cxx_g = yes; then
  12308. if test "$GXX" = yes; then
  12309. CXXFLAGS="-g -O2"
  12310. else
  12311. CXXFLAGS="-g"
  12312. fi
  12313. else
  12314. if test "$GXX" = yes; then
  12315. CXXFLAGS="-O2"
  12316. else
  12317. CXXFLAGS=
  12318. fi
  12319. fi
  12320. ac_prog_cxx_stdcxx=no
  12321. if test x$ac_prog_cxx_stdcxx = xno
  12322. then :
  12323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12324. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12325. if test ${ac_cv_prog_cxx_cxx11+y}
  12326. then :
  12327. printf %s "(cached) " >&6
  12328. else $as_nop
  12329. ac_cv_prog_cxx_cxx11=no
  12330. ac_save_CXX=$CXX
  12331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12332. /* end confdefs.h. */
  12333. $ac_cxx_conftest_cxx11_program
  12334. _ACEOF
  12335. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12336. do
  12337. CXX="$ac_save_CXX $ac_arg"
  12338. if ac_fn_cxx_try_compile "$LINENO"
  12339. then :
  12340. ac_cv_prog_cxx_cxx11=$ac_arg
  12341. fi
  12342. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12343. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12344. done
  12345. rm -f conftest.$ac_ext
  12346. CXX=$ac_save_CXX
  12347. fi
  12348. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12349. then :
  12350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12351. printf "%s\n" "unsupported" >&6; }
  12352. else $as_nop
  12353. if test "x$ac_cv_prog_cxx_cxx11" = x
  12354. then :
  12355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12356. printf "%s\n" "none needed" >&6; }
  12357. else $as_nop
  12358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12359. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12360. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12361. fi
  12362. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12363. ac_prog_cxx_stdcxx=cxx11
  12364. fi
  12365. fi
  12366. if test x$ac_prog_cxx_stdcxx = xno
  12367. then :
  12368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12369. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12370. if test ${ac_cv_prog_cxx_cxx98+y}
  12371. then :
  12372. printf %s "(cached) " >&6
  12373. else $as_nop
  12374. ac_cv_prog_cxx_cxx98=no
  12375. ac_save_CXX=$CXX
  12376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12377. /* end confdefs.h. */
  12378. $ac_cxx_conftest_cxx98_program
  12379. _ACEOF
  12380. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12381. do
  12382. CXX="$ac_save_CXX $ac_arg"
  12383. if ac_fn_cxx_try_compile "$LINENO"
  12384. then :
  12385. ac_cv_prog_cxx_cxx98=$ac_arg
  12386. fi
  12387. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12388. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12389. done
  12390. rm -f conftest.$ac_ext
  12391. CXX=$ac_save_CXX
  12392. fi
  12393. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12394. then :
  12395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12396. printf "%s\n" "unsupported" >&6; }
  12397. else $as_nop
  12398. if test "x$ac_cv_prog_cxx_cxx98" = x
  12399. then :
  12400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12401. printf "%s\n" "none needed" >&6; }
  12402. else $as_nop
  12403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12404. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12405. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12406. fi
  12407. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12408. ac_prog_cxx_stdcxx=cxx98
  12409. fi
  12410. fi
  12411. ac_ext=c
  12412. ac_cpp='$CPP $CPPFLAGS'
  12413. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12414. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12415. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12416. func_stripname_cnf ()
  12417. {
  12418. case $2 in
  12419. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12420. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12421. esac
  12422. } # func_stripname_cnf
  12423. if test -n "$CXX" && ( test no != "$CXX" &&
  12424. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12425. (test g++ != "$CXX"))); then
  12426. ac_ext=cpp
  12427. ac_cpp='$CXXCPP $CPPFLAGS'
  12428. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12429. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12430. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12432. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12433. if test -z "$CXXCPP"; then
  12434. if test ${ac_cv_prog_CXXCPP+y}
  12435. then :
  12436. printf %s "(cached) " >&6
  12437. else $as_nop
  12438. # Double quotes because $CXX needs to be expanded
  12439. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12440. do
  12441. ac_preproc_ok=false
  12442. for ac_cxx_preproc_warn_flag in '' yes
  12443. do
  12444. # Use a header file that comes with gcc, so configuring glibc
  12445. # with a fresh cross-compiler works.
  12446. # On the NeXT, cc -E runs the code through the compiler's parser,
  12447. # not just through cpp. "Syntax error" is here to catch this case.
  12448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12449. /* end confdefs.h. */
  12450. #include <limits.h>
  12451. Syntax error
  12452. _ACEOF
  12453. if ac_fn_cxx_try_cpp "$LINENO"
  12454. then :
  12455. else $as_nop
  12456. # Broken: fails on valid input.
  12457. continue
  12458. fi
  12459. rm -f conftest.err conftest.i conftest.$ac_ext
  12460. # OK, works on sane cases. Now check whether nonexistent headers
  12461. # can be detected and how.
  12462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12463. /* end confdefs.h. */
  12464. #include <ac_nonexistent.h>
  12465. _ACEOF
  12466. if ac_fn_cxx_try_cpp "$LINENO"
  12467. then :
  12468. # Broken: success on invalid input.
  12469. continue
  12470. else $as_nop
  12471. # Passes both tests.
  12472. ac_preproc_ok=:
  12473. break
  12474. fi
  12475. rm -f conftest.err conftest.i conftest.$ac_ext
  12476. done
  12477. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12478. rm -f conftest.i conftest.err conftest.$ac_ext
  12479. if $ac_preproc_ok
  12480. then :
  12481. break
  12482. fi
  12483. done
  12484. ac_cv_prog_CXXCPP=$CXXCPP
  12485. fi
  12486. CXXCPP=$ac_cv_prog_CXXCPP
  12487. else
  12488. ac_cv_prog_CXXCPP=$CXXCPP
  12489. fi
  12490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12491. printf "%s\n" "$CXXCPP" >&6; }
  12492. ac_preproc_ok=false
  12493. for ac_cxx_preproc_warn_flag in '' yes
  12494. do
  12495. # Use a header file that comes with gcc, so configuring glibc
  12496. # with a fresh cross-compiler works.
  12497. # On the NeXT, cc -E runs the code through the compiler's parser,
  12498. # not just through cpp. "Syntax error" is here to catch this case.
  12499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12500. /* end confdefs.h. */
  12501. #include <limits.h>
  12502. Syntax error
  12503. _ACEOF
  12504. if ac_fn_cxx_try_cpp "$LINENO"
  12505. then :
  12506. else $as_nop
  12507. # Broken: fails on valid input.
  12508. continue
  12509. fi
  12510. rm -f conftest.err conftest.i conftest.$ac_ext
  12511. # OK, works on sane cases. Now check whether nonexistent headers
  12512. # can be detected and how.
  12513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12514. /* end confdefs.h. */
  12515. #include <ac_nonexistent.h>
  12516. _ACEOF
  12517. if ac_fn_cxx_try_cpp "$LINENO"
  12518. then :
  12519. # Broken: success on invalid input.
  12520. continue
  12521. else $as_nop
  12522. # Passes both tests.
  12523. ac_preproc_ok=:
  12524. break
  12525. fi
  12526. rm -f conftest.err conftest.i conftest.$ac_ext
  12527. done
  12528. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12529. rm -f conftest.i conftest.err conftest.$ac_ext
  12530. if $ac_preproc_ok
  12531. then :
  12532. else $as_nop
  12533. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12534. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12535. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12536. See \`config.log' for more details" "$LINENO" 5; }
  12537. fi
  12538. ac_ext=c
  12539. ac_cpp='$CPP $CPPFLAGS'
  12540. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12541. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12542. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12543. else
  12544. _lt_caught_CXX_error=yes
  12545. fi
  12546. ac_ext=cpp
  12547. ac_cpp='$CXXCPP $CPPFLAGS'
  12548. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12549. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12550. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12551. archive_cmds_need_lc_CXX=no
  12552. allow_undefined_flag_CXX=
  12553. always_export_symbols_CXX=no
  12554. archive_expsym_cmds_CXX=
  12555. compiler_needs_object_CXX=no
  12556. export_dynamic_flag_spec_CXX=
  12557. hardcode_direct_CXX=no
  12558. hardcode_direct_absolute_CXX=no
  12559. hardcode_libdir_flag_spec_CXX=
  12560. hardcode_libdir_separator_CXX=
  12561. hardcode_minus_L_CXX=no
  12562. hardcode_shlibpath_var_CXX=unsupported
  12563. hardcode_automatic_CXX=no
  12564. inherit_rpath_CXX=no
  12565. module_cmds_CXX=
  12566. module_expsym_cmds_CXX=
  12567. link_all_deplibs_CXX=unknown
  12568. old_archive_cmds_CXX=$old_archive_cmds
  12569. reload_flag_CXX=$reload_flag
  12570. reload_cmds_CXX=$reload_cmds
  12571. no_undefined_flag_CXX=
  12572. whole_archive_flag_spec_CXX=
  12573. enable_shared_with_static_runtimes_CXX=no
  12574. # Source file extension for C++ test sources.
  12575. ac_ext=cpp
  12576. # Object file extension for compiled C++ test sources.
  12577. objext=o
  12578. objext_CXX=$objext
  12579. # No sense in running all these tests if we already determined that
  12580. # the CXX compiler isn't working. Some variables (like enable_shared)
  12581. # are currently assumed to apply to all compilers on this platform,
  12582. # and will be corrupted by setting them based on a non-working compiler.
  12583. if test yes != "$_lt_caught_CXX_error"; then
  12584. # Code to be used in simple compile tests
  12585. lt_simple_compile_test_code="int some_variable = 0;"
  12586. # Code to be used in simple link tests
  12587. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12588. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12589. # If no C compiler was specified, use CC.
  12590. LTCC=${LTCC-"$CC"}
  12591. # If no C compiler flags were specified, use CFLAGS.
  12592. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12593. # Allow CC to be a program name with arguments.
  12594. compiler=$CC
  12595. # save warnings/boilerplate of simple test code
  12596. ac_outfile=conftest.$ac_objext
  12597. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12598. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12599. _lt_compiler_boilerplate=`cat conftest.err`
  12600. $RM conftest*
  12601. ac_outfile=conftest.$ac_objext
  12602. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12603. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12604. _lt_linker_boilerplate=`cat conftest.err`
  12605. $RM -r conftest*
  12606. # Allow CC to be a program name with arguments.
  12607. lt_save_CC=$CC
  12608. lt_save_CFLAGS=$CFLAGS
  12609. lt_save_LD=$LD
  12610. lt_save_GCC=$GCC
  12611. GCC=$GXX
  12612. lt_save_with_gnu_ld=$with_gnu_ld
  12613. lt_save_path_LD=$lt_cv_path_LD
  12614. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12615. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12616. else
  12617. $as_unset lt_cv_prog_gnu_ld
  12618. fi
  12619. if test -n "${lt_cv_path_LDCXX+set}"; then
  12620. lt_cv_path_LD=$lt_cv_path_LDCXX
  12621. else
  12622. $as_unset lt_cv_path_LD
  12623. fi
  12624. test -z "${LDCXX+set}" || LD=$LDCXX
  12625. CC=${CXX-"c++"}
  12626. CFLAGS=$CXXFLAGS
  12627. compiler=$CC
  12628. compiler_CXX=$CC
  12629. func_cc_basename $compiler
  12630. cc_basename=$func_cc_basename_result
  12631. if test -n "$compiler"; then
  12632. # We don't want -fno-exception when compiling C++ code, so set the
  12633. # no_builtin_flag separately
  12634. if test yes = "$GXX"; then
  12635. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12636. else
  12637. lt_prog_compiler_no_builtin_flag_CXX=
  12638. fi
  12639. if test yes = "$GXX"; then
  12640. # Set up default GNU C++ configuration
  12641. # Check whether --with-gnu-ld was given.
  12642. if test ${with_gnu_ld+y}
  12643. then :
  12644. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12645. else $as_nop
  12646. with_gnu_ld=no
  12647. fi
  12648. ac_prog=ld
  12649. if test yes = "$GCC"; then
  12650. # Check if gcc -print-prog-name=ld gives a path.
  12651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12652. printf %s "checking for ld used by $CC... " >&6; }
  12653. case $host in
  12654. *-*-mingw* | *-*-windows*)
  12655. # gcc leaves a trailing carriage return, which upsets mingw
  12656. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12657. *)
  12658. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12659. esac
  12660. case $ac_prog in
  12661. # Accept absolute paths.
  12662. [\\/]* | ?:[\\/]*)
  12663. re_direlt='/[^/][^/]*/\.\./'
  12664. # Canonicalize the pathname of ld
  12665. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12666. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12667. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12668. done
  12669. test -z "$LD" && LD=$ac_prog
  12670. ;;
  12671. "")
  12672. # If it fails, then pretend we aren't using GCC.
  12673. ac_prog=ld
  12674. ;;
  12675. *)
  12676. # If it is relative, then search for the first ld in PATH.
  12677. with_gnu_ld=unknown
  12678. ;;
  12679. esac
  12680. elif test yes = "$with_gnu_ld"; then
  12681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12682. printf %s "checking for GNU ld... " >&6; }
  12683. else
  12684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12685. printf %s "checking for non-GNU ld... " >&6; }
  12686. fi
  12687. if test ${lt_cv_path_LD+y}
  12688. then :
  12689. printf %s "(cached) " >&6
  12690. else $as_nop
  12691. if test -z "$LD"; then
  12692. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12693. for ac_dir in $PATH; do
  12694. IFS=$lt_save_ifs
  12695. test -z "$ac_dir" && ac_dir=.
  12696. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12697. lt_cv_path_LD=$ac_dir/$ac_prog
  12698. # Check to see if the program is GNU ld. I'd rather use --version,
  12699. # but apparently some variants of GNU ld only accept -v.
  12700. # Break only if it was the GNU/non-GNU ld that we prefer.
  12701. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12702. *GNU* | *'with BFD'*)
  12703. test no != "$with_gnu_ld" && break
  12704. ;;
  12705. *)
  12706. test yes != "$with_gnu_ld" && break
  12707. ;;
  12708. esac
  12709. fi
  12710. done
  12711. IFS=$lt_save_ifs
  12712. else
  12713. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12714. fi
  12715. fi
  12716. LD=$lt_cv_path_LD
  12717. if test -n "$LD"; then
  12718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12719. printf "%s\n" "$LD" >&6; }
  12720. else
  12721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12722. printf "%s\n" "no" >&6; }
  12723. fi
  12724. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12726. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12727. if test ${lt_cv_prog_gnu_ld+y}
  12728. then :
  12729. printf %s "(cached) " >&6
  12730. else $as_nop
  12731. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12732. case `$LD -v 2>&1 </dev/null` in
  12733. *GNU* | *'with BFD'*)
  12734. lt_cv_prog_gnu_ld=yes
  12735. ;;
  12736. *)
  12737. lt_cv_prog_gnu_ld=no
  12738. ;;
  12739. esac
  12740. fi
  12741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12742. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12743. with_gnu_ld=$lt_cv_prog_gnu_ld
  12744. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12745. # archiving commands below assume that GNU ld is being used.
  12746. if test yes = "$with_gnu_ld"; then
  12747. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12748. 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'
  12749. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12750. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12751. # If archive_cmds runs LD, not CC, wlarc should be empty
  12752. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12753. # investigate it a little bit more. (MM)
  12754. wlarc='$wl'
  12755. # ancient GNU ld didn't support --whole-archive et. al.
  12756. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12757. $GREP 'no-whole-archive' > /dev/null; then
  12758. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12759. else
  12760. whole_archive_flag_spec_CXX=
  12761. fi
  12762. else
  12763. with_gnu_ld=no
  12764. wlarc=
  12765. # A generic and very simple default shared library creation
  12766. # command for GNU C++ for the case where it uses the native
  12767. # linker, instead of GNU ld. If possible, this setting should
  12768. # overridden to take advantage of the native linker features on
  12769. # the platform it is being used on.
  12770. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12771. fi
  12772. # Commands to make compiler produce verbose output that lists
  12773. # what "hidden" libraries, object files and flags are used when
  12774. # linking a shared library.
  12775. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  12776. else
  12777. GXX=no
  12778. with_gnu_ld=no
  12779. wlarc=
  12780. fi
  12781. # PORTME: fill in a description of your system's C++ link characteristics
  12782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12783. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12784. ld_shlibs_CXX=yes
  12785. case $host_os in
  12786. aix3*)
  12787. # FIXME: insert proper C++ library support
  12788. ld_shlibs_CXX=no
  12789. ;;
  12790. aix[4-9]*)
  12791. if test ia64 = "$host_cpu"; then
  12792. # On IA64, the linker does run time linking by default, so we don't
  12793. # have to do anything special.
  12794. aix_use_runtimelinking=no
  12795. exp_sym_flag='-Bexport'
  12796. no_entry_flag=
  12797. else
  12798. aix_use_runtimelinking=no
  12799. # Test if we are trying to use run time linking or normal
  12800. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12801. # have runtime linking enabled, and use it for executables.
  12802. # For shared libraries, we enable/disable runtime linking
  12803. # depending on the kind of the shared library created -
  12804. # when "with_aix_soname,aix_use_runtimelinking" is:
  12805. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12806. # "aix,yes" lib.so shared, rtl:yes, for executables
  12807. # lib.a static archive
  12808. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12809. # lib.a(lib.so.V) shared, rtl:no, for executables
  12810. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12811. # lib.a(lib.so.V) shared, rtl:no
  12812. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12813. # lib.a static archive
  12814. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12815. for ld_flag in $LDFLAGS; do
  12816. case $ld_flag in
  12817. *-brtl*)
  12818. aix_use_runtimelinking=yes
  12819. break
  12820. ;;
  12821. esac
  12822. done
  12823. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12824. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12825. # so we don't have lib.a shared libs to link our executables.
  12826. # We have to force runtime linking in this case.
  12827. aix_use_runtimelinking=yes
  12828. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12829. fi
  12830. ;;
  12831. esac
  12832. exp_sym_flag='-bexport'
  12833. no_entry_flag='-bnoentry'
  12834. fi
  12835. # When large executables or shared objects are built, AIX ld can
  12836. # have problems creating the table of contents. If linking a library
  12837. # or program results in "error TOC overflow" add -mminimal-toc to
  12838. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12839. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12840. archive_cmds_CXX=''
  12841. hardcode_direct_CXX=yes
  12842. hardcode_direct_absolute_CXX=yes
  12843. hardcode_libdir_separator_CXX=':'
  12844. link_all_deplibs_CXX=yes
  12845. file_list_spec_CXX='$wl-f,'
  12846. case $with_aix_soname,$aix_use_runtimelinking in
  12847. aix,*) ;; # no import file
  12848. svr4,* | *,yes) # use import file
  12849. # The Import File defines what to hardcode.
  12850. hardcode_direct_CXX=no
  12851. hardcode_direct_absolute_CXX=no
  12852. ;;
  12853. esac
  12854. if test yes = "$GXX"; then
  12855. case $host_os in aix4.[012]|aix4.[012].*)
  12856. # We only want to do this on AIX 4.2 and lower, the check
  12857. # below for broken collect2 doesn't work under 4.3+
  12858. collect2name=`$CC -print-prog-name=collect2`
  12859. if test -f "$collect2name" &&
  12860. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12861. then
  12862. # We have reworked collect2
  12863. :
  12864. else
  12865. # We have old collect2
  12866. hardcode_direct_CXX=unsupported
  12867. # It fails to find uninstalled libraries when the uninstalled
  12868. # path is not listed in the libpath. Setting hardcode_minus_L
  12869. # to unsupported forces relinking
  12870. hardcode_minus_L_CXX=yes
  12871. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12872. hardcode_libdir_separator_CXX=
  12873. fi
  12874. esac
  12875. shared_flag='-shared'
  12876. if test yes = "$aix_use_runtimelinking"; then
  12877. shared_flag=$shared_flag' $wl-G'
  12878. fi
  12879. # Need to ensure runtime linking is disabled for the traditional
  12880. # shared library, or the linker may eventually find shared libraries
  12881. # /with/ Import File - we do not want to mix them.
  12882. shared_flag_aix='-shared'
  12883. shared_flag_svr4='-shared $wl-G'
  12884. else
  12885. # not using gcc
  12886. if test ia64 = "$host_cpu"; then
  12887. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12888. # chokes on -Wl,-G. The following line is correct:
  12889. shared_flag='-G'
  12890. else
  12891. if test yes = "$aix_use_runtimelinking"; then
  12892. shared_flag='$wl-G'
  12893. else
  12894. shared_flag='$wl-bM:SRE'
  12895. fi
  12896. shared_flag_aix='$wl-bM:SRE'
  12897. shared_flag_svr4='$wl-G'
  12898. fi
  12899. fi
  12900. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12901. # It seems that -bexpall does not export symbols beginning with
  12902. # underscore (_), so it is better to generate a list of symbols to
  12903. # export.
  12904. always_export_symbols_CXX=yes
  12905. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12906. # Warning - without using the other runtime loading flags (-brtl),
  12907. # -berok will link without error, but may produce a broken library.
  12908. # The "-G" linker flag allows undefined symbols.
  12909. no_undefined_flag_CXX='-bernotok'
  12910. # Determine the default libpath from the value encoded in an empty
  12911. # executable.
  12912. if test set = "${lt_cv_aix_libpath+set}"; then
  12913. aix_libpath=$lt_cv_aix_libpath
  12914. else
  12915. if test ${lt_cv_aix_libpath__CXX+y}
  12916. then :
  12917. printf %s "(cached) " >&6
  12918. else $as_nop
  12919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12920. /* end confdefs.h. */
  12921. int
  12922. main (void)
  12923. {
  12924. ;
  12925. return 0;
  12926. }
  12927. _ACEOF
  12928. if ac_fn_cxx_try_link "$LINENO"
  12929. then :
  12930. lt_aix_libpath_sed='
  12931. /Import File Strings/,/^$/ {
  12932. /^0/ {
  12933. s/^0 *\([^ ]*\) *$/\1/
  12934. p
  12935. }
  12936. }'
  12937. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12938. # Check for a 64-bit object if we didn't find anything.
  12939. if test -z "$lt_cv_aix_libpath__CXX"; then
  12940. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12941. fi
  12942. fi
  12943. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12944. conftest$ac_exeext conftest.$ac_ext
  12945. if test -z "$lt_cv_aix_libpath__CXX"; then
  12946. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12947. fi
  12948. fi
  12949. aix_libpath=$lt_cv_aix_libpath__CXX
  12950. fi
  12951. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12952. 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
  12953. else
  12954. if test ia64 = "$host_cpu"; then
  12955. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12956. allow_undefined_flag_CXX="-z nodefs"
  12957. 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"
  12958. else
  12959. # Determine the default libpath from the value encoded in an
  12960. # empty executable.
  12961. if test set = "${lt_cv_aix_libpath+set}"; then
  12962. aix_libpath=$lt_cv_aix_libpath
  12963. else
  12964. if test ${lt_cv_aix_libpath__CXX+y}
  12965. then :
  12966. printf %s "(cached) " >&6
  12967. else $as_nop
  12968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12969. /* end confdefs.h. */
  12970. int
  12971. main (void)
  12972. {
  12973. ;
  12974. return 0;
  12975. }
  12976. _ACEOF
  12977. if ac_fn_cxx_try_link "$LINENO"
  12978. then :
  12979. lt_aix_libpath_sed='
  12980. /Import File Strings/,/^$/ {
  12981. /^0/ {
  12982. s/^0 *\([^ ]*\) *$/\1/
  12983. p
  12984. }
  12985. }'
  12986. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12987. # Check for a 64-bit object if we didn't find anything.
  12988. if test -z "$lt_cv_aix_libpath__CXX"; then
  12989. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12990. fi
  12991. fi
  12992. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12993. conftest$ac_exeext conftest.$ac_ext
  12994. if test -z "$lt_cv_aix_libpath__CXX"; then
  12995. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12996. fi
  12997. fi
  12998. aix_libpath=$lt_cv_aix_libpath__CXX
  12999. fi
  13000. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13001. # Warning - without using the other run time loading flags,
  13002. # -berok will link without error, but may produce a broken library.
  13003. no_undefined_flag_CXX=' $wl-bernotok'
  13004. allow_undefined_flag_CXX=' $wl-berok'
  13005. if test yes = "$with_gnu_ld"; then
  13006. # We only use this code for GNU lds that support --whole-archive.
  13007. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13008. else
  13009. # Exported symbols can be pulled into shared objects from archives
  13010. whole_archive_flag_spec_CXX='$convenience'
  13011. fi
  13012. archive_cmds_need_lc_CXX=yes
  13013. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13014. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13015. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13016. if test svr4 != "$with_aix_soname"; then
  13017. # This is similar to how AIX traditionally builds its shared
  13018. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13019. 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'
  13020. fi
  13021. if test aix != "$with_aix_soname"; then
  13022. 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'
  13023. else
  13024. # used by -dlpreopen to get the symbols
  13025. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13026. fi
  13027. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13028. fi
  13029. fi
  13030. ;;
  13031. beos*)
  13032. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13033. allow_undefined_flag_CXX=unsupported
  13034. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13035. # support --undefined. This deserves some investigation. FIXME
  13036. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13037. else
  13038. ld_shlibs_CXX=no
  13039. fi
  13040. ;;
  13041. chorus*)
  13042. case $cc_basename in
  13043. *)
  13044. # FIXME: insert proper C++ library support
  13045. ld_shlibs_CXX=no
  13046. ;;
  13047. esac
  13048. ;;
  13049. cygwin* | mingw* | windows* | pw32* | cegcc*)
  13050. case $GXX,$cc_basename in
  13051. ,cl* | no,cl* | ,icl* | no,icl*)
  13052. # Native MSVC or ICC
  13053. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13054. # no search path for DLLs.
  13055. hardcode_libdir_flag_spec_CXX=' '
  13056. allow_undefined_flag_CXX=unsupported
  13057. always_export_symbols_CXX=yes
  13058. file_list_spec_CXX='@'
  13059. # Tell ltmain to make .lib files, not .a files.
  13060. libext=lib
  13061. # Tell ltmain to make .dll files, not .so files.
  13062. shrext_cmds=.dll
  13063. # FIXME: Setting linknames here is a bad hack.
  13064. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13065. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13066. cp "$export_symbols" "$output_objdir/$soname.def";
  13067. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13068. else
  13069. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13070. fi~
  13071. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13072. linknames='
  13073. # The linker will not automatically build a static lib if we build a DLL.
  13074. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13075. enable_shared_with_static_runtimes_CXX=yes
  13076. # Don't use ranlib
  13077. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13078. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13079. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13080. case $lt_outputfile in
  13081. *.exe|*.EXE) ;;
  13082. *)
  13083. lt_outputfile=$lt_outputfile.exe
  13084. lt_tool_outputfile=$lt_tool_outputfile.exe
  13085. ;;
  13086. esac~
  13087. func_to_tool_file "$lt_outputfile"~
  13088. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13089. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13090. $RM "$lt_outputfile.manifest";
  13091. fi'
  13092. ;;
  13093. *)
  13094. # g++
  13095. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13096. # as there is no search path for DLLs.
  13097. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13098. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13099. allow_undefined_flag_CXX=unsupported
  13100. always_export_symbols_CXX=no
  13101. enable_shared_with_static_runtimes_CXX=yes
  13102. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13103. 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'
  13104. # If the export-symbols file already is a .def file, use it as
  13105. # is; otherwise, prepend EXPORTS...
  13106. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13107. cp $export_symbols $output_objdir/$soname.def;
  13108. else
  13109. echo EXPORTS > $output_objdir/$soname.def;
  13110. cat $export_symbols >> $output_objdir/$soname.def;
  13111. fi~
  13112. $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'
  13113. else
  13114. ld_shlibs_CXX=no
  13115. fi
  13116. ;;
  13117. esac
  13118. ;;
  13119. darwin* | rhapsody*)
  13120. archive_cmds_need_lc_CXX=no
  13121. hardcode_direct_CXX=no
  13122. hardcode_automatic_CXX=yes
  13123. hardcode_shlibpath_var_CXX=unsupported
  13124. if test yes = "$lt_cv_ld_force_load"; then
  13125. 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\"`'
  13126. else
  13127. whole_archive_flag_spec_CXX=''
  13128. fi
  13129. link_all_deplibs_CXX=yes
  13130. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13131. case $cc_basename in
  13132. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13133. *) _lt_dar_can_shared=$GCC ;;
  13134. esac
  13135. if test yes = "$_lt_dar_can_shared"; then
  13136. output_verbose_link_cmd=func_echo_all
  13137. 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"
  13138. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13139. 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"
  13140. 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"
  13141. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13142. 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"
  13143. 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"
  13144. fi
  13145. else
  13146. ld_shlibs_CXX=no
  13147. fi
  13148. ;;
  13149. os2*)
  13150. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13151. hardcode_minus_L_CXX=yes
  13152. allow_undefined_flag_CXX=unsupported
  13153. shrext_cmds=.dll
  13154. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13155. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13156. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13157. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13158. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13159. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13160. emximp -o $lib $output_objdir/$libname.def'
  13161. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13162. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13163. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13164. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13165. prefix_cmds="$SED"~
  13166. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13167. prefix_cmds="$prefix_cmds -e 1d";
  13168. fi~
  13169. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13170. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13171. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13172. emximp -o $lib $output_objdir/$libname.def'
  13173. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13174. enable_shared_with_static_runtimes_CXX=yes
  13175. file_list_spec_CXX='@'
  13176. ;;
  13177. dgux*)
  13178. case $cc_basename in
  13179. ec++*)
  13180. # FIXME: insert proper C++ library support
  13181. ld_shlibs_CXX=no
  13182. ;;
  13183. ghcx*)
  13184. # Green Hills C++ Compiler
  13185. # FIXME: insert proper C++ library support
  13186. ld_shlibs_CXX=no
  13187. ;;
  13188. *)
  13189. # FIXME: insert proper C++ library support
  13190. ld_shlibs_CXX=no
  13191. ;;
  13192. esac
  13193. ;;
  13194. freebsd2.*)
  13195. # C++ shared libraries reported to be fairly broken before
  13196. # switch to ELF
  13197. ld_shlibs_CXX=no
  13198. ;;
  13199. freebsd-elf*)
  13200. archive_cmds_need_lc_CXX=no
  13201. ;;
  13202. freebsd* | dragonfly* | midnightbsd*)
  13203. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13204. # conventions
  13205. ld_shlibs_CXX=yes
  13206. ;;
  13207. haiku*)
  13208. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13209. link_all_deplibs_CXX=yes
  13210. ;;
  13211. hpux9*)
  13212. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13213. hardcode_libdir_separator_CXX=:
  13214. export_dynamic_flag_spec_CXX='$wl-E'
  13215. hardcode_direct_CXX=yes
  13216. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13217. # but as the default
  13218. # location of the library.
  13219. case $cc_basename in
  13220. CC*)
  13221. # FIXME: insert proper C++ library support
  13222. ld_shlibs_CXX=no
  13223. ;;
  13224. aCC*)
  13225. 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'
  13226. # Commands to make compiler produce verbose output that lists
  13227. # what "hidden" libraries, object files and flags are used when
  13228. # linking a shared library.
  13229. #
  13230. # There doesn't appear to be a way to prevent this compiler from
  13231. # explicitly linking system object files so we need to strip them
  13232. # from the output so that they don't get included in the library
  13233. # dependencies.
  13234. 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"'
  13235. ;;
  13236. *)
  13237. if test yes = "$GXX"; then
  13238. 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'
  13239. else
  13240. # FIXME: insert proper C++ library support
  13241. ld_shlibs_CXX=no
  13242. fi
  13243. ;;
  13244. esac
  13245. ;;
  13246. hpux10*|hpux11*)
  13247. if test no = "$with_gnu_ld"; then
  13248. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13249. hardcode_libdir_separator_CXX=:
  13250. case $host_cpu in
  13251. hppa*64*|ia64*)
  13252. ;;
  13253. *)
  13254. export_dynamic_flag_spec_CXX='$wl-E'
  13255. ;;
  13256. esac
  13257. fi
  13258. case $host_cpu in
  13259. hppa*64*|ia64*)
  13260. hardcode_direct_CXX=no
  13261. hardcode_shlibpath_var_CXX=no
  13262. ;;
  13263. *)
  13264. hardcode_direct_CXX=yes
  13265. hardcode_direct_absolute_CXX=yes
  13266. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13267. # but as the default
  13268. # location of the library.
  13269. ;;
  13270. esac
  13271. case $cc_basename in
  13272. CC*)
  13273. # FIXME: insert proper C++ library support
  13274. ld_shlibs_CXX=no
  13275. ;;
  13276. aCC*)
  13277. case $host_cpu in
  13278. hppa*64*)
  13279. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13280. ;;
  13281. ia64*)
  13282. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13283. ;;
  13284. *)
  13285. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13286. ;;
  13287. esac
  13288. # Commands to make compiler produce verbose output that lists
  13289. # what "hidden" libraries, object files and flags are used when
  13290. # linking a shared library.
  13291. #
  13292. # There doesn't appear to be a way to prevent this compiler from
  13293. # explicitly linking system object files so we need to strip them
  13294. # from the output so that they don't get included in the library
  13295. # dependencies.
  13296. 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"'
  13297. ;;
  13298. *)
  13299. if test yes = "$GXX"; then
  13300. if test no = "$with_gnu_ld"; then
  13301. case $host_cpu in
  13302. hppa*64*)
  13303. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13304. ;;
  13305. ia64*)
  13306. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13307. ;;
  13308. *)
  13309. 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'
  13310. ;;
  13311. esac
  13312. fi
  13313. else
  13314. # FIXME: insert proper C++ library support
  13315. ld_shlibs_CXX=no
  13316. fi
  13317. ;;
  13318. esac
  13319. ;;
  13320. interix[3-9]*)
  13321. hardcode_direct_CXX=no
  13322. hardcode_shlibpath_var_CXX=no
  13323. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13324. export_dynamic_flag_spec_CXX='$wl-E'
  13325. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13326. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13327. # default) and relocated if they conflict, which is a slow very memory
  13328. # consuming and fragmenting process. To avoid this, we pick a random,
  13329. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13330. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13331. 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'
  13332. 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'
  13333. ;;
  13334. irix5* | irix6*)
  13335. case $cc_basename in
  13336. CC*)
  13337. # SGI C++
  13338. 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'
  13339. # Archives containing C++ object files must be created using
  13340. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13341. # necessary to make sure instantiated templates are included
  13342. # in the archive.
  13343. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13344. ;;
  13345. *)
  13346. if test yes = "$GXX"; then
  13347. if test no = "$with_gnu_ld"; then
  13348. 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'
  13349. else
  13350. 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'
  13351. fi
  13352. fi
  13353. link_all_deplibs_CXX=yes
  13354. ;;
  13355. esac
  13356. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13357. hardcode_libdir_separator_CXX=:
  13358. inherit_rpath_CXX=yes
  13359. ;;
  13360. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13361. case $cc_basename in
  13362. KCC*)
  13363. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13364. # KCC will only create a shared library if the output file
  13365. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13366. # to its proper name (with version) after linking.
  13367. 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'
  13368. 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'
  13369. # Commands to make compiler produce verbose output that lists
  13370. # what "hidden" libraries, object files and flags are used when
  13371. # linking a shared library.
  13372. #
  13373. # There doesn't appear to be a way to prevent this compiler from
  13374. # explicitly linking system object files so we need to strip them
  13375. # from the output so that they don't get included in the library
  13376. # dependencies.
  13377. 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"'
  13378. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13379. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13380. # Archives containing C++ object files must be created using
  13381. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13382. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13383. ;;
  13384. icpc* | ecpc* )
  13385. # Intel C++
  13386. with_gnu_ld=yes
  13387. # version 8.0 and above of icpc choke on multiply defined symbols
  13388. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13389. # earlier do not add the objects themselves.
  13390. case `$CC -V 2>&1` in
  13391. *"Version 7."*)
  13392. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13393. 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'
  13394. ;;
  13395. *) # Version 8.0 or newer
  13396. tmp_idyn=
  13397. case $host_cpu in
  13398. ia64*) tmp_idyn=' -i_dynamic';;
  13399. esac
  13400. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13401. 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'
  13402. ;;
  13403. esac
  13404. archive_cmds_need_lc_CXX=no
  13405. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13406. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13407. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13408. ;;
  13409. pgCC* | pgcpp*)
  13410. # Portland Group C++ compiler
  13411. case `$CC -V` in
  13412. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13413. prelink_cmds_CXX='tpldir=Template.dir~
  13414. rm -rf $tpldir~
  13415. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13416. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13417. old_archive_cmds_CXX='tpldir=Template.dir~
  13418. rm -rf $tpldir~
  13419. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13420. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13421. $RANLIB $oldlib'
  13422. archive_cmds_CXX='tpldir=Template.dir~
  13423. rm -rf $tpldir~
  13424. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13425. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13426. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13427. rm -rf $tpldir~
  13428. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13429. $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'
  13430. ;;
  13431. *) # Version 6 and above use weak symbols
  13432. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13433. 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'
  13434. ;;
  13435. esac
  13436. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13437. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13438. 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'
  13439. ;;
  13440. cxx*)
  13441. # Compaq C++
  13442. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13443. 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'
  13444. runpath_var=LD_RUN_PATH
  13445. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13446. hardcode_libdir_separator_CXX=:
  13447. # Commands to make compiler produce verbose output that lists
  13448. # what "hidden" libraries, object files and flags are used when
  13449. # linking a shared library.
  13450. #
  13451. # There doesn't appear to be a way to prevent this compiler from
  13452. # explicitly linking system object files so we need to strip them
  13453. # from the output so that they don't get included in the library
  13454. # dependencies.
  13455. 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'
  13456. ;;
  13457. xl* | mpixl* | bgxl*)
  13458. # IBM XL 8.0 on PPC, with GNU ld
  13459. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13460. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13461. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13462. if test yes = "$supports_anon_versioning"; then
  13463. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13464. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13465. echo "local: *; };" >> $output_objdir/$libname.ver~
  13466. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13467. fi
  13468. ;;
  13469. *)
  13470. case `$CC -V 2>&1 | sed 5q` in
  13471. *Sun\ C*)
  13472. # Sun C++ 5.9
  13473. no_undefined_flag_CXX=' -zdefs'
  13474. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13475. 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'
  13476. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13477. 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'
  13478. compiler_needs_object_CXX=yes
  13479. # Not sure whether something based on
  13480. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13481. # would be better.
  13482. output_verbose_link_cmd='func_echo_all'
  13483. # Archives containing C++ object files must be created using
  13484. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13485. # necessary to make sure instantiated templates are included
  13486. # in the archive.
  13487. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13488. ;;
  13489. esac
  13490. ;;
  13491. esac
  13492. ;;
  13493. lynxos*)
  13494. # FIXME: insert proper C++ library support
  13495. ld_shlibs_CXX=no
  13496. ;;
  13497. m88k*)
  13498. # FIXME: insert proper C++ library support
  13499. ld_shlibs_CXX=no
  13500. ;;
  13501. mvs*)
  13502. case $cc_basename in
  13503. cxx*)
  13504. # FIXME: insert proper C++ library support
  13505. ld_shlibs_CXX=no
  13506. ;;
  13507. *)
  13508. # FIXME: insert proper C++ library support
  13509. ld_shlibs_CXX=no
  13510. ;;
  13511. esac
  13512. ;;
  13513. netbsd*)
  13514. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13515. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13516. wlarc=
  13517. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13518. hardcode_direct_CXX=yes
  13519. hardcode_shlibpath_var_CXX=no
  13520. fi
  13521. # Workaround some broken pre-1.5 toolchains
  13522. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13523. ;;
  13524. *nto* | *qnx*)
  13525. ld_shlibs_CXX=yes
  13526. ;;
  13527. openbsd* | bitrig*)
  13528. if test -f /usr/libexec/ld.so; then
  13529. hardcode_direct_CXX=yes
  13530. hardcode_shlibpath_var_CXX=no
  13531. hardcode_direct_absolute_CXX=yes
  13532. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13533. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13534. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13535. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13536. export_dynamic_flag_spec_CXX='$wl-E'
  13537. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13538. fi
  13539. output_verbose_link_cmd=func_echo_all
  13540. else
  13541. ld_shlibs_CXX=no
  13542. fi
  13543. ;;
  13544. osf3* | osf4* | osf5*)
  13545. case $cc_basename in
  13546. KCC*)
  13547. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13548. # KCC will only create a shared library if the output file
  13549. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13550. # to its proper name (with version) after linking.
  13551. 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'
  13552. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13553. hardcode_libdir_separator_CXX=:
  13554. # Archives containing C++ object files must be created using
  13555. # the KAI C++ compiler.
  13556. case $host in
  13557. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13558. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13559. esac
  13560. ;;
  13561. RCC*)
  13562. # Rational C++ 2.4.1
  13563. # FIXME: insert proper C++ library support
  13564. ld_shlibs_CXX=no
  13565. ;;
  13566. cxx*)
  13567. case $host in
  13568. osf3*)
  13569. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13570. 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'
  13571. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13572. ;;
  13573. *)
  13574. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13575. 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'
  13576. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13577. echo "-hidden">> $lib.exp~
  13578. $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~
  13579. $RM $lib.exp'
  13580. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13581. ;;
  13582. esac
  13583. hardcode_libdir_separator_CXX=:
  13584. # Commands to make compiler produce verbose output that lists
  13585. # what "hidden" libraries, object files and flags are used when
  13586. # linking a shared library.
  13587. #
  13588. # There doesn't appear to be a way to prevent this compiler from
  13589. # explicitly linking system object files so we need to strip them
  13590. # from the output so that they don't get included in the library
  13591. # dependencies.
  13592. 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"'
  13593. ;;
  13594. *)
  13595. if test yes,no = "$GXX,$with_gnu_ld"; then
  13596. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13597. case $host in
  13598. osf3*)
  13599. 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'
  13600. ;;
  13601. *)
  13602. 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'
  13603. ;;
  13604. esac
  13605. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13606. hardcode_libdir_separator_CXX=:
  13607. # Commands to make compiler produce verbose output that lists
  13608. # what "hidden" libraries, object files and flags are used when
  13609. # linking a shared library.
  13610. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13611. else
  13612. # FIXME: insert proper C++ library support
  13613. ld_shlibs_CXX=no
  13614. fi
  13615. ;;
  13616. esac
  13617. ;;
  13618. psos*)
  13619. # FIXME: insert proper C++ library support
  13620. ld_shlibs_CXX=no
  13621. ;;
  13622. sunos4*)
  13623. case $cc_basename in
  13624. CC*)
  13625. # Sun C++ 4.x
  13626. # FIXME: insert proper C++ library support
  13627. ld_shlibs_CXX=no
  13628. ;;
  13629. lcc*)
  13630. # Lucid
  13631. # FIXME: insert proper C++ library support
  13632. ld_shlibs_CXX=no
  13633. ;;
  13634. *)
  13635. # FIXME: insert proper C++ library support
  13636. ld_shlibs_CXX=no
  13637. ;;
  13638. esac
  13639. ;;
  13640. solaris*)
  13641. case $cc_basename in
  13642. CC* | sunCC*)
  13643. # Sun C++ 4.2, 5.x and Centerline C++
  13644. archive_cmds_need_lc_CXX=yes
  13645. no_undefined_flag_CXX=' -zdefs'
  13646. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13647. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13648. $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'
  13649. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13650. hardcode_shlibpath_var_CXX=no
  13651. case $host_os in
  13652. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13653. *)
  13654. # The compiler driver will combine and reorder linker options,
  13655. # but understands '-z linker_flag'.
  13656. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13657. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13658. ;;
  13659. esac
  13660. link_all_deplibs_CXX=yes
  13661. output_verbose_link_cmd='func_echo_all'
  13662. # Archives containing C++ object files must be created using
  13663. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13664. # necessary to make sure instantiated templates are included
  13665. # in the archive.
  13666. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13667. ;;
  13668. gcx*)
  13669. # Green Hills C++ Compiler
  13670. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13671. # The C++ compiler must be used to create the archive.
  13672. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13673. ;;
  13674. *)
  13675. # GNU C++ compiler with Solaris linker
  13676. if test yes,no = "$GXX,$with_gnu_ld"; then
  13677. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13678. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13679. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13680. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13681. $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'
  13682. # Commands to make compiler produce verbose output that lists
  13683. # what "hidden" libraries, object files and flags are used when
  13684. # linking a shared library.
  13685. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13686. else
  13687. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13688. # platform.
  13689. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13690. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13691. $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'
  13692. # Commands to make compiler produce verbose output that lists
  13693. # what "hidden" libraries, object files and flags are used when
  13694. # linking a shared library.
  13695. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13696. fi
  13697. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13698. case $host_os in
  13699. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13700. *)
  13701. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13702. ;;
  13703. esac
  13704. fi
  13705. ;;
  13706. esac
  13707. ;;
  13708. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13709. no_undefined_flag_CXX='$wl-z,text'
  13710. archive_cmds_need_lc_CXX=no
  13711. hardcode_shlibpath_var_CXX=no
  13712. runpath_var='LD_RUN_PATH'
  13713. case $cc_basename in
  13714. CC*)
  13715. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13716. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13717. ;;
  13718. *)
  13719. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13720. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13721. ;;
  13722. esac
  13723. ;;
  13724. sysv5* | sco3.2v5* | sco5v6*)
  13725. # Note: We CANNOT use -z defs as we might desire, because we do not
  13726. # link with -lc, and that would cause any symbols used from libc to
  13727. # always be unresolved, which means just about no library would
  13728. # ever link correctly. If we're not using GNU ld we use -z text
  13729. # though, which does catch some bad symbols but isn't as heavy-handed
  13730. # as -z defs.
  13731. no_undefined_flag_CXX='$wl-z,text'
  13732. allow_undefined_flag_CXX='$wl-z,nodefs'
  13733. archive_cmds_need_lc_CXX=no
  13734. hardcode_shlibpath_var_CXX=no
  13735. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13736. hardcode_libdir_separator_CXX=':'
  13737. link_all_deplibs_CXX=yes
  13738. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13739. runpath_var='LD_RUN_PATH'
  13740. case $cc_basename in
  13741. CC*)
  13742. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13743. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13744. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13745. '"$old_archive_cmds_CXX"
  13746. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13747. '"$reload_cmds_CXX"
  13748. ;;
  13749. *)
  13750. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13751. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13752. ;;
  13753. esac
  13754. ;;
  13755. tandem*)
  13756. case $cc_basename in
  13757. NCC*)
  13758. # NonStop-UX NCC 3.20
  13759. # FIXME: insert proper C++ library support
  13760. ld_shlibs_CXX=no
  13761. ;;
  13762. *)
  13763. # FIXME: insert proper C++ library support
  13764. ld_shlibs_CXX=no
  13765. ;;
  13766. esac
  13767. ;;
  13768. vxworks*)
  13769. # FIXME: insert proper C++ library support
  13770. ld_shlibs_CXX=no
  13771. ;;
  13772. *)
  13773. # FIXME: insert proper C++ library support
  13774. ld_shlibs_CXX=no
  13775. ;;
  13776. esac
  13777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13778. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13779. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13780. GCC_CXX=$GXX
  13781. LD_CXX=$LD
  13782. ## CAVEAT EMPTOR:
  13783. ## There is no encapsulation within the following macros, do not change
  13784. ## the running order or otherwise move them around unless you know exactly
  13785. ## what you are doing...
  13786. # Dependencies to place before and after the object being linked:
  13787. predep_objects_CXX=
  13788. postdep_objects_CXX=
  13789. predeps_CXX=
  13790. postdeps_CXX=
  13791. compiler_lib_search_path_CXX=
  13792. cat > conftest.$ac_ext <<_LT_EOF
  13793. class Foo
  13794. {
  13795. public:
  13796. Foo (void) { a = 0; }
  13797. private:
  13798. int a;
  13799. };
  13800. _LT_EOF
  13801. _lt_libdeps_save_CFLAGS=$CFLAGS
  13802. case "$CC $CFLAGS " in #(
  13803. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13804. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13805. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13806. esac
  13807. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13808. (eval $ac_compile) 2>&5
  13809. ac_status=$?
  13810. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13811. test $ac_status = 0; }; then
  13812. # Parse the compiler output and extract the necessary
  13813. # objects, libraries and library flags.
  13814. # Sentinel used to keep track of whether or not we are before
  13815. # the conftest object file.
  13816. pre_test_object_deps_done=no
  13817. for p in `eval "$output_verbose_link_cmd"`; do
  13818. case $prev$p in
  13819. -L* | -R* | -l*)
  13820. # Some compilers place space between "-{L,R}" and the path.
  13821. # Remove the space.
  13822. if test x-L = "x$p" ||
  13823. test x-R = "x$p" ||
  13824. test x-l = "x$p"; then
  13825. prev=$p
  13826. continue
  13827. fi
  13828. # Expand the sysroot to ease extracting the directories later.
  13829. if test -z "$prev"; then
  13830. case $p in
  13831. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13832. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13833. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13834. esac
  13835. fi
  13836. case $p in
  13837. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13838. esac
  13839. if test no = "$pre_test_object_deps_done"; then
  13840. case $prev in
  13841. -L | -R)
  13842. # Internal compiler library paths should come after those
  13843. # provided the user. The postdeps already come after the
  13844. # user supplied libs so there is no need to process them.
  13845. if test -z "$compiler_lib_search_path_CXX"; then
  13846. compiler_lib_search_path_CXX=$prev$p
  13847. else
  13848. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13849. fi
  13850. ;;
  13851. # The "-l" case would never come before the object being
  13852. # linked, so don't bother handling this case.
  13853. esac
  13854. else
  13855. if test -z "$postdeps_CXX"; then
  13856. postdeps_CXX=$prev$p
  13857. else
  13858. postdeps_CXX="${postdeps_CXX} $prev$p"
  13859. fi
  13860. fi
  13861. prev=
  13862. ;;
  13863. *.lto.$objext) ;; # Ignore GCC LTO objects
  13864. *.$objext)
  13865. # This assumes that the test object file only shows up
  13866. # once in the compiler output.
  13867. if test "$p" = "conftest.$objext"; then
  13868. pre_test_object_deps_done=yes
  13869. continue
  13870. fi
  13871. if test no = "$pre_test_object_deps_done"; then
  13872. if test -z "$predep_objects_CXX"; then
  13873. predep_objects_CXX=$p
  13874. else
  13875. predep_objects_CXX="$predep_objects_CXX $p"
  13876. fi
  13877. else
  13878. if test -z "$postdep_objects_CXX"; then
  13879. postdep_objects_CXX=$p
  13880. else
  13881. postdep_objects_CXX="$postdep_objects_CXX $p"
  13882. fi
  13883. fi
  13884. ;;
  13885. *) ;; # Ignore the rest.
  13886. esac
  13887. done
  13888. # Clean up.
  13889. rm -f a.out a.exe
  13890. else
  13891. echo "libtool.m4: error: problem compiling CXX test program"
  13892. fi
  13893. $RM -f confest.$objext
  13894. CFLAGS=$_lt_libdeps_save_CFLAGS
  13895. # PORTME: override above test on systems where it is broken
  13896. case $host_os in
  13897. interix[3-9]*)
  13898. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13899. # hack all around it, let's just trust "g++" to DTRT.
  13900. predep_objects_CXX=
  13901. postdep_objects_CXX=
  13902. postdeps_CXX=
  13903. ;;
  13904. esac
  13905. case " $postdeps_CXX " in
  13906. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13907. esac
  13908. compiler_lib_search_dirs_CXX=
  13909. if test -n "${compiler_lib_search_path_CXX}"; then
  13910. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13911. fi
  13912. lt_prog_compiler_wl_CXX=
  13913. lt_prog_compiler_pic_CXX=
  13914. lt_prog_compiler_static_CXX=
  13915. # C++ specific cases for pic, static, wl, etc.
  13916. if test yes = "$GXX"; then
  13917. lt_prog_compiler_wl_CXX='-Wl,'
  13918. lt_prog_compiler_static_CXX='-static'
  13919. case $host_os in
  13920. aix*)
  13921. # All AIX code is PIC.
  13922. if test ia64 = "$host_cpu"; then
  13923. # AIX 5 now supports IA64 processor
  13924. lt_prog_compiler_static_CXX='-Bstatic'
  13925. fi
  13926. lt_prog_compiler_pic_CXX='-fPIC'
  13927. ;;
  13928. amigaos*)
  13929. case $host_cpu in
  13930. powerpc)
  13931. # see comment about AmigaOS4 .so support
  13932. lt_prog_compiler_pic_CXX='-fPIC'
  13933. ;;
  13934. m68k)
  13935. # FIXME: we need at least 68020 code to build shared libraries, but
  13936. # adding the '-m68020' flag to GCC prevents building anything better,
  13937. # like '-m68040'.
  13938. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13939. ;;
  13940. esac
  13941. ;;
  13942. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13943. # PIC is the default for these OSes.
  13944. ;;
  13945. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  13946. # This hack is so that the source file can tell whether it is being
  13947. # built for inclusion in a dll (and should export symbols for example).
  13948. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13949. # (--disable-auto-import) libraries
  13950. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13951. case $host_os in
  13952. os2*)
  13953. lt_prog_compiler_static_CXX='$wl-static'
  13954. ;;
  13955. esac
  13956. ;;
  13957. darwin* | rhapsody*)
  13958. # PIC is the default on this platform
  13959. # Common symbols not allowed in MH_DYLIB files
  13960. lt_prog_compiler_pic_CXX='-fno-common'
  13961. ;;
  13962. *djgpp*)
  13963. # DJGPP does not support shared libraries at all
  13964. lt_prog_compiler_pic_CXX=
  13965. ;;
  13966. haiku*)
  13967. # PIC is the default for Haiku.
  13968. # The "-static" flag exists, but is broken.
  13969. lt_prog_compiler_static_CXX=
  13970. ;;
  13971. interix[3-9]*)
  13972. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13973. # Instead, we relocate shared libraries at runtime.
  13974. ;;
  13975. sysv4*MP*)
  13976. if test -d /usr/nec; then
  13977. lt_prog_compiler_pic_CXX=-Kconform_pic
  13978. fi
  13979. ;;
  13980. hpux*)
  13981. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13982. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13983. # sets the default TLS model and affects inlining.
  13984. case $host_cpu in
  13985. hppa*64*)
  13986. ;;
  13987. *)
  13988. lt_prog_compiler_pic_CXX='-fPIC'
  13989. ;;
  13990. esac
  13991. ;;
  13992. *qnx* | *nto*)
  13993. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13994. # it will coredump.
  13995. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13996. ;;
  13997. *)
  13998. lt_prog_compiler_pic_CXX='-fPIC'
  13999. ;;
  14000. esac
  14001. else
  14002. case $host_os in
  14003. aix[4-9]*)
  14004. # All AIX code is PIC.
  14005. if test ia64 = "$host_cpu"; then
  14006. # AIX 5 now supports IA64 processor
  14007. lt_prog_compiler_static_CXX='-Bstatic'
  14008. else
  14009. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14010. fi
  14011. ;;
  14012. chorus*)
  14013. case $cc_basename in
  14014. cxch68*)
  14015. # Green Hills C++ Compiler
  14016. # _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"
  14017. ;;
  14018. esac
  14019. ;;
  14020. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  14021. # This hack is so that the source file can tell whether it is being
  14022. # built for inclusion in a dll (and should export symbols for example).
  14023. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14024. ;;
  14025. dgux*)
  14026. case $cc_basename in
  14027. ec++*)
  14028. lt_prog_compiler_pic_CXX='-KPIC'
  14029. ;;
  14030. ghcx*)
  14031. # Green Hills C++ Compiler
  14032. lt_prog_compiler_pic_CXX='-pic'
  14033. ;;
  14034. *)
  14035. ;;
  14036. esac
  14037. ;;
  14038. freebsd* | dragonfly* | midnightbsd*)
  14039. # FreeBSD uses GNU C++
  14040. ;;
  14041. hpux9* | hpux10* | hpux11*)
  14042. case $cc_basename in
  14043. CC*)
  14044. lt_prog_compiler_wl_CXX='-Wl,'
  14045. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14046. if test ia64 != "$host_cpu"; then
  14047. lt_prog_compiler_pic_CXX='+Z'
  14048. fi
  14049. ;;
  14050. aCC*)
  14051. lt_prog_compiler_wl_CXX='-Wl,'
  14052. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14053. case $host_cpu in
  14054. hppa*64*|ia64*)
  14055. # +Z the default
  14056. ;;
  14057. *)
  14058. lt_prog_compiler_pic_CXX='+Z'
  14059. ;;
  14060. esac
  14061. ;;
  14062. *)
  14063. ;;
  14064. esac
  14065. ;;
  14066. interix*)
  14067. # This is c89, which is MS Visual C++ (no shared libs)
  14068. # Anyone wants to do a port?
  14069. ;;
  14070. irix5* | irix6* | nonstopux*)
  14071. case $cc_basename in
  14072. CC*)
  14073. lt_prog_compiler_wl_CXX='-Wl,'
  14074. lt_prog_compiler_static_CXX='-non_shared'
  14075. # CC pic flag -KPIC is the default.
  14076. ;;
  14077. *)
  14078. ;;
  14079. esac
  14080. ;;
  14081. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14082. case $cc_basename in
  14083. KCC*)
  14084. # KAI C++ Compiler
  14085. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14086. lt_prog_compiler_pic_CXX='-fPIC'
  14087. ;;
  14088. ecpc* )
  14089. # old Intel C++ for x86_64, which still supported -KPIC.
  14090. lt_prog_compiler_wl_CXX='-Wl,'
  14091. lt_prog_compiler_pic_CXX='-KPIC'
  14092. lt_prog_compiler_static_CXX='-static'
  14093. ;;
  14094. icpc* )
  14095. # Intel C++, used to be incompatible with GCC.
  14096. # ICC 10 doesn't accept -KPIC any more.
  14097. lt_prog_compiler_wl_CXX='-Wl,'
  14098. lt_prog_compiler_pic_CXX='-fPIC'
  14099. lt_prog_compiler_static_CXX='-static'
  14100. ;;
  14101. pgCC* | pgcpp*)
  14102. # Portland Group C++ compiler
  14103. lt_prog_compiler_wl_CXX='-Wl,'
  14104. lt_prog_compiler_pic_CXX='-fpic'
  14105. lt_prog_compiler_static_CXX='-Bstatic'
  14106. ;;
  14107. cxx*)
  14108. # Compaq C++
  14109. # Make sure the PIC flag is empty. It appears that all Alpha
  14110. # Linux and Compaq Tru64 Unix objects are PIC.
  14111. lt_prog_compiler_pic_CXX=
  14112. lt_prog_compiler_static_CXX='-non_shared'
  14113. ;;
  14114. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14115. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14116. lt_prog_compiler_wl_CXX='-Wl,'
  14117. lt_prog_compiler_pic_CXX='-qpic'
  14118. lt_prog_compiler_static_CXX='-qstaticlink'
  14119. ;;
  14120. *)
  14121. case `$CC -V 2>&1 | sed 5q` in
  14122. *Sun\ C*)
  14123. # Sun C++ 5.9
  14124. lt_prog_compiler_pic_CXX='-KPIC'
  14125. lt_prog_compiler_static_CXX='-Bstatic'
  14126. lt_prog_compiler_wl_CXX='-Qoption ld '
  14127. ;;
  14128. esac
  14129. ;;
  14130. esac
  14131. ;;
  14132. lynxos*)
  14133. ;;
  14134. m88k*)
  14135. ;;
  14136. mvs*)
  14137. case $cc_basename in
  14138. cxx*)
  14139. lt_prog_compiler_pic_CXX='-W c,exportall'
  14140. ;;
  14141. *)
  14142. ;;
  14143. esac
  14144. ;;
  14145. netbsd*)
  14146. ;;
  14147. *qnx* | *nto*)
  14148. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14149. # it will coredump.
  14150. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14151. ;;
  14152. osf3* | osf4* | osf5*)
  14153. case $cc_basename in
  14154. KCC*)
  14155. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14156. ;;
  14157. RCC*)
  14158. # Rational C++ 2.4.1
  14159. lt_prog_compiler_pic_CXX='-pic'
  14160. ;;
  14161. cxx*)
  14162. # Digital/Compaq C++
  14163. lt_prog_compiler_wl_CXX='-Wl,'
  14164. # Make sure the PIC flag is empty. It appears that all Alpha
  14165. # Linux and Compaq Tru64 Unix objects are PIC.
  14166. lt_prog_compiler_pic_CXX=
  14167. lt_prog_compiler_static_CXX='-non_shared'
  14168. ;;
  14169. *)
  14170. ;;
  14171. esac
  14172. ;;
  14173. psos*)
  14174. ;;
  14175. solaris*)
  14176. case $cc_basename in
  14177. CC* | sunCC*)
  14178. # Sun C++ 4.2, 5.x and Centerline C++
  14179. lt_prog_compiler_pic_CXX='-KPIC'
  14180. lt_prog_compiler_static_CXX='-Bstatic'
  14181. lt_prog_compiler_wl_CXX='-Qoption ld '
  14182. ;;
  14183. gcx*)
  14184. # Green Hills C++ Compiler
  14185. lt_prog_compiler_pic_CXX='-PIC'
  14186. ;;
  14187. *)
  14188. ;;
  14189. esac
  14190. ;;
  14191. sunos4*)
  14192. case $cc_basename in
  14193. CC*)
  14194. # Sun C++ 4.x
  14195. lt_prog_compiler_pic_CXX='-pic'
  14196. lt_prog_compiler_static_CXX='-Bstatic'
  14197. ;;
  14198. lcc*)
  14199. # Lucid
  14200. lt_prog_compiler_pic_CXX='-pic'
  14201. ;;
  14202. *)
  14203. ;;
  14204. esac
  14205. ;;
  14206. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14207. case $cc_basename in
  14208. CC*)
  14209. lt_prog_compiler_wl_CXX='-Wl,'
  14210. lt_prog_compiler_pic_CXX='-KPIC'
  14211. lt_prog_compiler_static_CXX='-Bstatic'
  14212. ;;
  14213. esac
  14214. ;;
  14215. tandem*)
  14216. case $cc_basename in
  14217. NCC*)
  14218. # NonStop-UX NCC 3.20
  14219. lt_prog_compiler_pic_CXX='-KPIC'
  14220. ;;
  14221. *)
  14222. ;;
  14223. esac
  14224. ;;
  14225. vxworks*)
  14226. ;;
  14227. *)
  14228. lt_prog_compiler_can_build_shared_CXX=no
  14229. ;;
  14230. esac
  14231. fi
  14232. case $host_os in
  14233. # For platforms that do not support PIC, -DPIC is meaningless:
  14234. *djgpp*)
  14235. lt_prog_compiler_pic_CXX=
  14236. ;;
  14237. *)
  14238. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14239. ;;
  14240. esac
  14241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14242. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14243. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14244. then :
  14245. printf %s "(cached) " >&6
  14246. else $as_nop
  14247. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14248. fi
  14249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14250. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14251. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14252. #
  14253. # Check to make sure the PIC flag actually works.
  14254. #
  14255. if test -n "$lt_prog_compiler_pic_CXX"; then
  14256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14257. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14258. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14259. then :
  14260. printf %s "(cached) " >&6
  14261. else $as_nop
  14262. lt_cv_prog_compiler_pic_works_CXX=no
  14263. ac_outfile=conftest.$ac_objext
  14264. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14265. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14266. # Insert the option either (1) after the last *FLAGS variable, or
  14267. # (2) before a word containing "conftest.", or (3) at the end.
  14268. # Note that $ac_compile itself does not contain backslashes and begins
  14269. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14270. # The option is referenced via a variable to avoid confusing sed.
  14271. lt_compile=`echo "$ac_compile" | $SED \
  14272. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14273. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14274. -e 's:$: $lt_compiler_flag:'`
  14275. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14276. (eval "$lt_compile" 2>conftest.err)
  14277. ac_status=$?
  14278. cat conftest.err >&5
  14279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14280. if (exit $ac_status) && test -s "$ac_outfile"; then
  14281. # The compiler can only warn and ignore the option if not recognized
  14282. # So say no if there are warnings other than the usual output.
  14283. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14284. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14285. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14286. lt_cv_prog_compiler_pic_works_CXX=yes
  14287. fi
  14288. fi
  14289. $RM conftest*
  14290. fi
  14291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14292. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14293. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14294. case $lt_prog_compiler_pic_CXX in
  14295. "" | " "*) ;;
  14296. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14297. esac
  14298. else
  14299. lt_prog_compiler_pic_CXX=
  14300. lt_prog_compiler_can_build_shared_CXX=no
  14301. fi
  14302. fi
  14303. #
  14304. # Check to make sure the static flag actually works.
  14305. #
  14306. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14308. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14309. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14310. then :
  14311. printf %s "(cached) " >&6
  14312. else $as_nop
  14313. lt_cv_prog_compiler_static_works_CXX=no
  14314. save_LDFLAGS=$LDFLAGS
  14315. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14316. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14317. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14318. # The linker can only warn and ignore the option if not recognized
  14319. # So say no if there are warnings
  14320. if test -s conftest.err; then
  14321. # Append any errors to the config.log.
  14322. cat conftest.err 1>&5
  14323. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14324. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14325. if diff conftest.exp conftest.er2 >/dev/null; then
  14326. lt_cv_prog_compiler_static_works_CXX=yes
  14327. fi
  14328. else
  14329. lt_cv_prog_compiler_static_works_CXX=yes
  14330. fi
  14331. fi
  14332. $RM -r conftest*
  14333. LDFLAGS=$save_LDFLAGS
  14334. fi
  14335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14336. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14337. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14338. :
  14339. else
  14340. lt_prog_compiler_static_CXX=
  14341. fi
  14342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14343. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14344. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14345. then :
  14346. printf %s "(cached) " >&6
  14347. else $as_nop
  14348. lt_cv_prog_compiler_c_o_CXX=no
  14349. $RM -r conftest 2>/dev/null
  14350. mkdir conftest
  14351. cd conftest
  14352. mkdir out
  14353. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14354. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14355. # Insert the option either (1) after the last *FLAGS variable, or
  14356. # (2) before a word containing "conftest.", or (3) at the end.
  14357. # Note that $ac_compile itself does not contain backslashes and begins
  14358. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14359. lt_compile=`echo "$ac_compile" | $SED \
  14360. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14361. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14362. -e 's:$: $lt_compiler_flag:'`
  14363. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14364. (eval "$lt_compile" 2>out/conftest.err)
  14365. ac_status=$?
  14366. cat out/conftest.err >&5
  14367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14368. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14369. then
  14370. # The compiler can only warn and ignore the option if not recognized
  14371. # So say no if there are warnings
  14372. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14373. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14374. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14375. lt_cv_prog_compiler_c_o_CXX=yes
  14376. fi
  14377. fi
  14378. chmod u+w . 2>&5
  14379. $RM conftest*
  14380. # SGI C++ compiler will create directory out/ii_files/ for
  14381. # template instantiation
  14382. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14383. $RM out/* && rmdir out
  14384. cd ..
  14385. $RM -r conftest
  14386. $RM conftest*
  14387. fi
  14388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14389. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14391. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14392. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14393. then :
  14394. printf %s "(cached) " >&6
  14395. else $as_nop
  14396. lt_cv_prog_compiler_c_o_CXX=no
  14397. $RM -r conftest 2>/dev/null
  14398. mkdir conftest
  14399. cd conftest
  14400. mkdir out
  14401. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14402. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14403. # Insert the option either (1) after the last *FLAGS variable, or
  14404. # (2) before a word containing "conftest.", or (3) at the end.
  14405. # Note that $ac_compile itself does not contain backslashes and begins
  14406. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14407. lt_compile=`echo "$ac_compile" | $SED \
  14408. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14409. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14410. -e 's:$: $lt_compiler_flag:'`
  14411. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14412. (eval "$lt_compile" 2>out/conftest.err)
  14413. ac_status=$?
  14414. cat out/conftest.err >&5
  14415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14416. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14417. then
  14418. # The compiler can only warn and ignore the option if not recognized
  14419. # So say no if there are warnings
  14420. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14421. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14422. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14423. lt_cv_prog_compiler_c_o_CXX=yes
  14424. fi
  14425. fi
  14426. chmod u+w . 2>&5
  14427. $RM conftest*
  14428. # SGI C++ compiler will create directory out/ii_files/ for
  14429. # template instantiation
  14430. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14431. $RM out/* && rmdir out
  14432. cd ..
  14433. $RM -r conftest
  14434. $RM conftest*
  14435. fi
  14436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14437. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14438. hard_links=nottested
  14439. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14440. # do not overwrite the value of need_locks provided by the user
  14441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14442. printf %s "checking if we can lock with hard links... " >&6; }
  14443. hard_links=yes
  14444. $RM conftest*
  14445. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14446. touch conftest.a
  14447. ln conftest.a conftest.b 2>&5 || hard_links=no
  14448. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14450. printf "%s\n" "$hard_links" >&6; }
  14451. if test no = "$hard_links"; then
  14452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14453. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14454. need_locks=warn
  14455. fi
  14456. else
  14457. need_locks=no
  14458. fi
  14459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14460. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14461. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14462. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14463. case $host_os in
  14464. aix[4-9]*)
  14465. # If we're using GNU nm, then we don't want the "-C" option.
  14466. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14467. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14468. # weak defined symbols like other global defined symbols, whereas
  14469. # GNU nm marks them as "W".
  14470. # While the 'weak' keyword is ignored in the Export File, we need
  14471. # it in the Import File for the 'aix-soname' feature, so we have
  14472. # to replace the "-B" option with "-P" for AIX nm.
  14473. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14474. 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'
  14475. else
  14476. 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'
  14477. fi
  14478. ;;
  14479. pw32*)
  14480. export_symbols_cmds_CXX=$ltdll_cmds
  14481. ;;
  14482. cygwin* | mingw* | windows* | cegcc*)
  14483. case $cc_basename in
  14484. cl* | icl*)
  14485. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14486. ;;
  14487. *)
  14488. 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'
  14489. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14490. ;;
  14491. esac
  14492. ;;
  14493. *)
  14494. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14495. ;;
  14496. esac
  14497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14498. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14499. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14500. with_gnu_ld_CXX=$with_gnu_ld
  14501. #
  14502. # Do we need to explicitly link libc?
  14503. #
  14504. case "x$archive_cmds_need_lc_CXX" in
  14505. x|xyes)
  14506. # Assume -lc should be added
  14507. archive_cmds_need_lc_CXX=yes
  14508. if test yes,yes = "$GCC,$enable_shared"; then
  14509. case $archive_cmds_CXX in
  14510. *'~'*)
  14511. # FIXME: we may have to deal with multi-command sequences.
  14512. ;;
  14513. '$CC '*)
  14514. # Test whether the compiler implicitly links with -lc since on some
  14515. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14516. # to ld, don't add -lc before -lgcc.
  14517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14518. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14519. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14520. then :
  14521. printf %s "(cached) " >&6
  14522. else $as_nop
  14523. $RM conftest*
  14524. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14525. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14526. (eval $ac_compile) 2>&5
  14527. ac_status=$?
  14528. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14529. test $ac_status = 0; } 2>conftest.err; then
  14530. soname=conftest
  14531. lib=conftest
  14532. libobjs=conftest.$ac_objext
  14533. deplibs=
  14534. wl=$lt_prog_compiler_wl_CXX
  14535. pic_flag=$lt_prog_compiler_pic_CXX
  14536. compiler_flags=-v
  14537. linker_flags=-v
  14538. verstring=
  14539. output_objdir=.
  14540. libname=conftest
  14541. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14542. allow_undefined_flag_CXX=
  14543. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14544. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14545. ac_status=$?
  14546. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14547. test $ac_status = 0; }
  14548. then
  14549. lt_cv_archive_cmds_need_lc_CXX=no
  14550. else
  14551. lt_cv_archive_cmds_need_lc_CXX=yes
  14552. fi
  14553. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14554. else
  14555. cat conftest.err 1>&5
  14556. fi
  14557. $RM conftest*
  14558. fi
  14559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14560. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14561. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14562. ;;
  14563. esac
  14564. fi
  14565. ;;
  14566. esac
  14567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14568. printf %s "checking dynamic linker characteristics... " >&6; }
  14569. library_names_spec=
  14570. libname_spec='lib$name'
  14571. soname_spec=
  14572. shrext_cmds=.so
  14573. postinstall_cmds=
  14574. postuninstall_cmds=
  14575. finish_cmds=
  14576. finish_eval=
  14577. shlibpath_var=
  14578. shlibpath_overrides_runpath=unknown
  14579. version_type=none
  14580. dynamic_linker="$host_os ld.so"
  14581. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14582. need_lib_prefix=unknown
  14583. hardcode_into_libs=no
  14584. # when you set need_version to no, make sure it does not cause -set_version
  14585. # flags to be left without arguments
  14586. need_version=unknown
  14587. case $host_os in
  14588. aix3*)
  14589. version_type=linux # correct to gnu/linux during the next big refactor
  14590. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14591. shlibpath_var=LIBPATH
  14592. # AIX 3 has no versioning support, so we append a major version to the name.
  14593. soname_spec='$libname$release$shared_ext$major'
  14594. ;;
  14595. aix[4-9]*)
  14596. version_type=linux # correct to gnu/linux during the next big refactor
  14597. need_lib_prefix=no
  14598. need_version=no
  14599. hardcode_into_libs=yes
  14600. if test ia64 = "$host_cpu"; then
  14601. # AIX 5 supports IA64
  14602. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14603. shlibpath_var=LD_LIBRARY_PATH
  14604. else
  14605. # With GCC up to 2.95.x, collect2 would create an import file
  14606. # for dependence libraries. The import file would start with
  14607. # the line '#! .'. This would cause the generated library to
  14608. # depend on '.', always an invalid library. This was fixed in
  14609. # development snapshots of GCC prior to 3.0.
  14610. case $host_os in
  14611. aix4 | aix4.[01] | aix4.[01].*)
  14612. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14613. echo ' yes '
  14614. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14615. :
  14616. else
  14617. can_build_shared=no
  14618. fi
  14619. ;;
  14620. esac
  14621. # Using Import Files as archive members, it is possible to support
  14622. # filename-based versioning of shared library archives on AIX. While
  14623. # this would work for both with and without runtime linking, it will
  14624. # prevent static linking of such archives. So we do filename-based
  14625. # shared library versioning with .so extension only, which is used
  14626. # when both runtime linking and shared linking is enabled.
  14627. # Unfortunately, runtime linking may impact performance, so we do
  14628. # not want this to be the default eventually. Also, we use the
  14629. # versioned .so libs for executables only if there is the -brtl
  14630. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14631. # To allow for filename-based versioning support, we need to create
  14632. # libNAME.so.V as an archive file, containing:
  14633. # *) an Import File, referring to the versioned filename of the
  14634. # archive as well as the shared archive member, telling the
  14635. # bitwidth (32 or 64) of that shared object, and providing the
  14636. # list of exported symbols of that shared object, eventually
  14637. # decorated with the 'weak' keyword
  14638. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14639. # it being seen by the linker.
  14640. # At run time we better use the real file rather than another symlink,
  14641. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14642. case $with_aix_soname,$aix_use_runtimelinking in
  14643. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14644. # soname into executable. Probably we can add versioning support to
  14645. # collect2, so additional links can be useful in future.
  14646. aix,yes) # traditional libtool
  14647. dynamic_linker='AIX unversionable lib.so'
  14648. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14649. # instead of lib<name>.a to let people know that these are not
  14650. # typical AIX shared libraries.
  14651. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14652. ;;
  14653. aix,no) # traditional AIX only
  14654. dynamic_linker='AIX lib.a(lib.so.V)'
  14655. # We preserve .a as extension for shared libraries through AIX4.2
  14656. # and later when we are not doing run time linking.
  14657. library_names_spec='$libname$release.a $libname.a'
  14658. soname_spec='$libname$release$shared_ext$major'
  14659. ;;
  14660. svr4,*) # full svr4 only
  14661. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14662. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14663. # We do not specify a path in Import Files, so LIBPATH fires.
  14664. shlibpath_overrides_runpath=yes
  14665. ;;
  14666. *,yes) # both, prefer svr4
  14667. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14668. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14669. # unpreferred sharedlib libNAME.a needs extra handling
  14670. 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"'
  14671. 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"'
  14672. # We do not specify a path in Import Files, so LIBPATH fires.
  14673. shlibpath_overrides_runpath=yes
  14674. ;;
  14675. *,no) # both, prefer aix
  14676. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14677. library_names_spec='$libname$release.a $libname.a'
  14678. soname_spec='$libname$release$shared_ext$major'
  14679. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14680. 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)'
  14681. 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"'
  14682. ;;
  14683. esac
  14684. shlibpath_var=LIBPATH
  14685. fi
  14686. ;;
  14687. amigaos*)
  14688. case $host_cpu in
  14689. powerpc)
  14690. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14691. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14692. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14693. ;;
  14694. m68k)
  14695. library_names_spec='$libname.ixlibrary $libname.a'
  14696. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14697. 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'
  14698. ;;
  14699. esac
  14700. ;;
  14701. beos*)
  14702. library_names_spec='$libname$shared_ext'
  14703. dynamic_linker="$host_os ld.so"
  14704. shlibpath_var=LIBRARY_PATH
  14705. ;;
  14706. bsdi[45]*)
  14707. version_type=linux # correct to gnu/linux during the next big refactor
  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. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14712. shlibpath_var=LD_LIBRARY_PATH
  14713. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14714. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14715. # the default ld.so.conf also contains /usr/contrib/lib and
  14716. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14717. # libtool to hard-code these into programs
  14718. ;;
  14719. cygwin* | mingw* | windows* | pw32* | cegcc*)
  14720. version_type=windows
  14721. shrext_cmds=.dll
  14722. need_version=no
  14723. need_lib_prefix=no
  14724. case $GCC,$cc_basename in
  14725. yes,*)
  14726. # gcc
  14727. library_names_spec='$libname.dll.a'
  14728. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14729. postinstall_cmds='base_file=`basename \$file`~
  14730. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14731. dldir=$destdir/`dirname \$dlpath`~
  14732. test -d \$dldir || mkdir -p \$dldir~
  14733. $install_prog $dir/$dlname \$dldir/$dlname~
  14734. chmod a+x \$dldir/$dlname~
  14735. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14736. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14737. fi'
  14738. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14739. dlpath=$dir/\$dldll~
  14740. $RM \$dlpath'
  14741. shlibpath_overrides_runpath=yes
  14742. case $host_os in
  14743. cygwin*)
  14744. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14745. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14746. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14747. ;;
  14748. mingw* | windows* | cegcc*)
  14749. # MinGW DLLs use traditional 'lib' prefix
  14750. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14751. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14752. ;;
  14753. pw32*)
  14754. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14755. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14756. ;;
  14757. esac
  14758. dynamic_linker='Win32 ld.exe'
  14759. ;;
  14760. *,cl* | *,icl*)
  14761. # Native MSVC or ICC
  14762. libname_spec='$name'
  14763. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14764. library_names_spec='$libname.dll.lib'
  14765. case $build_os in
  14766. mingw* | windows*)
  14767. sys_lib_search_path_spec=
  14768. lt_save_ifs=$IFS
  14769. IFS=';'
  14770. for lt_path in $LIB
  14771. do
  14772. IFS=$lt_save_ifs
  14773. # Let DOS variable expansion print the short 8.3 style file name.
  14774. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14775. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14776. done
  14777. IFS=$lt_save_ifs
  14778. # Convert to MSYS style.
  14779. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14780. ;;
  14781. cygwin*)
  14782. # Convert to unix form, then to dos form, then back to unix form
  14783. # but this time dos style (no spaces!) so that the unix form looks
  14784. # like /cygdrive/c/PROGRA~1:/cygdr...
  14785. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14786. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14787. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14788. ;;
  14789. *)
  14790. sys_lib_search_path_spec=$LIB
  14791. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14792. # It is most probably a Windows format PATH.
  14793. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14794. else
  14795. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14796. fi
  14797. # FIXME: find the short name or the path components, as spaces are
  14798. # common. (e.g. "Program Files" -> "PROGRA~1")
  14799. ;;
  14800. esac
  14801. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14802. postinstall_cmds='base_file=`basename \$file`~
  14803. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14804. dldir=$destdir/`dirname \$dlpath`~
  14805. test -d \$dldir || mkdir -p \$dldir~
  14806. $install_prog $dir/$dlname \$dldir/$dlname'
  14807. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14808. dlpath=$dir/\$dldll~
  14809. $RM \$dlpath'
  14810. shlibpath_overrides_runpath=yes
  14811. dynamic_linker='Win32 link.exe'
  14812. ;;
  14813. *)
  14814. # Assume MSVC and ICC wrapper
  14815. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14816. dynamic_linker='Win32 ld.exe'
  14817. ;;
  14818. esac
  14819. # FIXME: first we should search . and the directory the executable is in
  14820. shlibpath_var=PATH
  14821. ;;
  14822. darwin* | rhapsody*)
  14823. dynamic_linker="$host_os dyld"
  14824. version_type=darwin
  14825. need_lib_prefix=no
  14826. need_version=no
  14827. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14828. soname_spec='$libname$release$major$shared_ext'
  14829. shlibpath_overrides_runpath=yes
  14830. shlibpath_var=DYLD_LIBRARY_PATH
  14831. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14832. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14833. ;;
  14834. dgux*)
  14835. version_type=linux # correct to gnu/linux during the next big refactor
  14836. need_lib_prefix=no
  14837. need_version=no
  14838. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14839. soname_spec='$libname$release$shared_ext$major'
  14840. shlibpath_var=LD_LIBRARY_PATH
  14841. ;;
  14842. freebsd* | dragonfly* | midnightbsd*)
  14843. # DragonFly does not have aout. When/if they implement a new
  14844. # versioning mechanism, adjust this.
  14845. if test -x /usr/bin/objformat; then
  14846. objformat=`/usr/bin/objformat`
  14847. else
  14848. case $host_os in
  14849. freebsd[23].*) objformat=aout ;;
  14850. *) objformat=elf ;;
  14851. esac
  14852. fi
  14853. version_type=freebsd-$objformat
  14854. case $version_type in
  14855. freebsd-elf*)
  14856. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14857. soname_spec='$libname$release$shared_ext$major'
  14858. need_version=no
  14859. need_lib_prefix=no
  14860. ;;
  14861. freebsd-*)
  14862. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14863. need_version=yes
  14864. ;;
  14865. esac
  14866. shlibpath_var=LD_LIBRARY_PATH
  14867. case $host_os in
  14868. freebsd2.*)
  14869. shlibpath_overrides_runpath=yes
  14870. ;;
  14871. freebsd3.[01]* | freebsdelf3.[01]*)
  14872. shlibpath_overrides_runpath=yes
  14873. hardcode_into_libs=yes
  14874. ;;
  14875. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14876. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14877. shlibpath_overrides_runpath=no
  14878. hardcode_into_libs=yes
  14879. ;;
  14880. *) # from 4.6 on, and DragonFly
  14881. shlibpath_overrides_runpath=yes
  14882. hardcode_into_libs=yes
  14883. ;;
  14884. esac
  14885. ;;
  14886. haiku*)
  14887. version_type=linux # correct to gnu/linux during the next big refactor
  14888. need_lib_prefix=no
  14889. need_version=no
  14890. dynamic_linker="$host_os runtime_loader"
  14891. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14892. soname_spec='$libname$release$shared_ext$major'
  14893. shlibpath_var=LIBRARY_PATH
  14894. shlibpath_overrides_runpath=no
  14895. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14896. hardcode_into_libs=yes
  14897. ;;
  14898. hpux9* | hpux10* | hpux11*)
  14899. # Give a soname corresponding to the major version so that dld.sl refuses to
  14900. # link against other versions.
  14901. version_type=sunos
  14902. need_lib_prefix=no
  14903. need_version=no
  14904. case $host_cpu in
  14905. ia64*)
  14906. shrext_cmds='.so'
  14907. hardcode_into_libs=yes
  14908. dynamic_linker="$host_os dld.so"
  14909. shlibpath_var=LD_LIBRARY_PATH
  14910. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14911. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14912. soname_spec='$libname$release$shared_ext$major'
  14913. if test 32 = "$HPUX_IA64_MODE"; then
  14914. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14915. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14916. else
  14917. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14918. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14919. fi
  14920. ;;
  14921. hppa*64*)
  14922. shrext_cmds='.sl'
  14923. hardcode_into_libs=yes
  14924. dynamic_linker="$host_os dld.sl"
  14925. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14926. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14927. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14928. soname_spec='$libname$release$shared_ext$major'
  14929. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14930. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14931. ;;
  14932. *)
  14933. shrext_cmds='.sl'
  14934. dynamic_linker="$host_os dld.sl"
  14935. shlibpath_var=SHLIB_PATH
  14936. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14937. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14938. soname_spec='$libname$release$shared_ext$major'
  14939. ;;
  14940. esac
  14941. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14942. postinstall_cmds='chmod 555 $lib'
  14943. # or fails outright, so override atomically:
  14944. install_override_mode=555
  14945. ;;
  14946. interix[3-9]*)
  14947. version_type=linux # correct to gnu/linux during the next big refactor
  14948. need_lib_prefix=no
  14949. need_version=no
  14950. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14951. soname_spec='$libname$release$shared_ext$major'
  14952. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14953. shlibpath_var=LD_LIBRARY_PATH
  14954. shlibpath_overrides_runpath=no
  14955. hardcode_into_libs=yes
  14956. ;;
  14957. irix5* | irix6* | nonstopux*)
  14958. case $host_os in
  14959. nonstopux*) version_type=nonstopux ;;
  14960. *)
  14961. if test yes = "$lt_cv_prog_gnu_ld"; then
  14962. version_type=linux # correct to gnu/linux during the next big refactor
  14963. else
  14964. version_type=irix
  14965. fi ;;
  14966. esac
  14967. need_lib_prefix=no
  14968. need_version=no
  14969. soname_spec='$libname$release$shared_ext$major'
  14970. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14971. case $host_os in
  14972. irix5* | nonstopux*)
  14973. libsuff= shlibsuff=
  14974. ;;
  14975. *)
  14976. case $LD in # libtool.m4 will add one of these switches to LD
  14977. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14978. libsuff= shlibsuff= libmagic=32-bit;;
  14979. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14980. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14981. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14982. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14983. *) libsuff= shlibsuff= libmagic=never-match;;
  14984. esac
  14985. ;;
  14986. esac
  14987. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14988. shlibpath_overrides_runpath=no
  14989. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14990. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14991. hardcode_into_libs=yes
  14992. ;;
  14993. # No shared lib support for Linux oldld, aout, or coff.
  14994. linux*oldld* | linux*aout* | linux*coff*)
  14995. dynamic_linker=no
  14996. ;;
  14997. linux*android*)
  14998. version_type=none # Android doesn't support versioned libraries.
  14999. need_lib_prefix=no
  15000. need_version=no
  15001. library_names_spec='$libname$release$shared_ext'
  15002. soname_spec='$libname$release$shared_ext'
  15003. finish_cmds=
  15004. shlibpath_var=LD_LIBRARY_PATH
  15005. shlibpath_overrides_runpath=yes
  15006. # This implies no fast_install, which is unacceptable.
  15007. # Some rework will be needed to allow for fast_install
  15008. # before this can be enabled.
  15009. hardcode_into_libs=yes
  15010. dynamic_linker='Android linker'
  15011. # Don't embed -rpath directories since the linker doesn't support them.
  15012. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15013. ;;
  15014. # This must be glibc/ELF.
  15015. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15016. version_type=linux # correct to gnu/linux during the next big refactor
  15017. need_lib_prefix=no
  15018. need_version=no
  15019. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15020. soname_spec='$libname$release$shared_ext$major'
  15021. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15022. shlibpath_var=LD_LIBRARY_PATH
  15023. shlibpath_overrides_runpath=no
  15024. # Some binutils ld are patched to set DT_RUNPATH
  15025. if test ${lt_cv_shlibpath_overrides_runpath+y}
  15026. then :
  15027. printf %s "(cached) " >&6
  15028. else $as_nop
  15029. lt_cv_shlibpath_overrides_runpath=no
  15030. save_LDFLAGS=$LDFLAGS
  15031. save_libdir=$libdir
  15032. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15033. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15035. /* end confdefs.h. */
  15036. int
  15037. main (void)
  15038. {
  15039. ;
  15040. return 0;
  15041. }
  15042. _ACEOF
  15043. if ac_fn_cxx_try_link "$LINENO"
  15044. then :
  15045. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  15046. then :
  15047. lt_cv_shlibpath_overrides_runpath=yes
  15048. fi
  15049. fi
  15050. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15051. conftest$ac_exeext conftest.$ac_ext
  15052. LDFLAGS=$save_LDFLAGS
  15053. libdir=$save_libdir
  15054. fi
  15055. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15056. # This implies no fast_install, which is unacceptable.
  15057. # Some rework will be needed to allow for fast_install
  15058. # before this can be enabled.
  15059. hardcode_into_libs=yes
  15060. # Add ABI-specific directories to the system library path.
  15061. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  15062. # Ideally, we could use ldconfig to report *all* directores which are
  15063. # searched for libraries, however this is still not possible. Aside from not
  15064. # being certain /sbin/ldconfig is available, command
  15065. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15066. # even though it is searched at run-time. Try to do the best guess by
  15067. # appending ld.so.conf contents (and includes) to the search path.
  15068. if test -f /etc/ld.so.conf; then
  15069. 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' ' '`
  15070. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15071. fi
  15072. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15073. # powerpc, because MkLinux only supported shared libraries with the
  15074. # GNU dynamic linker. Since this was broken with cross compilers,
  15075. # most powerpc-linux boxes support dynamic linking these days and
  15076. # people can always --disable-shared, the test was removed, and we
  15077. # assume the GNU/Linux dynamic linker is in use.
  15078. dynamic_linker='GNU/Linux ld.so'
  15079. ;;
  15080. netbsd*)
  15081. version_type=sunos
  15082. need_lib_prefix=no
  15083. need_version=no
  15084. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15085. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15086. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15087. dynamic_linker='NetBSD (a.out) ld.so'
  15088. else
  15089. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15090. soname_spec='$libname$release$shared_ext$major'
  15091. dynamic_linker='NetBSD ld.elf_so'
  15092. fi
  15093. shlibpath_var=LD_LIBRARY_PATH
  15094. shlibpath_overrides_runpath=yes
  15095. hardcode_into_libs=yes
  15096. ;;
  15097. newsos6)
  15098. version_type=linux # correct to gnu/linux during the next big refactor
  15099. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15100. shlibpath_var=LD_LIBRARY_PATH
  15101. shlibpath_overrides_runpath=yes
  15102. ;;
  15103. *nto* | *qnx*)
  15104. version_type=qnx
  15105. need_lib_prefix=no
  15106. need_version=no
  15107. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15108. soname_spec='$libname$release$shared_ext$major'
  15109. shlibpath_var=LD_LIBRARY_PATH
  15110. shlibpath_overrides_runpath=no
  15111. hardcode_into_libs=yes
  15112. dynamic_linker='ldqnx.so'
  15113. ;;
  15114. openbsd* | bitrig*)
  15115. version_type=sunos
  15116. sys_lib_dlsearch_path_spec=/usr/lib
  15117. need_lib_prefix=no
  15118. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15119. need_version=no
  15120. else
  15121. need_version=yes
  15122. fi
  15123. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15124. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15125. shlibpath_var=LD_LIBRARY_PATH
  15126. shlibpath_overrides_runpath=yes
  15127. ;;
  15128. os2*)
  15129. libname_spec='$name'
  15130. shrext_cmds=.dll
  15131. need_lib_prefix=no
  15132. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15133. # SDL customization: removed versioning support.
  15134. # version_type=windows
  15135. # need_version=no
  15136. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15137. # v=$($ECHO $release$versuffix | tr -d .-);
  15138. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15139. # $ECHO $n$v`$shared_ext'
  15140. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15141. library_names_spec='${libname}_dll.$libext'
  15142. dynamic_linker='OS/2 ld.exe'
  15143. shlibpath_var=BEGINLIBPATH
  15144. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15145. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15146. postinstall_cmds='base_file=`basename \$file`~
  15147. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15148. dldir=$destdir/`dirname \$dlpath`~
  15149. test -d \$dldir || mkdir -p \$dldir~
  15150. $install_prog $dir/$dlname \$dldir/$dlname~
  15151. chmod a+x \$dldir/$dlname~
  15152. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15153. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15154. fi'
  15155. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15156. dlpath=$dir/\$dldll~
  15157. $RM \$dlpath'
  15158. ;;
  15159. osf3* | osf4* | osf5*)
  15160. version_type=osf
  15161. need_lib_prefix=no
  15162. need_version=no
  15163. soname_spec='$libname$release$shared_ext$major'
  15164. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15165. shlibpath_var=LD_LIBRARY_PATH
  15166. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15167. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15168. ;;
  15169. rdos*)
  15170. dynamic_linker=no
  15171. ;;
  15172. solaris*)
  15173. version_type=linux # correct to gnu/linux during the next big refactor
  15174. need_lib_prefix=no
  15175. need_version=no
  15176. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15177. soname_spec='$libname$release$shared_ext$major'
  15178. shlibpath_var=LD_LIBRARY_PATH
  15179. shlibpath_overrides_runpath=yes
  15180. hardcode_into_libs=yes
  15181. # ldd complains unless libraries are executable
  15182. postinstall_cmds='chmod +x $lib'
  15183. ;;
  15184. sunos4*)
  15185. version_type=sunos
  15186. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15187. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15188. shlibpath_var=LD_LIBRARY_PATH
  15189. shlibpath_overrides_runpath=yes
  15190. if test yes = "$with_gnu_ld"; then
  15191. need_lib_prefix=no
  15192. fi
  15193. need_version=yes
  15194. ;;
  15195. sysv4 | sysv4.3*)
  15196. version_type=linux # correct to gnu/linux during the next big refactor
  15197. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15198. soname_spec='$libname$release$shared_ext$major'
  15199. shlibpath_var=LD_LIBRARY_PATH
  15200. case $host_vendor in
  15201. sni)
  15202. shlibpath_overrides_runpath=no
  15203. need_lib_prefix=no
  15204. runpath_var=LD_RUN_PATH
  15205. ;;
  15206. siemens)
  15207. need_lib_prefix=no
  15208. ;;
  15209. motorola)
  15210. need_lib_prefix=no
  15211. need_version=no
  15212. shlibpath_overrides_runpath=no
  15213. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15214. ;;
  15215. esac
  15216. ;;
  15217. sysv4*MP*)
  15218. if test -d /usr/nec; then
  15219. version_type=linux # correct to gnu/linux during the next big refactor
  15220. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15221. soname_spec='$libname$shared_ext.$major'
  15222. shlibpath_var=LD_LIBRARY_PATH
  15223. fi
  15224. ;;
  15225. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15226. version_type=sco
  15227. need_lib_prefix=no
  15228. need_version=no
  15229. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15230. soname_spec='$libname$release$shared_ext$major'
  15231. shlibpath_var=LD_LIBRARY_PATH
  15232. shlibpath_overrides_runpath=yes
  15233. hardcode_into_libs=yes
  15234. if test yes = "$with_gnu_ld"; then
  15235. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15236. else
  15237. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15238. case $host_os in
  15239. sco3.2v5*)
  15240. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15241. ;;
  15242. esac
  15243. fi
  15244. sys_lib_dlsearch_path_spec='/usr/lib'
  15245. ;;
  15246. tpf*)
  15247. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15248. version_type=linux # correct to gnu/linux during the next big refactor
  15249. need_lib_prefix=no
  15250. need_version=no
  15251. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15252. shlibpath_var=LD_LIBRARY_PATH
  15253. shlibpath_overrides_runpath=no
  15254. hardcode_into_libs=yes
  15255. ;;
  15256. uts4*)
  15257. version_type=linux # correct to gnu/linux during the next big refactor
  15258. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15259. soname_spec='$libname$release$shared_ext$major'
  15260. shlibpath_var=LD_LIBRARY_PATH
  15261. ;;
  15262. *)
  15263. dynamic_linker=no
  15264. ;;
  15265. esac
  15266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15267. printf "%s\n" "$dynamic_linker" >&6; }
  15268. test no = "$dynamic_linker" && can_build_shared=no
  15269. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15270. if test yes = "$GCC"; then
  15271. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15272. fi
  15273. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15274. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15275. fi
  15276. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15277. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15278. fi
  15279. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15280. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15281. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15282. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15283. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15284. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15286. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15287. hardcode_action_CXX=
  15288. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15289. test -n "$runpath_var_CXX" ||
  15290. test yes = "$hardcode_automatic_CXX"; then
  15291. # We can hardcode non-existent directories.
  15292. if test no != "$hardcode_direct_CXX" &&
  15293. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15294. # have to relink, otherwise we might link with an installed library
  15295. # when we should be linking with a yet-to-be-installed one
  15296. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15297. test no != "$hardcode_minus_L_CXX"; then
  15298. # Linking always hardcodes the temporary library directory.
  15299. hardcode_action_CXX=relink
  15300. else
  15301. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15302. hardcode_action_CXX=immediate
  15303. fi
  15304. else
  15305. # We cannot hardcode anything, or else we can only hardcode existing
  15306. # directories.
  15307. hardcode_action_CXX=unsupported
  15308. fi
  15309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15310. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15311. if test relink = "$hardcode_action_CXX" ||
  15312. test yes = "$inherit_rpath_CXX"; then
  15313. # Fast installation is not supported
  15314. enable_fast_install=no
  15315. elif test yes = "$shlibpath_overrides_runpath" ||
  15316. test no = "$enable_shared"; then
  15317. # Fast installation is not necessary
  15318. enable_fast_install=needless
  15319. fi
  15320. fi # test -n "$compiler"
  15321. CC=$lt_save_CC
  15322. CFLAGS=$lt_save_CFLAGS
  15323. LDCXX=$LD
  15324. LD=$lt_save_LD
  15325. GCC=$lt_save_GCC
  15326. with_gnu_ld=$lt_save_with_gnu_ld
  15327. lt_cv_path_LDCXX=$lt_cv_path_LD
  15328. lt_cv_path_LD=$lt_save_path_LD
  15329. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15330. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15331. fi # test yes != "$_lt_caught_CXX_error"
  15332. ac_ext=c
  15333. ac_cpp='$CPP $CPPFLAGS'
  15334. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15335. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15336. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15338. printf %s "checking for egrep... " >&6; }
  15339. if test ${ac_cv_path_EGREP+y}
  15340. then :
  15341. printf %s "(cached) " >&6
  15342. else $as_nop
  15343. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15344. then ac_cv_path_EGREP="$GREP -E"
  15345. else
  15346. if test -z "$EGREP"; then
  15347. ac_path_EGREP_found=false
  15348. # Loop through the user's path and test for each of PROGNAME-LIST
  15349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15350. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15351. do
  15352. IFS=$as_save_IFS
  15353. case $as_dir in #(((
  15354. '') as_dir=./ ;;
  15355. */) ;;
  15356. *) as_dir=$as_dir/ ;;
  15357. esac
  15358. for ac_prog in egrep
  15359. do
  15360. for ac_exec_ext in '' $ac_executable_extensions; do
  15361. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15362. as_fn_executable_p "$ac_path_EGREP" || continue
  15363. # Check for GNU ac_path_EGREP and select it if it is found.
  15364. # Check for GNU $ac_path_EGREP
  15365. case `"$ac_path_EGREP" --version 2>&1` in
  15366. *GNU*)
  15367. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15368. *)
  15369. ac_count=0
  15370. printf %s 0123456789 >"conftest.in"
  15371. while :
  15372. do
  15373. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15374. mv "conftest.tmp" "conftest.in"
  15375. cp "conftest.in" "conftest.nl"
  15376. printf "%s\n" 'EGREP' >> "conftest.nl"
  15377. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15378. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15379. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15380. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15381. # Best one so far, save it but keep looking for a better one
  15382. ac_cv_path_EGREP="$ac_path_EGREP"
  15383. ac_path_EGREP_max=$ac_count
  15384. fi
  15385. # 10*(2^10) chars as input seems more than enough
  15386. test $ac_count -gt 10 && break
  15387. done
  15388. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15389. esac
  15390. $ac_path_EGREP_found && break 3
  15391. done
  15392. done
  15393. done
  15394. IFS=$as_save_IFS
  15395. if test -z "$ac_cv_path_EGREP"; then
  15396. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15397. fi
  15398. else
  15399. ac_cv_path_EGREP=$EGREP
  15400. fi
  15401. fi
  15402. fi
  15403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15404. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15405. EGREP="$ac_cv_path_EGREP"
  15406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  15407. printf %s "checking for fgrep... " >&6; }
  15408. if test ${ac_cv_path_FGREP+y}
  15409. then :
  15410. printf %s "(cached) " >&6
  15411. else $as_nop
  15412. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  15413. then ac_cv_path_FGREP="$GREP -F"
  15414. else
  15415. if test -z "$FGREP"; then
  15416. ac_path_FGREP_found=false
  15417. # Loop through the user's path and test for each of PROGNAME-LIST
  15418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15419. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15420. do
  15421. IFS=$as_save_IFS
  15422. case $as_dir in #(((
  15423. '') as_dir=./ ;;
  15424. */) ;;
  15425. *) as_dir=$as_dir/ ;;
  15426. esac
  15427. for ac_prog in fgrep
  15428. do
  15429. for ac_exec_ext in '' $ac_executable_extensions; do
  15430. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  15431. as_fn_executable_p "$ac_path_FGREP" || continue
  15432. # Check for GNU ac_path_FGREP and select it if it is found.
  15433. # Check for GNU $ac_path_FGREP
  15434. case `"$ac_path_FGREP" --version 2>&1` in
  15435. *GNU*)
  15436. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  15437. *)
  15438. ac_count=0
  15439. printf %s 0123456789 >"conftest.in"
  15440. while :
  15441. do
  15442. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15443. mv "conftest.tmp" "conftest.in"
  15444. cp "conftest.in" "conftest.nl"
  15445. printf "%s\n" 'FGREP' >> "conftest.nl"
  15446. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15447. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15448. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15449. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  15450. # Best one so far, save it but keep looking for a better one
  15451. ac_cv_path_FGREP="$ac_path_FGREP"
  15452. ac_path_FGREP_max=$ac_count
  15453. fi
  15454. # 10*(2^10) chars as input seems more than enough
  15455. test $ac_count -gt 10 && break
  15456. done
  15457. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15458. esac
  15459. $ac_path_FGREP_found && break 3
  15460. done
  15461. done
  15462. done
  15463. IFS=$as_save_IFS
  15464. if test -z "$ac_cv_path_FGREP"; then
  15465. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15466. fi
  15467. else
  15468. ac_cv_path_FGREP=$FGREP
  15469. fi
  15470. fi
  15471. fi
  15472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  15473. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  15474. FGREP="$ac_cv_path_FGREP"
  15475. # Find a good install program. We prefer a C program (faster),
  15476. # so one script is as good as another. But avoid the broken or
  15477. # incompatible versions:
  15478. # SysV /etc/install, /usr/sbin/install
  15479. # SunOS /usr/etc/install
  15480. # IRIX /sbin/install
  15481. # AIX /bin/install
  15482. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15483. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15484. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15485. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15486. # OS/2's system install, which has a completely different semantic
  15487. # ./install, which can be erroneously created by make from ./install.sh.
  15488. # Reject install programs that cannot install multiple files.
  15489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15490. printf %s "checking for a BSD-compatible install... " >&6; }
  15491. if test -z "$INSTALL"; then
  15492. if test ${ac_cv_path_install+y}
  15493. then :
  15494. printf %s "(cached) " >&6
  15495. else $as_nop
  15496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15497. for as_dir in $PATH
  15498. do
  15499. IFS=$as_save_IFS
  15500. case $as_dir in #(((
  15501. '') as_dir=./ ;;
  15502. */) ;;
  15503. *) as_dir=$as_dir/ ;;
  15504. esac
  15505. # Account for fact that we put trailing slashes in our PATH walk.
  15506. case $as_dir in #((
  15507. ./ | /[cC]/* | \
  15508. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15509. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15510. /usr/ucb/* ) ;;
  15511. *)
  15512. # OSF1 and SCO ODT 3.0 have their own names for install.
  15513. # Don't use installbsd from OSF since it installs stuff as root
  15514. # by default.
  15515. for ac_prog in ginstall scoinst install; do
  15516. for ac_exec_ext in '' $ac_executable_extensions; do
  15517. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15518. if test $ac_prog = install &&
  15519. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15520. # AIX install. It has an incompatible calling convention.
  15521. :
  15522. elif test $ac_prog = install &&
  15523. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15524. # program-specific install script used by HP pwplus--don't use.
  15525. :
  15526. else
  15527. rm -rf conftest.one conftest.two conftest.dir
  15528. echo one > conftest.one
  15529. echo two > conftest.two
  15530. mkdir conftest.dir
  15531. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15532. test -s conftest.one && test -s conftest.two &&
  15533. test -s conftest.dir/conftest.one &&
  15534. test -s conftest.dir/conftest.two
  15535. then
  15536. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15537. break 3
  15538. fi
  15539. fi
  15540. fi
  15541. done
  15542. done
  15543. ;;
  15544. esac
  15545. done
  15546. IFS=$as_save_IFS
  15547. rm -rf conftest.one conftest.two conftest.dir
  15548. fi
  15549. if test ${ac_cv_path_install+y}; then
  15550. INSTALL=$ac_cv_path_install
  15551. else
  15552. # As a last resort, use the slow shell script. Don't cache a
  15553. # value for INSTALL within a source directory, because that will
  15554. # break other packages using the cache if that directory is
  15555. # removed, or if the value is a relative name.
  15556. INSTALL=$ac_install_sh
  15557. fi
  15558. fi
  15559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15560. printf "%s\n" "$INSTALL" >&6; }
  15561. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15562. # It thinks the first close brace ends the variable substitution.
  15563. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15564. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15565. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15567. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15568. set x ${MAKE-make}
  15569. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15570. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15571. then :
  15572. printf %s "(cached) " >&6
  15573. else $as_nop
  15574. cat >conftest.make <<\_ACEOF
  15575. SHELL = /bin/sh
  15576. all:
  15577. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15578. _ACEOF
  15579. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15580. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15581. *@@@%%%=?*=@@@%%%*)
  15582. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15583. *)
  15584. eval ac_cv_prog_make_${ac_make}_set=no;;
  15585. esac
  15586. rm -f conftest.make
  15587. fi
  15588. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15590. printf "%s\n" "yes" >&6; }
  15591. SET_MAKE=
  15592. else
  15593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15594. printf "%s\n" "no" >&6; }
  15595. SET_MAKE="MAKE=${MAKE-make}"
  15596. fi
  15597. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15598. if test -n "$ac_tool_prefix"; then
  15599. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15600. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15602. printf %s "checking for $ac_word... " >&6; }
  15603. if test ${ac_cv_path_PKG_CONFIG+y}
  15604. then :
  15605. printf %s "(cached) " >&6
  15606. else $as_nop
  15607. case $PKG_CONFIG in
  15608. [\\/]* | ?:[\\/]*)
  15609. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15610. ;;
  15611. *)
  15612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15613. for as_dir in $PATH
  15614. do
  15615. IFS=$as_save_IFS
  15616. case $as_dir in #(((
  15617. '') as_dir=./ ;;
  15618. */) ;;
  15619. *) as_dir=$as_dir/ ;;
  15620. esac
  15621. for ac_exec_ext in '' $ac_executable_extensions; do
  15622. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15623. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15624. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15625. break 2
  15626. fi
  15627. done
  15628. done
  15629. IFS=$as_save_IFS
  15630. ;;
  15631. esac
  15632. fi
  15633. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15634. if test -n "$PKG_CONFIG"; then
  15635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15636. printf "%s\n" "$PKG_CONFIG" >&6; }
  15637. else
  15638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15639. printf "%s\n" "no" >&6; }
  15640. fi
  15641. fi
  15642. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15643. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15644. # Extract the first word of "pkg-config", so it can be a program name with args.
  15645. set dummy pkg-config; ac_word=$2
  15646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15647. printf %s "checking for $ac_word... " >&6; }
  15648. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15649. then :
  15650. printf %s "(cached) " >&6
  15651. else $as_nop
  15652. case $ac_pt_PKG_CONFIG in
  15653. [\\/]* | ?:[\\/]*)
  15654. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15655. ;;
  15656. *)
  15657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15658. for as_dir in $PATH
  15659. do
  15660. IFS=$as_save_IFS
  15661. case $as_dir in #(((
  15662. '') as_dir=./ ;;
  15663. */) ;;
  15664. *) as_dir=$as_dir/ ;;
  15665. esac
  15666. for ac_exec_ext in '' $ac_executable_extensions; do
  15667. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15668. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15669. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15670. break 2
  15671. fi
  15672. done
  15673. done
  15674. IFS=$as_save_IFS
  15675. ;;
  15676. esac
  15677. fi
  15678. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15679. if test -n "$ac_pt_PKG_CONFIG"; then
  15680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15681. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15682. else
  15683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15684. printf "%s\n" "no" >&6; }
  15685. fi
  15686. if test "x$ac_pt_PKG_CONFIG" = x; then
  15687. PKG_CONFIG=""
  15688. else
  15689. case $cross_compiling:$ac_tool_warned in
  15690. yes:)
  15691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15692. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15693. ac_tool_warned=yes ;;
  15694. esac
  15695. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15696. fi
  15697. else
  15698. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15699. fi
  15700. fi
  15701. if test -n "$PKG_CONFIG"; then
  15702. _pkg_min_version=0.9.0
  15703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15704. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15705. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15707. printf "%s\n" "yes" >&6; }
  15708. else
  15709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15710. printf "%s\n" "no" >&6; }
  15711. PKG_CONFIG=""
  15712. fi
  15713. fi
  15714. if test -z "$AWK" ; then
  15715. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15716. fi
  15717. for ac_prog in gsort sort
  15718. do
  15719. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15720. set dummy $ac_prog; ac_word=$2
  15721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15722. printf %s "checking for $ac_word... " >&6; }
  15723. if test ${ac_cv_prog_SORT+y}
  15724. then :
  15725. printf %s "(cached) " >&6
  15726. else $as_nop
  15727. if test -n "$SORT"; then
  15728. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15729. else
  15730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15731. for as_dir in $PATH
  15732. do
  15733. IFS=$as_save_IFS
  15734. case $as_dir in #(((
  15735. '') as_dir=./ ;;
  15736. */) ;;
  15737. *) as_dir=$as_dir/ ;;
  15738. esac
  15739. for ac_exec_ext in '' $ac_executable_extensions; do
  15740. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15741. ac_cv_prog_SORT="$ac_prog"
  15742. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15743. break 2
  15744. fi
  15745. done
  15746. done
  15747. IFS=$as_save_IFS
  15748. fi
  15749. fi
  15750. SORT=$ac_cv_prog_SORT
  15751. if test -n "$SORT"; then
  15752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15753. printf "%s\n" "$SORT" >&6; }
  15754. else
  15755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15756. printf "%s\n" "no" >&6; }
  15757. fi
  15758. test -n "$SORT" && break
  15759. done
  15760. test -n "$SORT" || SORT="false"
  15761. if ! "$SORT" -V </dev/null >/dev/null
  15762. then :
  15763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15764. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15765. fi
  15766. # Check whether --enable-largefile was given.
  15767. if test ${enable_largefile+y}
  15768. then :
  15769. enableval=$enable_largefile;
  15770. fi
  15771. if test "$enable_largefile" != no; then
  15772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15773. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15774. if test ${ac_cv_sys_largefile_CC+y}
  15775. then :
  15776. printf %s "(cached) " >&6
  15777. else $as_nop
  15778. ac_cv_sys_largefile_CC=no
  15779. if test "$GCC" != yes; then
  15780. ac_save_CC=$CC
  15781. while :; do
  15782. # IRIX 6.2 and later do not support large files by default,
  15783. # so use the C compiler's -n32 option if that helps.
  15784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15785. /* end confdefs.h. */
  15786. #include <sys/types.h>
  15787. /* Check that off_t can represent 2**63 - 1 correctly.
  15788. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15789. since some C++ compilers masquerading as C compilers
  15790. incorrectly reject 9223372036854775807. */
  15791. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15792. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15793. && LARGE_OFF_T % 2147483647 == 1)
  15794. ? 1 : -1];
  15795. int
  15796. main (void)
  15797. {
  15798. ;
  15799. return 0;
  15800. }
  15801. _ACEOF
  15802. if ac_fn_c_try_compile "$LINENO"
  15803. then :
  15804. break
  15805. fi
  15806. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15807. CC="$CC -n32"
  15808. if ac_fn_c_try_compile "$LINENO"
  15809. then :
  15810. ac_cv_sys_largefile_CC=' -n32'; break
  15811. fi
  15812. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15813. break
  15814. done
  15815. CC=$ac_save_CC
  15816. rm -f conftest.$ac_ext
  15817. fi
  15818. fi
  15819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15820. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15821. if test "$ac_cv_sys_largefile_CC" != no; then
  15822. CC=$CC$ac_cv_sys_largefile_CC
  15823. fi
  15824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15825. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15826. if test ${ac_cv_sys_file_offset_bits+y}
  15827. then :
  15828. printf %s "(cached) " >&6
  15829. else $as_nop
  15830. while :; do
  15831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15832. /* end confdefs.h. */
  15833. #include <sys/types.h>
  15834. /* Check that off_t can represent 2**63 - 1 correctly.
  15835. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15836. since some C++ compilers masquerading as C compilers
  15837. incorrectly reject 9223372036854775807. */
  15838. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15839. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15840. && LARGE_OFF_T % 2147483647 == 1)
  15841. ? 1 : -1];
  15842. int
  15843. main (void)
  15844. {
  15845. ;
  15846. return 0;
  15847. }
  15848. _ACEOF
  15849. if ac_fn_c_try_compile "$LINENO"
  15850. then :
  15851. ac_cv_sys_file_offset_bits=no; break
  15852. fi
  15853. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15855. /* end confdefs.h. */
  15856. #define _FILE_OFFSET_BITS 64
  15857. #include <sys/types.h>
  15858. /* Check that off_t can represent 2**63 - 1 correctly.
  15859. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15860. since some C++ compilers masquerading as C compilers
  15861. incorrectly reject 9223372036854775807. */
  15862. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15863. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15864. && LARGE_OFF_T % 2147483647 == 1)
  15865. ? 1 : -1];
  15866. int
  15867. main (void)
  15868. {
  15869. ;
  15870. return 0;
  15871. }
  15872. _ACEOF
  15873. if ac_fn_c_try_compile "$LINENO"
  15874. then :
  15875. ac_cv_sys_file_offset_bits=64; break
  15876. fi
  15877. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15878. ac_cv_sys_file_offset_bits=unknown
  15879. break
  15880. done
  15881. fi
  15882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15883. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15884. case $ac_cv_sys_file_offset_bits in #(
  15885. no | unknown) ;;
  15886. *)
  15887. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15888. ;;
  15889. esac
  15890. rm -rf conftest*
  15891. if test $ac_cv_sys_file_offset_bits = unknown; then
  15892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15893. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15894. if test ${ac_cv_sys_large_files+y}
  15895. then :
  15896. printf %s "(cached) " >&6
  15897. else $as_nop
  15898. while :; do
  15899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15900. /* end confdefs.h. */
  15901. #include <sys/types.h>
  15902. /* Check that off_t can represent 2**63 - 1 correctly.
  15903. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15904. since some C++ compilers masquerading as C compilers
  15905. incorrectly reject 9223372036854775807. */
  15906. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15907. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15908. && LARGE_OFF_T % 2147483647 == 1)
  15909. ? 1 : -1];
  15910. int
  15911. main (void)
  15912. {
  15913. ;
  15914. return 0;
  15915. }
  15916. _ACEOF
  15917. if ac_fn_c_try_compile "$LINENO"
  15918. then :
  15919. ac_cv_sys_large_files=no; break
  15920. fi
  15921. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15923. /* end confdefs.h. */
  15924. #define _LARGE_FILES 1
  15925. #include <sys/types.h>
  15926. /* Check that off_t can represent 2**63 - 1 correctly.
  15927. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15928. since some C++ compilers masquerading as C compilers
  15929. incorrectly reject 9223372036854775807. */
  15930. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15931. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15932. && LARGE_OFF_T % 2147483647 == 1)
  15933. ? 1 : -1];
  15934. int
  15935. main (void)
  15936. {
  15937. ;
  15938. return 0;
  15939. }
  15940. _ACEOF
  15941. if ac_fn_c_try_compile "$LINENO"
  15942. then :
  15943. ac_cv_sys_large_files=1; break
  15944. fi
  15945. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15946. ac_cv_sys_large_files=unknown
  15947. break
  15948. done
  15949. fi
  15950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15951. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15952. case $ac_cv_sys_large_files in #(
  15953. no | unknown) ;;
  15954. *)
  15955. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15956. ;;
  15957. esac
  15958. rm -rf conftest*
  15959. fi
  15960. fi
  15961. case "$host" in
  15962. *-*-mingw*)
  15963. # Except on msys, where make can't handle full pathnames (bug 1972)
  15964. ;;
  15965. *)
  15966. srcdir=`cd $srcdir && pwd`
  15967. ;;
  15968. esac
  15969. INCLUDE="-I$srcdir/include"
  15970. case "$host" in
  15971. *-*-nto-qnx*)
  15972. ;;
  15973. *)
  15974. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15975. ;;
  15976. esac
  15977. case "$host" in
  15978. *-*-haiku*)
  15979. LINKER='$(CXX)'
  15980. LIBTOOLLINKERTAG='CXX'
  15981. ;;
  15982. *)
  15983. LINKER='$(CC)'
  15984. LIBTOOLLINKERTAG='CC'
  15985. ;;
  15986. esac
  15987. if test x$srcdir != x.; then
  15988. INCLUDE="-Iinclude $INCLUDE"
  15989. elif test -d .git; then
  15990. as_fn_error $? "
  15991. *** When building from a git clone you should configure and build in a
  15992. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15993. " "$LINENO" 5
  15994. fi
  15995. BASE_CFLAGS=""
  15996. BASE_LDFLAGS=""
  15997. case "$host" in
  15998. *-*-cygwin*)
  15999. # We build SDL on cygwin without the UNIX emulation layer
  16000. save_CFLAGS="$CFLAGS"
  16001. have_no_cygwin=no
  16002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  16003. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  16004. CFLAGS="$save_CFLAGS -mno-cygwin"
  16005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16006. /* end confdefs.h. */
  16007. int
  16008. main (void)
  16009. {
  16010. ;
  16011. return 0;
  16012. }
  16013. _ACEOF
  16014. if ac_fn_c_try_compile "$LINENO"
  16015. then :
  16016. have_no_cygwin=yes
  16017. fi
  16018. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  16020. printf "%s\n" "$have_no_cygwin" >&6; }
  16021. CFLAGS="$save_CFLAGS"
  16022. if test x$have_no_cygwin = xyes; then
  16023. BASE_CFLAGS="-mno-cygwin"
  16024. BASE_LDFLAGS="-mno-cygwin"
  16025. fi
  16026. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  16027. ;;
  16028. esac
  16029. # Uncomment the following line if you want to force SDL and applications
  16030. # built with it to be compiled for a particular architecture.
  16031. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  16032. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  16033. # The default optimization for SDL is -O3 (Bug #31)
  16034. if test "x$orig_CFLAGS" = x; then
  16035. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  16036. fi
  16037. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  16038. BUILD_LDFLAGS="$LDFLAGS"
  16039. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  16040. ## These are common directories to find software packages
  16041. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  16042. # if test -d $path/include; then
  16043. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  16044. # fi
  16045. # if test -d $path/lib; then
  16046. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  16047. # fi
  16048. #done
  16049. SDL_CFLAGS="$BASE_CFLAGS"
  16050. SDL_LIBS="-lSDL2"
  16051. if test "x$BASE_LDFLAGS" != x; then
  16052. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  16053. fi
  16054. if test "x$EXTRA_CFLAGS" != x; then
  16055. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  16056. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  16057. fi
  16058. if test "x$EXTRA_LDFLAGS" != x; then
  16059. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  16060. fi
  16061. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  16062. find_lib()
  16063. {
  16064. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | $FGREP programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16065. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | $FGREP libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16066. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  16067. if test "$cross_compiling" = yes; then
  16068. host_lib_path=""
  16069. else
  16070. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  16071. fi
  16072. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  16073. 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`
  16074. if test x$lib != x; then
  16075. echo $lib
  16076. return
  16077. fi
  16078. done
  16079. }
  16080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16081. printf %s "checking for an ANSI C-conforming const... " >&6; }
  16082. if test ${ac_cv_c_const+y}
  16083. then :
  16084. printf %s "(cached) " >&6
  16085. else $as_nop
  16086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16087. /* end confdefs.h. */
  16088. int
  16089. main (void)
  16090. {
  16091. #ifndef __cplusplus
  16092. /* Ultrix mips cc rejects this sort of thing. */
  16093. typedef int charset[2];
  16094. const charset cs = { 0, 0 };
  16095. /* SunOS 4.1.1 cc rejects this. */
  16096. char const *const *pcpcc;
  16097. char **ppc;
  16098. /* NEC SVR4.0.2 mips cc rejects this. */
  16099. struct point {int x, y;};
  16100. static struct point const zero = {0,0};
  16101. /* IBM XL C 1.02.0.0 rejects this.
  16102. It does not let you subtract one const X* pointer from another in
  16103. an arm of an if-expression whose if-part is not a constant
  16104. expression */
  16105. const char *g = "string";
  16106. pcpcc = &g + (g ? g-g : 0);
  16107. /* HPUX 7.0 cc rejects these. */
  16108. ++pcpcc;
  16109. ppc = (char**) pcpcc;
  16110. pcpcc = (char const *const *) ppc;
  16111. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16112. char tx;
  16113. char *t = &tx;
  16114. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16115. *t++ = 0;
  16116. if (s) return 0;
  16117. }
  16118. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16119. int x[] = {25, 17};
  16120. const int *foo = &x[0];
  16121. ++foo;
  16122. }
  16123. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16124. typedef const int *iptr;
  16125. iptr p = 0;
  16126. ++p;
  16127. }
  16128. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16129. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16130. struct s { int j; const int *ap[3]; } bx;
  16131. struct s *b = &bx; b->j = 5;
  16132. }
  16133. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16134. const int foo = 10;
  16135. if (!foo) return 0;
  16136. }
  16137. return !cs[0] && !zero.x;
  16138. #endif
  16139. ;
  16140. return 0;
  16141. }
  16142. _ACEOF
  16143. if ac_fn_c_try_compile "$LINENO"
  16144. then :
  16145. ac_cv_c_const=yes
  16146. else $as_nop
  16147. ac_cv_c_const=no
  16148. fi
  16149. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16150. fi
  16151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16152. printf "%s\n" "$ac_cv_c_const" >&6; }
  16153. if test $ac_cv_c_const = no; then
  16154. printf "%s\n" "#define const /**/" >>confdefs.h
  16155. fi
  16156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16157. printf %s "checking for inline... " >&6; }
  16158. if test ${ac_cv_c_inline+y}
  16159. then :
  16160. printf %s "(cached) " >&6
  16161. else $as_nop
  16162. ac_cv_c_inline=no
  16163. for ac_kw in inline __inline__ __inline; do
  16164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16165. /* end confdefs.h. */
  16166. #ifndef __cplusplus
  16167. typedef int foo_t;
  16168. static $ac_kw foo_t static_foo (void) {return 0; }
  16169. $ac_kw foo_t foo (void) {return 0; }
  16170. #endif
  16171. _ACEOF
  16172. if ac_fn_c_try_compile "$LINENO"
  16173. then :
  16174. ac_cv_c_inline=$ac_kw
  16175. fi
  16176. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16177. test "$ac_cv_c_inline" != no && break
  16178. done
  16179. fi
  16180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16181. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16182. case $ac_cv_c_inline in
  16183. inline | yes) ;;
  16184. *)
  16185. case $ac_cv_c_inline in
  16186. no) ac_val=;;
  16187. *) ac_val=$ac_cv_c_inline;;
  16188. esac
  16189. cat >>confdefs.h <<_ACEOF
  16190. #ifndef __cplusplus
  16191. #define inline $ac_val
  16192. #endif
  16193. _ACEOF
  16194. ;;
  16195. esac
  16196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16197. printf %s "checking for working volatile... " >&6; }
  16198. if test ${ac_cv_c_volatile+y}
  16199. then :
  16200. printf %s "(cached) " >&6
  16201. else $as_nop
  16202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16203. /* end confdefs.h. */
  16204. int
  16205. main (void)
  16206. {
  16207. volatile int x;
  16208. int * volatile y = (int *) 0;
  16209. return !x && !y;
  16210. ;
  16211. return 0;
  16212. }
  16213. _ACEOF
  16214. if ac_fn_c_try_compile "$LINENO"
  16215. then :
  16216. ac_cv_c_volatile=yes
  16217. else $as_nop
  16218. ac_cv_c_volatile=no
  16219. fi
  16220. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16221. fi
  16222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16223. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16224. if test $ac_cv_c_volatile = no; then
  16225. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16226. fi
  16227. # Check whether --enable-assertions was given.
  16228. if test ${enable_assertions+y}
  16229. then :
  16230. enableval=$enable_assertions;
  16231. else $as_nop
  16232. enable_assertions=auto
  16233. fi
  16234. case "$enable_assertions" in
  16235. auto) # Use optimization settings to determine assertion level
  16236. ;;
  16237. disabled)
  16238. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16239. ;;
  16240. release)
  16241. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16242. ;;
  16243. enabled)
  16244. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16245. ;;
  16246. paranoid)
  16247. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16248. ;;
  16249. *)
  16250. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16251. ;;
  16252. esac
  16253. 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"
  16254. # Check whether --enable-dependency-tracking was given.
  16255. if test ${enable_dependency_tracking+y}
  16256. then :
  16257. enableval=$enable_dependency_tracking;
  16258. else $as_nop
  16259. enable_dependency_tracking=yes
  16260. fi
  16261. if test x$enable_dependency_tracking = xyes; then
  16262. have_gcc_mmd_mt=no
  16263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16264. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16266. /* end confdefs.h. */
  16267. #if !defined(__GNUC__) || __GNUC__ < 3
  16268. #error Dependency tracking requires GCC 3.0 or newer
  16269. #endif
  16270. int
  16271. main (void)
  16272. {
  16273. ;
  16274. return 0;
  16275. }
  16276. _ACEOF
  16277. if ac_fn_c_try_compile "$LINENO"
  16278. then :
  16279. have_gcc_mmd_mt=yes
  16280. fi
  16281. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16283. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16284. if test x$have_gcc_mmd_mt = xyes; then
  16285. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16286. fi
  16287. fi
  16288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16289. printf %s "checking for linker option --no-undefined... " >&6; }
  16290. have_no_undefined=no
  16291. case "$host" in
  16292. *-*-openbsd*)
  16293. ;;
  16294. *)
  16295. save_LDFLAGS="$LDFLAGS"
  16296. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16298. /* end confdefs.h. */
  16299. int
  16300. main (void)
  16301. {
  16302. ;
  16303. return 0;
  16304. }
  16305. _ACEOF
  16306. if ac_fn_c_try_link "$LINENO"
  16307. then :
  16308. have_no_undefined=yes
  16309. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16310. fi
  16311. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16312. conftest$ac_exeext conftest.$ac_ext
  16313. LDFLAGS="$save_LDFLAGS"
  16314. ;;
  16315. esac
  16316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16317. printf "%s\n" "$have_no_undefined" >&6; }
  16318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16319. printf %s "checking for linker option --dynamicbase... " >&6; }
  16320. have_dynamicbase=no
  16321. case "$host" in
  16322. *)
  16323. save_LDFLAGS="$LDFLAGS"
  16324. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16326. /* end confdefs.h. */
  16327. int
  16328. main (void)
  16329. {
  16330. ;
  16331. return 0;
  16332. }
  16333. _ACEOF
  16334. if ac_fn_c_try_link "$LINENO"
  16335. then :
  16336. have_dynamicbase=yes
  16337. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16338. fi
  16339. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16340. conftest$ac_exeext conftest.$ac_ext
  16341. LDFLAGS="$save_LDFLAGS"
  16342. ;;
  16343. esac
  16344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16345. printf "%s\n" "$have_dynamicbase" >&6; }
  16346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16347. printf %s "checking for linker option --nxcompat... " >&6; }
  16348. have_nxcompat=no
  16349. case "$host" in
  16350. *)
  16351. save_LDFLAGS="$LDFLAGS"
  16352. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16354. /* end confdefs.h. */
  16355. int
  16356. main (void)
  16357. {
  16358. ;
  16359. return 0;
  16360. }
  16361. _ACEOF
  16362. if ac_fn_c_try_link "$LINENO"
  16363. then :
  16364. have_nxcompat=yes
  16365. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16366. fi
  16367. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16368. conftest$ac_exeext conftest.$ac_ext
  16369. LDFLAGS="$save_LDFLAGS"
  16370. ;;
  16371. esac
  16372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16373. printf "%s\n" "$have_nxcompat" >&6; }
  16374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16375. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16376. have_high_entropy_va=no
  16377. case "$host" in
  16378. *)
  16379. save_LDFLAGS="$LDFLAGS"
  16380. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16382. /* end confdefs.h. */
  16383. int
  16384. main (void)
  16385. {
  16386. ;
  16387. return 0;
  16388. }
  16389. _ACEOF
  16390. if ac_fn_c_try_link "$LINENO"
  16391. then :
  16392. have_high_entropy_va=yes
  16393. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16394. fi
  16395. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16396. conftest$ac_exeext conftest.$ac_ext
  16397. LDFLAGS="$save_LDFLAGS"
  16398. ;;
  16399. esac
  16400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16401. printf "%s\n" "$have_high_entropy_va" >&6; }
  16402. # Check whether --enable-libc was given.
  16403. if test ${enable_libc+y}
  16404. then :
  16405. enableval=$enable_libc;
  16406. else $as_nop
  16407. enable_libc=yes
  16408. fi
  16409. enable_system_iconv_default=yes
  16410. case "$host" in
  16411. *-*-cygwin*|*-*-mingw*|*-*-darwin*|*-ios-*)
  16412. enable_system_iconv_default=no
  16413. ;;
  16414. esac
  16415. # Check whether --enable-system-iconv was given.
  16416. if test ${enable_system_iconv+y}
  16417. then :
  16418. enableval=$enable_system_iconv;
  16419. else $as_nop
  16420. enable_system_iconv=$enable_system_iconv_default
  16421. fi
  16422. # Check whether --enable-libiconv was given.
  16423. if test ${enable_libiconv+y}
  16424. then :
  16425. enableval=$enable_libiconv;
  16426. else $as_nop
  16427. enable_libiconv=no
  16428. fi
  16429. if test x$enable_libc = xyes; then
  16430. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16431. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16432. if test "x$ac_cv_header_sys_types_h" = xyes
  16433. then :
  16434. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16435. fi
  16436. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16437. if test "x$ac_cv_header_stdio_h" = xyes
  16438. then :
  16439. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16440. fi
  16441. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16442. if test "x$ac_cv_header_stdlib_h" = xyes
  16443. then :
  16444. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16445. fi
  16446. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16447. if test "x$ac_cv_header_stddef_h" = xyes
  16448. then :
  16449. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16450. fi
  16451. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16452. if test "x$ac_cv_header_stdarg_h" = xyes
  16453. then :
  16454. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16455. fi
  16456. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16457. if test "x$ac_cv_header_malloc_h" = xyes
  16458. then :
  16459. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16460. fi
  16461. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16462. if test "x$ac_cv_header_memory_h" = xyes
  16463. then :
  16464. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16465. fi
  16466. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16467. if test "x$ac_cv_header_string_h" = xyes
  16468. then :
  16469. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16470. fi
  16471. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16472. if test "x$ac_cv_header_strings_h" = xyes
  16473. then :
  16474. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16475. fi
  16476. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16477. if test "x$ac_cv_header_wchar_h" = xyes
  16478. then :
  16479. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16480. fi
  16481. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16482. if test "x$ac_cv_header_inttypes_h" = xyes
  16483. then :
  16484. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16485. fi
  16486. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16487. if test "x$ac_cv_header_stdint_h" = xyes
  16488. then :
  16489. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16490. fi
  16491. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16492. if test "x$ac_cv_header_limits_h" = xyes
  16493. then :
  16494. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16495. fi
  16496. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16497. if test "x$ac_cv_header_ctype_h" = xyes
  16498. then :
  16499. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16500. fi
  16501. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16502. if test "x$ac_cv_header_math_h" = xyes
  16503. then :
  16504. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16505. fi
  16506. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16507. if test "x$ac_cv_header_float_h" = xyes
  16508. then :
  16509. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16510. fi
  16511. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16512. if test "x$ac_cv_header_iconv_h" = xyes
  16513. then :
  16514. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16515. fi
  16516. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16517. if test "x$ac_cv_header_signal_h" = xyes
  16518. then :
  16519. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16520. fi
  16521. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16522. if test "x$ac_cv_type_size_t" = xyes
  16523. then :
  16524. else $as_nop
  16525. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16526. fi
  16527. ac_ext=c
  16528. ac_cpp='$CPP $CPPFLAGS'
  16529. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16530. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16531. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16533. printf %s "checking how to run the C preprocessor... " >&6; }
  16534. # On Suns, sometimes $CPP names a directory.
  16535. if test -n "$CPP" && test -d "$CPP"; then
  16536. CPP=
  16537. fi
  16538. if test -z "$CPP"; then
  16539. if test ${ac_cv_prog_CPP+y}
  16540. then :
  16541. printf %s "(cached) " >&6
  16542. else $as_nop
  16543. # Double quotes because $CC needs to be expanded
  16544. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16545. do
  16546. ac_preproc_ok=false
  16547. for ac_c_preproc_warn_flag in '' yes
  16548. do
  16549. # Use a header file that comes with gcc, so configuring glibc
  16550. # with a fresh cross-compiler works.
  16551. # On the NeXT, cc -E runs the code through the compiler's parser,
  16552. # not just through cpp. "Syntax error" is here to catch this case.
  16553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16554. /* end confdefs.h. */
  16555. #include <limits.h>
  16556. Syntax error
  16557. _ACEOF
  16558. if ac_fn_c_try_cpp "$LINENO"
  16559. then :
  16560. else $as_nop
  16561. # Broken: fails on valid input.
  16562. continue
  16563. fi
  16564. rm -f conftest.err conftest.i conftest.$ac_ext
  16565. # OK, works on sane cases. Now check whether nonexistent headers
  16566. # can be detected and how.
  16567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16568. /* end confdefs.h. */
  16569. #include <ac_nonexistent.h>
  16570. _ACEOF
  16571. if ac_fn_c_try_cpp "$LINENO"
  16572. then :
  16573. # Broken: success on invalid input.
  16574. continue
  16575. else $as_nop
  16576. # Passes both tests.
  16577. ac_preproc_ok=:
  16578. break
  16579. fi
  16580. rm -f conftest.err conftest.i conftest.$ac_ext
  16581. done
  16582. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16583. rm -f conftest.i conftest.err conftest.$ac_ext
  16584. if $ac_preproc_ok
  16585. then :
  16586. break
  16587. fi
  16588. done
  16589. ac_cv_prog_CPP=$CPP
  16590. fi
  16591. CPP=$ac_cv_prog_CPP
  16592. else
  16593. ac_cv_prog_CPP=$CPP
  16594. fi
  16595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16596. printf "%s\n" "$CPP" >&6; }
  16597. ac_preproc_ok=false
  16598. for ac_c_preproc_warn_flag in '' yes
  16599. do
  16600. # Use a header file that comes with gcc, so configuring glibc
  16601. # with a fresh cross-compiler works.
  16602. # On the NeXT, cc -E runs the code through the compiler's parser,
  16603. # not just through cpp. "Syntax error" is here to catch this case.
  16604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16605. /* end confdefs.h. */
  16606. #include <limits.h>
  16607. Syntax error
  16608. _ACEOF
  16609. if ac_fn_c_try_cpp "$LINENO"
  16610. then :
  16611. else $as_nop
  16612. # Broken: fails on valid input.
  16613. continue
  16614. fi
  16615. rm -f conftest.err conftest.i conftest.$ac_ext
  16616. # OK, works on sane cases. Now check whether nonexistent headers
  16617. # can be detected and how.
  16618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16619. /* end confdefs.h. */
  16620. #include <ac_nonexistent.h>
  16621. _ACEOF
  16622. if ac_fn_c_try_cpp "$LINENO"
  16623. then :
  16624. # Broken: success on invalid input.
  16625. continue
  16626. else $as_nop
  16627. # Passes both tests.
  16628. ac_preproc_ok=:
  16629. break
  16630. fi
  16631. rm -f conftest.err conftest.i conftest.$ac_ext
  16632. done
  16633. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16634. rm -f conftest.i conftest.err conftest.$ac_ext
  16635. if $ac_preproc_ok
  16636. then :
  16637. else $as_nop
  16638. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16639. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16640. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16641. See \`config.log' for more details" "$LINENO" 5; }
  16642. fi
  16643. ac_ext=c
  16644. ac_cpp='$CPP $CPPFLAGS'
  16645. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16646. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16647. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16649. printf %s "checking for M_PI in math.h... " >&6; }
  16650. if test ${ac_cv_define_M_PI+y}
  16651. then :
  16652. printf %s "(cached) " >&6
  16653. else $as_nop
  16654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16655. /* end confdefs.h. */
  16656. #include <math.h>
  16657. #ifdef M_PI
  16658. YES_IS_DEFINED
  16659. #endif
  16660. _ACEOF
  16661. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16662. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16663. then :
  16664. ac_cv_define_M_PI=yes
  16665. else $as_nop
  16666. ac_cv_define_M_PI=no
  16667. fi
  16668. rm -rf conftest*
  16669. fi
  16670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16671. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16672. if test "$ac_cv_define_M_PI" = "yes" ; then
  16673. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16674. fi
  16675. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16676. # for constant arguments. Useless!
  16677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16678. printf %s "checking for working alloca.h... " >&6; }
  16679. if test ${ac_cv_working_alloca_h+y}
  16680. then :
  16681. printf %s "(cached) " >&6
  16682. else $as_nop
  16683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16684. /* end confdefs.h. */
  16685. #include <alloca.h>
  16686. int
  16687. main (void)
  16688. {
  16689. char *p = (char *) alloca (2 * sizeof (int));
  16690. if (p) return 0;
  16691. ;
  16692. return 0;
  16693. }
  16694. _ACEOF
  16695. if ac_fn_c_try_link "$LINENO"
  16696. then :
  16697. ac_cv_working_alloca_h=yes
  16698. else $as_nop
  16699. ac_cv_working_alloca_h=no
  16700. fi
  16701. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16702. conftest$ac_exeext conftest.$ac_ext
  16703. fi
  16704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16705. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16706. if test $ac_cv_working_alloca_h = yes; then
  16707. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16708. fi
  16709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16710. printf %s "checking for alloca... " >&6; }
  16711. if test ${ac_cv_func_alloca_works+y}
  16712. then :
  16713. printf %s "(cached) " >&6
  16714. else $as_nop
  16715. if test $ac_cv_working_alloca_h = yes; then
  16716. ac_cv_func_alloca_works=yes
  16717. else
  16718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16719. /* end confdefs.h. */
  16720. #include <stdlib.h>
  16721. #include <stddef.h>
  16722. #ifndef alloca
  16723. # ifdef __GNUC__
  16724. # define alloca __builtin_alloca
  16725. # elif defined _MSC_VER
  16726. # include <malloc.h>
  16727. # define alloca _alloca
  16728. # else
  16729. # ifdef __cplusplus
  16730. extern "C"
  16731. # endif
  16732. void *alloca (size_t);
  16733. # endif
  16734. #endif
  16735. int
  16736. main (void)
  16737. {
  16738. char *p = (char *) alloca (1);
  16739. if (p) return 0;
  16740. ;
  16741. return 0;
  16742. }
  16743. _ACEOF
  16744. if ac_fn_c_try_link "$LINENO"
  16745. then :
  16746. ac_cv_func_alloca_works=yes
  16747. else $as_nop
  16748. ac_cv_func_alloca_works=no
  16749. fi
  16750. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16751. conftest$ac_exeext conftest.$ac_ext
  16752. fi
  16753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16754. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16755. fi
  16756. if test $ac_cv_func_alloca_works = yes; then
  16757. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16758. else
  16759. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16760. # that cause trouble. Some versions do not even contain alloca or
  16761. # contain a buggy version. If you still want to use their alloca,
  16762. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16763. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16764. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16766. printf %s "checking stack direction for C alloca... " >&6; }
  16767. if test ${ac_cv_c_stack_direction+y}
  16768. then :
  16769. printf %s "(cached) " >&6
  16770. else $as_nop
  16771. if test "$cross_compiling" = yes
  16772. then :
  16773. ac_cv_c_stack_direction=0
  16774. else $as_nop
  16775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16776. /* end confdefs.h. */
  16777. $ac_includes_default
  16778. int
  16779. find_stack_direction (int *addr, int depth)
  16780. {
  16781. int dir, dummy = 0;
  16782. if (! addr)
  16783. addr = &dummy;
  16784. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16785. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16786. return dir + dummy;
  16787. }
  16788. int
  16789. main (int argc, char **argv)
  16790. {
  16791. return find_stack_direction (0, argc + !argv + 20) < 0;
  16792. }
  16793. _ACEOF
  16794. if ac_fn_c_try_run "$LINENO"
  16795. then :
  16796. ac_cv_c_stack_direction=1
  16797. else $as_nop
  16798. ac_cv_c_stack_direction=-1
  16799. fi
  16800. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16801. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16802. fi
  16803. fi
  16804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16805. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16806. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16807. fi
  16808. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16809. if test "x$ac_cv_func_mprotect" = xyes
  16810. then :
  16811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16812. /* end confdefs.h. */
  16813. #include <sys/types.h>
  16814. #include <sys/mman.h>
  16815. int
  16816. main (void)
  16817. {
  16818. ;
  16819. return 0;
  16820. }
  16821. _ACEOF
  16822. if ac_fn_c_try_compile "$LINENO"
  16823. then :
  16824. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16825. fi
  16826. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16827. fi
  16828. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16829. if test "x$ac_cv_func_malloc" = xyes
  16830. then :
  16831. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16832. fi
  16833. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16834. if test "x$ac_cv_func_calloc" = xyes
  16835. then :
  16836. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16837. fi
  16838. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16839. if test "x$ac_cv_func_realloc" = xyes
  16840. then :
  16841. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16842. fi
  16843. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16844. if test "x$ac_cv_func_free" = xyes
  16845. then :
  16846. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16847. fi
  16848. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16849. if test "x$ac_cv_func_getenv" = xyes
  16850. then :
  16851. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16852. fi
  16853. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16854. if test "x$ac_cv_func_setenv" = xyes
  16855. then :
  16856. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16857. fi
  16858. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16859. if test "x$ac_cv_func_putenv" = xyes
  16860. then :
  16861. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16862. fi
  16863. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16864. if test "x$ac_cv_func_unsetenv" = xyes
  16865. then :
  16866. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16867. fi
  16868. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16869. if test "x$ac_cv_func_bsearch" = xyes
  16870. then :
  16871. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16872. fi
  16873. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16874. if test "x$ac_cv_func_qsort" = xyes
  16875. then :
  16876. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16877. fi
  16878. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16879. if test "x$ac_cv_func_abs" = xyes
  16880. then :
  16881. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16882. fi
  16883. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16884. if test "x$ac_cv_func_bcopy" = xyes
  16885. then :
  16886. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16887. fi
  16888. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16889. if test "x$ac_cv_func_memset" = xyes
  16890. then :
  16891. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16892. fi
  16893. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16894. if test "x$ac_cv_func_memcmp" = xyes
  16895. then :
  16896. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16897. fi
  16898. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16899. if test "x$ac_cv_func_memcpy" = xyes
  16900. then :
  16901. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16902. fi
  16903. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16904. if test "x$ac_cv_func_memmove" = xyes
  16905. then :
  16906. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16907. fi
  16908. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16909. if test "x$ac_cv_func_wcslen" = xyes
  16910. then :
  16911. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16912. fi
  16913. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16914. if test "x$ac_cv_func_wcslcpy" = xyes
  16915. then :
  16916. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16917. fi
  16918. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16919. if test "x$ac_cv_func_wcslcat" = xyes
  16920. then :
  16921. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16922. fi
  16923. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16924. if test "x$ac_cv_func__wcsdup" = xyes
  16925. then :
  16926. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16927. fi
  16928. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16929. if test "x$ac_cv_func_wcsdup" = xyes
  16930. then :
  16931. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16932. fi
  16933. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16934. if test "x$ac_cv_func_wcsstr" = xyes
  16935. then :
  16936. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16937. fi
  16938. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16939. if test "x$ac_cv_func_wcscmp" = xyes
  16940. then :
  16941. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16942. fi
  16943. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16944. if test "x$ac_cv_func_wcsncmp" = xyes
  16945. then :
  16946. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16947. fi
  16948. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16949. if test "x$ac_cv_func_wcscasecmp" = xyes
  16950. then :
  16951. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16952. fi
  16953. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16954. if test "x$ac_cv_func__wcsicmp" = xyes
  16955. then :
  16956. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16957. fi
  16958. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16959. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16960. then :
  16961. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16962. fi
  16963. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16964. if test "x$ac_cv_func__wcsnicmp" = xyes
  16965. then :
  16966. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16967. fi
  16968. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16969. if test "x$ac_cv_func_strlen" = xyes
  16970. then :
  16971. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16972. fi
  16973. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16974. if test "x$ac_cv_func_strlcpy" = xyes
  16975. then :
  16976. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16977. fi
  16978. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16979. if test "x$ac_cv_func_strlcat" = xyes
  16980. then :
  16981. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16982. fi
  16983. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16984. if test "x$ac_cv_func__strrev" = xyes
  16985. then :
  16986. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16987. fi
  16988. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16989. if test "x$ac_cv_func__strupr" = xyes
  16990. then :
  16991. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16992. fi
  16993. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16994. if test "x$ac_cv_func__strlwr" = xyes
  16995. then :
  16996. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16997. fi
  16998. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16999. if test "x$ac_cv_func_index" = xyes
  17000. then :
  17001. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  17002. fi
  17003. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  17004. if test "x$ac_cv_func_rindex" = xyes
  17005. then :
  17006. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  17007. fi
  17008. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  17009. if test "x$ac_cv_func_strchr" = xyes
  17010. then :
  17011. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  17012. fi
  17013. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  17014. if test "x$ac_cv_func_strrchr" = xyes
  17015. then :
  17016. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  17017. fi
  17018. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  17019. if test "x$ac_cv_func_strstr" = xyes
  17020. then :
  17021. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  17022. fi
  17023. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  17024. if test "x$ac_cv_func_strtok_r" = xyes
  17025. then :
  17026. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  17027. fi
  17028. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  17029. if test "x$ac_cv_func_itoa" = xyes
  17030. then :
  17031. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  17032. fi
  17033. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  17034. if test "x$ac_cv_func__ltoa" = xyes
  17035. then :
  17036. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  17037. fi
  17038. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  17039. if test "x$ac_cv_func__uitoa" = xyes
  17040. then :
  17041. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  17042. fi
  17043. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  17044. if test "x$ac_cv_func__ultoa" = xyes
  17045. then :
  17046. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  17047. fi
  17048. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  17049. if test "x$ac_cv_func_strtod" = xyes
  17050. then :
  17051. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  17052. fi
  17053. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  17054. if test "x$ac_cv_func_strtol" = xyes
  17055. then :
  17056. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  17057. fi
  17058. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  17059. if test "x$ac_cv_func_strtoul" = xyes
  17060. then :
  17061. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  17062. fi
  17063. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  17064. if test "x$ac_cv_func__i64toa" = xyes
  17065. then :
  17066. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  17067. fi
  17068. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  17069. if test "x$ac_cv_func__ui64toa" = xyes
  17070. then :
  17071. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  17072. fi
  17073. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  17074. if test "x$ac_cv_func_strtoll" = xyes
  17075. then :
  17076. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  17077. fi
  17078. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  17079. if test "x$ac_cv_func_strtoull" = xyes
  17080. then :
  17081. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  17082. fi
  17083. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  17084. if test "x$ac_cv_func_atoi" = xyes
  17085. then :
  17086. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  17087. fi
  17088. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  17089. if test "x$ac_cv_func_atof" = xyes
  17090. then :
  17091. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  17092. fi
  17093. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  17094. if test "x$ac_cv_func_strcmp" = xyes
  17095. then :
  17096. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  17097. fi
  17098. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  17099. if test "x$ac_cv_func_strncmp" = xyes
  17100. then :
  17101. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  17102. fi
  17103. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  17104. if test "x$ac_cv_func__stricmp" = xyes
  17105. then :
  17106. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  17107. fi
  17108. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  17109. if test "x$ac_cv_func_strcasecmp" = xyes
  17110. then :
  17111. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  17112. fi
  17113. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  17114. if test "x$ac_cv_func__strnicmp" = xyes
  17115. then :
  17116. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  17117. fi
  17118. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17119. if test "x$ac_cv_func_strncasecmp" = xyes
  17120. then :
  17121. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17122. fi
  17123. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  17124. if test "x$ac_cv_func_strcasestr" = xyes
  17125. then :
  17126. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  17127. fi
  17128. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17129. if test "x$ac_cv_func_vsscanf" = xyes
  17130. then :
  17131. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17132. fi
  17133. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17134. if test "x$ac_cv_func_vsnprintf" = xyes
  17135. then :
  17136. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17137. fi
  17138. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17139. if test "x$ac_cv_func_fopen64" = xyes
  17140. then :
  17141. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17142. fi
  17143. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17144. if test "x$ac_cv_func_fseeko" = xyes
  17145. then :
  17146. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17147. fi
  17148. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17149. if test "x$ac_cv_func_fseeko64" = xyes
  17150. then :
  17151. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17152. fi
  17153. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17154. if test "x$ac_cv_func_sigaction" = xyes
  17155. then :
  17156. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17157. fi
  17158. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17159. if test "x$ac_cv_func_setjmp" = xyes
  17160. then :
  17161. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17162. fi
  17163. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17164. if test "x$ac_cv_func_nanosleep" = xyes
  17165. then :
  17166. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17167. fi
  17168. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17169. if test "x$ac_cv_func_sysconf" = xyes
  17170. then :
  17171. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17172. fi
  17173. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17174. if test "x$ac_cv_func_sysctlbyname" = xyes
  17175. then :
  17176. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17177. fi
  17178. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17179. if test "x$ac_cv_func_getauxval" = xyes
  17180. then :
  17181. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17182. fi
  17183. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17184. if test "x$ac_cv_func_elf_aux_info" = xyes
  17185. then :
  17186. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17187. fi
  17188. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17189. if test "x$ac_cv_func_poll" = xyes
  17190. then :
  17191. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17192. fi
  17193. ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
  17194. if test "x$ac_cv_func_memfd_create" = xyes
  17195. then :
  17196. printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
  17197. fi
  17198. ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  17199. if test "x$ac_cv_func_posix_fallocate" = xyes
  17200. then :
  17201. printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
  17202. fi
  17203. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17204. if test "x$ac_cv_func__Exit" = xyes
  17205. then :
  17206. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17207. fi
  17208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17209. printf %s "checking for pow in -lm... " >&6; }
  17210. if test ${ac_cv_lib_m_pow+y}
  17211. then :
  17212. printf %s "(cached) " >&6
  17213. else $as_nop
  17214. ac_check_lib_save_LIBS=$LIBS
  17215. LIBS="-lm $LIBS"
  17216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17217. /* end confdefs.h. */
  17218. /* Override any GCC internal prototype to avoid an error.
  17219. Use char because int might match the return type of a GCC
  17220. builtin and then its argument prototype would still apply. */
  17221. char pow ();
  17222. int
  17223. main (void)
  17224. {
  17225. return pow ();
  17226. ;
  17227. return 0;
  17228. }
  17229. _ACEOF
  17230. if ac_fn_c_try_link "$LINENO"
  17231. then :
  17232. ac_cv_lib_m_pow=yes
  17233. else $as_nop
  17234. ac_cv_lib_m_pow=no
  17235. fi
  17236. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17237. conftest$ac_exeext conftest.$ac_ext
  17238. LIBS=$ac_check_lib_save_LIBS
  17239. fi
  17240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17241. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17242. if test "x$ac_cv_lib_m_pow" = xyes
  17243. then :
  17244. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17245. fi
  17246. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17247. if test "x$ac_cv_func_acos" = xyes
  17248. then :
  17249. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17250. fi
  17251. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17252. if test "x$ac_cv_func_acosf" = xyes
  17253. then :
  17254. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17255. fi
  17256. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17257. if test "x$ac_cv_func_asin" = xyes
  17258. then :
  17259. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17260. fi
  17261. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17262. if test "x$ac_cv_func_asinf" = xyes
  17263. then :
  17264. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17265. fi
  17266. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17267. if test "x$ac_cv_func_atan" = xyes
  17268. then :
  17269. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17270. fi
  17271. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17272. if test "x$ac_cv_func_atanf" = xyes
  17273. then :
  17274. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17275. fi
  17276. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17277. if test "x$ac_cv_func_atan2" = xyes
  17278. then :
  17279. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17280. fi
  17281. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17282. if test "x$ac_cv_func_atan2f" = xyes
  17283. then :
  17284. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17285. fi
  17286. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17287. if test "x$ac_cv_func_ceil" = xyes
  17288. then :
  17289. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17290. fi
  17291. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17292. if test "x$ac_cv_func_ceilf" = xyes
  17293. then :
  17294. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17295. fi
  17296. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17297. if test "x$ac_cv_func_copysign" = xyes
  17298. then :
  17299. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17300. fi
  17301. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17302. if test "x$ac_cv_func_copysignf" = xyes
  17303. then :
  17304. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17305. fi
  17306. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17307. if test "x$ac_cv_func_cos" = xyes
  17308. then :
  17309. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17310. fi
  17311. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17312. if test "x$ac_cv_func_cosf" = xyes
  17313. then :
  17314. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17315. fi
  17316. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17317. if test "x$ac_cv_func_exp" = xyes
  17318. then :
  17319. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17320. fi
  17321. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17322. if test "x$ac_cv_func_expf" = xyes
  17323. then :
  17324. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17325. fi
  17326. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17327. if test "x$ac_cv_func_fabs" = xyes
  17328. then :
  17329. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17330. fi
  17331. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17332. if test "x$ac_cv_func_fabsf" = xyes
  17333. then :
  17334. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17335. fi
  17336. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17337. if test "x$ac_cv_func_floor" = xyes
  17338. then :
  17339. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17340. fi
  17341. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17342. if test "x$ac_cv_func_floorf" = xyes
  17343. then :
  17344. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17345. fi
  17346. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17347. if test "x$ac_cv_func_trunc" = xyes
  17348. then :
  17349. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17350. fi
  17351. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17352. if test "x$ac_cv_func_truncf" = xyes
  17353. then :
  17354. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17355. fi
  17356. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17357. if test "x$ac_cv_func_fmod" = xyes
  17358. then :
  17359. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17360. fi
  17361. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17362. if test "x$ac_cv_func_fmodf" = xyes
  17363. then :
  17364. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17365. fi
  17366. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17367. if test "x$ac_cv_func_log" = xyes
  17368. then :
  17369. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17370. fi
  17371. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17372. if test "x$ac_cv_func_logf" = xyes
  17373. then :
  17374. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17375. fi
  17376. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17377. if test "x$ac_cv_func_log10" = xyes
  17378. then :
  17379. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17380. fi
  17381. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17382. if test "x$ac_cv_func_log10f" = xyes
  17383. then :
  17384. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17385. fi
  17386. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17387. if test "x$ac_cv_func_lround" = xyes
  17388. then :
  17389. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17390. fi
  17391. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17392. if test "x$ac_cv_func_lroundf" = xyes
  17393. then :
  17394. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17395. fi
  17396. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17397. if test "x$ac_cv_func_pow" = xyes
  17398. then :
  17399. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17400. fi
  17401. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17402. if test "x$ac_cv_func_powf" = xyes
  17403. then :
  17404. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17405. fi
  17406. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17407. if test "x$ac_cv_func_round" = xyes
  17408. then :
  17409. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17410. fi
  17411. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17412. if test "x$ac_cv_func_roundf" = xyes
  17413. then :
  17414. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17415. fi
  17416. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17417. if test "x$ac_cv_func_scalbn" = xyes
  17418. then :
  17419. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17420. fi
  17421. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17422. if test "x$ac_cv_func_scalbnf" = xyes
  17423. then :
  17424. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17425. fi
  17426. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17427. if test "x$ac_cv_func_sin" = xyes
  17428. then :
  17429. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17430. fi
  17431. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17432. if test "x$ac_cv_func_sinf" = xyes
  17433. then :
  17434. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17435. fi
  17436. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17437. if test "x$ac_cv_func_sqrt" = xyes
  17438. then :
  17439. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17440. fi
  17441. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17442. if test "x$ac_cv_func_sqrtf" = xyes
  17443. then :
  17444. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17445. fi
  17446. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17447. if test "x$ac_cv_func_tan" = xyes
  17448. then :
  17449. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17450. fi
  17451. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17452. if test "x$ac_cv_func_tanf" = xyes
  17453. then :
  17454. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17455. fi
  17456. if test x$enable_system_iconv = xyes; then
  17457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libc" >&5
  17458. printf %s "checking for iconv in libc... " >&6; }
  17459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17460. /* end confdefs.h. */
  17461. #define LIBICONV_PLUG 1 /* in case libiconv header is in include path */
  17462. #include <stddef.h>
  17463. #include <iconv.h>
  17464. int
  17465. main (void)
  17466. {
  17467. iconv_open(NULL,NULL);
  17468. ;
  17469. return 0;
  17470. }
  17471. _ACEOF
  17472. if ac_fn_c_try_link "$LINENO"
  17473. then :
  17474. have_libc_iconv=yes
  17475. else $as_nop
  17476. have_libc_iconv=no
  17477. fi
  17478. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17479. conftest$ac_exeext conftest.$ac_ext
  17480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libc_iconv" >&5
  17481. printf "%s\n" "$have_libc_iconv" >&6; }
  17482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libiconv" >&5
  17483. printf %s "checking for iconv in libiconv... " >&6; }
  17484. save_LIBS="$LIBS"
  17485. LIBS="$LIBS -liconv"
  17486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17487. /* end confdefs.h. */
  17488. #include <stddef.h>
  17489. #include <iconv.h>
  17490. int
  17491. main (void)
  17492. {
  17493. iconv_open(NULL,NULL);
  17494. ;
  17495. return 0;
  17496. }
  17497. _ACEOF
  17498. if ac_fn_c_try_link "$LINENO"
  17499. then :
  17500. have_libiconv=yes
  17501. else $as_nop
  17502. have_libiconv=no
  17503. fi
  17504. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17505. conftest$ac_exeext conftest.$ac_ext
  17506. LIBS="$save_LIBS"
  17507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libiconv" >&5
  17508. printf "%s\n" "$have_libiconv" >&6; }
  17509. if test x$have_libc_iconv = xyes || test x$have_libiconv = xyes; then
  17510. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17511. if test x$have_libiconv = xyes; then
  17512. if test x$have_libc_iconv != xyes; then
  17513. use_libiconv=yes
  17514. elif test x$enable_libiconv = xyes; then
  17515. use_libiconv=yes
  17516. fi
  17517. fi
  17518. if test x$use_libiconv = xyes; then
  17519. printf "%s\n" "#define SDL_USE_LIBICONV 1" >>confdefs.h
  17520. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17521. echo "-- Using iconv from libiconv"
  17522. else
  17523. echo "-- Using iconv from libc"
  17524. fi
  17525. fi
  17526. fi
  17527. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17528. "
  17529. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17530. then :
  17531. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17532. fi
  17533. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17534. if test "x$ac_cv_header_libunwind_h" = xyes
  17535. then :
  17536. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17537. fi
  17538. fi
  17539. # Check whether --enable-gcc-atomics was given.
  17540. if test ${enable_gcc_atomics+y}
  17541. then :
  17542. enableval=$enable_gcc_atomics;
  17543. else $as_nop
  17544. enable_gcc_atomics=yes
  17545. fi
  17546. if test x$enable_gcc_atomics = xyes; then
  17547. have_gcc_atomics=no
  17548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17549. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17551. /* end confdefs.h. */
  17552. int
  17553. main (void)
  17554. {
  17555. int a;
  17556. void *x, *y, *z;
  17557. __sync_lock_test_and_set(&a, 4);
  17558. __sync_lock_test_and_set(&x, y);
  17559. __sync_fetch_and_add(&a, 1);
  17560. __sync_bool_compare_and_swap(&a, 5, 10);
  17561. __sync_bool_compare_and_swap(&x, y, z);
  17562. ;
  17563. return 0;
  17564. }
  17565. _ACEOF
  17566. if ac_fn_c_try_link "$LINENO"
  17567. then :
  17568. have_gcc_atomics=yes
  17569. fi
  17570. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17571. conftest$ac_exeext conftest.$ac_ext
  17572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17573. printf "%s\n" "$have_gcc_atomics" >&6; }
  17574. if test x$have_gcc_atomics = xyes; then
  17575. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17576. else
  17577. # See if we have the minimum operation needed for GCC atomics
  17578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17579. /* end confdefs.h. */
  17580. int
  17581. main (void)
  17582. {
  17583. int a;
  17584. __sync_lock_test_and_set(&a, 1);
  17585. __sync_lock_release(&a);
  17586. ;
  17587. return 0;
  17588. }
  17589. _ACEOF
  17590. if ac_fn_c_try_link "$LINENO"
  17591. then :
  17592. have_gcc_sync_lock_test_and_set=yes
  17593. fi
  17594. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17595. conftest$ac_exeext conftest.$ac_ext
  17596. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17597. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17598. fi
  17599. fi
  17600. fi
  17601. # Standard C sources
  17602. SOURCES="$SOURCES $srcdir/src/*.c"
  17603. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17604. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17605. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17606. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17607. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17608. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17609. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17610. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17611. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17612. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17613. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17614. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17615. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17616. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17617. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17618. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17619. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17620. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17621. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17622. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17623. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17624. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17625. case "$host" in
  17626. *-*-emscripten*)
  17627. default_atomic=no
  17628. ;;
  17629. *)
  17630. default_atomic=yes
  17631. ;;
  17632. esac
  17633. # Check whether --enable-atomic was given.
  17634. if test ${enable_atomic+y}
  17635. then :
  17636. enableval=$enable_atomic;
  17637. else $as_nop
  17638. enable_atomic=$default_atomic
  17639. fi
  17640. if test x$enable_atomic != xyes; then
  17641. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17642. else
  17643. SUMMARY_modules="${SUMMARY_modules} atomic"
  17644. fi
  17645. # Check whether --enable-audio was given.
  17646. if test ${enable_audio+y}
  17647. then :
  17648. enableval=$enable_audio;
  17649. else $as_nop
  17650. enable_audio=yes
  17651. fi
  17652. if test x$enable_audio != xyes; then
  17653. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17654. else
  17655. SUMMARY_modules="${SUMMARY_modules} audio"
  17656. fi
  17657. # Check whether --enable-video was given.
  17658. if test ${enable_video+y}
  17659. then :
  17660. enableval=$enable_video;
  17661. else $as_nop
  17662. enable_video=yes
  17663. fi
  17664. if test x$enable_video != xyes; then
  17665. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17666. else
  17667. SUMMARY_modules="${SUMMARY_modules} video"
  17668. fi
  17669. # Check whether --enable-render was given.
  17670. if test ${enable_render+y}
  17671. then :
  17672. enableval=$enable_render;
  17673. else $as_nop
  17674. enable_render=yes
  17675. fi
  17676. if test x$enable_render != xyes; then
  17677. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17678. else
  17679. SUMMARY_modules="${SUMMARY_modules} render"
  17680. fi
  17681. # Check whether --enable-events was given.
  17682. if test ${enable_events+y}
  17683. then :
  17684. enableval=$enable_events;
  17685. else $as_nop
  17686. enable_events=yes
  17687. fi
  17688. if test x$enable_events != xyes; then
  17689. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17690. else
  17691. SUMMARY_modules="${SUMMARY_modules} events"
  17692. fi
  17693. # Check whether --enable-joystick was given.
  17694. if test ${enable_joystick+y}
  17695. then :
  17696. enableval=$enable_joystick;
  17697. else $as_nop
  17698. enable_joystick=yes
  17699. fi
  17700. if test x$enable_joystick != xyes; then
  17701. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17702. else
  17703. SUMMARY_modules="${SUMMARY_modules} joystick"
  17704. fi
  17705. # Check whether --enable-haptic was given.
  17706. if test ${enable_haptic+y}
  17707. then :
  17708. enableval=$enable_haptic;
  17709. else $as_nop
  17710. enable_haptic=yes
  17711. fi
  17712. if test x$enable_haptic != xyes; then
  17713. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17714. else
  17715. SUMMARY_modules="${SUMMARY_modules} haptic"
  17716. fi
  17717. # Check whether --enable-hidapi was given.
  17718. if test ${enable_hidapi+y}
  17719. then :
  17720. enableval=$enable_hidapi;
  17721. else $as_nop
  17722. enable_hidapi=yes
  17723. fi
  17724. if test x$enable_hidapi != xyes; then
  17725. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17726. else
  17727. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17728. fi
  17729. # Check whether --enable-sensor was given.
  17730. if test ${enable_sensor+y}
  17731. then :
  17732. enableval=$enable_sensor;
  17733. else $as_nop
  17734. enable_sensor=yes
  17735. fi
  17736. if test x$enable_sensor != xyes; then
  17737. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17738. else
  17739. SUMMARY_modules="${SUMMARY_modules} sensor"
  17740. fi
  17741. # Check whether --enable-power was given.
  17742. if test ${enable_power+y}
  17743. then :
  17744. enableval=$enable_power;
  17745. else $as_nop
  17746. enable_power=yes
  17747. fi
  17748. if test x$enable_power != xyes; then
  17749. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17750. else
  17751. SUMMARY_modules="${SUMMARY_modules} power"
  17752. fi
  17753. # Check whether --enable-filesystem was given.
  17754. if test ${enable_filesystem+y}
  17755. then :
  17756. enableval=$enable_filesystem;
  17757. else $as_nop
  17758. enable_filesystem=yes
  17759. fi
  17760. if test x$enable_filesystem != xyes; then
  17761. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17762. else
  17763. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17764. fi
  17765. # Many subsystems depend on threads, so leave them enabled by default
  17766. #AC_ARG_ENABLE(threads,
  17767. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17768. # , enable_threads=yes)
  17769. enable_threads=yes
  17770. if test x$enable_threads != xyes; then
  17771. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17772. else
  17773. SUMMARY_modules="${SUMMARY_modules} threads"
  17774. fi
  17775. # Check whether --enable-timers was given.
  17776. if test ${enable_timers+y}
  17777. then :
  17778. enableval=$enable_timers;
  17779. else $as_nop
  17780. enable_timers=yes
  17781. fi
  17782. if test x$enable_timers != xyes; then
  17783. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17784. else
  17785. SUMMARY_modules="${SUMMARY_modules} timers"
  17786. fi
  17787. # Check whether --enable-file was given.
  17788. if test ${enable_file+y}
  17789. then :
  17790. enableval=$enable_file;
  17791. else $as_nop
  17792. enable_file=yes
  17793. fi
  17794. if test x$enable_file != xyes; then
  17795. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17796. else
  17797. SUMMARY_modules="${SUMMARY_modules} file"
  17798. fi
  17799. # Check whether --enable-misc was given.
  17800. if test ${enable_misc+y}
  17801. then :
  17802. enableval=$enable_misc;
  17803. else $as_nop
  17804. enable_misc=yes
  17805. fi
  17806. if test x$enable_misc != xyes; then
  17807. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17808. else
  17809. SUMMARY_modules="${SUMMARY_modules} misc"
  17810. fi
  17811. # Check whether --enable-locale was given.
  17812. if test ${enable_locale+y}
  17813. then :
  17814. enableval=$enable_locale;
  17815. else $as_nop
  17816. enable_locale=yes
  17817. fi
  17818. if test x$enable_locale != xyes; then
  17819. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17820. else
  17821. SUMMARY_modules="${SUMMARY_modules} locale"
  17822. fi
  17823. # Check whether --enable-loadso was given.
  17824. if test ${enable_loadso+y}
  17825. then :
  17826. enableval=$enable_loadso;
  17827. else $as_nop
  17828. enable_loadso=yes
  17829. fi
  17830. if test x$enable_loadso != xyes; then
  17831. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17832. else
  17833. SUMMARY_modules="${SUMMARY_modules} loadso"
  17834. fi
  17835. # Check whether --enable-cpuinfo was given.
  17836. if test ${enable_cpuinfo+y}
  17837. then :
  17838. enableval=$enable_cpuinfo;
  17839. else $as_nop
  17840. enable_cpuinfo=yes
  17841. fi
  17842. if test x$enable_cpuinfo != xyes; then
  17843. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17844. else
  17845. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17846. fi
  17847. # Check whether --enable-assembly was given.
  17848. if test ${enable_assembly+y}
  17849. then :
  17850. enableval=$enable_assembly;
  17851. else $as_nop
  17852. enable_assembly=yes
  17853. fi
  17854. if test x$enable_assembly = xyes; then
  17855. SUMMARY_modules="${SUMMARY_modules} assembly"
  17856. # Make sure that we don't generate floating point code that would
  17857. # cause illegal instruction exceptions on older processors
  17858. case "$host" in
  17859. *-*-darwin*)
  17860. # Don't need to worry about Apple hardware, it's all SSE capable
  17861. default_ssemath=yes
  17862. ;;
  17863. *64-*-*)
  17864. # x86 64-bit architectures all have SSE instructions
  17865. default_ssemath=yes
  17866. ;;
  17867. *)
  17868. default_ssemath=no
  17869. ;;
  17870. esac
  17871. # Check whether --enable-ssemath was given.
  17872. if test ${enable_ssemath+y}
  17873. then :
  17874. enableval=$enable_ssemath;
  17875. else $as_nop
  17876. enable_ssemath=$default_ssemath
  17877. fi
  17878. if test x$enable_ssemath = xno; then
  17879. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17880. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17881. fi
  17882. fi
  17883. # Check whether --enable-mmx was given.
  17884. if test ${enable_mmx+y}
  17885. then :
  17886. enableval=$enable_mmx;
  17887. else $as_nop
  17888. enable_mmx=yes
  17889. fi
  17890. if test x$enable_mmx = xyes; then
  17891. save_CFLAGS="$CFLAGS"
  17892. have_gcc_mmx=no
  17893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17894. printf %s "checking for GCC -mmmx option... " >&6; }
  17895. mmx_CFLAGS="-mmmx"
  17896. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17898. /* end confdefs.h. */
  17899. #ifdef __MINGW32__
  17900. #include <_mingw.h>
  17901. #ifdef __MINGW64_VERSION_MAJOR
  17902. #include <intrin.h>
  17903. #else
  17904. #include <mmintrin.h>
  17905. #endif
  17906. #else
  17907. #include <mmintrin.h>
  17908. #endif
  17909. #ifndef __MMX__
  17910. #error Assembler CPP flag not enabled
  17911. #endif
  17912. int
  17913. main (void)
  17914. {
  17915. ;
  17916. return 0;
  17917. }
  17918. _ACEOF
  17919. if ac_fn_c_try_compile "$LINENO"
  17920. then :
  17921. have_gcc_mmx=yes
  17922. fi
  17923. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17925. printf "%s\n" "$have_gcc_mmx" >&6; }
  17926. CFLAGS="$save_CFLAGS"
  17927. if test x$have_gcc_mmx = xyes; then
  17928. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17929. SUMMARY_math="${SUMMARY_math} mmx"
  17930. fi
  17931. fi
  17932. # Check whether --enable-3dnow was given.
  17933. if test ${enable_3dnow+y}
  17934. then :
  17935. enableval=$enable_3dnow;
  17936. else $as_nop
  17937. enable_3dnow=yes
  17938. fi
  17939. if test x$enable_3dnow = xyes; then
  17940. save_CFLAGS="$CFLAGS"
  17941. have_gcc_3dnow=no
  17942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17943. printf %s "checking for GCC -m3dnow option... " >&6; }
  17944. amd3dnow_CFLAGS="-m3dnow"
  17945. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17947. /* end confdefs.h. */
  17948. #include <mm3dnow.h>
  17949. #ifndef __3dNOW__
  17950. #error Assembler CPP flag not enabled
  17951. #endif
  17952. int
  17953. main (void)
  17954. {
  17955. void *p = 0;
  17956. _m_prefetch(p);
  17957. ;
  17958. return 0;
  17959. }
  17960. _ACEOF
  17961. if ac_fn_c_try_link "$LINENO"
  17962. then :
  17963. have_gcc_3dnow=yes
  17964. fi
  17965. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17966. conftest$ac_exeext conftest.$ac_ext
  17967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17968. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17969. CFLAGS="$save_CFLAGS"
  17970. if test x$have_gcc_3dnow = xyes; then
  17971. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17972. SUMMARY_math="${SUMMARY_math} 3dnow"
  17973. fi
  17974. fi
  17975. # Check whether --enable-sse was given.
  17976. if test ${enable_sse+y}
  17977. then :
  17978. enableval=$enable_sse;
  17979. else $as_nop
  17980. enable_sse=yes
  17981. fi
  17982. if test x$enable_sse = xyes; then
  17983. save_CFLAGS="$CFLAGS"
  17984. have_gcc_sse=no
  17985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17986. printf %s "checking for GCC -msse option... " >&6; }
  17987. sse_CFLAGS="-msse"
  17988. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17990. /* end confdefs.h. */
  17991. #ifdef __MINGW32__
  17992. #include <_mingw.h>
  17993. #ifdef __MINGW64_VERSION_MAJOR
  17994. #include <intrin.h>
  17995. #else
  17996. #include <xmmintrin.h>
  17997. #endif
  17998. #else
  17999. #include <xmmintrin.h>
  18000. #endif
  18001. #ifndef __SSE__
  18002. #error Assembler CPP flag not enabled
  18003. #endif
  18004. int
  18005. main (void)
  18006. {
  18007. ;
  18008. return 0;
  18009. }
  18010. _ACEOF
  18011. if ac_fn_c_try_compile "$LINENO"
  18012. then :
  18013. have_gcc_sse=yes
  18014. fi
  18015. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  18017. printf "%s\n" "$have_gcc_sse" >&6; }
  18018. CFLAGS="$save_CFLAGS"
  18019. if test x$have_gcc_sse = xyes; then
  18020. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  18021. SUMMARY_math="${SUMMARY_math} sse"
  18022. fi
  18023. fi
  18024. # Check whether --enable-sse2 was given.
  18025. if test ${enable_sse2+y}
  18026. then :
  18027. enableval=$enable_sse2;
  18028. else $as_nop
  18029. enable_sse2=$default_ssemath
  18030. fi
  18031. if test x$enable_sse2 = xyes; then
  18032. save_CFLAGS="$CFLAGS"
  18033. have_gcc_sse2=no
  18034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  18035. printf %s "checking for GCC -msse2 option... " >&6; }
  18036. sse2_CFLAGS="-msse2"
  18037. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  18038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18039. /* end confdefs.h. */
  18040. #ifdef __MINGW32__
  18041. #include <_mingw.h>
  18042. #ifdef __MINGW64_VERSION_MAJOR
  18043. #include <intrin.h>
  18044. #else
  18045. #include <emmintrin.h>
  18046. #endif
  18047. #else
  18048. #include <emmintrin.h>
  18049. #endif
  18050. #ifndef __SSE2__
  18051. #error Assembler CPP flag not enabled
  18052. #endif
  18053. int
  18054. main (void)
  18055. {
  18056. ;
  18057. return 0;
  18058. }
  18059. _ACEOF
  18060. if ac_fn_c_try_compile "$LINENO"
  18061. then :
  18062. have_gcc_sse2=yes
  18063. fi
  18064. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  18066. printf "%s\n" "$have_gcc_sse2" >&6; }
  18067. CFLAGS="$save_CFLAGS"
  18068. if test x$have_gcc_sse2 = xyes; then
  18069. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  18070. SUMMARY_math="${SUMMARY_math} sse2"
  18071. fi
  18072. fi
  18073. # Check whether --enable-sse3 was given.
  18074. if test ${enable_sse3+y}
  18075. then :
  18076. enableval=$enable_sse3;
  18077. else $as_nop
  18078. enable_sse3=$default_ssemath
  18079. fi
  18080. if test x$enable_sse3 = xyes; then
  18081. save_CFLAGS="$CFLAGS"
  18082. have_gcc_sse3=no
  18083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  18084. printf %s "checking for GCC -msse3 option... " >&6; }
  18085. sse3_CFLAGS="-msse3"
  18086. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  18087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18088. /* end confdefs.h. */
  18089. #ifdef __MINGW32__
  18090. #include <_mingw.h>
  18091. #ifdef __MINGW64_VERSION_MAJOR
  18092. #include <intrin.h>
  18093. #else
  18094. #include <pmmintrin.h>
  18095. #endif
  18096. #else
  18097. #include <pmmintrin.h>
  18098. #endif
  18099. #ifndef __SSE2__
  18100. #error Assembler CPP flag not enabled
  18101. #endif
  18102. int
  18103. main (void)
  18104. {
  18105. ;
  18106. return 0;
  18107. }
  18108. _ACEOF
  18109. if ac_fn_c_try_compile "$LINENO"
  18110. then :
  18111. have_gcc_sse3=yes
  18112. fi
  18113. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  18115. printf "%s\n" "$have_gcc_sse3" >&6; }
  18116. CFLAGS="$save_CFLAGS"
  18117. if test x$have_gcc_sse3 = xyes; then
  18118. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  18119. SUMMARY_math="${SUMMARY_math} sse3"
  18120. fi
  18121. fi
  18122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  18123. printf %s "checking for immintrin.h... " >&6; }
  18124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18125. /* end confdefs.h. */
  18126. #include <immintrin.h>
  18127. int
  18128. main (void)
  18129. {
  18130. ;
  18131. return 0;
  18132. }
  18133. _ACEOF
  18134. if ac_fn_c_try_compile "$LINENO"
  18135. then :
  18136. have_immintrin_h_hdr=yes
  18137. else $as_nop
  18138. have_immintrin_h_hdr=no
  18139. fi
  18140. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  18142. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  18143. if test x$have_immintrin_h_hdr = xyes; then
  18144. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  18145. fi
  18146. # Check whether --enable-altivec was given.
  18147. if test ${enable_altivec+y}
  18148. then :
  18149. enableval=$enable_altivec;
  18150. else $as_nop
  18151. enable_altivec=yes
  18152. fi
  18153. if test x$enable_altivec = xyes; then
  18154. save_CFLAGS="$CFLAGS"
  18155. have_gcc_altivec=no
  18156. have_altivec_h_hdr=no
  18157. altivec_CFLAGS="-maltivec"
  18158. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18160. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18162. /* end confdefs.h. */
  18163. #include <altivec.h>
  18164. vector unsigned int vzero() {
  18165. return vec_splat_u32(0);
  18166. }
  18167. int
  18168. main (void)
  18169. {
  18170. ;
  18171. return 0;
  18172. }
  18173. _ACEOF
  18174. if ac_fn_c_try_compile "$LINENO"
  18175. then :
  18176. have_gcc_altivec=yes
  18177. have_altivec_h_hdr=yes
  18178. fi
  18179. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18181. printf "%s\n" "$have_gcc_altivec" >&6; }
  18182. if test x$have_gcc_altivec = xno; then
  18183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18184. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18186. /* end confdefs.h. */
  18187. vector unsigned int vzero() {
  18188. return vec_splat_u32(0);
  18189. }
  18190. int
  18191. main (void)
  18192. {
  18193. ;
  18194. return 0;
  18195. }
  18196. _ACEOF
  18197. if ac_fn_c_try_compile "$LINENO"
  18198. then :
  18199. have_gcc_altivec=yes
  18200. fi
  18201. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18203. printf "%s\n" "$have_gcc_altivec" >&6; }
  18204. fi
  18205. if test x$have_gcc_altivec = xno; then
  18206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18207. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18208. altivec_CFLAGS="-faltivec"
  18209. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18211. /* end confdefs.h. */
  18212. #include <altivec.h>
  18213. vector unsigned int vzero() {
  18214. return vec_splat_u32(0);
  18215. }
  18216. int
  18217. main (void)
  18218. {
  18219. ;
  18220. return 0;
  18221. }
  18222. _ACEOF
  18223. if ac_fn_c_try_compile "$LINENO"
  18224. then :
  18225. have_gcc_altivec=yes
  18226. have_altivec_h_hdr=yes
  18227. fi
  18228. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18230. printf "%s\n" "$have_gcc_altivec" >&6; }
  18231. fi
  18232. if test x$have_gcc_altivec = xno; then
  18233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18234. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18236. /* end confdefs.h. */
  18237. vector unsigned int vzero() {
  18238. return vec_splat_u32(0);
  18239. }
  18240. int
  18241. main (void)
  18242. {
  18243. ;
  18244. return 0;
  18245. }
  18246. _ACEOF
  18247. if ac_fn_c_try_compile "$LINENO"
  18248. then :
  18249. have_gcc_altivec=yes
  18250. fi
  18251. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18253. printf "%s\n" "$have_gcc_altivec" >&6; }
  18254. fi
  18255. CFLAGS="$save_CFLAGS"
  18256. if test x$have_gcc_altivec = xyes; then
  18257. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18258. if test x$have_altivec_h_hdr = xyes; then
  18259. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18260. fi
  18261. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18262. SUMMARY_math="${SUMMARY_math} altivec"
  18263. fi
  18264. fi
  18265. fi
  18266. # Check whether --enable-lsx was given.
  18267. if test ${enable_lsx+y}
  18268. then :
  18269. enableval=$enable_lsx;
  18270. else $as_nop
  18271. enable_lsx=yes
  18272. fi
  18273. if test x$enable_lsx = xyes; then
  18274. save_CFLAGS="$CFLAGS"
  18275. have_gcc_lsx=no
  18276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18277. printf %s "checking for GCC -mlsx option... " >&6; }
  18278. lsx_CFLAGS="-mlsx"
  18279. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18281. /* end confdefs.h. */
  18282. #ifndef __loongarch_sx
  18283. #error Assembler CPP flag not enabled
  18284. #endif
  18285. int
  18286. main (void)
  18287. {
  18288. ;
  18289. return 0;
  18290. }
  18291. _ACEOF
  18292. if ac_fn_c_try_compile "$LINENO"
  18293. then :
  18294. have_gcc_lsx=yes
  18295. fi
  18296. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18298. printf "%s\n" "$have_gcc_lsx" >&6; }
  18299. CFLAGS="$save_CFLAGS"
  18300. if test x$have_gcc_lsx = xyes; then
  18301. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18302. SUMMARY_math="${SUMMARY_math} lsx"
  18303. fi
  18304. fi
  18305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18306. printf %s "checking for lsxintrin.h... " >&6; }
  18307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18308. /* end confdefs.h. */
  18309. #include <lsxintrin.h>
  18310. int
  18311. main (void)
  18312. {
  18313. ;
  18314. return 0;
  18315. }
  18316. _ACEOF
  18317. if ac_fn_c_try_compile "$LINENO"
  18318. then :
  18319. have_lsxintrin_h_hdr=yes
  18320. else $as_nop
  18321. have_lsxintrin_h_hdr=no
  18322. fi
  18323. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18325. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18326. if test x$have_lsxintrin_h_hdr = xyes; then
  18327. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18328. fi
  18329. CheckOSS()
  18330. {
  18331. # Check whether --enable-oss was given.
  18332. if test ${enable_oss+y}
  18333. then :
  18334. enableval=$enable_oss;
  18335. else $as_nop
  18336. enable_oss=maybe
  18337. fi
  18338. if test x$enable_oss = xmaybe; then
  18339. enable_oss=yes
  18340. fi
  18341. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18343. printf %s "checking for OSS audio support... " >&6; }
  18344. have_oss=no
  18345. if test x$have_oss != xyes; then
  18346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18347. /* end confdefs.h. */
  18348. #include <sys/soundcard.h>
  18349. int
  18350. main (void)
  18351. {
  18352. int arg = SNDCTL_DSP_SETFRAGMENT;
  18353. ;
  18354. return 0;
  18355. }
  18356. _ACEOF
  18357. if ac_fn_c_try_compile "$LINENO"
  18358. then :
  18359. have_oss=yes
  18360. fi
  18361. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18362. fi
  18363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18364. printf "%s\n" "$have_oss" >&6; }
  18365. if test x$have_oss = xyes; then
  18366. SUMMARY_audio="${SUMMARY_audio} oss"
  18367. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18368. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18369. have_audio=yes
  18370. # We may need to link with ossaudio emulation library
  18371. case "$host" in
  18372. *-*-netbsd*)
  18373. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18374. esac
  18375. fi
  18376. fi
  18377. }
  18378. CheckALSA()
  18379. {
  18380. # Check whether --enable-alsa was given.
  18381. if test ${enable_alsa+y}
  18382. then :
  18383. enableval=$enable_alsa;
  18384. else $as_nop
  18385. enable_alsa=yes
  18386. fi
  18387. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18388. alsa_save_CFLAGS="$CFLAGS"
  18389. alsa_save_LDFLAGS="$LDFLAGS"
  18390. alsa_save_LIBS="$LIBS"
  18391. alsa_found=yes
  18392. # Check whether --with-alsa-prefix was given.
  18393. if test ${with_alsa_prefix+y}
  18394. then :
  18395. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18396. else $as_nop
  18397. alsa_prefix=""
  18398. fi
  18399. # Check whether --with-alsa-inc-prefix was given.
  18400. if test ${with_alsa_inc_prefix+y}
  18401. then :
  18402. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18403. else $as_nop
  18404. alsa_inc_prefix=""
  18405. fi
  18406. # Check whether --enable-alsatest was given.
  18407. if test ${enable_alsatest+y}
  18408. then :
  18409. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18410. else $as_nop
  18411. enable_alsatest=yes
  18412. fi
  18413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18414. printf %s "checking for ALSA CFLAGS... " >&6; }
  18415. if test "$alsa_inc_prefix" != "" ; then
  18416. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18417. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18418. fi
  18419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18420. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18422. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18423. if test "$alsa_prefix" != "" ; then
  18424. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18425. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18426. fi
  18427. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18428. LIBS=`echo $LIBS | sed 's/-lm//'`
  18429. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18430. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18431. LIBS=`echo $LIBS | sed 's/ //'`
  18432. LIBS="$ALSA_LIBS $LIBS"
  18433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18434. printf "%s\n" "$ALSA_LIBS" >&6; }
  18435. min_alsa_version=1.0.11
  18436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18437. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18438. no_alsa=""
  18439. alsa_min_major_version=`echo $min_alsa_version | \
  18440. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18441. alsa_min_minor_version=`echo $min_alsa_version | \
  18442. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18443. alsa_min_micro_version=`echo $min_alsa_version | \
  18444. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18445. ac_ext=c
  18446. ac_cpp='$CPP $CPPFLAGS'
  18447. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18448. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18449. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18451. /* end confdefs.h. */
  18452. #include <alsa/asoundlib.h>
  18453. int
  18454. main (void)
  18455. {
  18456. /* ensure backward compatibility */
  18457. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18458. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18459. #endif
  18460. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18461. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18462. #endif
  18463. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18464. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18465. #endif
  18466. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18467. exit(0);
  18468. # else
  18469. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18470. # error not present
  18471. # endif
  18472. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18473. exit(0);
  18474. # else
  18475. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18476. # error not present
  18477. # endif
  18478. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18479. # error not present
  18480. # endif
  18481. # endif
  18482. # endif
  18483. exit(0);
  18484. ;
  18485. return 0;
  18486. }
  18487. _ACEOF
  18488. if ac_fn_c_try_compile "$LINENO"
  18489. then :
  18490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18491. printf "%s\n" "found." >&6; }
  18492. else $as_nop
  18493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18494. printf "%s\n" "not present." >&6; }
  18495. alsa_found=no
  18496. fi
  18497. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18498. ac_ext=c
  18499. ac_cpp='$CPP $CPPFLAGS'
  18500. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18501. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18502. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18503. if test "x$enable_alsatest" = "xyes"; then
  18504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18505. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18506. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18507. then :
  18508. printf %s "(cached) " >&6
  18509. else $as_nop
  18510. ac_check_lib_save_LIBS=$LIBS
  18511. LIBS="-lasound $LIBS"
  18512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18513. /* end confdefs.h. */
  18514. /* Override any GCC internal prototype to avoid an error.
  18515. Use char because int might match the return type of a GCC
  18516. builtin and then its argument prototype would still apply. */
  18517. char snd_ctl_open ();
  18518. int
  18519. main (void)
  18520. {
  18521. return snd_ctl_open ();
  18522. ;
  18523. return 0;
  18524. }
  18525. _ACEOF
  18526. if ac_fn_c_try_link "$LINENO"
  18527. then :
  18528. ac_cv_lib_asound_snd_ctl_open=yes
  18529. else $as_nop
  18530. ac_cv_lib_asound_snd_ctl_open=no
  18531. fi
  18532. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18533. conftest$ac_exeext conftest.$ac_ext
  18534. LIBS=$ac_check_lib_save_LIBS
  18535. fi
  18536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18537. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18538. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18539. then :
  18540. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18541. LIBS="-lasound $LIBS"
  18542. else $as_nop
  18543. alsa_found=no
  18544. fi
  18545. fi
  18546. if test "x$alsa_found" = "xyes" ; then
  18547. have_alsa=yes
  18548. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18549. LIBS=`echo $LIBS | sed 's/ //'`
  18550. LIBS="-lasound $LIBS"
  18551. fi
  18552. if test "x$alsa_found" = "xno" ; then
  18553. have_alsa=no
  18554. CFLAGS="$alsa_save_CFLAGS"
  18555. LDFLAGS="$alsa_save_LDFLAGS"
  18556. LIBS="$alsa_save_LIBS"
  18557. ALSA_CFLAGS=""
  18558. ALSA_LIBS=""
  18559. fi
  18560. # Restore all flags from before the ALSA detection runs
  18561. CFLAGS="$alsa_save_CFLAGS"
  18562. LDFLAGS="$alsa_save_LDFLAGS"
  18563. LIBS="$alsa_save_LIBS"
  18564. if test x$have_alsa = xyes; then
  18565. # Check whether --enable-alsa-shared was given.
  18566. if test ${enable_alsa_shared+y}
  18567. then :
  18568. enableval=$enable_alsa_shared;
  18569. else $as_nop
  18570. enable_alsa_shared=yes
  18571. fi
  18572. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18573. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18574. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18575. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18576. if test x$have_loadso != xyes && \
  18577. test x$enable_alsa_shared = xyes; then
  18578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18579. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18580. fi
  18581. if test x$have_loadso = xyes && \
  18582. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18583. echo "-- dynamic libasound -> $alsa_lib"
  18584. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18585. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18586. else
  18587. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18588. SUMMARY_audio="${SUMMARY_audio} alsa"
  18589. fi
  18590. have_audio=yes
  18591. fi
  18592. fi
  18593. }
  18594. CheckJACK()
  18595. {
  18596. # Check whether --enable-jack was given.
  18597. if test ${enable_jack+y}
  18598. then :
  18599. enableval=$enable_jack;
  18600. else $as_nop
  18601. enable_jack=yes
  18602. fi
  18603. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18604. pkg_failed=no
  18605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18606. printf %s "checking for jack >= 0.125... " >&6; }
  18607. if test -n "$JACK_CFLAGS"; then
  18608. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18609. elif test -n "$PKG_CONFIG"; then
  18610. if test -n "$PKG_CONFIG" && \
  18611. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18612. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18613. ac_status=$?
  18614. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18615. test $ac_status = 0; }; then
  18616. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18617. test "x$?" != "x0" && pkg_failed=yes
  18618. else
  18619. pkg_failed=yes
  18620. fi
  18621. else
  18622. pkg_failed=untried
  18623. fi
  18624. if test -n "$JACK_LIBS"; then
  18625. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18626. elif test -n "$PKG_CONFIG"; then
  18627. if test -n "$PKG_CONFIG" && \
  18628. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18629. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18630. ac_status=$?
  18631. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18632. test $ac_status = 0; }; then
  18633. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18634. test "x$?" != "x0" && pkg_failed=yes
  18635. else
  18636. pkg_failed=yes
  18637. fi
  18638. else
  18639. pkg_failed=untried
  18640. fi
  18641. if test $pkg_failed = yes; then
  18642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18643. printf "%s\n" "no" >&6; }
  18644. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18645. _pkg_short_errors_supported=yes
  18646. else
  18647. _pkg_short_errors_supported=no
  18648. fi
  18649. if test $_pkg_short_errors_supported = yes; then
  18650. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18651. else
  18652. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18653. fi
  18654. # Put the nasty error message in config.log where it belongs
  18655. echo "$JACK_PKG_ERRORS" >&5
  18656. audio_jack=no
  18657. elif test $pkg_failed = untried; then
  18658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18659. printf "%s\n" "no" >&6; }
  18660. audio_jack=no
  18661. else
  18662. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18663. JACK_LIBS=$pkg_cv_JACK_LIBS
  18664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18665. printf "%s\n" "yes" >&6; }
  18666. audio_jack=yes
  18667. fi
  18668. if test x$audio_jack = xyes; then
  18669. # Check whether --enable-jack-shared was given.
  18670. if test ${enable_jack_shared+y}
  18671. then :
  18672. enableval=$enable_jack_shared;
  18673. else $as_nop
  18674. enable_jack_shared=yes
  18675. fi
  18676. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18677. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18678. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18679. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18680. if test x$have_loadso != xyes && \
  18681. test x$enable_jack_shared = xyes; then
  18682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18683. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18684. fi
  18685. if test x$have_loadso = xyes && \
  18686. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18687. echo "-- dynamic libjack -> $jack_lib"
  18688. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18689. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18690. case "$host" in
  18691. # On Solaris, jack must be linked deferred explicitly
  18692. # to prevent undefined symbol failures.
  18693. *-*-solaris*)
  18694. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18695. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18696. esac
  18697. else
  18698. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18699. SUMMARY_audio="${SUMMARY_audio} jack"
  18700. fi
  18701. have_audio=yes
  18702. fi
  18703. fi
  18704. }
  18705. CheckESD()
  18706. {
  18707. # Check whether --enable-esd was given.
  18708. if test ${enable_esd+y}
  18709. then :
  18710. enableval=$enable_esd;
  18711. else $as_nop
  18712. enable_esd=yes
  18713. fi
  18714. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18715. pkg_failed=no
  18716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18717. printf %s "checking for esound >= 0.2.8... " >&6; }
  18718. if test -n "$ESD_CFLAGS"; then
  18719. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18720. elif test -n "$PKG_CONFIG"; then
  18721. if test -n "$PKG_CONFIG" && \
  18722. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18723. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18724. ac_status=$?
  18725. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18726. test $ac_status = 0; }; then
  18727. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18728. test "x$?" != "x0" && pkg_failed=yes
  18729. else
  18730. pkg_failed=yes
  18731. fi
  18732. else
  18733. pkg_failed=untried
  18734. fi
  18735. if test -n "$ESD_LIBS"; then
  18736. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18737. elif test -n "$PKG_CONFIG"; then
  18738. if test -n "$PKG_CONFIG" && \
  18739. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18740. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18741. ac_status=$?
  18742. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18743. test $ac_status = 0; }; then
  18744. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18745. test "x$?" != "x0" && pkg_failed=yes
  18746. else
  18747. pkg_failed=yes
  18748. fi
  18749. else
  18750. pkg_failed=untried
  18751. fi
  18752. if test $pkg_failed = yes; then
  18753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18754. printf "%s\n" "no" >&6; }
  18755. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18756. _pkg_short_errors_supported=yes
  18757. else
  18758. _pkg_short_errors_supported=no
  18759. fi
  18760. if test $_pkg_short_errors_supported = yes; then
  18761. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18762. else
  18763. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18764. fi
  18765. # Put the nasty error message in config.log where it belongs
  18766. echo "$ESD_PKG_ERRORS" >&5
  18767. have_esd=no
  18768. elif test $pkg_failed = untried; then
  18769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18770. printf "%s\n" "no" >&6; }
  18771. have_esd=no
  18772. else
  18773. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18774. ESD_LIBS=$pkg_cv_ESD_LIBS
  18775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18776. printf "%s\n" "yes" >&6; }
  18777. have_esd=yes
  18778. fi
  18779. if test x$have_esd = xno; then
  18780. # Check whether --with-esd-prefix was given.
  18781. if test ${with_esd_prefix+y}
  18782. then :
  18783. withval=$with_esd_prefix; esd_prefix="$withval"
  18784. else $as_nop
  18785. esd_prefix=""
  18786. fi
  18787. # Check whether --with-esd-exec-prefix was given.
  18788. if test ${with_esd_exec_prefix+y}
  18789. then :
  18790. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18791. else $as_nop
  18792. esd_exec_prefix=""
  18793. fi
  18794. # Check whether --enable-esdtest was given.
  18795. if test ${enable_esdtest+y}
  18796. then :
  18797. enableval=$enable_esdtest;
  18798. else $as_nop
  18799. enable_esdtest=yes
  18800. fi
  18801. if test x$esd_exec_prefix != x ; then
  18802. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18803. if test x${ESD_CONFIG+set} != xset ; then
  18804. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18805. fi
  18806. fi
  18807. if test x$esd_prefix != x ; then
  18808. esd_args="$esd_args --prefix=$esd_prefix"
  18809. if test x${ESD_CONFIG+set} != xset ; then
  18810. ESD_CONFIG=$esd_prefix/bin/esd-config
  18811. fi
  18812. fi
  18813. # Extract the first word of "esd-config", so it can be a program name with args.
  18814. set dummy esd-config; ac_word=$2
  18815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18816. printf %s "checking for $ac_word... " >&6; }
  18817. if test ${ac_cv_path_ESD_CONFIG+y}
  18818. then :
  18819. printf %s "(cached) " >&6
  18820. else $as_nop
  18821. case $ESD_CONFIG in
  18822. [\\/]* | ?:[\\/]*)
  18823. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18824. ;;
  18825. *)
  18826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18827. for as_dir in $PATH
  18828. do
  18829. IFS=$as_save_IFS
  18830. case $as_dir in #(((
  18831. '') as_dir=./ ;;
  18832. */) ;;
  18833. *) as_dir=$as_dir/ ;;
  18834. esac
  18835. for ac_exec_ext in '' $ac_executable_extensions; do
  18836. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18837. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18838. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18839. break 2
  18840. fi
  18841. done
  18842. done
  18843. IFS=$as_save_IFS
  18844. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18845. ;;
  18846. esac
  18847. fi
  18848. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18849. if test -n "$ESD_CONFIG"; then
  18850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18851. printf "%s\n" "$ESD_CONFIG" >&6; }
  18852. else
  18853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18854. printf "%s\n" "no" >&6; }
  18855. fi
  18856. min_esd_version=0.2.8
  18857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18858. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18859. no_esd=""
  18860. if test "$ESD_CONFIG" = "no" ; then
  18861. no_esd=yes
  18862. else
  18863. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18864. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18865. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18866. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18867. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18868. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18869. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18870. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18871. if test "x$enable_esdtest" = "xyes" ; then
  18872. ac_ext=c
  18873. ac_cpp='$CPP $CPPFLAGS'
  18874. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18875. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18876. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18877. ac_save_CFLAGS="$CFLAGS"
  18878. ac_save_LIBS="$LIBS"
  18879. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18880. LIBS="$LIBS $ESD_LIBS"
  18881. rm -f conf.esdtest
  18882. if test "$cross_compiling" = yes
  18883. then :
  18884. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18885. else $as_nop
  18886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18887. /* end confdefs.h. */
  18888. #include <stdio.h>
  18889. #include <stdlib.h>
  18890. #include <esd.h>
  18891. int main (void)
  18892. {
  18893. int major, minor, micro;
  18894. FILE *fp = fopen("conf.esdtest", "w");
  18895. if (fp) fclose(fp);
  18896. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18897. printf("%s, bad version string\n", "$min_esd_version");
  18898. exit(1);
  18899. }
  18900. if (($esd_major_version > major) ||
  18901. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18902. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18903. {
  18904. return 0;
  18905. }
  18906. else
  18907. {
  18908. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18909. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18910. printf("*** best to upgrade to the required version.\n");
  18911. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18912. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18913. printf("*** config.cache before re-running configure\n");
  18914. return 1;
  18915. }
  18916. }
  18917. _ACEOF
  18918. if ac_fn_c_try_run "$LINENO"
  18919. then :
  18920. else $as_nop
  18921. no_esd=yes
  18922. fi
  18923. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18924. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18925. fi
  18926. CFLAGS="$ac_save_CFLAGS"
  18927. LIBS="$ac_save_LIBS"
  18928. ac_ext=c
  18929. ac_cpp='$CPP $CPPFLAGS'
  18930. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18931. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18932. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18933. fi
  18934. fi
  18935. if test "x$no_esd" = x ; then
  18936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18937. printf "%s\n" "yes" >&6; }
  18938. have_esd=yes
  18939. else
  18940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18941. printf "%s\n" "no" >&6; }
  18942. if test "$ESD_CONFIG" = "no" ; then
  18943. :
  18944. else
  18945. if test -f conf.esdtest ; then
  18946. :
  18947. else
  18948. echo "*** Could not run ESD test program, checking why..."
  18949. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18950. LIBS="$LIBS $ESD_LIBS"
  18951. ac_ext=c
  18952. ac_cpp='$CPP $CPPFLAGS'
  18953. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18954. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18955. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18957. /* end confdefs.h. */
  18958. #include <stdio.h>
  18959. #include <esd.h>
  18960. int
  18961. main (void)
  18962. {
  18963. return 0;
  18964. ;
  18965. return 0;
  18966. }
  18967. _ACEOF
  18968. if ac_fn_c_try_link "$LINENO"
  18969. then :
  18970. echo "*** The test program compiled, but did not run. This usually means"
  18971. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18972. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18973. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18974. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18975. echo "*** is required on your system"
  18976. echo "***"
  18977. echo "*** If you have an old version installed, it is best to remove it, although"
  18978. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18979. else $as_nop
  18980. echo "*** The test program failed to compile or link. See the file config.log for the"
  18981. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18982. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18983. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18984. fi
  18985. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18986. conftest$ac_exeext conftest.$ac_ext
  18987. CFLAGS="$ac_save_CFLAGS"
  18988. LIBS="$ac_save_LIBS"
  18989. ac_ext=c
  18990. ac_cpp='$CPP $CPPFLAGS'
  18991. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18992. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18993. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18994. fi
  18995. fi
  18996. ESD_CFLAGS=""
  18997. ESD_LIBS=""
  18998. have_esd=no
  18999. fi
  19000. rm -f conf.esdtest
  19001. fi
  19002. if test x$have_esd = xyes; then
  19003. # Check whether --enable-esd-shared was given.
  19004. if test ${enable_esd_shared+y}
  19005. then :
  19006. enableval=$enable_esd_shared;
  19007. else $as_nop
  19008. enable_esd_shared=yes
  19009. fi
  19010. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19011. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  19012. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  19013. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  19014. if test x$have_loadso != xyes && \
  19015. test x$enable_esd_shared = xyes; then
  19016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  19017. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  19018. fi
  19019. if test x$have_loadso = xyes && \
  19020. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  19021. echo "-- dynamic libesd -> $esd_lib"
  19022. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  19023. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  19024. else
  19025. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  19026. SUMMARY_audio="${SUMMARY_audio} esd"
  19027. fi
  19028. have_audio=yes
  19029. fi
  19030. fi
  19031. }
  19032. CheckPipewire()
  19033. {
  19034. # Check whether --enable-pipewire was given.
  19035. if test ${enable_pipewire+y}
  19036. then :
  19037. enableval=$enable_pipewire;
  19038. else $as_nop
  19039. enable_pipewire=yes
  19040. fi
  19041. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  19042. pkg_failed=no
  19043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  19044. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  19045. if test -n "$PIPEWIRE_CFLAGS"; then
  19046. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  19047. elif test -n "$PKG_CONFIG"; then
  19048. if test -n "$PKG_CONFIG" && \
  19049. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19050. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19051. ac_status=$?
  19052. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19053. test $ac_status = 0; }; then
  19054. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19055. test "x$?" != "x0" && pkg_failed=yes
  19056. else
  19057. pkg_failed=yes
  19058. fi
  19059. else
  19060. pkg_failed=untried
  19061. fi
  19062. if test -n "$PIPEWIRE_LIBS"; then
  19063. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  19064. elif test -n "$PKG_CONFIG"; then
  19065. if test -n "$PKG_CONFIG" && \
  19066. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19067. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19068. ac_status=$?
  19069. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19070. test $ac_status = 0; }; then
  19071. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19072. test "x$?" != "x0" && pkg_failed=yes
  19073. else
  19074. pkg_failed=yes
  19075. fi
  19076. else
  19077. pkg_failed=untried
  19078. fi
  19079. if test $pkg_failed = yes; then
  19080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19081. printf "%s\n" "no" >&6; }
  19082. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19083. _pkg_short_errors_supported=yes
  19084. else
  19085. _pkg_short_errors_supported=no
  19086. fi
  19087. if test $_pkg_short_errors_supported = yes; then
  19088. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19089. else
  19090. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19091. fi
  19092. # Put the nasty error message in config.log where it belongs
  19093. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19094. audio_pipewire=no
  19095. elif test $pkg_failed = untried; then
  19096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19097. printf "%s\n" "no" >&6; }
  19098. audio_pipewire=no
  19099. else
  19100. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19101. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19103. printf "%s\n" "yes" >&6; }
  19104. audio_pipewire=yes
  19105. fi
  19106. if test x$audio_pipewire = xyes; then
  19107. # Check whether --enable-pipewire-shared was given.
  19108. if test ${enable_pipewire_shared+y}
  19109. then :
  19110. enableval=$enable_pipewire_shared;
  19111. else $as_nop
  19112. enable_pipewire_shared=yes
  19113. fi
  19114. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19115. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19116. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19117. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19118. if test x$have_loadso != xyes && \
  19119. test x$enable_pipewire_shared = xyes; then
  19120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19121. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19122. fi
  19123. if test x$have_loadso = xyes && \
  19124. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19125. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19126. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19127. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19128. else
  19129. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19130. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19131. fi
  19132. have_audio=yes
  19133. fi
  19134. fi
  19135. }
  19136. CheckPulseAudio()
  19137. {
  19138. # Check whether --enable-pulseaudio was given.
  19139. if test ${enable_pulseaudio+y}
  19140. then :
  19141. enableval=$enable_pulseaudio;
  19142. else $as_nop
  19143. enable_pulseaudio=yes
  19144. fi
  19145. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19146. pkg_failed=no
  19147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse >= 0.9.15" >&5
  19148. printf %s "checking for libpulse >= 0.9.15... " >&6; }
  19149. if test -n "$PULSEAUDIO_CFLAGS"; then
  19150. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19151. elif test -n "$PKG_CONFIG"; then
  19152. if test -n "$PKG_CONFIG" && \
  19153. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19154. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19155. ac_status=$?
  19156. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19157. test $ac_status = 0; }; then
  19158. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.9.15" 2>/dev/null`
  19159. test "x$?" != "x0" && pkg_failed=yes
  19160. else
  19161. pkg_failed=yes
  19162. fi
  19163. else
  19164. pkg_failed=untried
  19165. fi
  19166. if test -n "$PULSEAUDIO_LIBS"; then
  19167. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19168. elif test -n "$PKG_CONFIG"; then
  19169. if test -n "$PKG_CONFIG" && \
  19170. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19171. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19172. ac_status=$?
  19173. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19174. test $ac_status = 0; }; then
  19175. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.9.15" 2>/dev/null`
  19176. test "x$?" != "x0" && pkg_failed=yes
  19177. else
  19178. pkg_failed=yes
  19179. fi
  19180. else
  19181. pkg_failed=untried
  19182. fi
  19183. if test $pkg_failed = yes; then
  19184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19185. printf "%s\n" "no" >&6; }
  19186. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19187. _pkg_short_errors_supported=yes
  19188. else
  19189. _pkg_short_errors_supported=no
  19190. fi
  19191. if test $_pkg_short_errors_supported = yes; then
  19192. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19193. else
  19194. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19195. fi
  19196. # Put the nasty error message in config.log where it belongs
  19197. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19198. audio_pulseaudio=no
  19199. elif test $pkg_failed = untried; then
  19200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19201. printf "%s\n" "no" >&6; }
  19202. audio_pulseaudio=no
  19203. else
  19204. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19205. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19207. printf "%s\n" "yes" >&6; }
  19208. audio_pulseaudio=yes
  19209. fi
  19210. if test x$audio_pulseaudio = xyes; then
  19211. # Check whether --enable-pulseaudio-shared was given.
  19212. if test ${enable_pulseaudio_shared+y}
  19213. then :
  19214. enableval=$enable_pulseaudio_shared;
  19215. else $as_nop
  19216. enable_pulseaudio_shared=yes
  19217. fi
  19218. pulseaudio_lib=`find_lib "libpulse.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19219. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19220. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19221. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19222. if test x$have_loadso != xyes && \
  19223. test x$enable_pulseaudio_shared = xyes; then
  19224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19225. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19226. fi
  19227. if test x$have_loadso = xyes && \
  19228. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19229. echo "-- dynamic libpulse -> $pulseaudio_lib"
  19230. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19231. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19232. case "$host" in
  19233. # On Solaris, pulseaudio must be linked deferred explicitly
  19234. # to prevent undefined symbol failures.
  19235. *-*-solaris*)
  19236. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19237. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19238. esac
  19239. else
  19240. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19241. SUMMARY_audio="${SUMMARY_audio} pulse"
  19242. fi
  19243. have_audio=yes
  19244. fi
  19245. fi
  19246. }
  19247. CheckARTSC()
  19248. {
  19249. # Check whether --enable-arts was given.
  19250. if test ${enable_arts+y}
  19251. then :
  19252. enableval=$enable_arts;
  19253. else $as_nop
  19254. enable_arts=yes
  19255. fi
  19256. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19257. # Extract the first word of "artsc-config", so it can be a program name with args.
  19258. set dummy artsc-config; ac_word=$2
  19259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19260. printf %s "checking for $ac_word... " >&6; }
  19261. if test ${ac_cv_path_ARTSCONFIG+y}
  19262. then :
  19263. printf %s "(cached) " >&6
  19264. else $as_nop
  19265. case $ARTSCONFIG in
  19266. [\\/]* | ?:[\\/]*)
  19267. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19268. ;;
  19269. *)
  19270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19271. for as_dir in $PATH
  19272. do
  19273. IFS=$as_save_IFS
  19274. case $as_dir in #(((
  19275. '') as_dir=./ ;;
  19276. */) ;;
  19277. *) as_dir=$as_dir/ ;;
  19278. esac
  19279. for ac_exec_ext in '' $ac_executable_extensions; do
  19280. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19281. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19282. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19283. break 2
  19284. fi
  19285. done
  19286. done
  19287. IFS=$as_save_IFS
  19288. ;;
  19289. esac
  19290. fi
  19291. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19292. if test -n "$ARTSCONFIG"; then
  19293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19294. printf "%s\n" "$ARTSCONFIG" >&6; }
  19295. else
  19296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19297. printf "%s\n" "no" >&6; }
  19298. fi
  19299. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19300. : # arts isn't installed
  19301. else
  19302. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19303. ARTS_LIBS=`$ARTSCONFIG --libs`
  19304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19305. printf %s "checking for aRts development environment... " >&6; }
  19306. audio_arts=no
  19307. save_CFLAGS="$CFLAGS"
  19308. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19310. /* end confdefs.h. */
  19311. #include <artsc.h>
  19312. int
  19313. main (void)
  19314. {
  19315. arts_stream_t stream;
  19316. ;
  19317. return 0;
  19318. }
  19319. _ACEOF
  19320. if ac_fn_c_try_compile "$LINENO"
  19321. then :
  19322. audio_arts=yes
  19323. fi
  19324. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19325. CFLAGS="$save_CFLAGS"
  19326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19327. printf "%s\n" "$audio_arts" >&6; }
  19328. if test x$audio_arts = xyes; then
  19329. # Check whether --enable-arts-shared was given.
  19330. if test ${enable_arts_shared+y}
  19331. then :
  19332. enableval=$enable_arts_shared;
  19333. else $as_nop
  19334. enable_arts_shared=yes
  19335. fi
  19336. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19337. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19338. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19339. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19340. if test x$have_loadso != xyes && \
  19341. test x$enable_arts_shared = xyes; then
  19342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19343. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19344. fi
  19345. if test x$have_loadso = xyes && \
  19346. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19347. echo "-- dynamic libartsc -> $arts_lib"
  19348. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19349. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19350. else
  19351. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19352. SUMMARY_audio="${SUMMARY_audio} arts"
  19353. fi
  19354. have_audio=yes
  19355. fi
  19356. fi
  19357. fi
  19358. }
  19359. CheckNAS()
  19360. {
  19361. # Check whether --enable-nas was given.
  19362. if test ${enable_nas+y}
  19363. then :
  19364. enableval=$enable_nas;
  19365. else $as_nop
  19366. enable_nas=yes
  19367. fi
  19368. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19369. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19370. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19371. then :
  19372. have_nas_hdr=yes
  19373. fi
  19374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19375. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19376. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19377. then :
  19378. printf %s "(cached) " >&6
  19379. else $as_nop
  19380. ac_check_lib_save_LIBS=$LIBS
  19381. LIBS="-laudio $LIBS"
  19382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19383. /* end confdefs.h. */
  19384. /* Override any GCC internal prototype to avoid an error.
  19385. Use char because int might match the return type of a GCC
  19386. builtin and then its argument prototype would still apply. */
  19387. char AuOpenServer ();
  19388. int
  19389. main (void)
  19390. {
  19391. return AuOpenServer ();
  19392. ;
  19393. return 0;
  19394. }
  19395. _ACEOF
  19396. if ac_fn_c_try_link "$LINENO"
  19397. then :
  19398. ac_cv_lib_audio_AuOpenServer=yes
  19399. else $as_nop
  19400. ac_cv_lib_audio_AuOpenServer=no
  19401. fi
  19402. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19403. conftest$ac_exeext conftest.$ac_ext
  19404. LIBS=$ac_check_lib_save_LIBS
  19405. fi
  19406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19407. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19408. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19409. then :
  19410. have_nas_lib=yes
  19411. fi
  19412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19413. printf %s "checking for NAS audio support... " >&6; }
  19414. have_nas=no
  19415. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19416. have_nas=yes
  19417. NAS_LIBS="-laudio"
  19418. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19419. have_nas=yes
  19420. NAS_CFLAGS="-I/usr/X11R6/include/"
  19421. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19422. fi
  19423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19424. printf "%s\n" "$have_nas" >&6; }
  19425. if test x$have_nas = xyes; then
  19426. # Check whether --enable-nas-shared was given.
  19427. if test ${enable_nas_shared+y}
  19428. then :
  19429. enableval=$enable_nas_shared;
  19430. else $as_nop
  19431. enable_nas_shared=yes
  19432. fi
  19433. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19434. if test x$have_loadso != xyes && \
  19435. test x$enable_nas_shared = xyes; then
  19436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19437. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19438. fi
  19439. if test x$have_loadso = xyes && \
  19440. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19441. echo "-- dynamic libaudio -> $nas_lib"
  19442. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19443. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19444. else
  19445. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19446. SUMMARY_audio="${SUMMARY_audio} nas"
  19447. fi
  19448. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19449. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19450. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19451. have_audio=yes
  19452. fi
  19453. fi
  19454. }
  19455. CheckSNDIO()
  19456. {
  19457. # Check whether --enable-sndio was given.
  19458. if test ${enable_sndio+y}
  19459. then :
  19460. enableval=$enable_sndio;
  19461. else $as_nop
  19462. enable_sndio=yes
  19463. fi
  19464. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19465. pkg_failed=no
  19466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19467. printf %s "checking for sndio... " >&6; }
  19468. if test -n "$SNDIO_CFLAGS"; then
  19469. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19470. elif test -n "$PKG_CONFIG"; then
  19471. if test -n "$PKG_CONFIG" && \
  19472. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19473. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19474. ac_status=$?
  19475. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19476. test $ac_status = 0; }; then
  19477. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19478. test "x$?" != "x0" && pkg_failed=yes
  19479. else
  19480. pkg_failed=yes
  19481. fi
  19482. else
  19483. pkg_failed=untried
  19484. fi
  19485. if test -n "$SNDIO_LIBS"; then
  19486. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19487. elif test -n "$PKG_CONFIG"; then
  19488. if test -n "$PKG_CONFIG" && \
  19489. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19490. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19491. ac_status=$?
  19492. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19493. test $ac_status = 0; }; then
  19494. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  19495. test "x$?" != "x0" && pkg_failed=yes
  19496. else
  19497. pkg_failed=yes
  19498. fi
  19499. else
  19500. pkg_failed=untried
  19501. fi
  19502. if test $pkg_failed = yes; then
  19503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19504. printf "%s\n" "no" >&6; }
  19505. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19506. _pkg_short_errors_supported=yes
  19507. else
  19508. _pkg_short_errors_supported=no
  19509. fi
  19510. if test $_pkg_short_errors_supported = yes; then
  19511. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19512. else
  19513. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19514. fi
  19515. # Put the nasty error message in config.log where it belongs
  19516. echo "$SNDIO_PKG_ERRORS" >&5
  19517. audio_sndio=no
  19518. elif test $pkg_failed = untried; then
  19519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19520. printf "%s\n" "no" >&6; }
  19521. audio_sndio=no
  19522. else
  19523. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19524. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19526. printf "%s\n" "yes" >&6; }
  19527. audio_sndio=yes
  19528. fi
  19529. if test x$audio_sndio = xyes; then
  19530. # Check whether --enable-sndio-shared was given.
  19531. if test ${enable_sndio_shared+y}
  19532. then :
  19533. enableval=$enable_sndio_shared;
  19534. else $as_nop
  19535. enable_sndio_shared=yes
  19536. fi
  19537. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19538. if test x$have_loadso != xyes && \
  19539. test x$enable_sndio_shared = xyes; then
  19540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19541. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19542. fi
  19543. if test x$have_loadso = xyes && \
  19544. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19545. echo "-- dynamic libsndio -> $sndio_lib"
  19546. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19547. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19548. else
  19549. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19550. SUMMARY_audio="${SUMMARY_audio} sndio"
  19551. fi
  19552. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19553. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19554. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19555. have_audio=yes
  19556. fi
  19557. fi
  19558. }
  19559. CheckFusionSound()
  19560. {
  19561. # Check whether --enable-fusionsound was given.
  19562. if test ${enable_fusionsound+y}
  19563. then :
  19564. enableval=$enable_fusionsound;
  19565. else $as_nop
  19566. enable_fusionsound=no
  19567. fi
  19568. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19569. pkg_failed=no
  19570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19571. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19572. if test -n "$FUSIONSOUND_CFLAGS"; then
  19573. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19574. elif test -n "$PKG_CONFIG"; then
  19575. if test -n "$PKG_CONFIG" && \
  19576. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19577. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19578. ac_status=$?
  19579. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19580. test $ac_status = 0; }; then
  19581. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19582. test "x$?" != "x0" && pkg_failed=yes
  19583. else
  19584. pkg_failed=yes
  19585. fi
  19586. else
  19587. pkg_failed=untried
  19588. fi
  19589. if test -n "$FUSIONSOUND_LIBS"; then
  19590. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19591. elif test -n "$PKG_CONFIG"; then
  19592. if test -n "$PKG_CONFIG" && \
  19593. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19594. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19595. ac_status=$?
  19596. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19597. test $ac_status = 0; }; then
  19598. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19599. test "x$?" != "x0" && pkg_failed=yes
  19600. else
  19601. pkg_failed=yes
  19602. fi
  19603. else
  19604. pkg_failed=untried
  19605. fi
  19606. if test $pkg_failed = yes; then
  19607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19608. printf "%s\n" "no" >&6; }
  19609. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19610. _pkg_short_errors_supported=yes
  19611. else
  19612. _pkg_short_errors_supported=no
  19613. fi
  19614. if test $_pkg_short_errors_supported = yes; then
  19615. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19616. else
  19617. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19618. fi
  19619. # Put the nasty error message in config.log where it belongs
  19620. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19621. fusionsound=no
  19622. elif test $pkg_failed = untried; then
  19623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19624. printf "%s\n" "no" >&6; }
  19625. fusionsound=no
  19626. else
  19627. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19628. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19630. printf "%s\n" "yes" >&6; }
  19631. fusionsound=yes
  19632. fi
  19633. if test x$fusionsound = xyes; then
  19634. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19635. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19636. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19637. # Check whether --enable-fusionsound-shared was given.
  19638. if test ${enable_fusionsound_shared+y}
  19639. then :
  19640. enableval=$enable_fusionsound_shared;
  19641. else $as_nop
  19642. enable_fusionsound_shared=yes
  19643. fi
  19644. fusionsound_shared=no
  19645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19646. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19647. if test x$have_loadso != xyes && \
  19648. test x$enable_fusionsound_shared = xyes; then
  19649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19650. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19651. fi
  19652. if test x$have_loadso = xyes && \
  19653. test x$enable_fusionsound_shared = xyes; then
  19654. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19655. fusionsound_shared=yes
  19656. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19657. else
  19658. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19659. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19660. fi
  19661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19662. printf "%s\n" "$fusionsound_shared" >&6; }
  19663. have_audio=yes
  19664. fi
  19665. fi
  19666. }
  19667. CheckDiskAudio()
  19668. {
  19669. # Check whether --enable-diskaudio was given.
  19670. if test ${enable_diskaudio+y}
  19671. then :
  19672. enableval=$enable_diskaudio;
  19673. else $as_nop
  19674. enable_diskaudio=yes
  19675. fi
  19676. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19677. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19678. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19679. SUMMARY_audio="${SUMMARY_audio} disk"
  19680. have_audio=yes
  19681. fi
  19682. }
  19683. CheckDummyAudio()
  19684. {
  19685. # Check whether --enable-dummyaudio was given.
  19686. if test ${enable_dummyaudio+y}
  19687. then :
  19688. enableval=$enable_dummyaudio;
  19689. else $as_nop
  19690. enable_dummyaudio=yes
  19691. fi
  19692. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19693. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19694. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19695. SUMMARY_audio="${SUMMARY_audio} dummy"
  19696. have_audio=yes
  19697. fi
  19698. }
  19699. CheckLibSampleRate()
  19700. {
  19701. # Check whether --enable-libsamplerate was given.
  19702. if test ${enable_libsamplerate+y}
  19703. then :
  19704. enableval=$enable_libsamplerate;
  19705. else $as_nop
  19706. enable_libsamplerate=yes
  19707. fi
  19708. if test x$enable_libsamplerate = xyes; then
  19709. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19710. if test "x$ac_cv_header_samplerate_h" = xyes
  19711. then :
  19712. have_samplerate_h_hdr=yes
  19713. else $as_nop
  19714. have_samplerate_h_hdr=no
  19715. fi
  19716. if test x$have_samplerate_h_hdr = xyes; then
  19717. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19718. # Check whether --enable-libsamplerate-shared was given.
  19719. if test ${enable_libsamplerate_shared+y}
  19720. then :
  19721. enableval=$enable_libsamplerate_shared;
  19722. else $as_nop
  19723. enable_libsamplerate_shared=yes
  19724. fi
  19725. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19726. if test x$have_loadso != xyes && \
  19727. test x$enable_libsamplerate_shared = xyes; then
  19728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19729. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19730. fi
  19731. if test x$have_loadso = xyes && \
  19732. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19733. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19734. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19735. else
  19736. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19737. fi
  19738. fi
  19739. fi
  19740. }
  19741. CheckARM()
  19742. {
  19743. # Check whether --enable-arm-simd was given.
  19744. if test ${enable_arm_simd+y}
  19745. then :
  19746. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19747. else $as_nop
  19748. enable_arm_simd=no
  19749. fi
  19750. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19751. save_CFLAGS="$CFLAGS"
  19752. have_arm_simd=no
  19753. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19755. printf %s "checking for ARM SIMD... " >&6; }
  19756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19757. /* end confdefs.h. */
  19758. .text
  19759. .arch armv6
  19760. .object_arch armv4
  19761. .arm
  19762. .altmacro
  19763. #ifndef __ARM_EABI__
  19764. #error EABI is required (to be sure that calling conventions are compatible)
  19765. #endif
  19766. pld [r0]
  19767. uqadd8 r0, r0, r0
  19768. _ACEOF
  19769. if ac_fn_c_try_compile "$LINENO"
  19770. then :
  19771. have_arm_simd=yes
  19772. fi
  19773. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19775. printf "%s\n" "$have_arm_simd" >&6; }
  19776. CFLAGS="$save_CFLAGS"
  19777. if test x$have_arm_simd = xyes; then
  19778. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19779. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19780. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19781. fi
  19782. fi
  19783. }
  19784. CheckNEON()
  19785. {
  19786. # Check whether --enable-arm-neon was given.
  19787. if test ${enable_arm_neon+y}
  19788. then :
  19789. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19790. else $as_nop
  19791. enable_arm_neon=no
  19792. fi
  19793. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19794. save_CFLAGS="$CFLAGS"
  19795. have_arm_neon=no
  19796. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19798. printf %s "checking for ARM NEON... " >&6; }
  19799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19800. /* end confdefs.h. */
  19801. .text
  19802. .fpu neon
  19803. .arch armv7a
  19804. .object_arch armv4
  19805. .eabi_attribute 10, 0
  19806. .arm
  19807. .altmacro
  19808. #ifndef __ARM_EABI__
  19809. #error EABI is required (to be sure that calling conventions are compatible)
  19810. #endif
  19811. pld [r0]
  19812. vmovn.u16 d0, q0
  19813. _ACEOF
  19814. if ac_fn_c_try_compile "$LINENO"
  19815. then :
  19816. have_arm_neon=yes
  19817. fi
  19818. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19820. printf "%s\n" "$have_arm_neon" >&6; }
  19821. CFLAGS="$save_CFLAGS"
  19822. if test x$have_arm_neon = xyes; then
  19823. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19824. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19825. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19826. fi
  19827. fi
  19828. }
  19829. CheckObjectiveCARC()
  19830. {
  19831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19832. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19833. have_clang_objc_arc=no
  19834. save_CFLAGS="$CFLAGS"
  19835. CFLAGS="$save_CFLAGS -fobjc-arc"
  19836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19837. /* end confdefs.h. */
  19838. int x = 0;
  19839. int
  19840. main (void)
  19841. {
  19842. ;
  19843. return 0;
  19844. }
  19845. _ACEOF
  19846. if ac_fn_c_try_compile "$LINENO"
  19847. then :
  19848. have_clang_objc_arc=yes
  19849. fi
  19850. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19852. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19853. CFLAGS="$save_CFLAGS"
  19854. if test x$have_clang_objc_arc = xyes; then
  19855. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19856. fi
  19857. }
  19858. CheckGDwarf4()
  19859. {
  19860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19861. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19862. have_gcc_gdwarf4=no
  19863. save_CFLAGS="$CFLAGS"
  19864. CFLAGS="$save_CFLAGS -gdwarf-4"
  19865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19866. /* end confdefs.h. */
  19867. int x = 0;
  19868. int
  19869. main (void)
  19870. {
  19871. ;
  19872. return 0;
  19873. }
  19874. _ACEOF
  19875. if ac_fn_c_try_compile "$LINENO"
  19876. then :
  19877. have_gcc_gdwarf4=yes
  19878. fi
  19879. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19881. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19882. CFLAGS="$save_CFLAGS"
  19883. if test x$have_gcc_gdwarf4 = xyes; then
  19884. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19885. fi
  19886. }
  19887. CheckVisibilityHidden()
  19888. {
  19889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19890. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19891. have_gcc_fvisibility=no
  19892. visibility_CFLAGS="-fvisibility=hidden"
  19893. save_CFLAGS="$CFLAGS"
  19894. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19896. /* end confdefs.h. */
  19897. #if !defined(__GNUC__) || __GNUC__ < 4
  19898. #error SDL only uses visibility attributes in GCC 4 or newer
  19899. #endif
  19900. int
  19901. main (void)
  19902. {
  19903. ;
  19904. return 0;
  19905. }
  19906. _ACEOF
  19907. if ac_fn_c_try_compile "$LINENO"
  19908. then :
  19909. have_gcc_fvisibility=yes
  19910. fi
  19911. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19913. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19914. CFLAGS="$save_CFLAGS"
  19915. if test x$have_gcc_fvisibility = xyes; then
  19916. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19917. fi
  19918. }
  19919. CheckNoStrictAliasing()
  19920. {
  19921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19922. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19923. have_gcc_no_strict_aliasing=no
  19924. save_CFLAGS="$CFLAGS"
  19925. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19927. /* end confdefs.h. */
  19928. int x = 0;
  19929. int
  19930. main (void)
  19931. {
  19932. ;
  19933. return 0;
  19934. }
  19935. _ACEOF
  19936. if ac_fn_c_try_compile "$LINENO"
  19937. then :
  19938. have_gcc_no_strict_aliasing=yes
  19939. fi
  19940. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19942. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19943. CFLAGS="$save_CFLAGS"
  19944. if test x$have_gcc_no_strict_aliasing = xyes; then
  19945. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19946. fi
  19947. }
  19948. CheckWerror()
  19949. {
  19950. # Check whether --enable-werror was given.
  19951. if test ${enable_werror+y}
  19952. then :
  19953. enableval=$enable_werror; enable_werror=$enableval
  19954. else $as_nop
  19955. enable_werror=no
  19956. fi
  19957. if test x$enable_werror = xyes; then
  19958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19959. printf %s "checking for GCC -Werror option... " >&6; }
  19960. have_gcc_werror=no
  19961. save_CFLAGS="$CFLAGS"
  19962. CFLAGS="$save_CFLAGS -Werror"
  19963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19964. /* end confdefs.h. */
  19965. int x = 0;
  19966. int
  19967. main (void)
  19968. {
  19969. ;
  19970. return 0;
  19971. }
  19972. _ACEOF
  19973. if ac_fn_c_try_compile "$LINENO"
  19974. then :
  19975. have_gcc_werror=yes
  19976. fi
  19977. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19979. printf "%s\n" "$have_gcc_werror" >&6; }
  19980. CFLAGS="$save_CFLAGS"
  19981. if test x$have_gcc_werror = xyes; then
  19982. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  19983. fi
  19984. fi
  19985. }
  19986. CheckNoErrorDeprecatedDeclarationsWerror()
  19987. {
  19988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  19989. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  19990. have_gcc_no_werror_deprecated_declarations=no
  19991. save_CFLAGS="$CFLAGS"
  19992. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  19993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19994. /* end confdefs.h. */
  19995. int x = 0;
  19996. int
  19997. main (void)
  19998. {
  19999. ;
  20000. return 0;
  20001. }
  20002. _ACEOF
  20003. if ac_fn_c_try_compile "$LINENO"
  20004. then :
  20005. have_gcc_no_werror_deprecated_declarations=yes
  20006. fi
  20007. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20009. printf "%s\n" "$have_gcc_werror" >&6; }
  20010. CFLAGS="$save_CFLAGS"
  20011. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  20012. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  20013. fi
  20014. }
  20015. CheckDeclarationAfterStatement()
  20016. {
  20017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  20018. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  20019. have_gcc_declaration_after_statement=no
  20020. save_CFLAGS="$CFLAGS"
  20021. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20023. /* end confdefs.h. */
  20024. int x = 0;
  20025. int
  20026. main (void)
  20027. {
  20028. ;
  20029. return 0;
  20030. }
  20031. _ACEOF
  20032. if ac_fn_c_try_compile "$LINENO"
  20033. then :
  20034. have_gcc_declaration_after_statement=yes
  20035. fi
  20036. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  20038. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  20039. CFLAGS="$save_CFLAGS"
  20040. if test x$have_gcc_declaration_after_statement = xyes; then
  20041. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20042. fi
  20043. }
  20044. CheckWarnAll()
  20045. {
  20046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  20047. printf %s "checking for GCC -Wall option... " >&6; }
  20048. have_gcc_Wall=no
  20049. save_CFLAGS="$CFLAGS"
  20050. CFLAGS="$save_CFLAGS -Wall"
  20051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20052. /* end confdefs.h. */
  20053. int x = 0;
  20054. int
  20055. main (void)
  20056. {
  20057. ;
  20058. return 0;
  20059. }
  20060. _ACEOF
  20061. if ac_fn_c_try_compile "$LINENO"
  20062. then :
  20063. have_gcc_Wall=yes
  20064. fi
  20065. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  20067. printf "%s\n" "$have_gcc_Wall" >&6; }
  20068. CFLAGS="$save_CFLAGS"
  20069. if test x$have_gcc_Wall = xyes; then
  20070. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  20071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  20072. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  20073. need_gcc_Wno_multichar=no
  20074. case "$host" in
  20075. *-*-haiku*)
  20076. need_gcc_Wno_multichar=yes
  20077. ;;
  20078. esac
  20079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  20080. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  20081. if test x$need_gcc_Wno_multichar = xyes; then
  20082. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  20083. fi
  20084. fi
  20085. }
  20086. CheckUnusedLocalTypedefs()
  20087. {
  20088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wunused-local-typedefs option" >&5
  20089. printf %s "checking for GCC -Wunused-local-typedefs option... " >&6; }
  20090. have_gcc_unused_local_typedefs=no
  20091. save_CFLAGS="$CFLAGS"
  20092. CFLAGS="$save_CFLAGS -Wunused-local-typedefs"
  20093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20094. /* end confdefs.h. */
  20095. int x = 0;
  20096. int
  20097. main (void)
  20098. {
  20099. ;
  20100. return 0;
  20101. }
  20102. _ACEOF
  20103. if ac_fn_c_try_compile "$LINENO"
  20104. then :
  20105. have_gcc_unused_local_typedefs=yes
  20106. fi
  20107. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_unused_local_typedefs" >&5
  20109. printf "%s\n" "$have_gcc_unused_local_typedefs" >&6; }
  20110. CFLAGS="$save_CFLAGS"
  20111. if test x$have_gcc_unused_local_typedefs = xyes; then
  20112. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-unused-local-typedefs"
  20113. fi
  20114. }
  20115. CheckWayland()
  20116. {
  20117. # Check whether --enable-video-wayland was given.
  20118. if test ${enable_video_wayland+y}
  20119. then :
  20120. enableval=$enable_video_wayland;
  20121. else $as_nop
  20122. enable_video_wayland=yes
  20123. fi
  20124. # Check whether --enable-video-wayland-qt-touch was given.
  20125. if test ${enable_video_wayland_qt_touch+y}
  20126. then :
  20127. enableval=$enable_video_wayland_qt_touch;
  20128. else $as_nop
  20129. enable_video_wayland_qt_touch=yes
  20130. fi
  20131. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20133. printf %s "checking for Wayland support... " >&6; }
  20134. video_wayland=no
  20135. if test x$video_opengl_egl = xyes && \
  20136. test x$video_opengles_v2 = xyes; then
  20137. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20138. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20139. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20140. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20141. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20142. then :
  20143. WAYLAND_SCANNER_CODE_MODE=private-code
  20144. else $as_nop
  20145. WAYLAND_SCANNER_CODE_MODE=code
  20146. fi
  20147. video_wayland=yes
  20148. fi
  20149. fi
  20150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20151. printf "%s\n" "$video_wayland" >&6; }
  20152. if test x$video_wayland = xyes; then
  20153. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20154. if test x$enable_video_wayland_qt_touch = xyes; then
  20155. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20156. fi
  20157. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20158. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20159. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20160. # Check whether --enable-wayland-shared was given.
  20161. if test ${enable_wayland_shared+y}
  20162. then :
  20163. enableval=$enable_wayland_shared;
  20164. else $as_nop
  20165. enable_wayland_shared=maybe
  20166. fi
  20167. case "$host" in
  20168. *)
  20169. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20170. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20171. if test x$wayland_egl_lib = x; then
  20172. # This works in Ubuntu 13.10, maybe others
  20173. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20174. fi
  20175. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20176. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20177. ;;
  20178. esac
  20179. if test x$enable_wayland_shared = xmaybe; then
  20180. enable_wayland_shared=yes
  20181. fi
  20182. if test x$have_loadso != xyes && \
  20183. test x$enable_wayland_shared = xyes; then
  20184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20185. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20186. enable_wayland_shared=no
  20187. fi
  20188. if test x$have_loadso = xyes && \
  20189. test x$enable_wayland_shared = xyes && \
  20190. test x$wayland_client_lib != x && \
  20191. test x$wayland_egl_lib != x && \
  20192. test x$wayland_cursor_lib != x && \
  20193. test x$xkbcommon_lib != x; then
  20194. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20195. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20196. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20197. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20198. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20199. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20200. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20201. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20202. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20203. else
  20204. enable_wayland_shared=no
  20205. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20206. SUMMARY_video="${SUMMARY_video} wayland"
  20207. fi
  20208. have_video=yes
  20209. # Check whether --enable-libdecor was given.
  20210. if test ${enable_libdecor+y}
  20211. then :
  20212. enableval=$enable_libdecor;
  20213. else $as_nop
  20214. enable_libdecor=yes
  20215. fi
  20216. if test x$enable_libdecor = xyes; then
  20217. pkg_failed=no
  20218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20219. printf %s "checking for libdecor-0... " >&6; }
  20220. if test -n "$DECOR_CFLAGS"; then
  20221. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20222. elif test -n "$PKG_CONFIG"; then
  20223. if test -n "$PKG_CONFIG" && \
  20224. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20225. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20226. ac_status=$?
  20227. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20228. test $ac_status = 0; }; then
  20229. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20230. test "x$?" != "x0" && pkg_failed=yes
  20231. else
  20232. pkg_failed=yes
  20233. fi
  20234. else
  20235. pkg_failed=untried
  20236. fi
  20237. if test -n "$DECOR_LIBS"; then
  20238. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20239. elif test -n "$PKG_CONFIG"; then
  20240. if test -n "$PKG_CONFIG" && \
  20241. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20242. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20243. ac_status=$?
  20244. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20245. test $ac_status = 0; }; then
  20246. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20247. test "x$?" != "x0" && pkg_failed=yes
  20248. else
  20249. pkg_failed=yes
  20250. fi
  20251. else
  20252. pkg_failed=untried
  20253. fi
  20254. if test $pkg_failed = yes; then
  20255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20256. printf "%s\n" "no" >&6; }
  20257. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20258. _pkg_short_errors_supported=yes
  20259. else
  20260. _pkg_short_errors_supported=no
  20261. fi
  20262. if test $_pkg_short_errors_supported = yes; then
  20263. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20264. else
  20265. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20266. fi
  20267. # Put the nasty error message in config.log where it belongs
  20268. echo "$DECOR_PKG_ERRORS" >&5
  20269. video_libdecor=no
  20270. elif test $pkg_failed = untried; then
  20271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20272. printf "%s\n" "no" >&6; }
  20273. video_libdecor=no
  20274. else
  20275. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20276. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20278. printf "%s\n" "yes" >&6; }
  20279. video_libdecor=yes
  20280. fi
  20281. if test x$video_libdecor = xyes; then
  20282. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20283. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20284. # Check whether --enable-libdecor-shared was given.
  20285. if test ${enable_libdecor_shared+y}
  20286. then :
  20287. enableval=$enable_libdecor_shared;
  20288. else $as_nop
  20289. enable_libdecor_shared=yes
  20290. fi
  20291. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20292. if test x$enable_wayland_shared != xyes; then
  20293. enable_libdecor_shared=no
  20294. fi
  20295. if test x$have_loadso != xyes && \
  20296. test x$enable_libdecor_shared = xyes; then
  20297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20298. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20299. fi
  20300. if test x$have_loadso = xyes && \
  20301. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20302. echo "-- dynamic libdecor -> $decor_lib"
  20303. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20304. else
  20305. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20306. fi
  20307. saved_cflags=$CFLAGS
  20308. CFLAGS="$CFLAGS $DECOR_CFLAGS"
  20309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  20310. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  20311. if test ${ac_cv_c_undeclared_builtin_options+y}
  20312. then :
  20313. printf %s "(cached) " >&6
  20314. else $as_nop
  20315. ac_save_CFLAGS=$CFLAGS
  20316. ac_cv_c_undeclared_builtin_options='cannot detect'
  20317. for ac_arg in '' -fno-builtin; do
  20318. CFLAGS="$ac_save_CFLAGS $ac_arg"
  20319. # This test program should *not* compile successfully.
  20320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20321. /* end confdefs.h. */
  20322. int
  20323. main (void)
  20324. {
  20325. (void) strchr;
  20326. ;
  20327. return 0;
  20328. }
  20329. _ACEOF
  20330. if ac_fn_c_try_compile "$LINENO"
  20331. then :
  20332. else $as_nop
  20333. # This test program should compile successfully.
  20334. # No library function is consistently available on
  20335. # freestanding implementations, so test against a dummy
  20336. # declaration. Include always-available headers on the
  20337. # off chance that they somehow elicit warnings.
  20338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20339. /* end confdefs.h. */
  20340. #include <float.h>
  20341. #include <limits.h>
  20342. #include <stdarg.h>
  20343. #include <stddef.h>
  20344. extern void ac_decl (int, char *);
  20345. int
  20346. main (void)
  20347. {
  20348. (void) ac_decl (0, (char *) 0);
  20349. (void) ac_decl;
  20350. ;
  20351. return 0;
  20352. }
  20353. _ACEOF
  20354. if ac_fn_c_try_compile "$LINENO"
  20355. then :
  20356. if test x"$ac_arg" = x
  20357. then :
  20358. ac_cv_c_undeclared_builtin_options='none needed'
  20359. else $as_nop
  20360. ac_cv_c_undeclared_builtin_options=$ac_arg
  20361. fi
  20362. break
  20363. fi
  20364. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20365. fi
  20366. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20367. done
  20368. CFLAGS=$ac_save_CFLAGS
  20369. fi
  20370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  20371. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  20372. case $ac_cv_c_undeclared_builtin_options in #(
  20373. 'cannot detect') :
  20374. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20375. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  20376. as_fn_error $? "cannot make $CC report undeclared builtins
  20377. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  20378. 'none needed') :
  20379. ac_c_undeclared_builtin_options='' ;; #(
  20380. *) :
  20381. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  20382. esac
  20383. ac_fn_check_decl "$LINENO" "libdecor_frame_get_min_content_size" "ac_cv_have_decl_libdecor_frame_get_min_content_size" "#include <libdecor.h>
  20384. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20385. if test "x$ac_cv_have_decl_libdecor_frame_get_min_content_size" = xyes
  20386. then :
  20387. ac_have_decl=1
  20388. else $as_nop
  20389. ac_have_decl=0
  20390. fi
  20391. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MIN_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20392. if test $ac_have_decl = 1
  20393. then :
  20394. libdecor_get_min_max=yes
  20395. fi
  20396. ac_fn_check_decl "$LINENO" "libdecor_frame_get_max_content_size" "ac_cv_have_decl_libdecor_frame_get_max_content_size" "#include <libdecor.h>
  20397. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20398. if test "x$ac_cv_have_decl_libdecor_frame_get_max_content_size" = xyes
  20399. then :
  20400. ac_have_decl=1
  20401. else $as_nop
  20402. ac_have_decl=0
  20403. fi
  20404. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MAX_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20405. if test $ac_have_decl = 1
  20406. then :
  20407. libdecor_get_min_max=yes
  20408. fi
  20409. if test x$libdecor_get_min_max = xyes; then
  20410. printf "%s\n" "#define SDL_HAVE_LIBDECOR_GET_MIN_MAX 1" >>confdefs.h
  20411. fi
  20412. CFLAGS="$saved_cflags"
  20413. fi
  20414. fi
  20415. fi
  20416. fi
  20417. }
  20418. CheckNativeClient()
  20419. {
  20420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20421. /* end confdefs.h. */
  20422. #if !defined(__native_client__)
  20423. #error "NO NACL"
  20424. #endif
  20425. int
  20426. main (void)
  20427. {
  20428. ;
  20429. return 0;
  20430. }
  20431. _ACEOF
  20432. if ac_fn_c_try_compile "$LINENO"
  20433. then :
  20434. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20435. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20436. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20437. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20438. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20439. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20440. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20441. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20442. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20443. SUMMARY_audio="${SUMMARY_audio} nacl"
  20444. have_audio=yes
  20445. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20446. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20447. have_video=yes
  20448. fi
  20449. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20450. }
  20451. CheckRPI()
  20452. {
  20453. # Check whether --enable-video-rpi was given.
  20454. if test ${enable_video_rpi+y}
  20455. then :
  20456. enableval=$enable_video_rpi;
  20457. else $as_nop
  20458. enable_video_rpi=yes
  20459. fi
  20460. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20461. pkg_failed=no
  20462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host" >&5
  20463. printf %s "checking for bcm_host... " >&6; }
  20464. if test -n "$RPI_CFLAGS"; then
  20465. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20466. elif test -n "$PKG_CONFIG"; then
  20467. if test -n "$PKG_CONFIG" && \
  20468. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host\""; } >&5
  20469. ($PKG_CONFIG --exists --print-errors "bcm_host") 2>&5
  20470. ac_status=$?
  20471. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20472. test $ac_status = 0; }; then
  20473. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host" 2>/dev/null`
  20474. test "x$?" != "x0" && pkg_failed=yes
  20475. else
  20476. pkg_failed=yes
  20477. fi
  20478. else
  20479. pkg_failed=untried
  20480. fi
  20481. if test -n "$RPI_LIBS"; then
  20482. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20483. elif test -n "$PKG_CONFIG"; then
  20484. if test -n "$PKG_CONFIG" && \
  20485. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host\""; } >&5
  20486. ($PKG_CONFIG --exists --print-errors "bcm_host") 2>&5
  20487. ac_status=$?
  20488. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20489. test $ac_status = 0; }; then
  20490. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host" 2>/dev/null`
  20491. test "x$?" != "x0" && pkg_failed=yes
  20492. else
  20493. pkg_failed=yes
  20494. fi
  20495. else
  20496. pkg_failed=untried
  20497. fi
  20498. if test $pkg_failed = yes; then
  20499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20500. printf "%s\n" "no" >&6; }
  20501. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20502. _pkg_short_errors_supported=yes
  20503. else
  20504. _pkg_short_errors_supported=no
  20505. fi
  20506. if test $_pkg_short_errors_supported = yes; then
  20507. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host" 2>&1`
  20508. else
  20509. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host" 2>&1`
  20510. fi
  20511. # Put the nasty error message in config.log where it belongs
  20512. echo "$RPI_PKG_ERRORS" >&5
  20513. video_rpi=no
  20514. elif test $pkg_failed = untried; then
  20515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20516. printf "%s\n" "no" >&6; }
  20517. video_rpi=no
  20518. else
  20519. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20520. RPI_LIBS=$pkg_cv_RPI_LIBS
  20521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20522. printf "%s\n" "yes" >&6; }
  20523. video_rpi=yes
  20524. fi
  20525. pkg_failed=no
  20526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for brcmegl" >&5
  20527. printf %s "checking for brcmegl... " >&6; }
  20528. if test -n "$RPI_EGL_CFLAGS"; then
  20529. pkg_cv_RPI_EGL_CFLAGS="$RPI_EGL_CFLAGS"
  20530. elif test -n "$PKG_CONFIG"; then
  20531. if test -n "$PKG_CONFIG" && \
  20532. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"brcmegl\""; } >&5
  20533. ($PKG_CONFIG --exists --print-errors "brcmegl") 2>&5
  20534. ac_status=$?
  20535. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20536. test $ac_status = 0; }; then
  20537. pkg_cv_RPI_EGL_CFLAGS=`$PKG_CONFIG --cflags "brcmegl" 2>/dev/null`
  20538. test "x$?" != "x0" && pkg_failed=yes
  20539. else
  20540. pkg_failed=yes
  20541. fi
  20542. else
  20543. pkg_failed=untried
  20544. fi
  20545. if test -n "$RPI_EGL_LIBS"; then
  20546. pkg_cv_RPI_EGL_LIBS="$RPI_EGL_LIBS"
  20547. elif test -n "$PKG_CONFIG"; then
  20548. if test -n "$PKG_CONFIG" && \
  20549. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"brcmegl\""; } >&5
  20550. ($PKG_CONFIG --exists --print-errors "brcmegl") 2>&5
  20551. ac_status=$?
  20552. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20553. test $ac_status = 0; }; then
  20554. pkg_cv_RPI_EGL_LIBS=`$PKG_CONFIG --libs "brcmegl" 2>/dev/null`
  20555. test "x$?" != "x0" && pkg_failed=yes
  20556. else
  20557. pkg_failed=yes
  20558. fi
  20559. else
  20560. pkg_failed=untried
  20561. fi
  20562. if test $pkg_failed = yes; then
  20563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20564. printf "%s\n" "no" >&6; }
  20565. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20566. _pkg_short_errors_supported=yes
  20567. else
  20568. _pkg_short_errors_supported=no
  20569. fi
  20570. if test $_pkg_short_errors_supported = yes; then
  20571. RPI_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "brcmegl" 2>&1`
  20572. else
  20573. RPI_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "brcmegl" 2>&1`
  20574. fi
  20575. # Put the nasty error message in config.log where it belongs
  20576. echo "$RPI_EGL_PKG_ERRORS" >&5
  20577. video_rpi_egl=no
  20578. elif test $pkg_failed = untried; then
  20579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20580. printf "%s\n" "no" >&6; }
  20581. video_rpi_egl=no
  20582. else
  20583. RPI_EGL_CFLAGS=$pkg_cv_RPI_EGL_CFLAGS
  20584. RPI_EGL_LIBS=$pkg_cv_RPI_EGL_LIBS
  20585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20586. printf "%s\n" "yes" >&6; }
  20587. video_rpi_egl=yes
  20588. fi
  20589. if test x$video_rpi = xno; then
  20590. if test x$ARCH = xnetbsd; then
  20591. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20592. RPI_LIBS="-L/usr/pkg/lib -lbcm_host"
  20593. else
  20594. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20595. RPI_LIBS="-L/opt/vc/lib -lbcm_host"
  20596. fi
  20597. fi
  20598. if test x$video_rpi_egl = xno; then
  20599. if test x$ARCH = xnetbsd; then
  20600. RPI_EGL_LIBS="-Wl,-R/usr/pkg/lib"
  20601. else
  20602. RPI_EGL_LIBS="-Wl,-rpath,/opt/vc/lib"
  20603. fi
  20604. fi
  20605. # Save the original compiler flags and libraries
  20606. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20607. # Add the Raspberry Pi compiler flags and libraries
  20608. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_EGL_LIBS $RPI_LIBS"
  20609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 0-3" >&5
  20610. printf %s "checking for Raspberry Pi 0-3... " >&6; }
  20611. have_video_rpi=no
  20612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20613. /* end confdefs.h. */
  20614. #include <bcm_host.h>
  20615. int
  20616. main (void)
  20617. {
  20618. bcm_host_init();
  20619. ;
  20620. return 0;
  20621. }
  20622. _ACEOF
  20623. if ac_fn_c_try_link "$LINENO"
  20624. then :
  20625. have_video_rpi=yes
  20626. fi
  20627. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20628. conftest$ac_exeext conftest.$ac_ext
  20629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20630. printf "%s\n" "$have_video_rpi" >&6; }
  20631. # Restore the compiler flags and libraries
  20632. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20633. if test x$have_video_rpi = xyes; then
  20634. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20635. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20636. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20637. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_EGL_LIBS $RPI_LIBS"
  20638. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20639. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20640. SUMMARY_video="${SUMMARY_video} rpi"
  20641. have_video=yes
  20642. fi
  20643. fi
  20644. }
  20645. CheckX11()
  20646. {
  20647. # Check whether --enable-video-x11 was given.
  20648. if test ${enable_video_x11+y}
  20649. then :
  20650. enableval=$enable_video_x11;
  20651. else $as_nop
  20652. enable_video_x11=yes
  20653. case "$host" in
  20654. *-*-darwin*|*-ios-*)
  20655. enable_video_x11=no
  20656. ;;
  20657. esac
  20658. fi
  20659. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20660. case "$host" in
  20661. *-*-darwin*)
  20662. # This isn't necessary for X11, but fixes GLX detection
  20663. if test "x$x_includes" = xNONE && \
  20664. test "x$x_libraries" = xNONE && \
  20665. test -d /opt/X11/include && \
  20666. test -d /opt/X11/lib; then
  20667. x_includes="/opt/X11/include"
  20668. x_libraries="/opt/X11/lib"
  20669. fi
  20670. ;;
  20671. esac
  20672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20673. printf %s "checking for X... " >&6; }
  20674. # Check whether --with-x was given.
  20675. if test ${with_x+y}
  20676. then :
  20677. withval=$with_x;
  20678. fi
  20679. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20680. if test "x$with_x" = xno; then
  20681. # The user explicitly disabled X.
  20682. have_x=disabled
  20683. else
  20684. case $x_includes,$x_libraries in #(
  20685. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20686. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20687. then :
  20688. printf %s "(cached) " >&6
  20689. else $as_nop
  20690. # One or both of the vars are not set, and there is no cached value.
  20691. ac_x_includes=no
  20692. ac_x_libraries=no
  20693. # Do we need to do anything special at all?
  20694. ac_save_LIBS=$LIBS
  20695. LIBS="-lX11 $LIBS"
  20696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20697. /* end confdefs.h. */
  20698. #include <X11/Xlib.h>
  20699. int
  20700. main (void)
  20701. {
  20702. XrmInitialize ()
  20703. ;
  20704. return 0;
  20705. }
  20706. _ACEOF
  20707. if ac_fn_c_try_link "$LINENO"
  20708. then :
  20709. # We can compile and link X programs with no special options.
  20710. ac_x_includes=
  20711. ac_x_libraries=
  20712. fi
  20713. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20714. conftest$ac_exeext conftest.$ac_ext
  20715. LIBS="$ac_save_LIBS"
  20716. # If that didn't work, only try xmkmf and file system searches
  20717. # for native compilation.
  20718. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20719. then :
  20720. rm -f -r conftest.dir
  20721. if mkdir conftest.dir; then
  20722. cd conftest.dir
  20723. cat >Imakefile <<'_ACEOF'
  20724. incroot:
  20725. @echo incroot='${INCROOT}'
  20726. usrlibdir:
  20727. @echo usrlibdir='${USRLIBDIR}'
  20728. libdir:
  20729. @echo libdir='${LIBDIR}'
  20730. _ACEOF
  20731. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20732. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20733. for ac_var in incroot usrlibdir libdir; do
  20734. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20735. done
  20736. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20737. for ac_extension in a so sl dylib la dll; do
  20738. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20739. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20740. ac_im_usrlibdir=$ac_im_libdir; break
  20741. fi
  20742. done
  20743. # Screen out bogus values from the imake configuration. They are
  20744. # bogus both because they are the default anyway, and because
  20745. # using them would break gcc on systems where it needs fixed includes.
  20746. case $ac_im_incroot in
  20747. /usr/include) ac_x_includes= ;;
  20748. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20749. esac
  20750. case $ac_im_usrlibdir in
  20751. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20752. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20753. esac
  20754. fi
  20755. cd ..
  20756. rm -f -r conftest.dir
  20757. fi
  20758. # Standard set of common directories for X headers.
  20759. # Check X11 before X11Rn because it is often a symlink to the current release.
  20760. ac_x_header_dirs='
  20761. /usr/X11/include
  20762. /usr/X11R7/include
  20763. /usr/X11R6/include
  20764. /usr/X11R5/include
  20765. /usr/X11R4/include
  20766. /usr/include/X11
  20767. /usr/include/X11R7
  20768. /usr/include/X11R6
  20769. /usr/include/X11R5
  20770. /usr/include/X11R4
  20771. /usr/local/X11/include
  20772. /usr/local/X11R7/include
  20773. /usr/local/X11R6/include
  20774. /usr/local/X11R5/include
  20775. /usr/local/X11R4/include
  20776. /usr/local/include/X11
  20777. /usr/local/include/X11R7
  20778. /usr/local/include/X11R6
  20779. /usr/local/include/X11R5
  20780. /usr/local/include/X11R4
  20781. /opt/X11/include
  20782. /usr/X386/include
  20783. /usr/x386/include
  20784. /usr/XFree86/include/X11
  20785. /usr/include
  20786. /usr/local/include
  20787. /usr/unsupported/include
  20788. /usr/athena/include
  20789. /usr/local/x11r5/include
  20790. /usr/lpp/Xamples/include
  20791. /usr/openwin/include
  20792. /usr/openwin/share/include'
  20793. if test "$ac_x_includes" = no; then
  20794. # Guess where to find include files, by looking for Xlib.h.
  20795. # First, try using that file with no special directory specified.
  20796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20797. /* end confdefs.h. */
  20798. #include <X11/Xlib.h>
  20799. _ACEOF
  20800. if ac_fn_c_try_cpp "$LINENO"
  20801. then :
  20802. # We can compile using X headers with no special include directory.
  20803. ac_x_includes=
  20804. else $as_nop
  20805. for ac_dir in $ac_x_header_dirs; do
  20806. if test -r "$ac_dir/X11/Xlib.h"; then
  20807. ac_x_includes=$ac_dir
  20808. break
  20809. fi
  20810. done
  20811. fi
  20812. rm -f conftest.err conftest.i conftest.$ac_ext
  20813. fi # $ac_x_includes = no
  20814. if test "$ac_x_libraries" = no; then
  20815. # Check for the libraries.
  20816. # See if we find them without any special options.
  20817. # Don't add to $LIBS permanently.
  20818. ac_save_LIBS=$LIBS
  20819. LIBS="-lX11 $LIBS"
  20820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20821. /* end confdefs.h. */
  20822. #include <X11/Xlib.h>
  20823. int
  20824. main (void)
  20825. {
  20826. XrmInitialize ()
  20827. ;
  20828. return 0;
  20829. }
  20830. _ACEOF
  20831. if ac_fn_c_try_link "$LINENO"
  20832. then :
  20833. LIBS=$ac_save_LIBS
  20834. # We can link X programs with no special library path.
  20835. ac_x_libraries=
  20836. else $as_nop
  20837. LIBS=$ac_save_LIBS
  20838. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20839. do
  20840. # Don't even attempt the hair of trying to link an X program!
  20841. for ac_extension in a so sl dylib la dll; do
  20842. if test -r "$ac_dir/libX11.$ac_extension"; then
  20843. ac_x_libraries=$ac_dir
  20844. break 2
  20845. fi
  20846. done
  20847. done
  20848. fi
  20849. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20850. conftest$ac_exeext conftest.$ac_ext
  20851. fi # $ac_x_libraries = no
  20852. fi
  20853. # Record the results.
  20854. case $ac_x_includes,$ac_x_libraries in #(
  20855. no,* | *,no | *\'*) :
  20856. # Didn't find X, or a directory has "'" in its name.
  20857. ac_cv_have_x="have_x=no" ;; #(
  20858. *) :
  20859. # Record where we found X for the cache.
  20860. ac_cv_have_x="have_x=yes\
  20861. ac_x_includes='$ac_x_includes'\
  20862. ac_x_libraries='$ac_x_libraries'" ;;
  20863. esac
  20864. fi
  20865. ;; #(
  20866. *) have_x=yes;;
  20867. esac
  20868. eval "$ac_cv_have_x"
  20869. fi # $with_x != no
  20870. if test "$have_x" != yes; then
  20871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20872. printf "%s\n" "$have_x" >&6; }
  20873. no_x=yes
  20874. else
  20875. # If each of the values was on the command line, it overrides each guess.
  20876. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20877. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20878. # Update the cache value to reflect the command line values.
  20879. ac_cv_have_x="have_x=yes\
  20880. ac_x_includes='$x_includes'\
  20881. ac_x_libraries='$x_libraries'"
  20882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20883. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20884. fi
  20885. if test "$no_x" = yes; then
  20886. # Not all programs may use this symbol, but it does not hurt to define it.
  20887. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20888. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20889. else
  20890. if test -n "$x_includes"; then
  20891. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20892. fi
  20893. # It would also be nice to do this for all -L options, not just this one.
  20894. if test -n "$x_libraries"; then
  20895. X_LIBS="$X_LIBS -L$x_libraries"
  20896. # For Solaris; some versions of Sun CC require a space after -R and
  20897. # others require no space. Words are not sufficient . . . .
  20898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20899. printf %s "checking whether -R must be followed by a space... " >&6; }
  20900. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20901. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20902. ac_c_werror_flag=yes
  20903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20904. /* end confdefs.h. */
  20905. int
  20906. main (void)
  20907. {
  20908. ;
  20909. return 0;
  20910. }
  20911. _ACEOF
  20912. if ac_fn_c_try_link "$LINENO"
  20913. then :
  20914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20915. printf "%s\n" "no" >&6; }
  20916. X_LIBS="$X_LIBS -R$x_libraries"
  20917. else $as_nop
  20918. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20920. /* end confdefs.h. */
  20921. int
  20922. main (void)
  20923. {
  20924. ;
  20925. return 0;
  20926. }
  20927. _ACEOF
  20928. if ac_fn_c_try_link "$LINENO"
  20929. then :
  20930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20931. printf "%s\n" "yes" >&6; }
  20932. X_LIBS="$X_LIBS -R $x_libraries"
  20933. else $as_nop
  20934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20935. printf "%s\n" "neither works" >&6; }
  20936. fi
  20937. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20938. conftest$ac_exeext conftest.$ac_ext
  20939. fi
  20940. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20941. conftest$ac_exeext conftest.$ac_ext
  20942. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20943. LIBS=$ac_xsave_LIBS
  20944. fi
  20945. # Check for system-dependent libraries X programs must link with.
  20946. # Do this before checking for the system-independent R6 libraries
  20947. # (-lICE), since we may need -lsocket or whatever for X linking.
  20948. if test "$ISC" = yes; then
  20949. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20950. else
  20951. # Martyn Johnson says this is needed for Ultrix, if the X
  20952. # libraries were built with DECnet support. And Karl Berry says
  20953. # the Alpha needs dnet_stub (dnet does not exist).
  20954. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20956. /* end confdefs.h. */
  20957. /* Override any GCC internal prototype to avoid an error.
  20958. Use char because int might match the return type of a GCC
  20959. builtin and then its argument prototype would still apply. */
  20960. char XOpenDisplay ();
  20961. int
  20962. main (void)
  20963. {
  20964. return XOpenDisplay ();
  20965. ;
  20966. return 0;
  20967. }
  20968. _ACEOF
  20969. if ac_fn_c_try_link "$LINENO"
  20970. then :
  20971. else $as_nop
  20972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20973. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20974. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20975. then :
  20976. printf %s "(cached) " >&6
  20977. else $as_nop
  20978. ac_check_lib_save_LIBS=$LIBS
  20979. LIBS="-ldnet $LIBS"
  20980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20981. /* end confdefs.h. */
  20982. /* Override any GCC internal prototype to avoid an error.
  20983. Use char because int might match the return type of a GCC
  20984. builtin and then its argument prototype would still apply. */
  20985. char dnet_ntoa ();
  20986. int
  20987. main (void)
  20988. {
  20989. return dnet_ntoa ();
  20990. ;
  20991. return 0;
  20992. }
  20993. _ACEOF
  20994. if ac_fn_c_try_link "$LINENO"
  20995. then :
  20996. ac_cv_lib_dnet_dnet_ntoa=yes
  20997. else $as_nop
  20998. ac_cv_lib_dnet_dnet_ntoa=no
  20999. fi
  21000. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21001. conftest$ac_exeext conftest.$ac_ext
  21002. LIBS=$ac_check_lib_save_LIBS
  21003. fi
  21004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  21005. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  21006. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  21007. then :
  21008. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  21009. fi
  21010. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  21011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  21012. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  21013. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  21014. then :
  21015. printf %s "(cached) " >&6
  21016. else $as_nop
  21017. ac_check_lib_save_LIBS=$LIBS
  21018. LIBS="-ldnet_stub $LIBS"
  21019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21020. /* end confdefs.h. */
  21021. /* Override any GCC internal prototype to avoid an error.
  21022. Use char because int might match the return type of a GCC
  21023. builtin and then its argument prototype would still apply. */
  21024. char dnet_ntoa ();
  21025. int
  21026. main (void)
  21027. {
  21028. return dnet_ntoa ();
  21029. ;
  21030. return 0;
  21031. }
  21032. _ACEOF
  21033. if ac_fn_c_try_link "$LINENO"
  21034. then :
  21035. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  21036. else $as_nop
  21037. ac_cv_lib_dnet_stub_dnet_ntoa=no
  21038. fi
  21039. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21040. conftest$ac_exeext conftest.$ac_ext
  21041. LIBS=$ac_check_lib_save_LIBS
  21042. fi
  21043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  21044. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  21045. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  21046. then :
  21047. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  21048. fi
  21049. fi
  21050. fi
  21051. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21052. conftest$ac_exeext conftest.$ac_ext
  21053. LIBS="$ac_xsave_LIBS"
  21054. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  21055. # to get the SysV transport functions.
  21056. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  21057. # needs -lnsl.
  21058. # The nsl library prevents programs from opening the X display
  21059. # on Irix 5.2, according to T.E. Dickey.
  21060. # The functions gethostbyname, getservbyname, and inet_addr are
  21061. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  21062. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  21063. if test "x$ac_cv_func_gethostbyname" = xyes
  21064. then :
  21065. fi
  21066. if test $ac_cv_func_gethostbyname = no; then
  21067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  21068. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  21069. if test ${ac_cv_lib_nsl_gethostbyname+y}
  21070. then :
  21071. printf %s "(cached) " >&6
  21072. else $as_nop
  21073. ac_check_lib_save_LIBS=$LIBS
  21074. LIBS="-lnsl $LIBS"
  21075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21076. /* end confdefs.h. */
  21077. /* Override any GCC internal prototype to avoid an error.
  21078. Use char because int might match the return type of a GCC
  21079. builtin and then its argument prototype would still apply. */
  21080. char gethostbyname ();
  21081. int
  21082. main (void)
  21083. {
  21084. return gethostbyname ();
  21085. ;
  21086. return 0;
  21087. }
  21088. _ACEOF
  21089. if ac_fn_c_try_link "$LINENO"
  21090. then :
  21091. ac_cv_lib_nsl_gethostbyname=yes
  21092. else $as_nop
  21093. ac_cv_lib_nsl_gethostbyname=no
  21094. fi
  21095. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21096. conftest$ac_exeext conftest.$ac_ext
  21097. LIBS=$ac_check_lib_save_LIBS
  21098. fi
  21099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21100. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  21101. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  21102. then :
  21103. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  21104. fi
  21105. if test $ac_cv_lib_nsl_gethostbyname = no; then
  21106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  21107. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  21108. if test ${ac_cv_lib_bsd_gethostbyname+y}
  21109. then :
  21110. printf %s "(cached) " >&6
  21111. else $as_nop
  21112. ac_check_lib_save_LIBS=$LIBS
  21113. LIBS="-lbsd $LIBS"
  21114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21115. /* end confdefs.h. */
  21116. /* Override any GCC internal prototype to avoid an error.
  21117. Use char because int might match the return type of a GCC
  21118. builtin and then its argument prototype would still apply. */
  21119. char gethostbyname ();
  21120. int
  21121. main (void)
  21122. {
  21123. return gethostbyname ();
  21124. ;
  21125. return 0;
  21126. }
  21127. _ACEOF
  21128. if ac_fn_c_try_link "$LINENO"
  21129. then :
  21130. ac_cv_lib_bsd_gethostbyname=yes
  21131. else $as_nop
  21132. ac_cv_lib_bsd_gethostbyname=no
  21133. fi
  21134. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21135. conftest$ac_exeext conftest.$ac_ext
  21136. LIBS=$ac_check_lib_save_LIBS
  21137. fi
  21138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  21139. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  21140. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  21141. then :
  21142. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  21143. fi
  21144. fi
  21145. fi
  21146. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  21147. # socket/setsockopt and other routines are undefined under SCO ODT
  21148. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  21149. # on later versions), says Simon Leinen: it contains gethostby*
  21150. # variants that don't use the name server (or something). -lsocket
  21151. # must be given before -lnsl if both are needed. We assume that
  21152. # if connect needs -lnsl, so does gethostbyname.
  21153. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  21154. if test "x$ac_cv_func_connect" = xyes
  21155. then :
  21156. fi
  21157. if test $ac_cv_func_connect = no; then
  21158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  21159. printf %s "checking for connect in -lsocket... " >&6; }
  21160. if test ${ac_cv_lib_socket_connect+y}
  21161. then :
  21162. printf %s "(cached) " >&6
  21163. else $as_nop
  21164. ac_check_lib_save_LIBS=$LIBS
  21165. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  21166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21167. /* end confdefs.h. */
  21168. /* Override any GCC internal prototype to avoid an error.
  21169. Use char because int might match the return type of a GCC
  21170. builtin and then its argument prototype would still apply. */
  21171. char connect ();
  21172. int
  21173. main (void)
  21174. {
  21175. return connect ();
  21176. ;
  21177. return 0;
  21178. }
  21179. _ACEOF
  21180. if ac_fn_c_try_link "$LINENO"
  21181. then :
  21182. ac_cv_lib_socket_connect=yes
  21183. else $as_nop
  21184. ac_cv_lib_socket_connect=no
  21185. fi
  21186. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21187. conftest$ac_exeext conftest.$ac_ext
  21188. LIBS=$ac_check_lib_save_LIBS
  21189. fi
  21190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  21191. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  21192. if test "x$ac_cv_lib_socket_connect" = xyes
  21193. then :
  21194. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  21195. fi
  21196. fi
  21197. # Guillermo Gomez says -lposix is necessary on A/UX.
  21198. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  21199. if test "x$ac_cv_func_remove" = xyes
  21200. then :
  21201. fi
  21202. if test $ac_cv_func_remove = no; then
  21203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  21204. printf %s "checking for remove in -lposix... " >&6; }
  21205. if test ${ac_cv_lib_posix_remove+y}
  21206. then :
  21207. printf %s "(cached) " >&6
  21208. else $as_nop
  21209. ac_check_lib_save_LIBS=$LIBS
  21210. LIBS="-lposix $LIBS"
  21211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21212. /* end confdefs.h. */
  21213. /* Override any GCC internal prototype to avoid an error.
  21214. Use char because int might match the return type of a GCC
  21215. builtin and then its argument prototype would still apply. */
  21216. char remove ();
  21217. int
  21218. main (void)
  21219. {
  21220. return remove ();
  21221. ;
  21222. return 0;
  21223. }
  21224. _ACEOF
  21225. if ac_fn_c_try_link "$LINENO"
  21226. then :
  21227. ac_cv_lib_posix_remove=yes
  21228. else $as_nop
  21229. ac_cv_lib_posix_remove=no
  21230. fi
  21231. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21232. conftest$ac_exeext conftest.$ac_ext
  21233. LIBS=$ac_check_lib_save_LIBS
  21234. fi
  21235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  21236. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  21237. if test "x$ac_cv_lib_posix_remove" = xyes
  21238. then :
  21239. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  21240. fi
  21241. fi
  21242. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  21243. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  21244. if test "x$ac_cv_func_shmat" = xyes
  21245. then :
  21246. fi
  21247. if test $ac_cv_func_shmat = no; then
  21248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  21249. printf %s "checking for shmat in -lipc... " >&6; }
  21250. if test ${ac_cv_lib_ipc_shmat+y}
  21251. then :
  21252. printf %s "(cached) " >&6
  21253. else $as_nop
  21254. ac_check_lib_save_LIBS=$LIBS
  21255. LIBS="-lipc $LIBS"
  21256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21257. /* end confdefs.h. */
  21258. /* Override any GCC internal prototype to avoid an error.
  21259. Use char because int might match the return type of a GCC
  21260. builtin and then its argument prototype would still apply. */
  21261. char shmat ();
  21262. int
  21263. main (void)
  21264. {
  21265. return shmat ();
  21266. ;
  21267. return 0;
  21268. }
  21269. _ACEOF
  21270. if ac_fn_c_try_link "$LINENO"
  21271. then :
  21272. ac_cv_lib_ipc_shmat=yes
  21273. else $as_nop
  21274. ac_cv_lib_ipc_shmat=no
  21275. fi
  21276. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21277. conftest$ac_exeext conftest.$ac_ext
  21278. LIBS=$ac_check_lib_save_LIBS
  21279. fi
  21280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  21281. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  21282. if test "x$ac_cv_lib_ipc_shmat" = xyes
  21283. then :
  21284. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  21285. fi
  21286. fi
  21287. fi
  21288. # Check for libraries that X11R6 Xt/Xaw programs need.
  21289. ac_save_LDFLAGS=$LDFLAGS
  21290. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21291. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21292. # check for ICE first), but we must link in the order -lSM -lICE or
  21293. # we get undefined symbols. So assume we have SM if we have ICE.
  21294. # These have to be linked with before -lX11, unlike the other
  21295. # libraries we check for below, so use a different variable.
  21296. # John Interrante, Karl Berry
  21297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21298. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21299. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21300. then :
  21301. printf %s "(cached) " >&6
  21302. else $as_nop
  21303. ac_check_lib_save_LIBS=$LIBS
  21304. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21306. /* end confdefs.h. */
  21307. /* Override any GCC internal prototype to avoid an error.
  21308. Use char because int might match the return type of a GCC
  21309. builtin and then its argument prototype would still apply. */
  21310. char IceConnectionNumber ();
  21311. int
  21312. main (void)
  21313. {
  21314. return IceConnectionNumber ();
  21315. ;
  21316. return 0;
  21317. }
  21318. _ACEOF
  21319. if ac_fn_c_try_link "$LINENO"
  21320. then :
  21321. ac_cv_lib_ICE_IceConnectionNumber=yes
  21322. else $as_nop
  21323. ac_cv_lib_ICE_IceConnectionNumber=no
  21324. fi
  21325. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21326. conftest$ac_exeext conftest.$ac_ext
  21327. LIBS=$ac_check_lib_save_LIBS
  21328. fi
  21329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21330. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21331. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21332. then :
  21333. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21334. fi
  21335. LDFLAGS=$ac_save_LDFLAGS
  21336. fi
  21337. if test x$have_x = xyes; then
  21338. # Check whether --enable-x11-shared was given.
  21339. if test ${enable_x11_shared+y}
  21340. then :
  21341. enableval=$enable_x11_shared;
  21342. else $as_nop
  21343. enable_x11_shared=maybe
  21344. fi
  21345. case "$host" in
  21346. *-*-darwin*)
  21347. # Apple now puts this in /opt/X11
  21348. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21349. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21350. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21351. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21352. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21353. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21354. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21355. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21356. ;;
  21357. *-*-openbsd*)
  21358. x11_lib='libX11.so'
  21359. x11ext_lib='libXext.so'
  21360. xcursor_lib='libXcursor.so'
  21361. xinput_lib='libXi.so'
  21362. xfixes_lib='libXfixes.so'
  21363. xrandr_lib='libXrandr.so'
  21364. xrender_lib='libXrender.so'
  21365. xss_lib='libXss.so'
  21366. ;;
  21367. *)
  21368. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21369. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21370. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21371. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21372. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21373. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21374. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21375. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21376. ;;
  21377. esac
  21378. if test x$ac_cv_func_shmat != xyes; then
  21379. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21380. fi
  21381. CFLAGS="$CFLAGS $X_CFLAGS"
  21382. LDFLAGS="$LDFLAGS $X_LIBS"
  21383. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21384. #include <X11/Xproto.h>
  21385. "
  21386. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21387. then :
  21388. have_xext_h_hdr=yes
  21389. else $as_nop
  21390. have_xext_h_hdr=no
  21391. fi
  21392. if test x$have_xext_h_hdr != xyes; then
  21393. as_fn_error $? "
  21394. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21395. " "$LINENO" 5
  21396. fi
  21397. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21398. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21399. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21400. # Needed so SDL applications can include SDL_syswm.h
  21401. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21402. if test x$enable_x11_shared = xmaybe; then
  21403. enable_x11_shared=yes
  21404. fi
  21405. if test x$have_loadso != xyes && \
  21406. test x$enable_x11_shared = xyes; then
  21407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21408. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21409. enable_x11_shared=no
  21410. fi
  21411. if test x$have_loadso = xyes && \
  21412. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21413. echo "-- dynamic libX11 -> $x11_lib"
  21414. echo "-- dynamic libX11ext -> $x11ext_lib"
  21415. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21416. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21417. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21418. else
  21419. enable_x11_shared=no
  21420. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21421. SUMMARY_video="${SUMMARY_video} x11"
  21422. fi
  21423. have_video=yes
  21424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21425. printf %s "checking for XGenericEvent... " >&6; }
  21426. have_XGenericEvent=no
  21427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21428. /* end confdefs.h. */
  21429. #include <X11/Xlib.h>
  21430. int
  21431. main (void)
  21432. {
  21433. Display *display;
  21434. XEvent event;
  21435. XGenericEventCookie *cookie = &event.xcookie;
  21436. XNextEvent(display, &event);
  21437. XGetEventData(display, cookie);
  21438. XFreeEventData(display, cookie);
  21439. ;
  21440. return 0;
  21441. }
  21442. _ACEOF
  21443. if ac_fn_c_try_compile "$LINENO"
  21444. then :
  21445. have_XGenericEvent=yes
  21446. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21447. fi
  21448. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21450. printf "%s\n" "$have_XGenericEvent" >&6; }
  21451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21452. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21453. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21454. then :
  21455. printf %s "(cached) " >&6
  21456. else $as_nop
  21457. ac_check_lib_save_LIBS=$LIBS
  21458. LIBS="-lX11 $LIBS"
  21459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21460. /* end confdefs.h. */
  21461. /* Override any GCC internal prototype to avoid an error.
  21462. Use char because int might match the return type of a GCC
  21463. builtin and then its argument prototype would still apply. */
  21464. char XkbKeycodeToKeysym ();
  21465. int
  21466. main (void)
  21467. {
  21468. return XkbKeycodeToKeysym ();
  21469. ;
  21470. return 0;
  21471. }
  21472. _ACEOF
  21473. if ac_fn_c_try_link "$LINENO"
  21474. then :
  21475. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21476. else $as_nop
  21477. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21478. fi
  21479. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21480. conftest$ac_exeext conftest.$ac_ext
  21481. LIBS=$ac_check_lib_save_LIBS
  21482. fi
  21483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21484. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21485. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21486. then :
  21487. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21488. fi
  21489. # Check whether --enable-video-x11-xcursor was given.
  21490. if test ${enable_video_x11_xcursor+y}
  21491. then :
  21492. enableval=$enable_video_x11_xcursor;
  21493. else $as_nop
  21494. enable_video_x11_xcursor=yes
  21495. fi
  21496. if test x$enable_video_x11_xcursor = xyes; then
  21497. definitely_enable_video_x11_xcursor=no
  21498. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21499. "
  21500. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21501. then :
  21502. have_xcursor_h_hdr=yes
  21503. else $as_nop
  21504. have_xcursor_h_hdr=no
  21505. fi
  21506. if test x$have_xcursor_h_hdr = xyes; then
  21507. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21508. echo "-- dynamic libXcursor -> $xcursor_lib"
  21509. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21510. definitely_enable_video_x11_xcursor=yes
  21511. else
  21512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21513. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21514. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21515. then :
  21516. printf %s "(cached) " >&6
  21517. else $as_nop
  21518. ac_check_lib_save_LIBS=$LIBS
  21519. LIBS="-lXcursor $LIBS"
  21520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21521. /* end confdefs.h. */
  21522. /* Override any GCC internal prototype to avoid an error.
  21523. Use char because int might match the return type of a GCC
  21524. builtin and then its argument prototype would still apply. */
  21525. char XcursorImageCreate ();
  21526. int
  21527. main (void)
  21528. {
  21529. return XcursorImageCreate ();
  21530. ;
  21531. return 0;
  21532. }
  21533. _ACEOF
  21534. if ac_fn_c_try_link "$LINENO"
  21535. then :
  21536. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21537. else $as_nop
  21538. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21539. fi
  21540. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21541. conftest$ac_exeext conftest.$ac_ext
  21542. LIBS=$ac_check_lib_save_LIBS
  21543. fi
  21544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21545. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21546. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21547. then :
  21548. have_xcursor_lib=yes
  21549. fi
  21550. if test x$have_xcursor_lib = xyes ; then
  21551. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21552. definitely_enable_video_x11_xcursor=yes
  21553. fi
  21554. fi
  21555. fi
  21556. fi
  21557. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21558. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21559. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21560. fi
  21561. # Check whether --enable-video-x11-xdbe was given.
  21562. if test ${enable_video_x11_xdbe+y}
  21563. then :
  21564. enableval=$enable_video_x11_xdbe;
  21565. else $as_nop
  21566. enable_video_x11_xdbe=yes
  21567. fi
  21568. if test x$enable_video_x11_xdbe = xyes; then
  21569. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21570. "
  21571. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21572. then :
  21573. have_dbe_h_hdr=yes
  21574. else $as_nop
  21575. have_dbe_h_hdr=no
  21576. fi
  21577. if test x$have_dbe_h_hdr = xyes; then
  21578. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21579. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21580. fi
  21581. fi
  21582. # Check whether --enable-video-x11-xinput was given.
  21583. if test ${enable_video_x11_xinput+y}
  21584. then :
  21585. enableval=$enable_video_x11_xinput;
  21586. else $as_nop
  21587. enable_video_x11_xinput=yes
  21588. fi
  21589. if test x$enable_video_x11_xinput = xyes; then
  21590. definitely_enable_video_x11_xinput=no
  21591. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21592. "
  21593. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21594. then :
  21595. have_xinput_h_hdr=yes
  21596. else $as_nop
  21597. have_xinput_h_hdr=no
  21598. fi
  21599. if test x$have_xinput_h_hdr = xyes; then
  21600. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21601. echo "-- dynamic libXi -> $xinput_lib"
  21602. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21603. definitely_enable_video_x11_xinput=yes
  21604. else
  21605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21606. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21607. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21608. then :
  21609. printf %s "(cached) " >&6
  21610. else $as_nop
  21611. ac_check_lib_save_LIBS=$LIBS
  21612. LIBS="-lXi $LIBS"
  21613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21614. /* end confdefs.h. */
  21615. /* Override any GCC internal prototype to avoid an error.
  21616. Use char because int might match the return type of a GCC
  21617. builtin and then its argument prototype would still apply. */
  21618. char XOpenDevice ();
  21619. int
  21620. main (void)
  21621. {
  21622. return XOpenDevice ();
  21623. ;
  21624. return 0;
  21625. }
  21626. _ACEOF
  21627. if ac_fn_c_try_link "$LINENO"
  21628. then :
  21629. ac_cv_lib_Xi_XOpenDevice=yes
  21630. else $as_nop
  21631. ac_cv_lib_Xi_XOpenDevice=no
  21632. fi
  21633. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21634. conftest$ac_exeext conftest.$ac_ext
  21635. LIBS=$ac_check_lib_save_LIBS
  21636. fi
  21637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21638. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21639. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21640. then :
  21641. have_xinput_lib=yes
  21642. fi
  21643. if test x$have_xinput_lib = xyes ; then
  21644. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21645. definitely_enable_video_x11_xinput=yes
  21646. fi
  21647. fi
  21648. fi
  21649. fi
  21650. if test x$definitely_enable_video_x11_xinput = xyes; then
  21651. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21652. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21654. printf %s "checking for xinput2 multitouch... " >&6; }
  21655. have_xinput2_multitouch=no
  21656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21657. /* end confdefs.h. */
  21658. #include <X11/Xlib.h>
  21659. #include <X11/Xproto.h>
  21660. #include <X11/extensions/XInput2.h>
  21661. int
  21662. main (void)
  21663. {
  21664. int event_type = XI_TouchBegin;
  21665. XITouchClassInfo *t;
  21666. ;
  21667. return 0;
  21668. }
  21669. _ACEOF
  21670. if ac_fn_c_try_compile "$LINENO"
  21671. then :
  21672. have_xinput2_multitouch=yes
  21673. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21674. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21675. fi
  21676. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21678. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21679. fi
  21680. # Check whether --enable-video-x11-xfixes was given.
  21681. if test ${enable_video_x11_xfixes+y}
  21682. then :
  21683. enableval=$enable_video_x11_xfixes;
  21684. else $as_nop
  21685. enable_video_x11_xfixes=yes
  21686. fi
  21687. if test x$enable_video_x11_xfixes = xyes; then
  21688. definitely_enable_video_x11_xfixes=no
  21689. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21691. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21693. /* end confdefs.h. */
  21694. #include <X11/Xlib.h>
  21695. #include <X11/Xproto.h>
  21696. #include <X11/extensions/XInput2.h>
  21697. #include <X11/extensions/Xfixes.h>
  21698. int
  21699. main (void)
  21700. {
  21701. BarrierEventID b;
  21702. ;
  21703. return 0;
  21704. }
  21705. _ACEOF
  21706. if ac_fn_c_try_compile "$LINENO"
  21707. then :
  21708. have_xfixes_h_hdr=yes
  21709. else $as_nop
  21710. have_xfixes_h_hdr=no
  21711. fi
  21712. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21714. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21715. if test x$have_xfixes_h_hdr = xyes; then
  21716. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21717. echo "-- dynamic libXfixes -> $xfixes_lib"
  21718. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21719. definitely_enable_video_x11_xfixes=yes
  21720. else
  21721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21722. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21723. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21724. then :
  21725. printf %s "(cached) " >&6
  21726. else $as_nop
  21727. ac_check_lib_save_LIBS=$LIBS
  21728. LIBS="-lXfixes $LIBS"
  21729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21730. /* end confdefs.h. */
  21731. /* Override any GCC internal prototype to avoid an error.
  21732. Use char because int might match the return type of a GCC
  21733. builtin and then its argument prototype would still apply. */
  21734. char XFixesCreatePointerBarrier ();
  21735. int
  21736. main (void)
  21737. {
  21738. return XFixesCreatePointerBarrier ();
  21739. ;
  21740. return 0;
  21741. }
  21742. _ACEOF
  21743. if ac_fn_c_try_link "$LINENO"
  21744. then :
  21745. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21746. else $as_nop
  21747. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21748. fi
  21749. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21750. conftest$ac_exeext conftest.$ac_ext
  21751. LIBS=$ac_check_lib_save_LIBS
  21752. fi
  21753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21754. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21755. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21756. then :
  21757. have_xfixes_lib=yes
  21758. fi
  21759. if test x$have_xfixes_lib = xyes ; then
  21760. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21761. definitely_enable_video_x11_xfixes=yes
  21762. fi
  21763. fi
  21764. fi
  21765. fi
  21766. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21767. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21768. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21769. fi
  21770. # Check whether --enable-video-x11-xrandr was given.
  21771. if test ${enable_video_x11_xrandr+y}
  21772. then :
  21773. enableval=$enable_video_x11_xrandr;
  21774. else $as_nop
  21775. enable_video_x11_xrandr=yes
  21776. fi
  21777. if test x$enable_video_x11_xrandr = xyes; then
  21778. definitely_enable_video_x11_xrandr=no
  21779. have_xrandr_h_hdr=no
  21780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21781. /* end confdefs.h. */
  21782. #include <X11/Xlib.h>
  21783. #include <X11/extensions/Xrandr.h>
  21784. int
  21785. main (void)
  21786. {
  21787. XRRScreenResources *res = NULL;
  21788. ;
  21789. return 0;
  21790. }
  21791. _ACEOF
  21792. if ac_fn_c_try_compile "$LINENO"
  21793. then :
  21794. have_xrandr_h_hdr=yes
  21795. fi
  21796. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21797. if test x$have_xrandr_h_hdr = xyes; then
  21798. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21799. echo "-- dynamic libXrandr -> $xrandr_lib"
  21800. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21801. definitely_enable_video_x11_xrandr=yes
  21802. else
  21803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21804. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21805. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21806. then :
  21807. printf %s "(cached) " >&6
  21808. else $as_nop
  21809. ac_check_lib_save_LIBS=$LIBS
  21810. LIBS="-lXrandr $LIBS"
  21811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21812. /* end confdefs.h. */
  21813. /* Override any GCC internal prototype to avoid an error.
  21814. Use char because int might match the return type of a GCC
  21815. builtin and then its argument prototype would still apply. */
  21816. char XRRQueryExtension ();
  21817. int
  21818. main (void)
  21819. {
  21820. return XRRQueryExtension ();
  21821. ;
  21822. return 0;
  21823. }
  21824. _ACEOF
  21825. if ac_fn_c_try_link "$LINENO"
  21826. then :
  21827. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21828. else $as_nop
  21829. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21830. fi
  21831. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21832. conftest$ac_exeext conftest.$ac_ext
  21833. LIBS=$ac_check_lib_save_LIBS
  21834. fi
  21835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21836. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21837. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21838. then :
  21839. have_xrandr_lib=yes
  21840. fi
  21841. if test x$have_xrandr_lib = xyes ; then
  21842. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21843. definitely_enable_video_x11_xrandr=yes
  21844. fi
  21845. fi
  21846. fi
  21847. fi
  21848. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21849. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21850. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21851. fi
  21852. # Check whether --enable-video-x11-scrnsaver was given.
  21853. if test ${enable_video_x11_scrnsaver+y}
  21854. then :
  21855. enableval=$enable_video_x11_scrnsaver;
  21856. else $as_nop
  21857. enable_video_x11_scrnsaver=yes
  21858. fi
  21859. if test x$enable_video_x11_scrnsaver = xyes; then
  21860. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21861. "
  21862. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21863. then :
  21864. have_scrnsaver_h_hdr=yes
  21865. else $as_nop
  21866. have_scrnsaver_h_hdr=no
  21867. fi
  21868. if test x$have_scrnsaver_h_hdr = xyes; then
  21869. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21870. echo "-- dynamic libXss -> $xss_lib"
  21871. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21872. definitely_enable_video_x11_scrnsaver=yes
  21873. else
  21874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21875. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21876. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21877. then :
  21878. printf %s "(cached) " >&6
  21879. else $as_nop
  21880. ac_check_lib_save_LIBS=$LIBS
  21881. LIBS="-lXss $LIBS"
  21882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21883. /* end confdefs.h. */
  21884. /* Override any GCC internal prototype to avoid an error.
  21885. Use char because int might match the return type of a GCC
  21886. builtin and then its argument prototype would still apply. */
  21887. char XScreenSaverSuspend ();
  21888. int
  21889. main (void)
  21890. {
  21891. return XScreenSaverSuspend ();
  21892. ;
  21893. return 0;
  21894. }
  21895. _ACEOF
  21896. if ac_fn_c_try_link "$LINENO"
  21897. then :
  21898. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21899. else $as_nop
  21900. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21901. fi
  21902. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21903. conftest$ac_exeext conftest.$ac_ext
  21904. LIBS=$ac_check_lib_save_LIBS
  21905. fi
  21906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21907. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21908. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21909. then :
  21910. have_xss_lib=yes
  21911. fi
  21912. if test x$have_xss_lib = xyes ; then
  21913. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21914. definitely_enable_video_x11_scrnsaver=yes
  21915. fi
  21916. fi
  21917. fi
  21918. fi
  21919. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21920. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21921. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21922. fi
  21923. # Check whether --enable-video-x11-xshape was given.
  21924. if test ${enable_video_x11_xshape+y}
  21925. then :
  21926. enableval=$enable_video_x11_xshape;
  21927. else $as_nop
  21928. enable_video_x11_xshape=yes
  21929. fi
  21930. if test x$enable_video_x11_xshape = xyes; then
  21931. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21932. "
  21933. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21934. then :
  21935. have_shape_h_hdr=yes
  21936. else $as_nop
  21937. have_shape_h_hdr=no
  21938. fi
  21939. if test x$have_shape_h_hdr = xyes; then
  21940. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21941. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21942. fi
  21943. fi
  21944. fi
  21945. fi
  21946. if test x$have_x != xyes; then
  21947. # Prevent Mesa from including X11 headers
  21948. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21949. fi
  21950. }
  21951. CheckVivanteVideo()
  21952. {
  21953. # Check whether --enable-video-vivante was given.
  21954. if test ${enable_video_vivante+y}
  21955. then :
  21956. enableval=$enable_video_vivante;
  21957. else $as_nop
  21958. enable_video_vivante=yes
  21959. fi
  21960. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21962. printf %s "checking for Vivante VDK API... " >&6; }
  21963. have_vivante_vdk=no
  21964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21965. /* end confdefs.h. */
  21966. #define LINUX
  21967. #define EGL_API_FB
  21968. #include <gc_vdk.h>
  21969. int
  21970. main (void)
  21971. {
  21972. ;
  21973. return 0;
  21974. }
  21975. _ACEOF
  21976. if ac_fn_c_try_compile "$LINENO"
  21977. then :
  21978. have_vivante_vdk=yes
  21979. fi
  21980. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21982. printf "%s\n" "$have_vivante_vdk" >&6; }
  21983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21984. printf %s "checking for Vivante FB API... " >&6; }
  21985. have_vivante_egl=no
  21986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21987. /* end confdefs.h. */
  21988. #define LINUX
  21989. #define EGL_API_FB
  21990. #include <EGL/eglvivante.h>
  21991. int
  21992. main (void)
  21993. {
  21994. ;
  21995. return 0;
  21996. }
  21997. _ACEOF
  21998. if ac_fn_c_try_compile "$LINENO"
  21999. then :
  22000. have_vivante_egl=yes
  22001. fi
  22002. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  22004. printf "%s\n" "$have_vivante_egl" >&6; }
  22005. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  22006. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  22007. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  22008. if test x$have_vivante_vdk = xyes; then
  22009. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  22010. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  22011. fi
  22012. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  22013. SUMMARY_video="${SUMMARY_video} vivante"
  22014. have_video=yes
  22015. fi
  22016. fi
  22017. }
  22018. CheckHaikuVideo()
  22019. {
  22020. if test x$enable_video = xyes; then
  22021. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  22022. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  22023. have_video=yes
  22024. SUMMARY_video="${SUMMARY_video} haiku"
  22025. fi
  22026. }
  22027. CheckCOCOA()
  22028. {
  22029. # Check whether --enable-video-cocoa was given.
  22030. if test ${enable_video_cocoa+y}
  22031. then :
  22032. enableval=$enable_video_cocoa;
  22033. else $as_nop
  22034. enable_video_cocoa=yes
  22035. fi
  22036. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  22037. save_CFLAGS="$CFLAGS"
  22038. CFLAGS="$CFLAGS -x objective-c"
  22039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  22040. printf %s "checking for Cocoa framework... " >&6; }
  22041. have_cocoa=no
  22042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22043. /* end confdefs.h. */
  22044. #import <Cocoa/Cocoa.h>
  22045. int
  22046. main (void)
  22047. {
  22048. ;
  22049. return 0;
  22050. }
  22051. _ACEOF
  22052. if ac_fn_c_try_compile "$LINENO"
  22053. then :
  22054. have_cocoa=yes
  22055. fi
  22056. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  22058. printf "%s\n" "$have_cocoa" >&6; }
  22059. CFLAGS="$save_CFLAGS"
  22060. if test x$have_cocoa = xyes; then
  22061. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  22062. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  22063. SUMMARY_video="${SUMMARY_video} cocoa"
  22064. have_video=yes
  22065. fi
  22066. fi
  22067. }
  22068. CheckMETAL()
  22069. {
  22070. # Check whether --enable-video-metal was given.
  22071. if test ${enable_video_metal+y}
  22072. then :
  22073. enableval=$enable_video_metal;
  22074. else $as_nop
  22075. enable_video_metal=yes
  22076. fi
  22077. # Check whether --enable-render-metal was given.
  22078. if test ${enable_render_metal+y}
  22079. then :
  22080. enableval=$enable_render_metal;
  22081. else $as_nop
  22082. enable_render_metal=yes
  22083. fi
  22084. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  22085. save_CFLAGS="$CFLAGS"
  22086. CFLAGS="$CFLAGS -x objective-c"
  22087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  22088. printf %s "checking for Metal framework... " >&6; }
  22089. have_metal=no
  22090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22091. /* end confdefs.h. */
  22092. #import <Cocoa/Cocoa.h>
  22093. #import <Metal/Metal.h>
  22094. #import <QuartzCore/CAMetalLayer.h>
  22095. #if TARGET_CPU_X86
  22096. #error Metal doesn't work on this configuration
  22097. #endif
  22098. int
  22099. main (void)
  22100. {
  22101. ;
  22102. return 0;
  22103. }
  22104. _ACEOF
  22105. if ac_fn_c_try_compile "$LINENO"
  22106. then :
  22107. have_metal=yes
  22108. fi
  22109. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22110. CFLAGS="$save_CFLAGS"
  22111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  22112. printf "%s\n" "$have_metal" >&6; }
  22113. if test x$have_metal = xyes; then
  22114. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  22115. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  22116. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  22117. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  22118. fi
  22119. SUMMARY_video="${SUMMARY_video} metal"
  22120. else
  22121. enable_video_metal=no
  22122. enable_render_metal=no
  22123. fi
  22124. fi
  22125. }
  22126. CheckDirectFB()
  22127. {
  22128. # Check whether --enable-video-directfb was given.
  22129. if test ${enable_video_directfb+y}
  22130. then :
  22131. enableval=$enable_video_directfb;
  22132. else $as_nop
  22133. enable_video_directfb=no
  22134. fi
  22135. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  22136. pkg_failed=no
  22137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  22138. printf %s "checking for directfb >= 1.0.0... " >&6; }
  22139. if test -n "$DIRECTFB_CFLAGS"; then
  22140. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  22141. elif test -n "$PKG_CONFIG"; then
  22142. if test -n "$PKG_CONFIG" && \
  22143. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22144. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22145. ac_status=$?
  22146. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22147. test $ac_status = 0; }; then
  22148. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  22149. test "x$?" != "x0" && pkg_failed=yes
  22150. else
  22151. pkg_failed=yes
  22152. fi
  22153. else
  22154. pkg_failed=untried
  22155. fi
  22156. if test -n "$DIRECTFB_LIBS"; then
  22157. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  22158. elif test -n "$PKG_CONFIG"; then
  22159. if test -n "$PKG_CONFIG" && \
  22160. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22161. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22162. ac_status=$?
  22163. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22164. test $ac_status = 0; }; then
  22165. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  22166. test "x$?" != "x0" && pkg_failed=yes
  22167. else
  22168. pkg_failed=yes
  22169. fi
  22170. else
  22171. pkg_failed=untried
  22172. fi
  22173. if test $pkg_failed = yes; then
  22174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22175. printf "%s\n" "no" >&6; }
  22176. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22177. _pkg_short_errors_supported=yes
  22178. else
  22179. _pkg_short_errors_supported=no
  22180. fi
  22181. if test $_pkg_short_errors_supported = yes; then
  22182. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22183. else
  22184. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22185. fi
  22186. # Put the nasty error message in config.log where it belongs
  22187. echo "$DIRECTFB_PKG_ERRORS" >&5
  22188. video_directfb=no
  22189. elif test $pkg_failed = untried; then
  22190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22191. printf "%s\n" "no" >&6; }
  22192. video_directfb=no
  22193. else
  22194. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  22195. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  22196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22197. printf "%s\n" "yes" >&6; }
  22198. video_directfb=yes
  22199. fi
  22200. if test x$video_directfb = xyes; then
  22201. # SuSE 11.1 installs directfb-config without directfb-devel
  22202. save_CPPFLAGS="$CPPFLAGS"
  22203. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  22204. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  22205. if test "x$ac_cv_header_directfb_h" = xyes
  22206. then :
  22207. have_directfb_hdr=yes
  22208. else $as_nop
  22209. have_directfb_hdr=no
  22210. fi
  22211. CPPFLAGS="$save_CPPFLAGS"
  22212. video_directfb=$have_directfb_hdr
  22213. fi
  22214. if test x$video_directfb = xyes; then
  22215. # Check whether --enable-directfb-shared was given.
  22216. if test ${enable_directfb_shared+y}
  22217. then :
  22218. enableval=$enable_directfb_shared;
  22219. else $as_nop
  22220. enable_directfb_shared=yes
  22221. fi
  22222. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  22223. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  22224. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  22225. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  22226. directfb_shared=no
  22227. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  22228. if test x$have_loadso != xyes && \
  22229. test x$enable_directfb_shared = xyes; then
  22230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  22231. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  22232. fi
  22233. if test x$have_loadso = xyes && \
  22234. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  22235. directfb_shared=yes
  22236. echo "-- dynamic libdirectfb -> $directfb_lib"
  22237. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  22238. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  22239. else
  22240. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  22241. SUMMARY_video="${SUMMARY_video} directfb"
  22242. fi
  22243. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  22244. have_video=yes
  22245. fi
  22246. fi
  22247. }
  22248. CheckKMSDRM()
  22249. {
  22250. # Check whether --enable-video-kmsdrm was given.
  22251. if test ${enable_video_kmsdrm+y}
  22252. then :
  22253. enableval=$enable_video_kmsdrm;
  22254. else $as_nop
  22255. enable_video_kmsdrm=yes
  22256. fi
  22257. if test x$enable_video = xyes && \
  22258. test x$enable_video_kmsdrm = xyes && \
  22259. test x$video_opengl_egl = xyes; then
  22260. video_kmsdrm=no
  22261. pkg_failed=no
  22262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  22263. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  22264. if test -n "$LIBDRM_CFLAGS"; then
  22265. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  22266. elif test -n "$PKG_CONFIG"; then
  22267. if test -n "$PKG_CONFIG" && \
  22268. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22269. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22270. ac_status=$?
  22271. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22272. test $ac_status = 0; }; then
  22273. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  22274. test "x$?" != "x0" && pkg_failed=yes
  22275. else
  22276. pkg_failed=yes
  22277. fi
  22278. else
  22279. pkg_failed=untried
  22280. fi
  22281. if test -n "$LIBDRM_LIBS"; then
  22282. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  22283. elif test -n "$PKG_CONFIG"; then
  22284. if test -n "$PKG_CONFIG" && \
  22285. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22286. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22287. ac_status=$?
  22288. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22289. test $ac_status = 0; }; then
  22290. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  22291. test "x$?" != "x0" && pkg_failed=yes
  22292. else
  22293. pkg_failed=yes
  22294. fi
  22295. else
  22296. pkg_failed=untried
  22297. fi
  22298. if test $pkg_failed = yes; then
  22299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22300. printf "%s\n" "no" >&6; }
  22301. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22302. _pkg_short_errors_supported=yes
  22303. else
  22304. _pkg_short_errors_supported=no
  22305. fi
  22306. if test $_pkg_short_errors_supported = yes; then
  22307. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22308. else
  22309. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22310. fi
  22311. # Put the nasty error message in config.log where it belongs
  22312. echo "$LIBDRM_PKG_ERRORS" >&5
  22313. libdrm_avail=no
  22314. elif test $pkg_failed = untried; then
  22315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22316. printf "%s\n" "no" >&6; }
  22317. libdrm_avail=no
  22318. else
  22319. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22320. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22322. printf "%s\n" "yes" >&6; }
  22323. libdrm_avail=yes
  22324. fi
  22325. pkg_failed=no
  22326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22327. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22328. if test -n "$LIBGBM_CFLAGS"; then
  22329. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22330. elif test -n "$PKG_CONFIG"; then
  22331. if test -n "$PKG_CONFIG" && \
  22332. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22333. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22334. ac_status=$?
  22335. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22336. test $ac_status = 0; }; then
  22337. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22338. test "x$?" != "x0" && pkg_failed=yes
  22339. else
  22340. pkg_failed=yes
  22341. fi
  22342. else
  22343. pkg_failed=untried
  22344. fi
  22345. if test -n "$LIBGBM_LIBS"; then
  22346. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22347. elif test -n "$PKG_CONFIG"; then
  22348. if test -n "$PKG_CONFIG" && \
  22349. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22350. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22351. ac_status=$?
  22352. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22353. test $ac_status = 0; }; then
  22354. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22355. test "x$?" != "x0" && pkg_failed=yes
  22356. else
  22357. pkg_failed=yes
  22358. fi
  22359. else
  22360. pkg_failed=untried
  22361. fi
  22362. if test $pkg_failed = yes; then
  22363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22364. printf "%s\n" "no" >&6; }
  22365. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22366. _pkg_short_errors_supported=yes
  22367. else
  22368. _pkg_short_errors_supported=no
  22369. fi
  22370. if test $_pkg_short_errors_supported = yes; then
  22371. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22372. else
  22373. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22374. fi
  22375. # Put the nasty error message in config.log where it belongs
  22376. echo "$LIBGBM_PKG_ERRORS" >&5
  22377. libgbm_avail=no
  22378. elif test $pkg_failed = untried; then
  22379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22380. printf "%s\n" "no" >&6; }
  22381. libgbm_avail=no
  22382. else
  22383. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22384. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22386. printf "%s\n" "yes" >&6; }
  22387. libgbm_avail=yes
  22388. fi
  22389. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22390. video_kmsdrm=yes
  22391. fi
  22392. if test x$video_kmsdrm = xyes; then
  22393. # Check whether --enable-kmsdrm-shared was given.
  22394. if test ${enable_kmsdrm_shared+y}
  22395. then :
  22396. enableval=$enable_kmsdrm_shared;
  22397. else $as_nop
  22398. enable_kmsdrm_shared=yes
  22399. fi
  22400. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22401. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22402. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22404. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22405. kmsdrm_shared=no
  22406. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22407. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22408. if test x$have_loadso != xyes && \
  22409. test x$enable_kmsdrm_shared = xyes; then
  22410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22411. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22412. fi
  22413. if test x$have_loadso = xyes && \
  22414. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22415. kmsdrm_shared=yes
  22416. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22417. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22418. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22419. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22420. else
  22421. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22422. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22423. fi
  22424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22425. printf "%s\n" "$kmsdrm_shared" >&6; }
  22426. if test x$kmsdrm_shared = xyes; then
  22427. echo "-- dynamic libdrm -> $drm_lib"
  22428. echo "-- dynamic libgbm -> $gbm_lib"
  22429. fi
  22430. have_video=yes
  22431. fi
  22432. fi
  22433. }
  22434. CheckDummyVideo()
  22435. {
  22436. # Check whether --enable-video-dummy was given.
  22437. if test ${enable_video_dummy+y}
  22438. then :
  22439. enableval=$enable_video_dummy;
  22440. else $as_nop
  22441. enable_video_dummy=yes
  22442. fi
  22443. if test x$enable_video_dummy = xyes; then
  22444. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22445. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22446. have_video=yes
  22447. SUMMARY_video="${SUMMARY_video} dummy"
  22448. fi
  22449. }
  22450. CheckOffscreenVideo()
  22451. {
  22452. # Check whether --enable-video-offscreen was given.
  22453. if test ${enable_video_offscreen+y}
  22454. then :
  22455. enableval=$enable_video_offscreen;
  22456. else $as_nop
  22457. enable_video_offscreen=yes
  22458. fi
  22459. if test x$enable_video_offscreen = xyes; then
  22460. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22461. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22462. have_video=yes
  22463. SUMMARY_video="${SUMMARY_video} offscreen"
  22464. fi
  22465. }
  22466. CheckQNXVideo()
  22467. {
  22468. if test x$enable_video = xyes; then
  22469. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22470. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22471. have_video=yes
  22472. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22473. SUMMARY_video="${SUMMARY_video} qnx"
  22474. fi
  22475. }
  22476. CheckQNXAudio()
  22477. {
  22478. if test x$enable_audio = xyes; then
  22479. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22480. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22481. have_audio=yes
  22482. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22483. SUMMARY_audio="${SUMMARY_audio} qsa"
  22484. fi
  22485. }
  22486. # Check whether --enable-video-opengl was given.
  22487. if test ${enable_video_opengl+y}
  22488. then :
  22489. enableval=$enable_video_opengl;
  22490. else $as_nop
  22491. enable_video_opengl=yes
  22492. fi
  22493. CheckGLX()
  22494. {
  22495. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22497. printf %s "checking for GLX support... " >&6; }
  22498. video_opengl_glx=no
  22499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22500. /* end confdefs.h. */
  22501. #include <GL/glx.h>
  22502. int
  22503. main (void)
  22504. {
  22505. ;
  22506. return 0;
  22507. }
  22508. _ACEOF
  22509. if ac_fn_c_try_compile "$LINENO"
  22510. then :
  22511. video_opengl_glx=yes
  22512. fi
  22513. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22515. printf "%s\n" "$video_opengl_glx" >&6; }
  22516. if test x$video_opengl_glx = xyes; then
  22517. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22518. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22519. fi
  22520. fi
  22521. }
  22522. # Check whether --enable-video-opengles was given.
  22523. if test ${enable_video_opengles+y}
  22524. then :
  22525. enableval=$enable_video_opengles;
  22526. else $as_nop
  22527. enable_video_opengles=yes
  22528. fi
  22529. # Check whether --enable-video-opengles1 was given.
  22530. if test ${enable_video_opengles1+y}
  22531. then :
  22532. enableval=$enable_video_opengles1;
  22533. else $as_nop
  22534. enable_video_opengles1=yes
  22535. fi
  22536. # Check whether --enable-video-opengles2 was given.
  22537. if test ${enable_video_opengles2+y}
  22538. then :
  22539. enableval=$enable_video_opengles2;
  22540. else $as_nop
  22541. enable_video_opengles2=yes
  22542. fi
  22543. CheckEGL()
  22544. {
  22545. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22547. printf %s "checking for EGL support... " >&6; }
  22548. video_opengl_egl=no
  22549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22550. /* end confdefs.h. */
  22551. #define LINUX
  22552. #define EGL_API_FB
  22553. #define MESA_EGL_NO_X11_HEADERS
  22554. #define EGL_NO_X11
  22555. #include <EGL/egl.h>
  22556. #include <EGL/eglext.h>
  22557. int
  22558. main (void)
  22559. {
  22560. ;
  22561. return 0;
  22562. }
  22563. _ACEOF
  22564. if ac_fn_c_try_compile "$LINENO"
  22565. then :
  22566. video_opengl_egl=yes
  22567. fi
  22568. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22570. printf "%s\n" "$video_opengl_egl" >&6; }
  22571. if test x$video_opengl_egl = xyes; then
  22572. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22573. fi
  22574. fi
  22575. }
  22576. CheckOpenGL()
  22577. {
  22578. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22580. printf %s "checking for OpenGL headers... " >&6; }
  22581. video_opengl=no
  22582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22583. /* end confdefs.h. */
  22584. #include <GL/gl.h>
  22585. #include <GL/glext.h>
  22586. int
  22587. main (void)
  22588. {
  22589. ;
  22590. return 0;
  22591. }
  22592. _ACEOF
  22593. if ac_fn_c_try_compile "$LINENO"
  22594. then :
  22595. video_opengl=yes
  22596. fi
  22597. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22599. printf "%s\n" "$video_opengl" >&6; }
  22600. if test x$video_opengl = xyes; then
  22601. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22602. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22603. SUMMARY_video="${SUMMARY_video} opengl"
  22604. fi
  22605. fi
  22606. }
  22607. CheckOpenGLES()
  22608. {
  22609. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22610. if test x$enable_video_opengles1 = xyes; then
  22611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22612. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22613. video_opengles_v1=no
  22614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22615. /* end confdefs.h. */
  22616. #include <GLES/gl.h>
  22617. #include <GLES/glext.h>
  22618. int
  22619. main (void)
  22620. {
  22621. ;
  22622. return 0;
  22623. }
  22624. _ACEOF
  22625. if ac_fn_c_try_compile "$LINENO"
  22626. then :
  22627. video_opengles_v1=yes
  22628. fi
  22629. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22631. printf "%s\n" "$video_opengles_v1" >&6; }
  22632. if test x$video_opengles_v1 = xyes; then
  22633. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22634. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22635. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22636. fi
  22637. fi
  22638. if test x$enable_video_opengles2 = xyes; then
  22639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22640. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22641. video_opengles_v2=no
  22642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22643. /* end confdefs.h. */
  22644. #include <GLES2/gl2.h>
  22645. #include <GLES2/gl2ext.h>
  22646. int
  22647. main (void)
  22648. {
  22649. ;
  22650. return 0;
  22651. }
  22652. _ACEOF
  22653. if ac_fn_c_try_compile "$LINENO"
  22654. then :
  22655. video_opengles_v2=yes
  22656. fi
  22657. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22659. printf "%s\n" "$video_opengles_v2" >&6; }
  22660. if test x$video_opengles_v2 = xyes; then
  22661. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22662. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22663. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22664. fi
  22665. fi
  22666. fi
  22667. }
  22668. CheckWINDOWSGL()
  22669. {
  22670. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22671. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22672. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22673. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22674. SUMMARY_video="${SUMMARY_video} opengl"
  22675. fi
  22676. }
  22677. CheckWINDOWSGLES()
  22678. {
  22679. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22681. printf %s "checking for EGL support... " >&6; }
  22682. video_opengl_egl=no
  22683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22684. /* end confdefs.h. */
  22685. #include <EGL/egl.h>
  22686. int
  22687. main (void)
  22688. {
  22689. ;
  22690. return 0;
  22691. }
  22692. _ACEOF
  22693. if ac_fn_c_try_compile "$LINENO"
  22694. then :
  22695. video_opengl_egl=yes
  22696. fi
  22697. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22699. printf "%s\n" "$video_opengl_egl" >&6; }
  22700. if test x$video_opengl_egl = xyes; then
  22701. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22702. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22703. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22704. fi
  22705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22706. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22707. video_opengles_v2=no
  22708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22709. /* end confdefs.h. */
  22710. #include <GLES2/gl2.h>
  22711. #include <GLES2/gl2ext.h>
  22712. int
  22713. main (void)
  22714. {
  22715. ;
  22716. return 0;
  22717. }
  22718. _ACEOF
  22719. if ac_fn_c_try_compile "$LINENO"
  22720. then :
  22721. video_opengles_v2=yes
  22722. fi
  22723. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22725. printf "%s\n" "$video_opengles_v2" >&6; }
  22726. if test x$video_opengles_v2 = xyes; then
  22727. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22728. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22729. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22730. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22731. fi
  22732. fi
  22733. }
  22734. CheckHaikuGL()
  22735. {
  22736. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22737. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22738. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22739. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22740. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22741. SUMMARY_video="${SUMMARY_video} opengl"
  22742. fi
  22743. }
  22744. CheckMacGL()
  22745. {
  22746. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22747. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22748. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22749. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22750. SUMMARY_video="${SUMMARY_video} opengl"
  22751. fi
  22752. }
  22753. CheckMacGLES()
  22754. {
  22755. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22756. video_opengl_egl=yes
  22757. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22758. video_opengles_v2=yes
  22759. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22760. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22761. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22762. fi
  22763. }
  22764. CheckEmscriptenGLES()
  22765. {
  22766. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22768. printf %s "checking for EGL support... " >&6; }
  22769. video_opengl_egl=no
  22770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22771. /* end confdefs.h. */
  22772. #include <EGL/egl.h>
  22773. int
  22774. main (void)
  22775. {
  22776. ;
  22777. return 0;
  22778. }
  22779. _ACEOF
  22780. if ac_fn_c_try_compile "$LINENO"
  22781. then :
  22782. video_opengl_egl=yes
  22783. fi
  22784. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22786. printf "%s\n" "$video_opengl_egl" >&6; }
  22787. if test x$video_opengl_egl = xyes; then
  22788. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22789. fi
  22790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22791. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22792. video_opengles_v2=no
  22793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22794. /* end confdefs.h. */
  22795. #include <GLES2/gl2.h>
  22796. #include <GLES2/gl2ext.h>
  22797. int
  22798. main (void)
  22799. {
  22800. ;
  22801. return 0;
  22802. }
  22803. _ACEOF
  22804. if ac_fn_c_try_compile "$LINENO"
  22805. then :
  22806. video_opengles_v2=yes
  22807. fi
  22808. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22810. printf "%s\n" "$video_opengles_v2" >&6; }
  22811. if test x$video_opengles_v2 = xyes; then
  22812. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22813. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22814. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22815. fi
  22816. fi
  22817. }
  22818. # Check whether --enable-video-vulkan was given.
  22819. if test ${enable_video_vulkan+y}
  22820. then :
  22821. enableval=$enable_video_vulkan;
  22822. else $as_nop
  22823. enable_video_vulkan=yes
  22824. fi
  22825. CheckVulkan()
  22826. {
  22827. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22828. case "$host" in
  22829. *-*-android*)
  22830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22831. /* end confdefs.h. */
  22832. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22833. #error Vulkan doesn't work on this configuration
  22834. #endif
  22835. int
  22836. main (void)
  22837. {
  22838. ;
  22839. return 0;
  22840. }
  22841. _ACEOF
  22842. if ac_fn_c_try_compile "$LINENO"
  22843. then :
  22844. else $as_nop
  22845. enable_video_vulkan=no
  22846. fi
  22847. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22848. ;;
  22849. *-*-darwin*)
  22850. save_CFLAGS="$CFLAGS"
  22851. CFLAGS="$CFLAGS -x objective-c"
  22852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22853. /* end confdefs.h. */
  22854. #include <Cocoa/Cocoa.h>
  22855. #include <Metal/Metal.h>
  22856. #include <QuartzCore/CAMetalLayer.h>
  22857. #if TARGET_CPU_X86
  22858. #error Vulkan doesn't work on this configuration
  22859. #endif
  22860. int
  22861. main (void)
  22862. {
  22863. ;
  22864. return 0;
  22865. }
  22866. _ACEOF
  22867. if ac_fn_c_try_compile "$LINENO"
  22868. then :
  22869. else $as_nop
  22870. enable_video_vulkan=no
  22871. fi
  22872. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22873. CFLAGS="$save_CFLAGS"
  22874. ;;
  22875. *)
  22876. ;;
  22877. esac
  22878. if test x$enable_video_vulkan = xno; then
  22879. # For reasons I am totally unable to see, I get an undefined macro error if
  22880. # I put this in the AC_TRY_COMPILE.
  22881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22882. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22883. fi
  22884. fi
  22885. if test x$have_loadso != xyes; then
  22886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22887. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22888. enable_video_vulkan=no
  22889. fi
  22890. if test x$enable_video_vulkan = xyes; then
  22891. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22892. SUMMARY_video="${SUMMARY_video} vulkan"
  22893. fi
  22894. }
  22895. CheckInputEvents()
  22896. {
  22897. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  22898. if test "x$ac_cv_header_linux_input_h" = xyes
  22899. then :
  22900. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  22901. fi
  22902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22903. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22904. use_input_events=no
  22905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22906. /* end confdefs.h. */
  22907. #include <linux/input.h>
  22908. int
  22909. main (void)
  22910. {
  22911. #ifndef EVIOCGNAME
  22912. #error EVIOCGNAME() ioctl not available
  22913. #endif
  22914. ;
  22915. return 0;
  22916. }
  22917. _ACEOF
  22918. if ac_fn_c_try_compile "$LINENO"
  22919. then :
  22920. use_input_events=yes
  22921. fi
  22922. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22924. printf "%s\n" "$use_input_events" >&6; }
  22925. if test x$use_input_events = xyes; then
  22926. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22927. SUMMARY_input="${SUMMARY_input} linuxev"
  22928. fi
  22929. }
  22930. CheckInputKD()
  22931. {
  22932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22933. printf %s "checking for Linux kd.h... " >&6; }
  22934. use_input_kd=no
  22935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22936. /* end confdefs.h. */
  22937. #include <linux/kd.h>
  22938. #include <linux/keyboard.h>
  22939. #include <sys/ioctl.h>
  22940. int
  22941. main (void)
  22942. {
  22943. struct kbentry kbe;
  22944. kbe.kb_table = KG_CTRL;
  22945. ioctl(0, KDGKBENT, &kbe);
  22946. ;
  22947. return 0;
  22948. }
  22949. _ACEOF
  22950. if ac_fn_c_try_compile "$LINENO"
  22951. then :
  22952. use_input_kd=yes
  22953. fi
  22954. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22956. printf "%s\n" "$use_input_kd" >&6; }
  22957. if test x$use_input_kd = xyes; then
  22958. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22959. SUMMARY_input="${SUMMARY_input} linuxkd"
  22960. fi
  22961. }
  22962. CheckInputKBIO()
  22963. {
  22964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22965. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22966. use_input_kbio=no
  22967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22968. /* end confdefs.h. */
  22969. #include <sys/kbio.h>
  22970. #include <sys/ioctl.h>
  22971. int
  22972. main (void)
  22973. {
  22974. accentmap_t accTable;
  22975. ioctl(0, KDENABIO, 1);
  22976. ;
  22977. return 0;
  22978. }
  22979. _ACEOF
  22980. if ac_fn_c_try_compile "$LINENO"
  22981. then :
  22982. use_input_kbio=yes
  22983. fi
  22984. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22986. printf "%s\n" "$use_input_kbio" >&6; }
  22987. if test x$use_input_kbio = xyes; then
  22988. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22989. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22990. fi
  22991. }
  22992. CheckInputWSCONS()
  22993. {
  22994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22995. printf %s "checking for OpenBSD wscons... " >&6; }
  22996. use_input_wscons=no
  22997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22998. /* end confdefs.h. */
  22999. #include <sys/time.h>
  23000. #include <dev/wscons/wsconsio.h>
  23001. #include <dev/wscons/wsksymdef.h>
  23002. #include <dev/wscons/wsksymvar.h>
  23003. #include <sys/ioctl.h>
  23004. int
  23005. main (void)
  23006. {
  23007. struct wskbd_map_data data;
  23008. ioctl(0, WSKBDIO_GETMAP, &data);
  23009. ;
  23010. return 0;
  23011. }
  23012. _ACEOF
  23013. if ac_fn_c_try_compile "$LINENO"
  23014. then :
  23015. use_input_wscons=yes
  23016. fi
  23017. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  23019. printf "%s\n" "$use_input_wscons" >&6; }
  23020. if test x$use_input_wscons = xyes; then
  23021. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  23022. SUMMARY_input="${SUMMARY_input} wscons"
  23023. fi
  23024. }
  23025. CheckLibUDev()
  23026. {
  23027. # Check whether --enable-libudev was given.
  23028. if test ${enable_libudev+y}
  23029. then :
  23030. enableval=$enable_libudev;
  23031. else $as_nop
  23032. enable_libudev=yes
  23033. fi
  23034. if test x$enable_libudev = xyes; then
  23035. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  23036. if test "x$ac_cv_header_libudev_h" = xyes
  23037. then :
  23038. have_libudev_h_hdr=yes
  23039. else $as_nop
  23040. have_libudev_h_hdr=no
  23041. fi
  23042. if test x$have_libudev_h_hdr = xyes; then
  23043. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  23044. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  23045. if test x$udev_lib != x; then
  23046. echo "-- dynamic udev -> $udev_lib"
  23047. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  23048. fi
  23049. fi
  23050. fi
  23051. }
  23052. CheckDBus()
  23053. {
  23054. # Check whether --enable-dbus was given.
  23055. if test ${enable_dbus+y}
  23056. then :
  23057. enableval=$enable_dbus;
  23058. else $as_nop
  23059. enable_dbus=yes
  23060. fi
  23061. if test x$enable_dbus = xyes; then
  23062. pkg_failed=no
  23063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  23064. printf %s "checking for dbus-1... " >&6; }
  23065. if test -n "$DBUS_CFLAGS"; then
  23066. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  23067. elif test -n "$PKG_CONFIG"; then
  23068. if test -n "$PKG_CONFIG" && \
  23069. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23070. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23071. ac_status=$?
  23072. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23073. test $ac_status = 0; }; then
  23074. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  23075. test "x$?" != "x0" && pkg_failed=yes
  23076. else
  23077. pkg_failed=yes
  23078. fi
  23079. else
  23080. pkg_failed=untried
  23081. fi
  23082. if test -n "$DBUS_LIBS"; then
  23083. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  23084. elif test -n "$PKG_CONFIG"; then
  23085. if test -n "$PKG_CONFIG" && \
  23086. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23087. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23088. ac_status=$?
  23089. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23090. test $ac_status = 0; }; then
  23091. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  23092. test "x$?" != "x0" && pkg_failed=yes
  23093. else
  23094. pkg_failed=yes
  23095. fi
  23096. else
  23097. pkg_failed=untried
  23098. fi
  23099. if test $pkg_failed = yes; then
  23100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23101. printf "%s\n" "no" >&6; }
  23102. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23103. _pkg_short_errors_supported=yes
  23104. else
  23105. _pkg_short_errors_supported=no
  23106. fi
  23107. if test $_pkg_short_errors_supported = yes; then
  23108. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  23109. else
  23110. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  23111. fi
  23112. # Put the nasty error message in config.log where it belongs
  23113. echo "$DBUS_PKG_ERRORS" >&5
  23114. have_dbus=no
  23115. elif test $pkg_failed = untried; then
  23116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23117. printf "%s\n" "no" >&6; }
  23118. have_dbus=no
  23119. else
  23120. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  23121. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  23122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23123. printf "%s\n" "yes" >&6; }
  23124. have_dbus=yes
  23125. fi
  23126. save_CPPFLAGS="$CPPFLAGS"
  23127. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  23128. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  23129. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  23130. then :
  23131. have_dbus_dbus_h_hdr=yes
  23132. else $as_nop
  23133. have_dbus_dbus_h_hdr=no
  23134. fi
  23135. CPPFLAGS="$save_CPPFLAGS"
  23136. if test x$have_dbus_dbus_h_hdr = xyes; then
  23137. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  23138. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  23139. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  23140. fi
  23141. fi
  23142. }
  23143. CheckIME()
  23144. {
  23145. # Check whether --enable-ime was given.
  23146. if test ${enable_ime+y}
  23147. then :
  23148. enableval=$enable_ime;
  23149. else $as_nop
  23150. enable_ime=yes
  23151. fi
  23152. if test x$enable_ime = xyes; then
  23153. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  23154. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  23155. fi
  23156. }
  23157. CheckInotify()
  23158. {
  23159. save_LIBS="$LIBS"
  23160. case "$host" in
  23161. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  23162. ;;
  23163. esac
  23164. for ac_header in sys/inotify.h
  23165. do :
  23166. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  23167. if test "x$ac_cv_header_sys_inotify_h" = xyes
  23168. then :
  23169. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  23170. have_inotify_inotify_h_hdr=yes
  23171. fi
  23172. done
  23173. for ac_func in inotify_init
  23174. do :
  23175. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  23176. if test "x$ac_cv_func_inotify_init" = xyes
  23177. then :
  23178. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  23179. have_inotify=yes
  23180. fi
  23181. done
  23182. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  23183. if test "x$ac_cv_func_inotify_init1" = xyes
  23184. then :
  23185. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  23186. fi
  23187. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  23188. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  23189. case "$host" in
  23190. *-*-freebsd*|*-*-dragonfly*)
  23191. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  23192. ;;
  23193. esac
  23194. fi
  23195. LIBS="$save_LIBS"
  23196. }
  23197. CheckIBus()
  23198. {
  23199. # Check whether --enable-ibus was given.
  23200. if test ${enable_ibus+y}
  23201. then :
  23202. enableval=$enable_ibus;
  23203. else $as_nop
  23204. enable_ibus=yes
  23205. fi
  23206. if test x$enable_ibus = xyes; then
  23207. pkg_failed=no
  23208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  23209. printf %s "checking for ibus-1.0... " >&6; }
  23210. if test -n "$IBUS_CFLAGS"; then
  23211. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  23212. elif test -n "$PKG_CONFIG"; then
  23213. if test -n "$PKG_CONFIG" && \
  23214. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23215. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23216. ac_status=$?
  23217. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23218. test $ac_status = 0; }; then
  23219. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  23220. test "x$?" != "x0" && pkg_failed=yes
  23221. else
  23222. pkg_failed=yes
  23223. fi
  23224. else
  23225. pkg_failed=untried
  23226. fi
  23227. if test -n "$IBUS_LIBS"; then
  23228. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  23229. elif test -n "$PKG_CONFIG"; then
  23230. if test -n "$PKG_CONFIG" && \
  23231. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23232. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23233. ac_status=$?
  23234. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23235. test $ac_status = 0; }; then
  23236. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  23237. test "x$?" != "x0" && pkg_failed=yes
  23238. else
  23239. pkg_failed=yes
  23240. fi
  23241. else
  23242. pkg_failed=untried
  23243. fi
  23244. if test $pkg_failed = yes; then
  23245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23246. printf "%s\n" "no" >&6; }
  23247. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23248. _pkg_short_errors_supported=yes
  23249. else
  23250. _pkg_short_errors_supported=no
  23251. fi
  23252. if test $_pkg_short_errors_supported = yes; then
  23253. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23254. else
  23255. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23256. fi
  23257. # Put the nasty error message in config.log where it belongs
  23258. echo "$IBUS_PKG_ERRORS" >&5
  23259. have_ibus=no
  23260. elif test $pkg_failed = untried; then
  23261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23262. printf "%s\n" "no" >&6; }
  23263. have_ibus=no
  23264. else
  23265. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  23266. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  23267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23268. printf "%s\n" "yes" >&6; }
  23269. have_ibus=yes
  23270. fi
  23271. save_CPPFLAGS="$CPPFLAGS"
  23272. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  23273. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  23274. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  23275. then :
  23276. have_ibus_ibus_h_hdr=yes
  23277. else $as_nop
  23278. have_ibus_ibus_h_hdr=no
  23279. fi
  23280. CPPFLAGS="$save_CPPFLAGS"
  23281. if test x$have_ibus_ibus_h_hdr = xyes; then
  23282. if test x$enable_ime != xyes; then
  23283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  23284. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  23285. have_ibus_ibus_h_hdr=no
  23286. elif test x$enable_dbus != xyes; then
  23287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  23288. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  23289. have_ibus_ibus_h_hdr=no
  23290. elif test x$have_inotify_inotify_h_hdr != xyes; then
  23291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  23292. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  23293. have_ibus_ibus_h_hdr=no
  23294. else
  23295. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23296. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23297. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23298. fi
  23299. fi
  23300. fi
  23301. }
  23302. CheckFcitx()
  23303. {
  23304. # Check whether --enable-fcitx was given.
  23305. if test ${enable_fcitx+y}
  23306. then :
  23307. enableval=$enable_fcitx;
  23308. else $as_nop
  23309. enable_fcitx=yes
  23310. fi
  23311. if test x$enable_fcitx = xyes; then
  23312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23313. printf %s "checking for fcitx support... " >&6; }
  23314. have_fcitx=no
  23315. if test x$enable_ime != xyes; then
  23316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23317. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23318. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23320. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23321. else
  23322. have_fcitx=yes
  23323. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23324. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23325. fi
  23326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23327. printf "%s\n" "$have_fcitx" >&6; }
  23328. fi
  23329. }
  23330. CheckJoystickMFI()
  23331. {
  23332. # Check whether --enable-joystick-mfi was given.
  23333. if test ${enable_joystick_mfi+y}
  23334. then :
  23335. enableval=$enable_joystick_mfi;
  23336. else $as_nop
  23337. enable_joystick_mfi=yes
  23338. fi
  23339. if test x$enable_joystick_mfi = xyes; then
  23340. save_CFLAGS="$CFLAGS"
  23341. save_LDFLAGS="$LDFLAGS"
  23342. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23343. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23345. printf %s "checking for GameController framework... " >&6; }
  23346. enable_joystick_mfi=no
  23347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23348. /* end confdefs.h. */
  23349. #include <AvailabilityMacros.h>
  23350. #include <TargetConditionals.h>
  23351. #import <GameController/GameController.h>
  23352. int
  23353. main (void)
  23354. {
  23355. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23356. #error GameController framework doesn't work on this configuration
  23357. #endif
  23358. #if TARGET_CPU_X86
  23359. #error GameController framework doesn't work on this configuration
  23360. #endif
  23361. ;
  23362. return 0;
  23363. }
  23364. _ACEOF
  23365. if ac_fn_c_try_link "$LINENO"
  23366. then :
  23367. enable_joystick_mfi=yes
  23368. fi
  23369. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23370. conftest$ac_exeext conftest.$ac_ext
  23371. CFLAGS="$save_CFLAGS"
  23372. LDFLAGS="$save_LDFLAGS"
  23373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23374. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23375. if test x$enable_joystick_mfi = xyes; then
  23376. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23377. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23378. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23379. fi
  23380. fi
  23381. }
  23382. CheckPTHREAD()
  23383. {
  23384. case "$host" in
  23385. *-*-emscripten*)
  23386. enable_pthreads_default=no
  23387. ;;
  23388. *)
  23389. enable_pthreads_default=yes
  23390. ;;
  23391. esac
  23392. # Check whether --enable-pthreads was given.
  23393. if test ${enable_pthreads+y}
  23394. then :
  23395. enableval=$enable_pthreads;
  23396. else $as_nop
  23397. enable_pthreads=maybe
  23398. fi
  23399. # Check whether --enable-pthread-sem was given.
  23400. if test ${enable_pthread_sem+y}
  23401. then :
  23402. enableval=$enable_pthread_sem;
  23403. else $as_nop
  23404. enable_pthread_sem=maybe
  23405. fi
  23406. if test x$enable_pthreads = xmaybe; then
  23407. enable_pthreads=$enable_pthreads_default
  23408. fi
  23409. if test x$enable_pthread_sem = xmaybe; then
  23410. enable_pthread_sem=$enable_pthreads
  23411. fi
  23412. case "$host" in
  23413. *-*-android*)
  23414. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23415. pthread_lib=""
  23416. ;;
  23417. *-*-linux*|*-*-uclinux*)
  23418. pthread_cflags="-D_REENTRANT"
  23419. pthread_lib="-lpthread"
  23420. ;;
  23421. *-*-bsdi*)
  23422. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23423. pthread_lib=""
  23424. ;;
  23425. *-*-darwin*)
  23426. pthread_cflags="-D_THREAD_SAFE"
  23427. # causes Carbon.p complaints?
  23428. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23429. ;;
  23430. *-*-freebsd*|*-*-dragonfly*)
  23431. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23432. pthread_lib="-pthread"
  23433. ;;
  23434. *-*-netbsd*)
  23435. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23436. pthread_lib="-lpthread"
  23437. ;;
  23438. *-*-openbsd*)
  23439. pthread_cflags="-D_REENTRANT"
  23440. pthread_lib="-lpthread"
  23441. ;;
  23442. *-*-solaris2.9)
  23443. # From Solaris 9+, posix4's preferred name is rt.
  23444. pthread_cflags="-D_REENTRANT"
  23445. pthread_lib="-lpthread -lrt"
  23446. ;;
  23447. *-*-solaris2.10)
  23448. # Solaris 10+ merged pthread into libc.
  23449. pthread_cflags="-D_REENTRANT"
  23450. pthread_lib="-lrt"
  23451. ;;
  23452. *-*-solaris*)
  23453. # Solaris 11+ merged rt into libc.
  23454. pthread_cflags="-D_REENTRANT"
  23455. pthread_lib=""
  23456. ;;
  23457. *-*-sysv5*)
  23458. pthread_cflags="-D_REENTRANT -Kthread"
  23459. pthread_lib=""
  23460. ;;
  23461. *-*-aix*)
  23462. pthread_cflags="-D_REENTRANT -mthreads"
  23463. pthread_lib="-lpthread"
  23464. ;;
  23465. *-*-hpux11*)
  23466. pthread_cflags="-D_REENTRANT"
  23467. pthread_lib="-L/usr/lib -lpthread"
  23468. ;;
  23469. *-*-haiku*)
  23470. pthread_cflags="-D_REENTRANT"
  23471. pthread_lib=""
  23472. ;;
  23473. *-*-nto*)
  23474. pthread_cflags="-D_REENTRANT"
  23475. pthread_lib=""
  23476. ;;
  23477. *-*-emscripten*)
  23478. pthread_cflags="-D_REENTRANT -pthread"
  23479. pthread_lib="-pthread"
  23480. ;;
  23481. *)
  23482. pthread_cflags="-D_REENTRANT"
  23483. pthread_lib="-lpthread"
  23484. ;;
  23485. esac
  23486. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23487. # Save the original compiler flags and libraries
  23488. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23489. # Add the pthread compiler flags and libraries
  23490. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23491. # Check to see if we have pthread support on this system
  23492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23493. printf %s "checking for pthreads... " >&6; }
  23494. use_pthreads=no
  23495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23496. /* end confdefs.h. */
  23497. #include <pthread.h>
  23498. int
  23499. main (void)
  23500. {
  23501. pthread_attr_t type;
  23502. pthread_attr_init(&type);
  23503. ;
  23504. return 0;
  23505. }
  23506. _ACEOF
  23507. if ac_fn_c_try_link "$LINENO"
  23508. then :
  23509. use_pthreads=yes
  23510. fi
  23511. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23512. conftest$ac_exeext conftest.$ac_ext
  23513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23514. printf "%s\n" "$use_pthreads" >&6; }
  23515. # Restore the compiler flags and libraries
  23516. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23517. # Do futher testing if we have pthread support...
  23518. if test x$use_pthreads = xyes; then
  23519. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23520. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23521. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23522. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23523. # Save the original compiler flags and libraries
  23524. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23525. # Add the pthread compiler flags and libraries
  23526. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23527. # Check to see if recursive mutexes are available
  23528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23529. printf %s "checking for recursive mutexes... " >&6; }
  23530. has_recursive_mutexes=no
  23531. if test x$has_recursive_mutexes = xno; then
  23532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23533. /* end confdefs.h. */
  23534. #define _GNU_SOURCE 1
  23535. #include <pthread.h>
  23536. int
  23537. main (void)
  23538. {
  23539. pthread_mutexattr_t attr;
  23540. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23541. ;
  23542. return 0;
  23543. }
  23544. _ACEOF
  23545. if ac_fn_c_try_link "$LINENO"
  23546. then :
  23547. has_recursive_mutexes=yes
  23548. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23549. fi
  23550. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23551. conftest$ac_exeext conftest.$ac_ext
  23552. fi
  23553. if test x$has_recursive_mutexes = xno; then
  23554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23555. /* end confdefs.h. */
  23556. #define _GNU_SOURCE 1
  23557. #include <pthread.h>
  23558. int
  23559. main (void)
  23560. {
  23561. pthread_mutexattr_t attr;
  23562. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23563. ;
  23564. return 0;
  23565. }
  23566. _ACEOF
  23567. if ac_fn_c_try_link "$LINENO"
  23568. then :
  23569. has_recursive_mutexes=yes
  23570. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23571. fi
  23572. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23573. conftest$ac_exeext conftest.$ac_ext
  23574. fi
  23575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23576. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23577. # Check to see if pthread semaphore support is missing
  23578. if test x$enable_pthread_sem = xyes; then
  23579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23580. printf %s "checking for pthread semaphores... " >&6; }
  23581. have_pthread_sem=no
  23582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23583. /* end confdefs.h. */
  23584. #include <pthread.h>
  23585. #include <semaphore.h>
  23586. int
  23587. main (void)
  23588. {
  23589. ;
  23590. return 0;
  23591. }
  23592. _ACEOF
  23593. if ac_fn_c_try_compile "$LINENO"
  23594. then :
  23595. have_pthread_sem=yes
  23596. fi
  23597. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23599. printf "%s\n" "$have_pthread_sem" >&6; }
  23600. fi
  23601. if test x$have_pthread_sem = xyes; then
  23602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23603. printf %s "checking for sem_timedwait... " >&6; }
  23604. have_sem_timedwait=no
  23605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23606. /* end confdefs.h. */
  23607. #include <pthread.h>
  23608. #include <semaphore.h>
  23609. int
  23610. main (void)
  23611. {
  23612. sem_timedwait(NULL, NULL);
  23613. ;
  23614. return 0;
  23615. }
  23616. _ACEOF
  23617. if ac_fn_c_try_link "$LINENO"
  23618. then :
  23619. have_sem_timedwait=yes
  23620. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23621. fi
  23622. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23623. conftest$ac_exeext conftest.$ac_ext
  23624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23625. printf "%s\n" "$have_sem_timedwait" >&6; }
  23626. fi
  23627. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23628. "
  23629. if test "x$ac_cv_header_pthread_np_h" = xyes
  23630. then :
  23631. have_pthread_np_h=yes
  23632. else $as_nop
  23633. have_pthread_np_h=no
  23634. fi
  23635. if test x$have_pthread_np_h = xyes; then
  23636. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23637. fi
  23638. # Check to see if pthread naming is available
  23639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23640. printf %s "checking for pthread_setname_np... " >&6; }
  23641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23642. /* end confdefs.h. */
  23643. /* Override any GCC internal prototype to avoid an error.
  23644. Use char because int might match the return type of a GCC
  23645. builtin and then its argument prototype would still apply. */
  23646. char pthread_setname_np ();
  23647. int
  23648. main (void)
  23649. {
  23650. return pthread_setname_np ();
  23651. ;
  23652. return 0;
  23653. }
  23654. _ACEOF
  23655. if ac_fn_c_try_link "$LINENO"
  23656. then :
  23657. has_pthread_setname_np=yes
  23658. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23659. else $as_nop
  23660. has_pthread_setname_np=no
  23661. fi
  23662. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23663. conftest$ac_exeext conftest.$ac_ext
  23664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23665. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23667. printf %s "checking for pthread_set_name_np... " >&6; }
  23668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23669. /* end confdefs.h. */
  23670. /* Override any GCC internal prototype to avoid an error.
  23671. Use char because int might match the return type of a GCC
  23672. builtin and then its argument prototype would still apply. */
  23673. char pthread_set_name_np ();
  23674. int
  23675. main (void)
  23676. {
  23677. return pthread_set_name_np ();
  23678. ;
  23679. return 0;
  23680. }
  23681. _ACEOF
  23682. if ac_fn_c_try_link "$LINENO"
  23683. then :
  23684. has_pthread_set_name_np=yes
  23685. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23686. else $as_nop
  23687. has_pthread_set_name_np=no
  23688. fi
  23689. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23690. conftest$ac_exeext conftest.$ac_ext
  23691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23692. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23693. # Restore the compiler flags and libraries
  23694. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23695. # Basic thread creation functions
  23696. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23697. # Semaphores
  23698. # We can fake these with mutexes and condition variables if necessary
  23699. if test x$have_pthread_sem = xyes; then
  23700. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23701. else
  23702. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23703. fi
  23704. # Mutexes
  23705. # We can fake these with semaphores if necessary
  23706. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23707. # Condition variables
  23708. # We can fake these with semaphores and mutexes if necessary
  23709. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23710. # Thread local storage
  23711. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23712. have_threads=yes
  23713. fi
  23714. fi
  23715. }
  23716. CheckWINDOWS()
  23717. {
  23718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23719. printf %s "checking Windows compiler... " >&6; }
  23720. have_win32_gcc=no
  23721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23722. /* end confdefs.h. */
  23723. #include <windows.h>
  23724. int
  23725. main (void)
  23726. {
  23727. ;
  23728. return 0;
  23729. }
  23730. _ACEOF
  23731. if ac_fn_c_try_compile "$LINENO"
  23732. then :
  23733. have_win32_gcc=yes
  23734. fi
  23735. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23737. printf "%s\n" "$have_win32_gcc" >&6; }
  23738. if test x$have_win32_gcc != xyes; then
  23739. as_fn_error $? "
  23740. *** Your compiler ($CC) does not produce Windows executables!
  23741. " "$LINENO" 5
  23742. fi
  23743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23744. printf %s "checking Windows CE... " >&6; }
  23745. have_wince=no
  23746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23747. /* end confdefs.h. */
  23748. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23749. #error This is not Windows CE
  23750. #endif
  23751. int
  23752. main (void)
  23753. {
  23754. ;
  23755. return 0;
  23756. }
  23757. _ACEOF
  23758. if ac_fn_c_try_compile "$LINENO"
  23759. then :
  23760. have_wince=yes
  23761. as_fn_error $? "
  23762. *** Sorry, Windows CE is no longer supported.
  23763. " "$LINENO" 5
  23764. fi
  23765. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23767. printf "%s\n" "$have_wince" >&6; }
  23768. # headers needed elsewhere
  23769. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23770. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23771. then :
  23772. have_tpcshrd_h=yes
  23773. fi
  23774. if test x$have_tpcshrd_h = xyes; then
  23775. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23776. fi
  23777. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23778. if test "x$ac_cv_header_roapi_h" = xyes
  23779. then :
  23780. have_roapi_h=yes
  23781. fi
  23782. if test x$have_roapi_h = xyes; then
  23783. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23784. fi
  23785. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23786. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23787. then :
  23788. have_shellscalingapi_h=yes
  23789. fi
  23790. if test x$shellscalingapi_h = xyes; then
  23791. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23792. fi
  23793. }
  23794. CheckOS2()
  23795. {
  23796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23797. printf %s "checking OS/2 compiler... " >&6; }
  23798. have_os2_gcc=no
  23799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23800. /* end confdefs.h. */
  23801. #include <os2.h>
  23802. int
  23803. main (void)
  23804. {
  23805. ;
  23806. return 0;
  23807. }
  23808. _ACEOF
  23809. if ac_fn_c_try_compile "$LINENO"
  23810. then :
  23811. have_os2_gcc=yes
  23812. fi
  23813. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23815. printf "%s\n" "$have_os2_gcc" >&6; }
  23816. if test x$have_os2_gcc != xyes; then
  23817. as_fn_error $? "
  23818. *** Your compiler ($CC) does not produce OS/2 executables!
  23819. " "$LINENO" 5
  23820. fi
  23821. }
  23822. CheckDIRECTX()
  23823. {
  23824. # Check whether --enable-directx was given.
  23825. if test ${enable_directx+y}
  23826. then :
  23827. enableval=$enable_directx;
  23828. else $as_nop
  23829. enable_directx=yes
  23830. fi
  23831. if test x$enable_directx = xyes; then
  23832. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23833. if test "x$ac_cv_header_d3d9_h" = xyes
  23834. then :
  23835. have_d3d=yes
  23836. fi
  23837. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23838. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23839. then :
  23840. have_d3d11=yes
  23841. fi
  23842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compatible d3d12 headers" >&5
  23843. printf %s "checking for compatible d3d12 headers... " >&6; }
  23844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23845. /* end confdefs.h. */
  23846. #include <d3d12.h>
  23847. #include <d3d12sdklayers.h>
  23848. ID3D12Device1 *device;
  23849. int
  23850. main (void)
  23851. {
  23852. ;
  23853. return 0;
  23854. }
  23855. _ACEOF
  23856. if ac_fn_c_try_compile "$LINENO"
  23857. then :
  23858. have_d3d12=yes
  23859. else $as_nop
  23860. have_d3d12=no
  23861. fi
  23862. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23864. printf "%s\n" "$have_d3d12" >&6; }
  23865. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23866. if test "x$ac_cv_header_ddraw_h" = xyes
  23867. then :
  23868. have_ddraw=yes
  23869. fi
  23870. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23871. if test "x$ac_cv_header_dsound_h" = xyes
  23872. then :
  23873. have_dsound=yes
  23874. fi
  23875. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23876. if test "x$ac_cv_header_dinput_h" = xyes
  23877. then :
  23878. have_dinput=yes
  23879. fi
  23880. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23881. if test "x$ac_cv_header_dxgi_h" = xyes
  23882. then :
  23883. have_dxgi=yes
  23884. fi
  23885. if test x$have_ddraw = xyes; then
  23886. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23887. fi
  23888. if test x$have_dinput = xyes; then
  23889. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23890. fi
  23891. if test x$have_dsound = xyes; then
  23892. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23893. fi
  23894. if test x$have_dxgi = xyes; then
  23895. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23896. fi
  23897. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23898. # FIXME: ...so force it off for now.
  23899. case "$host" in
  23900. *-*-cygwin*)
  23901. have_dinput=false
  23902. ;;
  23903. esac
  23904. fi
  23905. # Check whether --enable-xinput was given.
  23906. if test ${enable_xinput+y}
  23907. then :
  23908. enableval=$enable_xinput;
  23909. else $as_nop
  23910. enable_xinput=yes
  23911. fi
  23912. if test x$enable_xinput = xyes; then
  23913. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23914. if test "x$ac_cv_header_xinput_h" = xyes
  23915. then :
  23916. have_xinput=yes
  23917. fi
  23918. if test x$have_xinput = xyes; then
  23919. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23920. fi
  23921. fi
  23922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23923. printf %s "checking for windows.gaming.input.h... " >&6; }
  23924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23925. /* end confdefs.h. */
  23926. #define COBJMACROS
  23927. #include <windows.gaming.input.h>
  23928. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23929. int
  23930. main (void)
  23931. {
  23932. ;
  23933. return 0;
  23934. }
  23935. _ACEOF
  23936. if ac_fn_c_try_compile "$LINENO"
  23937. then :
  23938. have_wgi=yes
  23939. else $as_nop
  23940. have_wgi=no
  23941. fi
  23942. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23944. printf "%s\n" "$have_wgi" >&6; }
  23945. if test x$have_wgi = xyes; then
  23946. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23947. fi
  23948. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23949. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23950. then :
  23951. have_wasapi=yes
  23952. fi
  23953. if test x$have_wasapi = xyes; then
  23954. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23955. fi
  23956. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23957. if test "x$ac_cv_header_audioclient_h" = xyes
  23958. then :
  23959. else $as_nop
  23960. have_wasapi=no
  23961. fi
  23962. if test x$have_wasapi = xyes; then
  23963. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23964. fi
  23965. # Check whether --enable-wasapi was given.
  23966. if test ${enable_wasapi+y}
  23967. then :
  23968. enableval=$enable_wasapi;
  23969. else $as_nop
  23970. enable_wasapi=yes
  23971. fi
  23972. }
  23973. CheckDLOPEN()
  23974. {
  23975. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23976. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23977. if test "x$ac_cv_header_dlfcn_h" = xyes
  23978. then :
  23979. have_dlfcn_h=yes
  23980. else $as_nop
  23981. have_dlfcn_h=no
  23982. fi
  23983. have_dlopen=no
  23984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23985. printf %s "checking for dlopen in -lc... " >&6; }
  23986. if test ${ac_cv_lib_c_dlopen+y}
  23987. then :
  23988. printf %s "(cached) " >&6
  23989. else $as_nop
  23990. ac_check_lib_save_LIBS=$LIBS
  23991. LIBS="-lc $LIBS"
  23992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23993. /* end confdefs.h. */
  23994. /* Override any GCC internal prototype to avoid an error.
  23995. Use char because int might match the return type of a GCC
  23996. builtin and then its argument prototype would still apply. */
  23997. char dlopen ();
  23998. int
  23999. main (void)
  24000. {
  24001. return dlopen ();
  24002. ;
  24003. return 0;
  24004. }
  24005. _ACEOF
  24006. if ac_fn_c_try_link "$LINENO"
  24007. then :
  24008. ac_cv_lib_c_dlopen=yes
  24009. else $as_nop
  24010. ac_cv_lib_c_dlopen=no
  24011. fi
  24012. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24013. conftest$ac_exeext conftest.$ac_ext
  24014. LIBS=$ac_check_lib_save_LIBS
  24015. fi
  24016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  24017. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  24018. if test "x$ac_cv_lib_c_dlopen" = xyes
  24019. then :
  24020. have_dlopen=yes
  24021. else $as_nop
  24022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  24023. printf %s "checking for dlopen in -ldl... " >&6; }
  24024. if test ${ac_cv_lib_dl_dlopen+y}
  24025. then :
  24026. printf %s "(cached) " >&6
  24027. else $as_nop
  24028. ac_check_lib_save_LIBS=$LIBS
  24029. LIBS="-ldl $LIBS"
  24030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24031. /* end confdefs.h. */
  24032. /* Override any GCC internal prototype to avoid an error.
  24033. Use char because int might match the return type of a GCC
  24034. builtin and then its argument prototype would still apply. */
  24035. char dlopen ();
  24036. int
  24037. main (void)
  24038. {
  24039. return dlopen ();
  24040. ;
  24041. return 0;
  24042. }
  24043. _ACEOF
  24044. if ac_fn_c_try_link "$LINENO"
  24045. then :
  24046. ac_cv_lib_dl_dlopen=yes
  24047. else $as_nop
  24048. ac_cv_lib_dl_dlopen=no
  24049. fi
  24050. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24051. conftest$ac_exeext conftest.$ac_ext
  24052. LIBS=$ac_check_lib_save_LIBS
  24053. fi
  24054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  24055. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  24056. if test "x$ac_cv_lib_dl_dlopen" = xyes
  24057. then :
  24058. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  24059. fi
  24060. fi
  24061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  24062. printf %s "checking for dlopen... " >&6; }
  24063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  24064. printf "%s\n" "$have_dlopen" >&6; }
  24065. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  24066. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  24067. if test x$enable_loadso = xyes; then
  24068. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  24069. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  24070. have_loadso=yes
  24071. fi
  24072. fi
  24073. }
  24074. CheckO_CLOEXEC()
  24075. {
  24076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  24077. printf %s "checking for O_CLOEXEC... " >&6; }
  24078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24079. /* end confdefs.h. */
  24080. #include <fcntl.h>
  24081. int flag = O_CLOEXEC;
  24082. int
  24083. main (void)
  24084. {
  24085. ;
  24086. return 0;
  24087. }
  24088. _ACEOF
  24089. if ac_fn_c_try_compile "$LINENO"
  24090. then :
  24091. have_o_cloexec=yes
  24092. else $as_nop
  24093. have_o_cloexec=no
  24094. fi
  24095. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  24097. printf "%s\n" "$have_o_cloexec" >&6; }
  24098. if test $have_o_cloexec = yes; then
  24099. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  24100. fi
  24101. }
  24102. CheckUSBHID()
  24103. {
  24104. case "$host" in
  24105. *-*-*bsd*|*-*-dragonfly*)
  24106. if test x$enable_joystick = xyes; then
  24107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  24108. printf %s "checking for hid_init in -lusbhid... " >&6; }
  24109. if test ${ac_cv_lib_usbhid_hid_init+y}
  24110. then :
  24111. printf %s "(cached) " >&6
  24112. else $as_nop
  24113. ac_check_lib_save_LIBS=$LIBS
  24114. LIBS="-lusbhid $LIBS"
  24115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24116. /* end confdefs.h. */
  24117. /* Override any GCC internal prototype to avoid an error.
  24118. Use char because int might match the return type of a GCC
  24119. builtin and then its argument prototype would still apply. */
  24120. char hid_init ();
  24121. int
  24122. main (void)
  24123. {
  24124. return hid_init ();
  24125. ;
  24126. return 0;
  24127. }
  24128. _ACEOF
  24129. if ac_fn_c_try_link "$LINENO"
  24130. then :
  24131. ac_cv_lib_usbhid_hid_init=yes
  24132. else $as_nop
  24133. ac_cv_lib_usbhid_hid_init=no
  24134. fi
  24135. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24136. conftest$ac_exeext conftest.$ac_ext
  24137. LIBS=$ac_check_lib_save_LIBS
  24138. fi
  24139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  24140. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  24141. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  24142. then :
  24143. have_libusbhid=yes
  24144. fi
  24145. if test x$have_libusbhid = xyes; then
  24146. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  24147. if test "x$ac_cv_header_usbhid_h" = xyes
  24148. then :
  24149. USB_CFLAGS="-DHAVE_USBHID_H"
  24150. fi
  24151. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  24152. if test "x$ac_cv_header_libusbhid_h" = xyes
  24153. then :
  24154. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  24155. fi
  24156. USB_LIBS="$USB_LIBS -lusbhid"
  24157. else
  24158. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  24159. if test "x$ac_cv_header_usb_h" = xyes
  24160. then :
  24161. USB_CFLAGS="-DHAVE_USB_H"
  24162. fi
  24163. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24164. if test "x$ac_cv_header_libusb_h" = xyes
  24165. then :
  24166. USB_CFLAGS="-DHAVE_LIBUSB_H"
  24167. fi
  24168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  24169. printf %s "checking for hid_init in -lusb... " >&6; }
  24170. if test ${ac_cv_lib_usb_hid_init+y}
  24171. then :
  24172. printf %s "(cached) " >&6
  24173. else $as_nop
  24174. ac_check_lib_save_LIBS=$LIBS
  24175. LIBS="-lusb $LIBS"
  24176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24177. /* end confdefs.h. */
  24178. /* Override any GCC internal prototype to avoid an error.
  24179. Use char because int might match the return type of a GCC
  24180. builtin and then its argument prototype would still apply. */
  24181. char hid_init ();
  24182. int
  24183. main (void)
  24184. {
  24185. return hid_init ();
  24186. ;
  24187. return 0;
  24188. }
  24189. _ACEOF
  24190. if ac_fn_c_try_link "$LINENO"
  24191. then :
  24192. ac_cv_lib_usb_hid_init=yes
  24193. else $as_nop
  24194. ac_cv_lib_usb_hid_init=no
  24195. fi
  24196. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24197. conftest$ac_exeext conftest.$ac_ext
  24198. LIBS=$ac_check_lib_save_LIBS
  24199. fi
  24200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  24201. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  24202. if test "x$ac_cv_lib_usb_hid_init" = xyes
  24203. then :
  24204. USB_LIBS="$USB_LIBS -lusb"
  24205. fi
  24206. fi
  24207. save_CFLAGS="$CFLAGS"
  24208. CFLAGS="$CFLAGS $USB_CFLAGS"
  24209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  24210. printf %s "checking for usbhid... " >&6; }
  24211. have_usbhid=no
  24212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24213. /* end confdefs.h. */
  24214. #include <sys/types.h>
  24215. #if defined(HAVE_USB_H)
  24216. #include <usb.h>
  24217. #endif
  24218. #ifdef __DragonFly__
  24219. # include <bus/u4b/usb.h>
  24220. # include <bus/u4b/usbhid.h>
  24221. #else
  24222. # include <dev/usb/usb.h>
  24223. # include <dev/usb/usbhid.h>
  24224. #endif
  24225. #if defined(HAVE_USBHID_H)
  24226. #include <usbhid.h>
  24227. #elif defined(HAVE_LIBUSB_H)
  24228. #include <libusb.h>
  24229. #elif defined(HAVE_LIBUSBHID_H)
  24230. #include <libusbhid.h>
  24231. #endif
  24232. int
  24233. main (void)
  24234. {
  24235. struct report_desc *repdesc;
  24236. struct usb_ctl_report *repbuf;
  24237. hid_kind_t hidkind;
  24238. ;
  24239. return 0;
  24240. }
  24241. _ACEOF
  24242. if ac_fn_c_try_compile "$LINENO"
  24243. then :
  24244. have_usbhid=yes
  24245. fi
  24246. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24248. printf "%s\n" "$have_usbhid" >&6; }
  24249. if test x$have_usbhid = xyes; then
  24250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24251. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24252. have_usbhid_ucr_data=no
  24253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24254. /* end confdefs.h. */
  24255. #include <sys/types.h>
  24256. #if defined(HAVE_USB_H)
  24257. #include <usb.h>
  24258. #endif
  24259. #ifdef __DragonFly__
  24260. # include <bus/u4b/usb.h>
  24261. # include <bus/u4b/usbhid.h>
  24262. #else
  24263. # include <dev/usb/usb.h>
  24264. # include <dev/usb/usbhid.h>
  24265. #endif
  24266. #if defined(HAVE_USBHID_H)
  24267. #include <usbhid.h>
  24268. #elif defined(HAVE_LIBUSB_H)
  24269. #include <libusb.h>
  24270. #elif defined(HAVE_LIBUSBHID_H)
  24271. #include <libusbhid.h>
  24272. #endif
  24273. int
  24274. main (void)
  24275. {
  24276. struct usb_ctl_report buf;
  24277. if (buf.ucr_data) { }
  24278. ;
  24279. return 0;
  24280. }
  24281. _ACEOF
  24282. if ac_fn_c_try_compile "$LINENO"
  24283. then :
  24284. have_usbhid_ucr_data=yes
  24285. fi
  24286. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24287. if test x$have_usbhid_ucr_data = xyes; then
  24288. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24289. fi
  24290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24291. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24293. printf %s "checking for new usbhid API... " >&6; }
  24294. have_usbhid_new=no
  24295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24296. /* end confdefs.h. */
  24297. #include <sys/types.h>
  24298. #if defined(HAVE_USB_H)
  24299. #include <usb.h>
  24300. #endif
  24301. #ifdef __DragonFly__
  24302. #include <bus/u4b/usb.h>
  24303. #include <bus/u4b/usbhid.h>
  24304. #else
  24305. #include <dev/usb/usb.h>
  24306. #include <dev/usb/usbhid.h>
  24307. #endif
  24308. #if defined(HAVE_USBHID_H)
  24309. #include <usbhid.h>
  24310. #elif defined(HAVE_LIBUSB_H)
  24311. #include <libusb.h>
  24312. #elif defined(HAVE_LIBUSBHID_H)
  24313. #include <libusbhid.h>
  24314. #endif
  24315. int
  24316. main (void)
  24317. {
  24318. report_desc_t d;
  24319. hid_start_parse(d, 1, 1);
  24320. ;
  24321. return 0;
  24322. }
  24323. _ACEOF
  24324. if ac_fn_c_try_compile "$LINENO"
  24325. then :
  24326. have_usbhid_new=yes
  24327. fi
  24328. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24329. if test x$have_usbhid_new = xyes; then
  24330. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24331. fi
  24332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24333. printf "%s\n" "$have_usbhid_new" >&6; }
  24334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24335. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24336. have_machine_joystick=no
  24337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24338. /* end confdefs.h. */
  24339. #include <machine/joystick.h>
  24340. int
  24341. main (void)
  24342. {
  24343. struct joystick t;
  24344. ;
  24345. return 0;
  24346. }
  24347. _ACEOF
  24348. if ac_fn_c_try_compile "$LINENO"
  24349. then :
  24350. have_machine_joystick=yes
  24351. fi
  24352. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24353. if test x$have_machine_joystick = xyes; then
  24354. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24355. fi
  24356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24357. printf "%s\n" "$have_machine_joystick" >&6; }
  24358. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24359. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24360. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24361. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24362. have_joystick=yes
  24363. fi
  24364. CFLAGS="$save_CFLAGS"
  24365. fi
  24366. ;;
  24367. esac
  24368. }
  24369. CheckHIDAPI()
  24370. {
  24371. # Check whether --enable-hidapi-joystick was given.
  24372. if test ${enable_hidapi_joystick+y}
  24373. then :
  24374. enableval=$enable_hidapi_joystick;
  24375. else $as_nop
  24376. enable_hidapi_joystick=yes
  24377. fi
  24378. # Check whether --enable-hidapi-libusb was given.
  24379. if test ${enable_hidapi_libusb+y}
  24380. then :
  24381. enableval=$enable_hidapi_libusb;
  24382. else $as_nop
  24383. enable_hidapi_libusb=maybe
  24384. fi
  24385. if test x$enable_hidapi = xyes; then
  24386. case "$host" in
  24387. # libusb does not support iOS
  24388. *-ios-* )
  24389. enable_hidapi_libusb=no
  24390. ;;
  24391. # On the other hand, *BSD specifically uses libusb only
  24392. *-*-*bsd* )
  24393. enable_hidapi_libusb=yes
  24394. require_hidapi_libusb=yes
  24395. ;;
  24396. *-*-os2* )
  24397. enable_hidapi_libusb=yes
  24398. ;;
  24399. esac
  24400. hidapi_support=yes
  24401. if test x$enable_hidapi_libusb = xyes; then
  24402. pkg_failed=no
  24403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24404. printf %s "checking for libusb-1.0... " >&6; }
  24405. if test -n "$LIBUSB_CFLAGS"; then
  24406. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24407. elif test -n "$PKG_CONFIG"; then
  24408. if test -n "$PKG_CONFIG" && \
  24409. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24410. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24411. ac_status=$?
  24412. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24413. test $ac_status = 0; }; then
  24414. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24415. test "x$?" != "x0" && pkg_failed=yes
  24416. else
  24417. pkg_failed=yes
  24418. fi
  24419. else
  24420. pkg_failed=untried
  24421. fi
  24422. if test -n "$LIBUSB_LIBS"; then
  24423. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24424. elif test -n "$PKG_CONFIG"; then
  24425. if test -n "$PKG_CONFIG" && \
  24426. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24427. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24428. ac_status=$?
  24429. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24430. test $ac_status = 0; }; then
  24431. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24432. test "x$?" != "x0" && pkg_failed=yes
  24433. else
  24434. pkg_failed=yes
  24435. fi
  24436. else
  24437. pkg_failed=untried
  24438. fi
  24439. if test $pkg_failed = yes; then
  24440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24441. printf "%s\n" "no" >&6; }
  24442. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24443. _pkg_short_errors_supported=yes
  24444. else
  24445. _pkg_short_errors_supported=no
  24446. fi
  24447. if test $_pkg_short_errors_supported = yes; then
  24448. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24449. else
  24450. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24451. fi
  24452. # Put the nasty error message in config.log where it belongs
  24453. echo "$LIBUSB_PKG_ERRORS" >&5
  24454. have_libusb=no
  24455. elif test $pkg_failed = untried; then
  24456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24457. printf "%s\n" "no" >&6; }
  24458. have_libusb=no
  24459. else
  24460. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24461. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24463. printf "%s\n" "yes" >&6; }
  24464. have_libusb=yes
  24465. fi
  24466. save_CPPFLAGS="$CPPFLAGS"
  24467. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24468. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24469. if test "x$ac_cv_header_libusb_h" = xyes
  24470. then :
  24471. have_libusb_h=yes
  24472. else $as_nop
  24473. have_libusb_h=no
  24474. fi
  24475. CPPFLAGS="$save_CPPFLAGS"
  24476. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24477. hidapi_support=no
  24478. fi
  24479. fi
  24480. if test x$hidapi_support = xyes; then
  24481. if test x$have_libusb_h = xyes; then
  24482. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24483. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24484. if test x$require_hidapi_libusb = xyes; then
  24485. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24486. else
  24487. if test x$have_loadso != xyes; then
  24488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24489. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24490. fi
  24491. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24492. libusb_lib=""
  24493. case "$host" in
  24494. *-*-darwin* )
  24495. libusb_lib="libusb-1.0.0.dylib"
  24496. ;;
  24497. *-*-cygwin* | *-*-mingw* )
  24498. libusb_lib="libusb-1.0.dll"
  24499. ;;
  24500. *-*-os2* )
  24501. libusb_lib="usb100.dll"
  24502. ;;
  24503. esac
  24504. if test x$libusb_lib = x; then
  24505. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24506. fi
  24507. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24508. fi
  24509. fi
  24510. fi
  24511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24512. printf %s "checking for hidapi joystick support... " >&6; }
  24513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24514. printf "%s\n" "$hidapi_support" >&6; }
  24515. fi
  24516. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24517. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24518. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24519. fi
  24520. }
  24521. CheckClockGettime()
  24522. {
  24523. # Check whether --enable-clock_gettime was given.
  24524. if test ${enable_clock_gettime+y}
  24525. then :
  24526. enableval=$enable_clock_gettime;
  24527. else $as_nop
  24528. enable_clock_gettime=yes
  24529. fi
  24530. if test x$enable_clock_gettime = xyes; then
  24531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24532. printf %s "checking for clock_gettime in -lc... " >&6; }
  24533. if test ${ac_cv_lib_c_clock_gettime+y}
  24534. then :
  24535. printf %s "(cached) " >&6
  24536. else $as_nop
  24537. ac_check_lib_save_LIBS=$LIBS
  24538. LIBS="-lc $LIBS"
  24539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24540. /* end confdefs.h. */
  24541. /* Override any GCC internal prototype to avoid an error.
  24542. Use char because int might match the return type of a GCC
  24543. builtin and then its argument prototype would still apply. */
  24544. char clock_gettime ();
  24545. int
  24546. main (void)
  24547. {
  24548. return clock_gettime ();
  24549. ;
  24550. return 0;
  24551. }
  24552. _ACEOF
  24553. if ac_fn_c_try_link "$LINENO"
  24554. then :
  24555. ac_cv_lib_c_clock_gettime=yes
  24556. else $as_nop
  24557. ac_cv_lib_c_clock_gettime=no
  24558. fi
  24559. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24560. conftest$ac_exeext conftest.$ac_ext
  24561. LIBS=$ac_check_lib_save_LIBS
  24562. fi
  24563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24564. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24565. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24566. then :
  24567. have_clock_gettime=yes
  24568. fi
  24569. if test x$have_clock_gettime = xyes; then
  24570. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24571. else
  24572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24573. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24574. if test ${ac_cv_lib_rt_clock_gettime+y}
  24575. then :
  24576. printf %s "(cached) " >&6
  24577. else $as_nop
  24578. ac_check_lib_save_LIBS=$LIBS
  24579. LIBS="-lrt $LIBS"
  24580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24581. /* end confdefs.h. */
  24582. /* Override any GCC internal prototype to avoid an error.
  24583. Use char because int might match the return type of a GCC
  24584. builtin and then its argument prototype would still apply. */
  24585. char clock_gettime ();
  24586. int
  24587. main (void)
  24588. {
  24589. return clock_gettime ();
  24590. ;
  24591. return 0;
  24592. }
  24593. _ACEOF
  24594. if ac_fn_c_try_link "$LINENO"
  24595. then :
  24596. ac_cv_lib_rt_clock_gettime=yes
  24597. else $as_nop
  24598. ac_cv_lib_rt_clock_gettime=no
  24599. fi
  24600. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24601. conftest$ac_exeext conftest.$ac_ext
  24602. LIBS=$ac_check_lib_save_LIBS
  24603. fi
  24604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24605. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24606. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24607. then :
  24608. have_clock_gettime=yes
  24609. fi
  24610. if test x$have_clock_gettime = xyes; then
  24611. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24612. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24613. fi
  24614. fi
  24615. fi
  24616. }
  24617. CheckLinuxVersion()
  24618. {
  24619. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24620. if test "x$ac_cv_header_linux_version_h" = xyes
  24621. then :
  24622. have_linux_version_h=yes
  24623. fi
  24624. if test x$have_linux_version_h = xyes; then
  24625. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24626. fi
  24627. }
  24628. CheckRPATH()
  24629. {
  24630. # Check whether --enable-rpath was given.
  24631. if test ${enable_rpath+y}
  24632. then :
  24633. enableval=$enable_rpath;
  24634. else $as_nop
  24635. enable_rpath=yes
  24636. fi
  24637. }
  24638. CheckEventSignals()
  24639. {
  24640. # Check whether --enable-backgrounding-signal was given.
  24641. if test ${enable_backgrounding_signal+y}
  24642. then :
  24643. enableval=$enable_backgrounding_signal;
  24644. else $as_nop
  24645. enable_backgrounding_signal=no
  24646. fi
  24647. if test x$enable_backgrounding_signal != xno; then
  24648. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24649. fi
  24650. # Check whether --enable-foregrounding-signal was given.
  24651. if test ${enable_foregrounding_signal+y}
  24652. then :
  24653. enableval=$enable_foregrounding_signal;
  24654. else $as_nop
  24655. enable_foregrounding_signal=no
  24656. fi
  24657. if test x$enable_foregrounding_signal != xno; then
  24658. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24659. fi
  24660. }
  24661. CheckVirtualJoystick()
  24662. {
  24663. # Check whether --enable-joystick-virtual was given.
  24664. if test ${enable_joystick_virtual+y}
  24665. then :
  24666. enableval=$enable_joystick_virtual;
  24667. else $as_nop
  24668. enable_joystick_virtual=yes
  24669. fi
  24670. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24671. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24672. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24673. have_joystick_virtual=yes
  24674. fi
  24675. }
  24676. CheckWarnAll
  24677. CheckUnusedLocalTypedefs
  24678. CheckNoStrictAliasing
  24679. CheckEventSignals
  24680. have_locale=no
  24681. case "$host" in
  24682. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24683. case "$host" in
  24684. *-*-android*)
  24685. # Android
  24686. ARCH=android
  24687. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24688. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24689. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24690. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24691. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24692. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24693. if test x$enable_video = xyes; then
  24694. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24695. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24696. SUMMARY_video="${SUMMARY_video} android"
  24697. have_video=yes
  24698. fi
  24699. ;;
  24700. *-*-linux*) ARCH=linux ;;
  24701. *-*-uclinux*) ARCH=linux ;;
  24702. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24703. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24704. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24705. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24706. *-*-bsdi*) ARCH=bsdi ;;
  24707. *-*-freebsd*) ARCH=freebsd ;;
  24708. *-*-dragonfly*) ARCH=freebsd ;;
  24709. *-*-netbsd*) ARCH=netbsd ;;
  24710. *-*-openbsd*) ARCH=openbsd ;;
  24711. *-*-sysv5*) ARCH=sysv5 ;;
  24712. *-*-solaris*) ARCH=solaris ;;
  24713. *-*-hpux*) ARCH=hpux ;;
  24714. *-*-aix*) ARCH=aix ;;
  24715. *-*-minix*) ARCH=minix ;;
  24716. *-*-nto*) ARCH=nto
  24717. CheckQNXVideo
  24718. ;;
  24719. esac
  24720. CheckVisibilityHidden
  24721. CheckWerror
  24722. CheckDeclarationAfterStatement
  24723. CheckDummyVideo
  24724. CheckOffscreenVideo
  24725. CheckDiskAudio
  24726. CheckDummyAudio
  24727. CheckDLOPEN
  24728. CheckARM
  24729. CheckNEON
  24730. CheckO_CLOEXEC
  24731. CheckOSS
  24732. CheckALSA
  24733. CheckPipewire
  24734. CheckPulseAudio
  24735. CheckJACK
  24736. CheckARTSC
  24737. CheckESD
  24738. CheckNAS
  24739. CheckSNDIO
  24740. CheckFusionSound
  24741. CheckLibSampleRate
  24742. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24743. CheckRPI
  24744. CheckX11
  24745. CheckDirectFB
  24746. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24747. CheckEGL
  24748. CheckKMSDRM
  24749. CheckGLX
  24750. CheckOpenGL
  24751. CheckOpenGLES
  24752. CheckVulkan
  24753. CheckWayland
  24754. CheckInputEvents
  24755. CheckLibUDev
  24756. CheckDBus
  24757. CheckIME
  24758. CheckInotify
  24759. CheckIBus
  24760. CheckFcitx
  24761. case $ARCH in
  24762. linux)
  24763. CheckInputKD
  24764. ;;
  24765. freebsd)
  24766. CheckInputKBIO
  24767. ;;
  24768. openbsd|netbsd)
  24769. CheckInputWSCONS
  24770. ;;
  24771. esac
  24772. CheckUSBHID
  24773. CheckHIDAPI
  24774. CheckPTHREAD
  24775. CheckClockGettime
  24776. CheckLinuxVersion
  24777. CheckRPATH
  24778. CheckVivanteVideo
  24779. # Set up files for the misc library
  24780. if test x$enable_misc = xyes; then
  24781. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24782. have_misc=yes
  24783. fi
  24784. # Set up files for the locale library
  24785. if test x$enable_locale = xyes; then
  24786. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24787. have_locale=yes
  24788. fi
  24789. # Set up files for the audio library
  24790. if test x$enable_audio = xyes; then
  24791. case $ARCH in
  24792. sysv5|solaris|hpux)
  24793. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24794. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24795. SUMMARY_audio="${SUMMARY_audio} sun"
  24796. have_audio=yes
  24797. ;;
  24798. netbsd) # Don't use this on OpenBSD, it's busted.
  24799. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24800. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24801. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24802. have_audio=yes
  24803. ;;
  24804. aix)
  24805. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24806. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24807. SUMMARY_audio="${SUMMARY_audio} paudio"
  24808. have_audio=yes
  24809. ;;
  24810. android)
  24811. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24812. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24813. SUMMARY_audio="${SUMMARY_audio} android"
  24814. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24815. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24816. SUMMARY_audio="${SUMMARY_audio} openslES"
  24817. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24818. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24819. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24820. have_audio=yes
  24821. ;;
  24822. nto)
  24823. CheckQNXAudio
  24824. ;;
  24825. esac
  24826. fi
  24827. # Set up files for the joystick library
  24828. if test x$enable_joystick = xyes; then
  24829. case $ARCH in
  24830. linux)
  24831. if test "x$ac_cv_header_linux_input_h" = xyes; then
  24832. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24833. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24834. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24835. have_joystick=yes
  24836. fi
  24837. ;;
  24838. freebsd)
  24839. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  24840. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24841. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24842. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24843. have_joystick=yes
  24844. fi
  24845. ;;
  24846. android)
  24847. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24848. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24849. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24850. have_joystick=yes
  24851. ;;
  24852. esac
  24853. fi
  24854. # Set up files for the haptic library
  24855. if test x$enable_haptic = xyes; then
  24856. case $ARCH in
  24857. linux|freebsd)
  24858. if test x$use_input_events = xyes; then
  24859. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24860. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24861. have_haptic=yes
  24862. fi
  24863. ;;
  24864. android)
  24865. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24866. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24867. have_haptic=yes
  24868. ;;
  24869. esac
  24870. fi
  24871. # Set up files for the sensor library
  24872. if test x$enable_sensor = xyes; then
  24873. case $ARCH in
  24874. android)
  24875. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24876. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24877. have_sensor=yes
  24878. ;;
  24879. esac
  24880. fi
  24881. # Set up files for the power library
  24882. if test x$enable_power = xyes; then
  24883. case $ARCH in
  24884. linux)
  24885. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24886. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24887. have_power=yes
  24888. ;;
  24889. android)
  24890. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24891. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24892. have_power=yes
  24893. ;;
  24894. esac
  24895. fi
  24896. # Set up files for the filesystem library
  24897. if test x$enable_filesystem = xyes; then
  24898. case $ARCH in
  24899. android)
  24900. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24901. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24902. have_filesystem=yes
  24903. ;;
  24904. *)
  24905. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24906. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24907. have_filesystem=yes
  24908. ;;
  24909. esac
  24910. fi
  24911. # Set up files for the timer library
  24912. if test x$enable_timers = xyes; then
  24913. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24914. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24915. have_timers=yes
  24916. fi
  24917. # Set up files for udev hotplugging support
  24918. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24919. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24920. fi
  24921. # Set up files for evdev input
  24922. if test x$use_input_events = xyes; then
  24923. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24924. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24925. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24926. fi
  24927. # Set up files for wscons input
  24928. if test x$use_input_wscons = xyes; then
  24929. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24930. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24931. fi
  24932. # Set up other core UNIX files
  24933. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24934. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24935. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24936. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24937. ;;
  24938. *-*-cygwin* | *-*-mingw*)
  24939. ARCH=win32
  24940. if test "$build" != "$host"; then # cross-compiling
  24941. # Default cross-compile location
  24942. ac_default_prefix=/usr/local/cross-tools/$host
  24943. else
  24944. # Look for the location of the tools and install there
  24945. if test "$BUILD_PREFIX" != ""; then
  24946. ac_default_prefix=$BUILD_PREFIX
  24947. fi
  24948. fi
  24949. if test x$enable_loadso = xyes; then
  24950. have_loadso=yes
  24951. fi
  24952. CheckGDwarf4
  24953. CheckWerror
  24954. CheckDeclarationAfterStatement
  24955. CheckDummyVideo
  24956. CheckOffscreenVideo
  24957. CheckDiskAudio
  24958. CheckDummyAudio
  24959. CheckWINDOWS
  24960. CheckWINDOWSGL
  24961. CheckWINDOWSGLES
  24962. CheckVulkan
  24963. CheckDIRECTX
  24964. CheckHIDAPI
  24965. # Set up the core platform files
  24966. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24967. # Set up files for the misc library
  24968. if test x$enable_misc = xyes; then
  24969. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24970. have_misc=yes
  24971. fi
  24972. # Use the Windows locale APIs.
  24973. if test x$enable_locale = xyes; then
  24974. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24975. have_locale=yes
  24976. fi
  24977. # Set up files for the video library
  24978. if test x$enable_video = xyes; then
  24979. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24980. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24981. have_video=yes
  24982. # Check whether --enable-render-d3d was given.
  24983. if test ${enable_render_d3d+y}
  24984. then :
  24985. enableval=$enable_render_d3d;
  24986. else $as_nop
  24987. enable_render_d3d=yes
  24988. fi
  24989. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24990. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24991. SUMMARY_video="${SUMMARY_video} d3d9"
  24992. fi
  24993. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24994. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24995. SUMMARY_video="${SUMMARY_video} d3d11"
  24996. fi
  24997. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24998. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24999. SUMMARY_video="${SUMMARY_video} d3d12"
  25000. fi
  25001. fi
  25002. # Set up files for the audio library
  25003. if test x$enable_audio = xyes; then
  25004. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  25005. SUMMARY_audio="${SUMMARY_audio} winmm"
  25006. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  25007. if test x$have_dsound = xyes; then
  25008. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  25009. SUMMARY_audio="${SUMMARY_audio} directsound"
  25010. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  25011. fi
  25012. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  25013. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  25014. SUMMARY_audio="${SUMMARY_audio} wasapi"
  25015. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  25016. fi
  25017. have_audio=yes
  25018. fi
  25019. # Set up files for the joystick library
  25020. if test x$enable_joystick = xyes; then
  25021. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  25022. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  25023. if test x$have_xinput = xyes; then
  25024. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  25025. fi
  25026. if test x$have_wgi = xyes; then
  25027. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  25028. fi
  25029. if test x$have_dinput = xyes; then
  25030. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  25031. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  25032. fi
  25033. fi
  25034. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  25035. have_joystick=yes
  25036. fi
  25037. if test x$enable_haptic = xyes; then
  25038. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  25039. if test x$have_xinput = xyes; then
  25040. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  25041. fi
  25042. if test x$have_dinput = xyes; then
  25043. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  25044. fi
  25045. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  25046. have_haptic=yes
  25047. fi
  25048. fi
  25049. # Set up files for the sensor library
  25050. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  25051. if test "x$ac_cv_header_sensorsapi_h" = xyes
  25052. then :
  25053. have_winsensors=yes
  25054. else $as_nop
  25055. have_winsensors=no
  25056. fi
  25057. if test x$have_winsensors = xyes; then
  25058. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  25059. fi
  25060. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  25061. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  25062. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  25063. have_sensor=yes
  25064. fi
  25065. # Set up files for the power library
  25066. if test x$enable_power = xyes; then
  25067. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  25068. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  25069. have_power=yes
  25070. fi
  25071. # Set up files for the filesystem library
  25072. if test x$enable_filesystem = xyes; then
  25073. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  25074. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  25075. have_filesystem=yes
  25076. fi
  25077. # Set up files for the thread library
  25078. if test x$enable_threads = xyes; then
  25079. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  25080. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  25081. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  25082. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25083. have_threads=yes
  25084. fi
  25085. # Set up files for the timer library
  25086. if test x$enable_timers = xyes; then
  25087. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  25088. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  25089. have_timers=yes
  25090. fi
  25091. # Set up files for the shared object loading library
  25092. if test x$enable_loadso = xyes; then
  25093. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  25094. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  25095. fi
  25096. # Set up the system libraries we need
  25097. if test -f /lib/w32api/libuuid.a; then
  25098. LIBUUID=/lib/w32api/libuuid.a
  25099. else
  25100. LIBUUID=-luuid
  25101. fi
  25102. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  25103. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  25104. # The Windows platform requires special setup
  25105. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  25106. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  25107. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  25108. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  25109. # Check to see if this is a mingw or cygwin build
  25110. have_mingw32=
  25111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  25112. printf %s "checking for main in -lmingw32... " >&6; }
  25113. if test ${ac_cv_lib_mingw32_main+y}
  25114. then :
  25115. printf %s "(cached) " >&6
  25116. else $as_nop
  25117. ac_check_lib_save_LIBS=$LIBS
  25118. LIBS="-lmingw32 $LIBS"
  25119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25120. /* end confdefs.h. */
  25121. int
  25122. main (void)
  25123. {
  25124. return main ();
  25125. ;
  25126. return 0;
  25127. }
  25128. _ACEOF
  25129. if ac_fn_c_try_link "$LINENO"
  25130. then :
  25131. ac_cv_lib_mingw32_main=yes
  25132. else $as_nop
  25133. ac_cv_lib_mingw32_main=no
  25134. fi
  25135. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25136. conftest$ac_exeext conftest.$ac_ext
  25137. LIBS=$ac_check_lib_save_LIBS
  25138. fi
  25139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  25140. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  25141. if test "x$ac_cv_lib_mingw32_main" = xyes
  25142. then :
  25143. have_mingw32=yes
  25144. fi
  25145. if test x$have_mingw32 = xyes; then
  25146. SDL_LIBS="-lmingw32 $SDL_LIBS"
  25147. else
  25148. SDL_LIBS="-lcygwin $SDL_LIBS"
  25149. fi
  25150. ;;
  25151. *-*-beos*)
  25152. as_fn_error $? "
  25153. *** BeOS support has been removed as of SDL 2.0.2.
  25154. " "$LINENO" 5
  25155. ;;
  25156. *-*-haiku*)
  25157. ARCH=haiku
  25158. ac_default_prefix=/boot/system
  25159. CheckDummyVideo
  25160. CheckOffscreenVideo
  25161. CheckDiskAudio
  25162. CheckDummyAudio
  25163. CheckDLOPEN
  25164. CheckO_CLOEXEC
  25165. CheckHaikuVideo
  25166. CheckHaikuGL
  25167. CheckPTHREAD
  25168. # Set up files for the audio library
  25169. if test x$enable_audio = xyes; then
  25170. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  25171. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  25172. SUMMARY_audio="${SUMMARY_audio} haiku"
  25173. have_audio=yes
  25174. fi
  25175. # Set up files for the joystick library
  25176. if test x$enable_joystick = xyes; then
  25177. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  25178. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  25179. have_joystick=yes
  25180. fi
  25181. # Set up files for the timer library
  25182. if test x$enable_timers = xyes; then
  25183. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  25184. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  25185. have_timers=yes
  25186. fi
  25187. # Set up files for the system power library
  25188. if test x$enable_power = xyes; then
  25189. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  25190. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  25191. have_power=yes
  25192. fi
  25193. # Set up files for the system filesystem library
  25194. if test x$enable_filesystem = xyes; then
  25195. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  25196. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  25197. have_filesystem=yes
  25198. fi
  25199. # Set up files for the misc library
  25200. if test x$enable_misc = xyes; then
  25201. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  25202. have_misc=yes
  25203. fi
  25204. # Set up files for the locale library
  25205. if test x$enable_locale = xyes; then
  25206. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  25207. have_locale=yes
  25208. fi
  25209. # The Haiku platform requires special setup.
  25210. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  25211. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  25212. ;;
  25213. *-ios-*)
  25214. ARCH=ios
  25215. CheckVisibilityHidden
  25216. CheckWerror
  25217. CheckNoErrorDeprecatedDeclarationsWerror
  25218. CheckDeclarationAfterStatement
  25219. CheckDummyVideo
  25220. CheckOffscreenVideo
  25221. CheckDiskAudio
  25222. CheckDummyAudio
  25223. CheckDLOPEN
  25224. CheckO_CLOEXEC
  25225. CheckMETAL
  25226. CheckVulkan
  25227. CheckPTHREAD
  25228. # Set up files for the misc library
  25229. if test x$enable_misc = xyes; then
  25230. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  25231. have_misc=yes
  25232. fi
  25233. # Set up files for the locale library
  25234. if test x$enable_locale = xyes; then
  25235. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25236. have_locale=yes
  25237. fi
  25238. # Set up files for the audio library
  25239. if test x$enable_audio = xyes; then
  25240. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25241. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25242. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25243. have_audio=yes
  25244. fi
  25245. # Set up files for the joystick library
  25246. if test x$enable_joystick = xyes; then
  25247. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25248. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25249. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25250. have_joystick=yes
  25251. else
  25252. # Need this code for accelerometer as joystick support
  25253. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25254. fi
  25255. # Set up files for the haptic library
  25256. #if test x$enable_haptic = xyes; then
  25257. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25258. # have_haptic=yes
  25259. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25260. #fi
  25261. # Set up files for the sensor library
  25262. if test x$enable_sensor = xyes; then
  25263. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25264. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25265. have_sensor=yes
  25266. fi
  25267. # Set up files for the power library
  25268. if test x$enable_power = xyes; then
  25269. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25270. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25271. have_power=yes
  25272. fi
  25273. # Set up files for the filesystem library
  25274. if test x$enable_filesystem = xyes; then
  25275. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25276. have_filesystem=yes
  25277. fi
  25278. # Set up additional files for the file library
  25279. if test x$enable_file = xyes; then
  25280. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25281. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25282. fi
  25283. # Set up files for the timer library
  25284. if test x$enable_timers = xyes; then
  25285. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25286. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25287. have_timers=yes
  25288. fi
  25289. # Set up other core UNIX files
  25290. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25291. # The iOS platform requires special setup.
  25292. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25293. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25294. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25295. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25296. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25297. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25298. SUMMARY_video="${SUMMARY_video} uikit"
  25299. have_video=yes
  25300. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25301. if test x$enable_system_iconv = xyes; then
  25302. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25303. fi
  25304. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25305. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25306. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25307. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25308. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25309. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25310. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25311. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25312. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25313. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25314. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25315. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25316. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25317. fi
  25318. ;;
  25319. *-*-darwin* )
  25320. # This could be either full "Mac OS X", or plain "Darwin" which is
  25321. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25322. # Next line is broken, and a few files below require Mac OS X (full)
  25323. ARCH=macosx
  25324. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25325. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25326. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25327. CheckObjectiveCARC
  25328. CheckVisibilityHidden
  25329. CheckWerror
  25330. CheckNoErrorDeprecatedDeclarationsWerror
  25331. CheckDeclarationAfterStatement
  25332. CheckDummyVideo
  25333. CheckOffscreenVideo
  25334. CheckDiskAudio
  25335. CheckDummyAudio
  25336. CheckDLOPEN
  25337. CheckO_CLOEXEC
  25338. CheckCOCOA
  25339. CheckMETAL
  25340. CheckX11
  25341. CheckMacGL
  25342. CheckMacGLES
  25343. CheckGLX
  25344. CheckOpenGL
  25345. CheckVulkan
  25346. CheckPTHREAD
  25347. CheckHIDAPI
  25348. # Set up files for the misc library
  25349. if test x$enable_misc = xyes; then
  25350. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25351. have_misc=yes
  25352. fi
  25353. # Set up files for the locale library
  25354. if test x$enable_locale = xyes; then
  25355. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25356. have_locale=yes
  25357. fi
  25358. # Set up files for the audio library
  25359. if test x$enable_audio = xyes; then
  25360. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25361. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25362. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25363. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25364. have_audio=yes
  25365. fi
  25366. # Set up files for the joystick library
  25367. if test x$enable_joystick = xyes; then
  25368. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25369. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25370. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25371. CheckJoystickMFI
  25372. have_joystick=yes
  25373. fi
  25374. # Set up files for the haptic library
  25375. if test x$enable_haptic = xyes; then
  25376. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25377. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25378. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25379. have_haptic=yes
  25380. fi
  25381. # Set up files for the power library
  25382. if test x$enable_power = xyes; then
  25383. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25384. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25385. have_power=yes
  25386. fi
  25387. # Set up files for the filesystem library
  25388. if test x$enable_filesystem = xyes; then
  25389. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25390. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25391. have_filesystem=yes
  25392. fi
  25393. # Set up files for the timer library
  25394. if test x$enable_timers = xyes; then
  25395. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25396. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25397. have_timers=yes
  25398. fi
  25399. # Set up additional files for the file library
  25400. if test x$enable_file = xyes; then
  25401. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25402. fi
  25403. # Set up other core UNIX files
  25404. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25405. # The Mac OS X platform requires special setup.
  25406. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25407. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25408. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25409. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25410. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25411. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25412. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25413. fi
  25414. ;;
  25415. *-nacl|*-pnacl)
  25416. ARCH=nacl
  25417. CheckNativeClient
  25418. CheckDummyAudio
  25419. CheckDummyVideo
  25420. CheckOffscreenVideo
  25421. CheckInputEvents
  25422. CheckPTHREAD
  25423. CheckO_CLOEXEC
  25424. # Set up files for the timer library
  25425. if test x$enable_timers = xyes; then
  25426. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25427. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25428. have_timers=yes
  25429. fi
  25430. if test x$enable_filesystem = xyes; then
  25431. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25432. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25433. have_filesystem=yes
  25434. fi
  25435. ;;
  25436. *-*-emscripten* )
  25437. if test x$enable_video = xyes; then
  25438. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25439. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25440. have_video=yes
  25441. SUMMARY_video="${SUMMARY_video} emscripten"
  25442. fi
  25443. if test x$enable_audio = xyes; then
  25444. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25445. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25446. have_audio=yes
  25447. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25448. fi
  25449. CheckVisibilityHidden
  25450. CheckWerror
  25451. CheckDeclarationAfterStatement
  25452. CheckDummyVideo
  25453. CheckOffscreenVideo
  25454. CheckDiskAudio
  25455. CheckDummyAudio
  25456. CheckPTHREAD
  25457. CheckDLOPEN
  25458. CheckClockGettime
  25459. CheckEmscriptenGLES
  25460. # Set up files for the misc library
  25461. if test x$enable_misc = xyes; then
  25462. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25463. have_misc=yes
  25464. fi
  25465. # Set up files for the power library
  25466. if test x$enable_power = xyes; then
  25467. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25468. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25469. have_power=yes
  25470. fi
  25471. # Set up files for the joystick library
  25472. if test x$enable_joystick = xyes; then
  25473. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25474. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25475. have_joystick=yes
  25476. fi
  25477. # Set up files for the filesystem library
  25478. if test x$enable_filesystem = xyes; then
  25479. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25480. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25481. have_filesystem=yes
  25482. fi
  25483. # Set up files for the timer library
  25484. if test x$enable_timers = xyes; then
  25485. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25486. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25487. have_timers=yes
  25488. fi
  25489. # Set up files for the locale library
  25490. if test x$enable_locale = xyes; then
  25491. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25492. have_locale=yes
  25493. fi
  25494. ;;
  25495. *-*-riscos*)
  25496. ARCH=riscos
  25497. CheckVisibilityHidden
  25498. CheckWerror
  25499. CheckDeclarationAfterStatement
  25500. CheckDummyVideo
  25501. CheckOffscreenVideo
  25502. CheckDiskAudio
  25503. CheckDummyAudio
  25504. CheckDLOPEN
  25505. CheckO_CLOEXEC
  25506. CheckOSS
  25507. CheckPTHREAD
  25508. CheckClockGettime
  25509. # Set up files for the misc library
  25510. if test x$enable_misc = xyes; then
  25511. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25512. have_misc=yes
  25513. fi
  25514. # Set up files for the video library
  25515. if test x$enable_video = xyes; then
  25516. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25517. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25518. have_video=yes
  25519. SUMMARY_video="${SUMMARY_video} riscos"
  25520. fi
  25521. # Set up files for the filesystem library
  25522. if test x$enable_filesystem = xyes; then
  25523. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25524. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25525. have_filesystem=yes
  25526. fi
  25527. # Set up files for the timer library
  25528. if test x$enable_timers = xyes; then
  25529. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25530. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25531. have_timers=yes
  25532. fi
  25533. ;;
  25534. *-*-os2*)
  25535. ARCH=os2
  25536. if test "$build" != "$host"; then # cross-compiling
  25537. # Default cross-compile location
  25538. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25539. else
  25540. # Look for the location of the tools and install there
  25541. if test "$BUILD_PREFIX" != ""; then
  25542. ac_default_prefix=$BUILD_PREFIX
  25543. fi
  25544. fi
  25545. enable_static=no # disable static builds
  25546. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25547. CheckOS2
  25548. CheckWerror
  25549. CheckDeclarationAfterStatement
  25550. CheckDummyVideo
  25551. CheckDiskAudio
  25552. CheckDummyAudio
  25553. CheckHIDAPI
  25554. # Set up the core platform files
  25555. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25556. if test x$enable_system_iconv = xyes; then
  25557. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25558. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25559. fi
  25560. fi
  25561. # Use the Unix locale APIs.
  25562. if test x$enable_locale = xyes; then
  25563. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25564. have_locale=yes
  25565. fi
  25566. # Set up files for the video library
  25567. if test x$enable_video = xyes; then
  25568. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25569. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25570. have_video=yes
  25571. SUMMARY_video="${SUMMARY_video} OS/2"
  25572. fi
  25573. # Set up files for the audio library
  25574. if test x$enable_audio = xyes; then
  25575. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25576. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25577. have_audio=yes
  25578. SUMMARY_audio="${SUMMARY_audio} OS/2"
  25579. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25580. fi
  25581. # Set up files for the thread library
  25582. if test x$enable_threads = xyes; then
  25583. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25584. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25585. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25586. have_threads=yes
  25587. fi
  25588. # Set up files for the timer library
  25589. if test x$enable_timers = xyes; then
  25590. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25591. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25592. have_timers=yes
  25593. fi
  25594. # Set up files for the shared object loading library
  25595. if test x$enable_loadso = xyes; then
  25596. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25597. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25598. have_loadso=yes
  25599. fi
  25600. # Set up files for the filesystem library
  25601. if test x$enable_filesystem = xyes; then
  25602. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25603. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25604. have_filesystem=yes
  25605. fi
  25606. # Set up files for the joystick library
  25607. if test x$enable_joystick = xyes; then
  25608. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25609. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25610. have_joystick=yes
  25611. fi
  25612. ;;
  25613. *)
  25614. as_fn_error $? "
  25615. *** Unsupported host: Please add to configure.ac
  25616. " "$LINENO" 5
  25617. ;;
  25618. esac
  25619. CheckVirtualJoystick
  25620. # Check whether to install sdl2-config
  25621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25622. printf %s "checking whether to install sdl2-config... " >&6; }
  25623. # Check whether --enable-sdl2-config was given.
  25624. if test ${enable_sdl2_config+y}
  25625. then :
  25626. enableval=$enable_sdl2_config; case "${enableval}" in
  25627. yes) enable_sdl2_config="TRUE" ;;
  25628. no) enable_sdl2_config="FALSE" ;;
  25629. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25630. esac
  25631. else $as_nop
  25632. enable_sdl2_config="TRUE"
  25633. fi
  25634. if test "$enable_sdl2_config" = "TRUE"; then
  25635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25636. printf "%s\n" "yes" >&6; }
  25637. else
  25638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25639. printf "%s\n" "no" >&6; }
  25640. fi
  25641. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25642. # Check whether --enable-vendor-info was given.
  25643. if test ${enable_vendor_info+y}
  25644. then :
  25645. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  25646. else $as_nop
  25647. enable_vendor_info=
  25648. fi
  25649. if test "$enable_vendor_info" = no
  25650. then :
  25651. enable_vendor_info=
  25652. fi
  25653. SDL_VENDOR_INFO=$enable_vendor_info
  25654. # Verify that we have all the platform specific files we need
  25655. if test x$have_audio != xyes; then
  25656. if test x$enable_audio = xyes; then
  25657. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25658. fi
  25659. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25660. fi
  25661. if test x$have_video != xyes; then
  25662. if test x$enable_video = xyes; then
  25663. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25664. fi
  25665. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25666. fi
  25667. if test x$have_misc != xyes; then
  25668. if test x$enable_misc = xyes; then
  25669. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25670. fi
  25671. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25672. fi
  25673. if test x$have_locale != xyes; then
  25674. if test x$enable_locale = xyes; then
  25675. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25676. fi
  25677. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25678. fi
  25679. if test x$have_joystick != xyes; then
  25680. if test x$enable_joystick = xyes; then
  25681. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25682. fi
  25683. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25684. fi
  25685. if test x$have_haptic != xyes; then
  25686. if test x$enable_haptic = xyes; then
  25687. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25688. fi
  25689. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25690. fi
  25691. if test x$have_sensor != xyes; then
  25692. if test x$enable_sensor = xyes; then
  25693. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25694. fi
  25695. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25696. fi
  25697. if test x$have_threads != xyes; then
  25698. if test x$enable_threads = xyes; then
  25699. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25700. fi
  25701. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25702. fi
  25703. if test x$have_timers != xyes; then
  25704. if test x$enable_timers = xyes; then
  25705. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25706. fi
  25707. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25708. fi
  25709. if test x$have_filesystem != xyes; then
  25710. if test x$enable_filesystem = xyes; then
  25711. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25712. fi
  25713. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25714. fi
  25715. if test x$have_loadso != xyes; then
  25716. if test x$enable_loadso = xyes; then
  25717. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25718. fi
  25719. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25720. fi
  25721. if test x$SDLMAIN_SOURCES = x; then
  25722. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25723. fi
  25724. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25725. if test x$video_wayland = xyes; then
  25726. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25727. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25728. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25729. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25730. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25731. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25732. echo ;\
  25733. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25734. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25735. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25736. echo ;\
  25737. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25738. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25739. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25740. echo ;\
  25741. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25742. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25743. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25744. done ;\
  25745. echo ;\
  25746. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25747. fi
  25748. OBJECTS=`echo $SOURCES`
  25749. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25750. for EXT in asm cc m c S; do
  25751. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25752. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25753. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25754. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25755. done
  25756. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25757. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25758. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25759. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25760. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25761. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25762. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25763. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25764. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25765. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25766. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25767. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25768. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25769. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25770. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25771. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25772. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25773. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25774. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25775. # Set runtime shared library paths as needed
  25776. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25777. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25778. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25780. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25781. have_enable_new_dtags=no
  25782. save_LDFLAGS="$LDFLAGS"
  25783. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25785. /* end confdefs.h. */
  25786. int
  25787. main (void)
  25788. {
  25789. ;
  25790. return 0;
  25791. }
  25792. _ACEOF
  25793. if ac_fn_c_try_link "$LINENO"
  25794. then :
  25795. have_enable_new_dtags=yes
  25796. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25797. fi
  25798. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25799. conftest$ac_exeext conftest.$ac_ext
  25800. LDFLAGS="$save_LDFLAGS"
  25801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25802. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25803. fi
  25804. if test $ARCH = solaris; then
  25805. SDL_RLD_FLAGS="-R\${libdir}"
  25806. fi
  25807. else
  25808. SDL_RLD_FLAGS=""
  25809. fi
  25810. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25811. pkg_cmakedir='$libdir/cmake/SDL2'
  25812. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25813. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25814. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25815. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25816. _lcl_receval="$_lcl_from"
  25817. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25818. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25819. _lcl_receval_old=''
  25820. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25821. _lcl_receval_old="$_lcl_receval"
  25822. eval _lcl_receval="\"$_lcl_receval\""
  25823. done
  25824. echo "$_lcl_receval")`
  25825. _lcl_receval="$_lcl_to"
  25826. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25827. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25828. _lcl_receval_old=''
  25829. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25830. _lcl_receval_old="$_lcl_receval"
  25831. eval _lcl_receval="\"$_lcl_receval\""
  25832. done
  25833. echo "$_lcl_receval")`
  25834. _lcl_notation="$_lcl_from$_lcl_to"
  25835. case ":$_lcl_from:" in
  25836. # change empty paths to '.'
  25837. ::) _lcl_from='.' ;;
  25838. # strip trailing slashes
  25839. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25840. :*:) ;;
  25841. esac
  25842. # squeeze repeated slashes
  25843. case '/' in
  25844. # if the path contains any backslashes, turn slashes into backslashes
  25845. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25846. # if the path contains slashes, also turn backslashes into slashes
  25847. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25848. esac
  25849. case ":$_lcl_to:" in
  25850. # change empty paths to '.'
  25851. ::) _lcl_to='.' ;;
  25852. # strip trailing slashes
  25853. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25854. :*:) ;;
  25855. esac
  25856. # squeeze repeated slashes
  25857. case '/' in
  25858. # if the path contains any backslashes, turn slashes into backslashes
  25859. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25860. # if the path contains slashes, also turn backslashes into slashes
  25861. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25862. esac
  25863. _lcl_common_prefix=''
  25864. _lcl_second_prefix_match=''
  25865. while test "$_lcl_second_prefix_match" != 0; do
  25866. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25867. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25868. if test "$_lcl_second_prefix_match" != 0; then
  25869. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25870. _lcl_common_prefix="$_lcl_first_prefix"
  25871. else
  25872. _lcl_second_prefix_match=0
  25873. fi
  25874. fi
  25875. done
  25876. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25877. _lcl_first_rel=''
  25878. _lcl_tmp='xxx'
  25879. while test "$_lcl_tmp" != ''; do
  25880. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25881. if test "$_lcl_first_suffix" != ''; then
  25882. _lcl_first_suffix="$_lcl_tmp"
  25883. _lcl_first_rel="../$_lcl_first_rel"
  25884. fi
  25885. done
  25886. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25887. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25888. case ":$_lcl_result_tmp:" in
  25889. # change empty paths to '.'
  25890. ::) _lcl_result_tmp='.' ;;
  25891. # strip trailing slashes
  25892. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25893. :*:) ;;
  25894. esac
  25895. # squeeze repeated slashes
  25896. case "$_lcl_notation" in
  25897. # if the path contains any backslashes, turn slashes into backslashes
  25898. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25899. # if the path contains slashes, also turn backslashes into slashes
  25900. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25901. esac
  25902. eval $_lcl_result_var='$_lcl_result_tmp'
  25903. done
  25904. PKGCONFIG_DEPENDS=""
  25905. if test x$enable_shared = xyes; then
  25906. PKGCONFIG_LIBS_PRIV="
  25907. Libs.private:"
  25908. ENABLE_SHARED_TRUE=
  25909. ENABLE_SHARED_FALSE="#"
  25910. else
  25911. PKGCONFIG_LIBS_PRIV=
  25912. ENABLE_SHARED_TRUE="#"
  25913. ENABLE_SHARED_FALSE=
  25914. fi
  25915. if test x$enable_static = xyes; then
  25916. ENABLE_STATIC_TRUE=
  25917. ENABLE_STATIC_FALSE="#"
  25918. else
  25919. ENABLE_STATIC_TRUE="#"
  25920. ENABLE_STATIC_FALSE=
  25921. fi
  25922. cat >Makefile.rules <<__EOF__
  25923. # Build rules for objects
  25924. -include \$(OBJECTS:.lo=.d)
  25925. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25926. $srcdir/src/SDL.c: update-revision
  25927. $DEPENDS
  25928. $VERSION_DEPENDS
  25929. $SDLMAIN_DEPENDS
  25930. $SDLTEST_DEPENDS
  25931. $WAYLAND_PROTOCOLS_DEPENDS
  25932. __EOF__
  25933. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25934. ac_config_commands="$ac_config_commands sdl2_config"
  25935. SUMMARY="SDL2 Configure Summary:\n"
  25936. if test x$enable_shared = xyes; then
  25937. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25938. fi
  25939. if test x$enable_static = xyes; then
  25940. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25941. fi
  25942. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25943. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25944. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25945. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25946. if test x$have_x = xyes; then
  25947. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25948. fi
  25949. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25950. if test x$have_joystick_virtual = xyes; then
  25951. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25952. else
  25953. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25954. fi
  25955. if test x$have_samplerate_h_hdr = xyes; then
  25956. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25957. else
  25958. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25959. fi
  25960. if test x$have_libudev_h_hdr = xyes; then
  25961. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25962. else
  25963. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25964. fi
  25965. if test x$have_dbus_dbus_h_hdr = xyes; then
  25966. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25967. else
  25968. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25969. fi
  25970. if test x$enable_ime = xyes; then
  25971. SUMMARY="${SUMMARY}Using ime : YES\n"
  25972. else
  25973. SUMMARY="${SUMMARY}Using ime : NO\n"
  25974. fi
  25975. if test x$have_ibus_ibus_h_hdr = xyes; then
  25976. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25977. else
  25978. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25979. fi
  25980. if test x$have_fcitx = xyes; then
  25981. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25982. else
  25983. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25984. fi
  25985. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25986. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25987. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25988. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25989. SUMMARY="${SUMMARY}configure script with:\n"
  25990. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25991. fi
  25992. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25993. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25994. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25995. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25996. SUMMARY="${SUMMARY}configure script with:\n"
  25997. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25998. fi
  25999. ac_config_commands="$ac_config_commands summary"
  26000. cat >confcache <<\_ACEOF
  26001. # This file is a shell script that caches the results of configure
  26002. # tests run on this system so they can be shared between configure
  26003. # scripts and configure runs, see configure's option --config-cache.
  26004. # It is not useful on other systems. If it contains results you don't
  26005. # want to keep, you may remove or edit it.
  26006. #
  26007. # config.status only pays attention to the cache file if you give it
  26008. # the --recheck option to rerun configure.
  26009. #
  26010. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  26011. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  26012. # following values.
  26013. _ACEOF
  26014. # The following way of writing the cache mishandles newlines in values,
  26015. # but we know of no workaround that is simple, portable, and efficient.
  26016. # So, we kill variables containing newlines.
  26017. # Ultrix sh set writes to stderr and can't be redirected directly,
  26018. # and sets the high bit in the cache file unless we assign to the vars.
  26019. (
  26020. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  26021. eval ac_val=\$$ac_var
  26022. case $ac_val in #(
  26023. *${as_nl}*)
  26024. case $ac_var in #(
  26025. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  26026. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  26027. esac
  26028. case $ac_var in #(
  26029. _ | IFS | as_nl) ;; #(
  26030. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  26031. *) { eval $ac_var=; unset $ac_var;} ;;
  26032. esac ;;
  26033. esac
  26034. done
  26035. (set) 2>&1 |
  26036. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  26037. *${as_nl}ac_space=\ *)
  26038. # `set' does not quote correctly, so add quotes: double-quote
  26039. # substitution turns \\\\ into \\, and sed turns \\ into \.
  26040. sed -n \
  26041. "s/'/'\\\\''/g;
  26042. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  26043. ;; #(
  26044. *)
  26045. # `set' quotes correctly as required by POSIX, so do not add quotes.
  26046. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  26047. ;;
  26048. esac |
  26049. sort
  26050. ) |
  26051. sed '
  26052. /^ac_cv_env_/b end
  26053. t clear
  26054. :clear
  26055. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  26056. t end
  26057. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  26058. :end' >>confcache
  26059. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  26060. if test -w "$cache_file"; then
  26061. if test "x$cache_file" != "x/dev/null"; then
  26062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  26063. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  26064. if test ! -f "$cache_file" || test -h "$cache_file"; then
  26065. cat confcache >"$cache_file"
  26066. else
  26067. case $cache_file in #(
  26068. */* | ?:*)
  26069. mv -f confcache "$cache_file"$$ &&
  26070. mv -f "$cache_file"$$ "$cache_file" ;; #(
  26071. *)
  26072. mv -f confcache "$cache_file" ;;
  26073. esac
  26074. fi
  26075. fi
  26076. else
  26077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  26078. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  26079. fi
  26080. fi
  26081. rm -f confcache
  26082. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  26083. # Let make expand exec_prefix.
  26084. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  26085. DEFS=-DHAVE_CONFIG_H
  26086. ac_libobjs=
  26087. ac_ltlibobjs=
  26088. U=
  26089. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  26090. # 1. Remove the extension, and $U if already installed.
  26091. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  26092. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  26093. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  26094. # will be set to the directory where LIBOBJS objects are built.
  26095. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  26096. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  26097. done
  26098. LIBOBJS=$ac_libobjs
  26099. LTLIBOBJS=$ac_ltlibobjs
  26100. : "${CONFIG_STATUS=./config.status}"
  26101. ac_write_fail=0
  26102. ac_clean_files_save=$ac_clean_files
  26103. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  26104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  26105. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  26106. as_write_fail=0
  26107. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  26108. #! $SHELL
  26109. # Generated by $as_me.
  26110. # Run this file to recreate the current configuration.
  26111. # Compiler output produced by configure, useful for debugging
  26112. # configure, is in config.log if it exists.
  26113. debug=false
  26114. ac_cs_recheck=false
  26115. ac_cs_silent=false
  26116. SHELL=\${CONFIG_SHELL-$SHELL}
  26117. export SHELL
  26118. _ASEOF
  26119. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  26120. ## -------------------- ##
  26121. ## M4sh Initialization. ##
  26122. ## -------------------- ##
  26123. # Be more Bourne compatible
  26124. DUALCASE=1; export DUALCASE # for MKS sh
  26125. as_nop=:
  26126. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  26127. then :
  26128. emulate sh
  26129. NULLCMD=:
  26130. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26131. # is contrary to our usage. Disable this feature.
  26132. alias -g '${1+"$@"}'='"$@"'
  26133. setopt NO_GLOB_SUBST
  26134. else $as_nop
  26135. case `(set -o) 2>/dev/null` in #(
  26136. *posix*) :
  26137. set -o posix ;; #(
  26138. *) :
  26139. ;;
  26140. esac
  26141. fi
  26142. # Reset variables that may have inherited troublesome values from
  26143. # the environment.
  26144. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  26145. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  26146. # side effect of setting IFS to empty, thus disabling word splitting.)
  26147. # Quoting is to prevent editors from complaining about space-tab.
  26148. as_nl='
  26149. '
  26150. export as_nl
  26151. IFS=" "" $as_nl"
  26152. PS1='$ '
  26153. PS2='> '
  26154. PS4='+ '
  26155. # Ensure predictable behavior from utilities with locale-dependent output.
  26156. LC_ALL=C
  26157. export LC_ALL
  26158. LANGUAGE=C
  26159. export LANGUAGE
  26160. # We cannot yet rely on "unset" to work, but we need these variables
  26161. # to be unset--not just set to an empty or harmless value--now, to
  26162. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  26163. # also avoids known problems related to "unset" and subshell syntax
  26164. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  26165. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  26166. do eval test \${$as_var+y} \
  26167. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  26168. done
  26169. # Ensure that fds 0, 1, and 2 are open.
  26170. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  26171. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  26172. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  26173. # The user is always right.
  26174. if ${PATH_SEPARATOR+false} :; then
  26175. PATH_SEPARATOR=:
  26176. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  26177. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  26178. PATH_SEPARATOR=';'
  26179. }
  26180. fi
  26181. # Find who we are. Look in the path if we contain no directory separator.
  26182. as_myself=
  26183. case $0 in #((
  26184. *[\\/]* ) as_myself=$0 ;;
  26185. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26186. for as_dir in $PATH
  26187. do
  26188. IFS=$as_save_IFS
  26189. case $as_dir in #(((
  26190. '') as_dir=./ ;;
  26191. */) ;;
  26192. *) as_dir=$as_dir/ ;;
  26193. esac
  26194. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  26195. done
  26196. IFS=$as_save_IFS
  26197. ;;
  26198. esac
  26199. # We did not find ourselves, most probably we were run as `sh COMMAND'
  26200. # in which case we are not to be found in the path.
  26201. if test "x$as_myself" = x; then
  26202. as_myself=$0
  26203. fi
  26204. if test ! -f "$as_myself"; then
  26205. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  26206. exit 1
  26207. fi
  26208. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  26209. # ----------------------------------------
  26210. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  26211. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  26212. # script with STATUS, using 1 if that was 0.
  26213. as_fn_error ()
  26214. {
  26215. as_status=$1; test $as_status -eq 0 && as_status=1
  26216. if test "$4"; then
  26217. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  26218. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  26219. fi
  26220. printf "%s\n" "$as_me: error: $2" >&2
  26221. as_fn_exit $as_status
  26222. } # as_fn_error
  26223. # as_fn_set_status STATUS
  26224. # -----------------------
  26225. # Set $? to STATUS, without forking.
  26226. as_fn_set_status ()
  26227. {
  26228. return $1
  26229. } # as_fn_set_status
  26230. # as_fn_exit STATUS
  26231. # -----------------
  26232. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  26233. as_fn_exit ()
  26234. {
  26235. set +e
  26236. as_fn_set_status $1
  26237. exit $1
  26238. } # as_fn_exit
  26239. # as_fn_unset VAR
  26240. # ---------------
  26241. # Portably unset VAR.
  26242. as_fn_unset ()
  26243. {
  26244. { eval $1=; unset $1;}
  26245. }
  26246. as_unset=as_fn_unset
  26247. # as_fn_append VAR VALUE
  26248. # ----------------------
  26249. # Append the text in VALUE to the end of the definition contained in VAR. Take
  26250. # advantage of any shell optimizations that allow amortized linear growth over
  26251. # repeated appends, instead of the typical quadratic growth present in naive
  26252. # implementations.
  26253. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26254. then :
  26255. eval 'as_fn_append ()
  26256. {
  26257. eval $1+=\$2
  26258. }'
  26259. else $as_nop
  26260. as_fn_append ()
  26261. {
  26262. eval $1=\$$1\$2
  26263. }
  26264. fi # as_fn_append
  26265. # as_fn_arith ARG...
  26266. # ------------------
  26267. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26268. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26269. # must be portable across $(()) and expr.
  26270. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26271. then :
  26272. eval 'as_fn_arith ()
  26273. {
  26274. as_val=$(( $* ))
  26275. }'
  26276. else $as_nop
  26277. as_fn_arith ()
  26278. {
  26279. as_val=`expr "$@" || test $? -eq 1`
  26280. }
  26281. fi # as_fn_arith
  26282. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26283. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26284. as_expr=expr
  26285. else
  26286. as_expr=false
  26287. fi
  26288. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26289. as_basename=basename
  26290. else
  26291. as_basename=false
  26292. fi
  26293. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26294. as_dirname=dirname
  26295. else
  26296. as_dirname=false
  26297. fi
  26298. as_me=`$as_basename -- "$0" ||
  26299. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26300. X"$0" : 'X\(//\)$' \| \
  26301. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26302. printf "%s\n" X/"$0" |
  26303. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26304. s//\1/
  26305. q
  26306. }
  26307. /^X\/\(\/\/\)$/{
  26308. s//\1/
  26309. q
  26310. }
  26311. /^X\/\(\/\).*/{
  26312. s//\1/
  26313. q
  26314. }
  26315. s/.*/./; q'`
  26316. # Avoid depending upon Character Ranges.
  26317. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26318. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26319. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26320. as_cr_digits='0123456789'
  26321. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26322. # Determine whether it's possible to make 'echo' print without a newline.
  26323. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26324. # for compatibility with existing Makefiles.
  26325. ECHO_C= ECHO_N= ECHO_T=
  26326. case `echo -n x` in #(((((
  26327. -n*)
  26328. case `echo 'xy\c'` in
  26329. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26330. xy) ECHO_C='\c';;
  26331. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26332. ECHO_T=' ';;
  26333. esac;;
  26334. *)
  26335. ECHO_N='-n';;
  26336. esac
  26337. # For backward compatibility with old third-party macros, we provide
  26338. # the shell variables $as_echo and $as_echo_n. New code should use
  26339. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26340. as_echo='printf %s\n'
  26341. as_echo_n='printf %s'
  26342. rm -f conf$$ conf$$.exe conf$$.file
  26343. if test -d conf$$.dir; then
  26344. rm -f conf$$.dir/conf$$.file
  26345. else
  26346. rm -f conf$$.dir
  26347. mkdir conf$$.dir 2>/dev/null
  26348. fi
  26349. if (echo >conf$$.file) 2>/dev/null; then
  26350. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26351. as_ln_s='ln -s'
  26352. # ... but there are two gotchas:
  26353. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26354. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26355. # In both cases, we have to default to `cp -pR'.
  26356. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26357. as_ln_s='cp -pR'
  26358. elif ln conf$$.file conf$$ 2>/dev/null; then
  26359. as_ln_s=ln
  26360. else
  26361. as_ln_s='cp -pR'
  26362. fi
  26363. else
  26364. as_ln_s='cp -pR'
  26365. fi
  26366. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26367. rmdir conf$$.dir 2>/dev/null
  26368. # as_fn_mkdir_p
  26369. # -------------
  26370. # Create "$as_dir" as a directory, including parents if necessary.
  26371. as_fn_mkdir_p ()
  26372. {
  26373. case $as_dir in #(
  26374. -*) as_dir=./$as_dir;;
  26375. esac
  26376. test -d "$as_dir" || eval $as_mkdir_p || {
  26377. as_dirs=
  26378. while :; do
  26379. case $as_dir in #(
  26380. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26381. *) as_qdir=$as_dir;;
  26382. esac
  26383. as_dirs="'$as_qdir' $as_dirs"
  26384. as_dir=`$as_dirname -- "$as_dir" ||
  26385. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26386. X"$as_dir" : 'X\(//\)[^/]' \| \
  26387. X"$as_dir" : 'X\(//\)$' \| \
  26388. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26389. printf "%s\n" X"$as_dir" |
  26390. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26391. s//\1/
  26392. q
  26393. }
  26394. /^X\(\/\/\)[^/].*/{
  26395. s//\1/
  26396. q
  26397. }
  26398. /^X\(\/\/\)$/{
  26399. s//\1/
  26400. q
  26401. }
  26402. /^X\(\/\).*/{
  26403. s//\1/
  26404. q
  26405. }
  26406. s/.*/./; q'`
  26407. test -d "$as_dir" && break
  26408. done
  26409. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26410. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26411. } # as_fn_mkdir_p
  26412. if mkdir -p . 2>/dev/null; then
  26413. as_mkdir_p='mkdir -p "$as_dir"'
  26414. else
  26415. test -d ./-p && rmdir ./-p
  26416. as_mkdir_p=false
  26417. fi
  26418. # as_fn_executable_p FILE
  26419. # -----------------------
  26420. # Test if FILE is an executable regular file.
  26421. as_fn_executable_p ()
  26422. {
  26423. test -f "$1" && test -x "$1"
  26424. } # as_fn_executable_p
  26425. as_test_x='test -x'
  26426. as_executable_p=as_fn_executable_p
  26427. # Sed expression to map a string onto a valid CPP name.
  26428. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26429. # Sed expression to map a string onto a valid variable name.
  26430. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26431. exec 6>&1
  26432. ## ----------------------------------- ##
  26433. ## Main body of $CONFIG_STATUS script. ##
  26434. ## ----------------------------------- ##
  26435. _ASEOF
  26436. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26437. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26438. # Save the log message, to keep $0 and so on meaningful, and to
  26439. # report actual input values of CONFIG_FILES etc. instead of their
  26440. # values after options handling.
  26441. ac_log="
  26442. This file was extended by $as_me, which was
  26443. generated by GNU Autoconf 2.71. Invocation command line was
  26444. CONFIG_FILES = $CONFIG_FILES
  26445. CONFIG_HEADERS = $CONFIG_HEADERS
  26446. CONFIG_LINKS = $CONFIG_LINKS
  26447. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26448. $ $0 $@
  26449. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26450. "
  26451. _ACEOF
  26452. case $ac_config_files in *"
  26453. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26454. esac
  26455. case $ac_config_headers in *"
  26456. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26457. esac
  26458. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26459. # Files that config.status was made for.
  26460. config_files="$ac_config_files"
  26461. config_headers="$ac_config_headers"
  26462. config_commands="$ac_config_commands"
  26463. _ACEOF
  26464. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26465. ac_cs_usage="\
  26466. \`$as_me' instantiates files and other configuration actions
  26467. from templates according to the current configuration. Unless the files
  26468. and actions are specified as TAGs, all are instantiated by default.
  26469. Usage: $0 [OPTION]... [TAG]...
  26470. -h, --help print this help, then exit
  26471. -V, --version print version number and configuration settings, then exit
  26472. --config print configuration, then exit
  26473. -q, --quiet, --silent
  26474. do not print progress messages
  26475. -d, --debug don't remove temporary files
  26476. --recheck update $as_me by reconfiguring in the same conditions
  26477. --file=FILE[:TEMPLATE]
  26478. instantiate the configuration file FILE
  26479. --header=FILE[:TEMPLATE]
  26480. instantiate the configuration header FILE
  26481. Configuration files:
  26482. $config_files
  26483. Configuration headers:
  26484. $config_headers
  26485. Configuration commands:
  26486. $config_commands
  26487. Report bugs to the package provider."
  26488. _ACEOF
  26489. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26490. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26491. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26492. ac_cs_config='$ac_cs_config_escaped'
  26493. ac_cs_version="\\
  26494. config.status
  26495. configured by $0, generated by GNU Autoconf 2.71,
  26496. with options \\"\$ac_cs_config\\"
  26497. Copyright (C) 2021 Free Software Foundation, Inc.
  26498. This config.status script is free software; the Free Software Foundation
  26499. gives unlimited permission to copy, distribute and modify it."
  26500. ac_pwd='$ac_pwd'
  26501. srcdir='$srcdir'
  26502. INSTALL='$INSTALL'
  26503. AWK='$AWK'
  26504. test -n "\$AWK" || AWK=awk
  26505. _ACEOF
  26506. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26507. # The default lists apply if the user does not specify any file.
  26508. ac_need_defaults=:
  26509. while test $# != 0
  26510. do
  26511. case $1 in
  26512. --*=?*)
  26513. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26514. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26515. ac_shift=:
  26516. ;;
  26517. --*=)
  26518. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26519. ac_optarg=
  26520. ac_shift=:
  26521. ;;
  26522. *)
  26523. ac_option=$1
  26524. ac_optarg=$2
  26525. ac_shift=shift
  26526. ;;
  26527. esac
  26528. case $ac_option in
  26529. # Handling of the options.
  26530. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26531. ac_cs_recheck=: ;;
  26532. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26533. printf "%s\n" "$ac_cs_version"; exit ;;
  26534. --config | --confi | --conf | --con | --co | --c )
  26535. printf "%s\n" "$ac_cs_config"; exit ;;
  26536. --debug | --debu | --deb | --de | --d | -d )
  26537. debug=: ;;
  26538. --file | --fil | --fi | --f )
  26539. $ac_shift
  26540. case $ac_optarg in
  26541. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26542. '') as_fn_error $? "missing file argument" ;;
  26543. esac
  26544. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26545. ac_need_defaults=false;;
  26546. --header | --heade | --head | --hea )
  26547. $ac_shift
  26548. case $ac_optarg in
  26549. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26550. esac
  26551. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26552. ac_need_defaults=false;;
  26553. --he | --h)
  26554. # Conflict between --help and --header
  26555. as_fn_error $? "ambiguous option: \`$1'
  26556. Try \`$0 --help' for more information.";;
  26557. --help | --hel | -h )
  26558. printf "%s\n" "$ac_cs_usage"; exit ;;
  26559. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26560. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26561. ac_cs_silent=: ;;
  26562. # This is an error.
  26563. -*) as_fn_error $? "unrecognized option: \`$1'
  26564. Try \`$0 --help' for more information." ;;
  26565. *) as_fn_append ac_config_targets " $1"
  26566. ac_need_defaults=false ;;
  26567. esac
  26568. shift
  26569. done
  26570. ac_configure_extra_args=
  26571. if $ac_cs_silent; then
  26572. exec 6>/dev/null
  26573. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26574. fi
  26575. _ACEOF
  26576. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26577. if \$ac_cs_recheck; then
  26578. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26579. shift
  26580. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26581. CONFIG_SHELL='$SHELL'
  26582. export CONFIG_SHELL
  26583. exec "\$@"
  26584. fi
  26585. _ACEOF
  26586. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26587. exec 5>>config.log
  26588. {
  26589. echo
  26590. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26591. ## Running $as_me. ##
  26592. _ASBOX
  26593. printf "%s\n" "$ac_log"
  26594. } >&5
  26595. _ACEOF
  26596. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26597. #
  26598. # INIT-COMMANDS
  26599. #
  26600. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26601. # if CDPATH is set.
  26602. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26603. sed_quote_subst='$sed_quote_subst'
  26604. double_quote_subst='$double_quote_subst'
  26605. delay_variable_subst='$delay_variable_subst'
  26606. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26607. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26608. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26609. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26610. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26611. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26612. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26613. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26614. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26615. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26616. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26617. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26618. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26619. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26620. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26621. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26622. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26623. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26624. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26625. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26626. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26627. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26628. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26629. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26630. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26631. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26632. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26633. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26634. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26635. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26636. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26637. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26638. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26639. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26640. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26641. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26642. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26643. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26644. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26645. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26646. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26647. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26648. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26649. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26650. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26651. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26652. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26653. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26654. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26655. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26656. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26657. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26658. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26659. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26660. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26661. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26662. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26663. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26664. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26665. 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"`'
  26666. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26667. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26668. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26669. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26670. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26671. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26672. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26673. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26674. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26675. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26676. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26677. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26678. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26679. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26680. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26681. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26682. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26683. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26684. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26685. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26686. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26687. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26688. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26689. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26690. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26691. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26692. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26693. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26694. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26695. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26696. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26697. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26698. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26699. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26700. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26701. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26702. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26703. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26704. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26705. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26706. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26707. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26708. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26709. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26710. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26711. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26712. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26713. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26714. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26715. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26716. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26717. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26718. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26719. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26720. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26721. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26722. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26723. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26724. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26725. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26726. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26727. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26728. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26729. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26730. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26731. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26732. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26733. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26734. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26735. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26736. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26737. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26738. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26739. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26740. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26741. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26742. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26743. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26744. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26745. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26746. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26747. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26748. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26749. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26750. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26751. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26752. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26753. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26754. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26755. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26756. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26757. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26758. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26759. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26760. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26761. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26762. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26763. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26764. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26765. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26766. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26767. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26768. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26769. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26770. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26771. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26772. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26773. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26774. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26775. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26776. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26777. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26778. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26779. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26780. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26781. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26782. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26783. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26784. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26785. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26786. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26787. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26788. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26789. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26790. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26791. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26792. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26793. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26794. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26795. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26796. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26797. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26798. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26799. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26800. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26801. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26802. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26803. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26804. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26805. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26806. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26807. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26808. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26809. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26810. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26811. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26812. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26813. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26814. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26815. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26816. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26817. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26818. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26819. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26820. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26821. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26822. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26823. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26824. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26825. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26826. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26827. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26828. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26829. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26830. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26831. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26832. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26833. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26834. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26835. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26836. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26837. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26838. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26839. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26840. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26841. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26842. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26843. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26844. LTCC='$LTCC'
  26845. LTCFLAGS='$LTCFLAGS'
  26846. compiler='$compiler_DEFAULT'
  26847. # A function that is used when there is no print builtin or printf.
  26848. func_fallback_echo ()
  26849. {
  26850. eval 'cat <<_LTECHO_EOF
  26851. \$1
  26852. _LTECHO_EOF'
  26853. }
  26854. # Quote evaled strings.
  26855. for var in AS \
  26856. DLLTOOL \
  26857. OBJDUMP \
  26858. SHELL \
  26859. ECHO \
  26860. PATH_SEPARATOR \
  26861. SED \
  26862. GREP \
  26863. EGREP \
  26864. FGREP \
  26865. LD \
  26866. NM \
  26867. LN_S \
  26868. lt_SP2NL \
  26869. lt_NL2SP \
  26870. reload_flag \
  26871. deplibs_check_method \
  26872. file_magic_cmd \
  26873. file_magic_glob \
  26874. want_nocaseglob \
  26875. sharedlib_from_linklib_cmd \
  26876. AR \
  26877. AR_FLAGS \
  26878. archiver_list_spec \
  26879. STRIP \
  26880. RANLIB \
  26881. CC \
  26882. CFLAGS \
  26883. compiler \
  26884. lt_cv_sys_global_symbol_pipe \
  26885. lt_cv_sys_global_symbol_to_cdecl \
  26886. lt_cv_sys_global_symbol_to_import \
  26887. lt_cv_sys_global_symbol_to_c_name_address \
  26888. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26889. lt_cv_nm_interface \
  26890. nm_file_list_spec \
  26891. lt_cv_truncate_bin \
  26892. lt_prog_compiler_no_builtin_flag \
  26893. lt_prog_compiler_pic \
  26894. lt_prog_compiler_wl \
  26895. lt_prog_compiler_static \
  26896. lt_cv_prog_compiler_c_o \
  26897. need_locks \
  26898. MANIFEST_TOOL \
  26899. DSYMUTIL \
  26900. NMEDIT \
  26901. LIPO \
  26902. OTOOL \
  26903. OTOOL64 \
  26904. shrext_cmds \
  26905. export_dynamic_flag_spec \
  26906. whole_archive_flag_spec \
  26907. compiler_needs_object \
  26908. with_gnu_ld \
  26909. allow_undefined_flag \
  26910. no_undefined_flag \
  26911. hardcode_libdir_flag_spec \
  26912. hardcode_libdir_separator \
  26913. exclude_expsyms \
  26914. include_expsyms \
  26915. file_list_spec \
  26916. variables_saved_for_relink \
  26917. libname_spec \
  26918. library_names_spec \
  26919. soname_spec \
  26920. install_override_mode \
  26921. finish_eval \
  26922. old_striplib \
  26923. striplib \
  26924. compiler_lib_search_dirs \
  26925. predep_objects \
  26926. postdep_objects \
  26927. predeps \
  26928. postdeps \
  26929. compiler_lib_search_path \
  26930. LD_RC \
  26931. LD_CXX \
  26932. reload_flag_RC \
  26933. reload_flag_CXX \
  26934. compiler_RC \
  26935. compiler_CXX \
  26936. lt_prog_compiler_no_builtin_flag_RC \
  26937. lt_prog_compiler_no_builtin_flag_CXX \
  26938. lt_prog_compiler_pic_RC \
  26939. lt_prog_compiler_pic_CXX \
  26940. lt_prog_compiler_wl_RC \
  26941. lt_prog_compiler_wl_CXX \
  26942. lt_prog_compiler_static_RC \
  26943. lt_prog_compiler_static_CXX \
  26944. lt_cv_prog_compiler_c_o_RC \
  26945. lt_cv_prog_compiler_c_o_CXX \
  26946. export_dynamic_flag_spec_RC \
  26947. export_dynamic_flag_spec_CXX \
  26948. whole_archive_flag_spec_RC \
  26949. whole_archive_flag_spec_CXX \
  26950. compiler_needs_object_RC \
  26951. compiler_needs_object_CXX \
  26952. with_gnu_ld_RC \
  26953. with_gnu_ld_CXX \
  26954. allow_undefined_flag_RC \
  26955. allow_undefined_flag_CXX \
  26956. no_undefined_flag_RC \
  26957. no_undefined_flag_CXX \
  26958. hardcode_libdir_flag_spec_RC \
  26959. hardcode_libdir_flag_spec_CXX \
  26960. hardcode_libdir_separator_RC \
  26961. hardcode_libdir_separator_CXX \
  26962. exclude_expsyms_RC \
  26963. exclude_expsyms_CXX \
  26964. include_expsyms_RC \
  26965. include_expsyms_CXX \
  26966. file_list_spec_RC \
  26967. file_list_spec_CXX \
  26968. compiler_lib_search_dirs_RC \
  26969. compiler_lib_search_dirs_CXX \
  26970. predep_objects_RC \
  26971. predep_objects_CXX \
  26972. postdep_objects_RC \
  26973. postdep_objects_CXX \
  26974. predeps_RC \
  26975. predeps_CXX \
  26976. postdeps_RC \
  26977. postdeps_CXX \
  26978. compiler_lib_search_path_RC \
  26979. compiler_lib_search_path_CXX; do
  26980. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26981. *[\\\\\\\`\\"\\\$]*)
  26982. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26983. ;;
  26984. *)
  26985. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26986. ;;
  26987. esac
  26988. done
  26989. # Double-quote double-evaled strings.
  26990. for var in reload_cmds \
  26991. old_postinstall_cmds \
  26992. old_postuninstall_cmds \
  26993. old_archive_cmds \
  26994. extract_expsyms_cmds \
  26995. old_archive_from_new_cmds \
  26996. old_archive_from_expsyms_cmds \
  26997. archive_cmds \
  26998. archive_expsym_cmds \
  26999. module_cmds \
  27000. module_expsym_cmds \
  27001. export_symbols_cmds \
  27002. prelink_cmds \
  27003. postlink_cmds \
  27004. postinstall_cmds \
  27005. postuninstall_cmds \
  27006. finish_cmds \
  27007. sys_lib_search_path_spec \
  27008. configure_time_dlsearch_path \
  27009. configure_time_lt_sys_library_path \
  27010. reload_cmds_RC \
  27011. reload_cmds_CXX \
  27012. old_archive_cmds_RC \
  27013. old_archive_cmds_CXX \
  27014. old_archive_from_new_cmds_RC \
  27015. old_archive_from_new_cmds_CXX \
  27016. old_archive_from_expsyms_cmds_RC \
  27017. old_archive_from_expsyms_cmds_CXX \
  27018. archive_cmds_RC \
  27019. archive_cmds_CXX \
  27020. archive_expsym_cmds_RC \
  27021. archive_expsym_cmds_CXX \
  27022. module_cmds_RC \
  27023. module_cmds_CXX \
  27024. module_expsym_cmds_RC \
  27025. module_expsym_cmds_CXX \
  27026. export_symbols_cmds_RC \
  27027. export_symbols_cmds_CXX \
  27028. prelink_cmds_RC \
  27029. prelink_cmds_CXX \
  27030. postlink_cmds_RC \
  27031. postlink_cmds_CXX; do
  27032. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27033. *[\\\\\\\`\\"\\\$]*)
  27034. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27035. ;;
  27036. *)
  27037. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27038. ;;
  27039. esac
  27040. done
  27041. ac_aux_dir='$ac_aux_dir'
  27042. # See if we are running on zsh, and set the options that allow our
  27043. # commands through without removal of \ escapes INIT.
  27044. if test -n "\${ZSH_VERSION+set}"; then
  27045. setopt NO_GLOB_SUBST
  27046. fi
  27047. PACKAGE='$PACKAGE'
  27048. VERSION='$VERSION'
  27049. RM='$RM'
  27050. ofile='$ofile'
  27051. SUMMARY="$SUMMARY"
  27052. _ACEOF
  27053. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27054. # Handling of arguments.
  27055. for ac_config_target in $ac_config_targets
  27056. do
  27057. case $ac_config_target in
  27058. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  27059. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  27060. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  27061. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  27062. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  27063. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  27064. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  27065. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  27066. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  27067. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  27068. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  27069. esac
  27070. done
  27071. # If the user did not use the arguments to specify the items to instantiate,
  27072. # then the envvar interface is used. Set only those that are not.
  27073. # We use the long form for the default assignment because of an extremely
  27074. # bizarre bug on SunOS 4.1.3.
  27075. if $ac_need_defaults; then
  27076. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  27077. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  27078. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  27079. fi
  27080. # Have a temporary directory for convenience. Make it in the build tree
  27081. # simply because there is no reason against having it here, and in addition,
  27082. # creating and moving files from /tmp can sometimes cause problems.
  27083. # Hook for its removal unless debugging.
  27084. # Note that there is a small window in which the directory will not be cleaned:
  27085. # after its creation but before its name has been assigned to `$tmp'.
  27086. $debug ||
  27087. {
  27088. tmp= ac_tmp=
  27089. trap 'exit_status=$?
  27090. : "${ac_tmp:=$tmp}"
  27091. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  27092. ' 0
  27093. trap 'as_fn_exit 1' 1 2 13 15
  27094. }
  27095. # Create a (secure) tmp directory for tmp files.
  27096. {
  27097. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  27098. test -d "$tmp"
  27099. } ||
  27100. {
  27101. tmp=./conf$$-$RANDOM
  27102. (umask 077 && mkdir "$tmp")
  27103. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  27104. ac_tmp=$tmp
  27105. # Set up the scripts for CONFIG_FILES section.
  27106. # No need to generate them if there are no CONFIG_FILES.
  27107. # This happens for instance with `./config.status config.h'.
  27108. if test -n "$CONFIG_FILES"; then
  27109. ac_cr=`echo X | tr X '\015'`
  27110. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  27111. # But we know of no other shell where ac_cr would be empty at this
  27112. # point, so we can use a bashism as a fallback.
  27113. if test "x$ac_cr" = x; then
  27114. eval ac_cr=\$\'\\r\'
  27115. fi
  27116. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  27117. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  27118. ac_cs_awk_cr='\\r'
  27119. else
  27120. ac_cs_awk_cr=$ac_cr
  27121. fi
  27122. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  27123. _ACEOF
  27124. {
  27125. echo "cat >conf$$subs.awk <<_ACEOF" &&
  27126. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  27127. echo "_ACEOF"
  27128. } >conf$$subs.sh ||
  27129. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27130. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  27131. ac_delim='%!_!# '
  27132. for ac_last_try in false false false false false :; do
  27133. . ./conf$$subs.sh ||
  27134. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27135. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  27136. if test $ac_delim_n = $ac_delim_num; then
  27137. break
  27138. elif $ac_last_try; then
  27139. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27140. else
  27141. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27142. fi
  27143. done
  27144. rm -f conf$$subs.sh
  27145. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27146. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  27147. _ACEOF
  27148. sed -n '
  27149. h
  27150. s/^/S["/; s/!.*/"]=/
  27151. p
  27152. g
  27153. s/^[^!]*!//
  27154. :repl
  27155. t repl
  27156. s/'"$ac_delim"'$//
  27157. t delim
  27158. :nl
  27159. h
  27160. s/\(.\{148\}\)..*/\1/
  27161. t more1
  27162. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  27163. p
  27164. n
  27165. b repl
  27166. :more1
  27167. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27168. p
  27169. g
  27170. s/.\{148\}//
  27171. t nl
  27172. :delim
  27173. h
  27174. s/\(.\{148\}\)..*/\1/
  27175. t more2
  27176. s/["\\]/\\&/g; s/^/"/; s/$/"/
  27177. p
  27178. b
  27179. :more2
  27180. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27181. p
  27182. g
  27183. s/.\{148\}//
  27184. t delim
  27185. ' <conf$$subs.awk | sed '
  27186. /^[^""]/{
  27187. N
  27188. s/\n//
  27189. }
  27190. ' >>$CONFIG_STATUS || ac_write_fail=1
  27191. rm -f conf$$subs.awk
  27192. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27193. _ACAWK
  27194. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  27195. for (key in S) S_is_set[key] = 1
  27196. FS = ""
  27197. }
  27198. {
  27199. line = $ 0
  27200. nfields = split(line, field, "@")
  27201. substed = 0
  27202. len = length(field[1])
  27203. for (i = 2; i < nfields; i++) {
  27204. key = field[i]
  27205. keylen = length(key)
  27206. if (S_is_set[key]) {
  27207. value = S[key]
  27208. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  27209. len += length(value) + length(field[++i])
  27210. substed = 1
  27211. } else
  27212. len += 1 + keylen
  27213. }
  27214. print line
  27215. }
  27216. _ACAWK
  27217. _ACEOF
  27218. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27219. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  27220. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  27221. else
  27222. cat
  27223. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  27224. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  27225. _ACEOF
  27226. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  27227. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  27228. # trailing colons and then remove the whole line if VPATH becomes empty
  27229. # (actually we leave an empty line to preserve line numbers).
  27230. if test "x$srcdir" = x.; then
  27231. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27232. h
  27233. s///
  27234. s/^/:/
  27235. s/[ ]*$/:/
  27236. s/:\$(srcdir):/:/g
  27237. s/:\${srcdir}:/:/g
  27238. s/:@srcdir@:/:/g
  27239. s/^:*//
  27240. s/:*$//
  27241. x
  27242. s/\(=[ ]*\).*/\1/
  27243. G
  27244. s/\n//
  27245. s/^[^=]*=[ ]*$//
  27246. }'
  27247. fi
  27248. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27249. fi # test -n "$CONFIG_FILES"
  27250. # Set up the scripts for CONFIG_HEADERS section.
  27251. # No need to generate them if there are no CONFIG_HEADERS.
  27252. # This happens for instance with `./config.status Makefile'.
  27253. if test -n "$CONFIG_HEADERS"; then
  27254. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27255. BEGIN {
  27256. _ACEOF
  27257. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27258. # here-document in config.status, that substitutes the proper values into
  27259. # config.h.in to produce config.h.
  27260. # Create a delimiter string that does not exist in confdefs.h, to ease
  27261. # handling of long lines.
  27262. ac_delim='%!_!# '
  27263. for ac_last_try in false false :; do
  27264. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27265. if test -z "$ac_tt"; then
  27266. break
  27267. elif $ac_last_try; then
  27268. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27269. else
  27270. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27271. fi
  27272. done
  27273. # For the awk script, D is an array of macro values keyed by name,
  27274. # likewise P contains macro parameters if any. Preserve backslash
  27275. # newline sequences.
  27276. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27277. sed -n '
  27278. s/.\{148\}/&'"$ac_delim"'/g
  27279. t rset
  27280. :rset
  27281. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27282. t def
  27283. d
  27284. :def
  27285. s/\\$//
  27286. t bsnl
  27287. s/["\\]/\\&/g
  27288. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27289. D["\1"]=" \3"/p
  27290. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27291. d
  27292. :bsnl
  27293. s/["\\]/\\&/g
  27294. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27295. D["\1"]=" \3\\\\\\n"\\/p
  27296. t cont
  27297. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27298. t cont
  27299. d
  27300. :cont
  27301. n
  27302. s/.\{148\}/&'"$ac_delim"'/g
  27303. t clear
  27304. :clear
  27305. s/\\$//
  27306. t bsnlc
  27307. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27308. d
  27309. :bsnlc
  27310. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27311. b cont
  27312. ' <confdefs.h | sed '
  27313. s/'"$ac_delim"'/"\\\
  27314. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27315. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27316. for (key in D) D_is_set[key] = 1
  27317. FS = ""
  27318. }
  27319. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27320. line = \$ 0
  27321. split(line, arg, " ")
  27322. if (arg[1] == "#") {
  27323. defundef = arg[2]
  27324. mac1 = arg[3]
  27325. } else {
  27326. defundef = substr(arg[1], 2)
  27327. mac1 = arg[2]
  27328. }
  27329. split(mac1, mac2, "(") #)
  27330. macro = mac2[1]
  27331. prefix = substr(line, 1, index(line, defundef) - 1)
  27332. if (D_is_set[macro]) {
  27333. # Preserve the white space surrounding the "#".
  27334. print prefix "define", macro P[macro] D[macro]
  27335. next
  27336. } else {
  27337. # Replace #undef with comments. This is necessary, for example,
  27338. # in the case of _POSIX_SOURCE, which is predefined and required
  27339. # on some systems where configure will not decide to define it.
  27340. if (defundef == "undef") {
  27341. print "/*", prefix defundef, macro, "*/"
  27342. next
  27343. }
  27344. }
  27345. }
  27346. { print }
  27347. _ACAWK
  27348. _ACEOF
  27349. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27350. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27351. fi # test -n "$CONFIG_HEADERS"
  27352. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27353. shift
  27354. for ac_tag
  27355. do
  27356. case $ac_tag in
  27357. :[FHLC]) ac_mode=$ac_tag; continue;;
  27358. esac
  27359. case $ac_mode$ac_tag in
  27360. :[FHL]*:*);;
  27361. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27362. :[FH]-) ac_tag=-:-;;
  27363. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27364. esac
  27365. ac_save_IFS=$IFS
  27366. IFS=:
  27367. set x $ac_tag
  27368. IFS=$ac_save_IFS
  27369. shift
  27370. ac_file=$1
  27371. shift
  27372. case $ac_mode in
  27373. :L) ac_source=$1;;
  27374. :[FH])
  27375. ac_file_inputs=
  27376. for ac_f
  27377. do
  27378. case $ac_f in
  27379. -) ac_f="$ac_tmp/stdin";;
  27380. *) # Look for the file first in the build tree, then in the source tree
  27381. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27382. # because $ac_f cannot contain `:'.
  27383. test -f "$ac_f" ||
  27384. case $ac_f in
  27385. [\\/$]*) false;;
  27386. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27387. esac ||
  27388. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27389. esac
  27390. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27391. as_fn_append ac_file_inputs " '$ac_f'"
  27392. done
  27393. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27394. # use $as_me), people would be surprised to read:
  27395. # /* config.h. Generated by config.status. */
  27396. configure_input='Generated from '`
  27397. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27398. `' by configure.'
  27399. if test x"$ac_file" != x-; then
  27400. configure_input="$ac_file. $configure_input"
  27401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27402. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27403. fi
  27404. # Neutralize special characters interpreted by sed in replacement strings.
  27405. case $configure_input in #(
  27406. *\&* | *\|* | *\\* )
  27407. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27408. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27409. *) ac_sed_conf_input=$configure_input;;
  27410. esac
  27411. case $ac_tag in
  27412. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27413. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27414. esac
  27415. ;;
  27416. esac
  27417. ac_dir=`$as_dirname -- "$ac_file" ||
  27418. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27419. X"$ac_file" : 'X\(//\)[^/]' \| \
  27420. X"$ac_file" : 'X\(//\)$' \| \
  27421. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27422. printf "%s\n" X"$ac_file" |
  27423. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27424. s//\1/
  27425. q
  27426. }
  27427. /^X\(\/\/\)[^/].*/{
  27428. s//\1/
  27429. q
  27430. }
  27431. /^X\(\/\/\)$/{
  27432. s//\1/
  27433. q
  27434. }
  27435. /^X\(\/\).*/{
  27436. s//\1/
  27437. q
  27438. }
  27439. s/.*/./; q'`
  27440. as_dir="$ac_dir"; as_fn_mkdir_p
  27441. ac_builddir=.
  27442. case "$ac_dir" in
  27443. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27444. *)
  27445. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27446. # A ".." for each directory in $ac_dir_suffix.
  27447. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27448. case $ac_top_builddir_sub in
  27449. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27450. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27451. esac ;;
  27452. esac
  27453. ac_abs_top_builddir=$ac_pwd
  27454. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27455. # for backward compatibility:
  27456. ac_top_builddir=$ac_top_build_prefix
  27457. case $srcdir in
  27458. .) # We are building in place.
  27459. ac_srcdir=.
  27460. ac_top_srcdir=$ac_top_builddir_sub
  27461. ac_abs_top_srcdir=$ac_pwd ;;
  27462. [\\/]* | ?:[\\/]* ) # Absolute name.
  27463. ac_srcdir=$srcdir$ac_dir_suffix;
  27464. ac_top_srcdir=$srcdir
  27465. ac_abs_top_srcdir=$srcdir ;;
  27466. *) # Relative name.
  27467. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27468. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27469. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27470. esac
  27471. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27472. case $ac_mode in
  27473. :F)
  27474. #
  27475. # CONFIG_FILE
  27476. #
  27477. case $INSTALL in
  27478. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27479. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27480. esac
  27481. _ACEOF
  27482. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27483. # If the template does not know about datarootdir, expand it.
  27484. # FIXME: This hack should be removed a few years after 2.60.
  27485. ac_datarootdir_hack=; ac_datarootdir_seen=
  27486. ac_sed_dataroot='
  27487. /datarootdir/ {
  27488. p
  27489. q
  27490. }
  27491. /@datadir@/p
  27492. /@docdir@/p
  27493. /@infodir@/p
  27494. /@localedir@/p
  27495. /@mandir@/p'
  27496. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27497. *datarootdir*) ac_datarootdir_seen=yes;;
  27498. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27500. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27501. _ACEOF
  27502. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27503. ac_datarootdir_hack='
  27504. s&@datadir@&$datadir&g
  27505. s&@docdir@&$docdir&g
  27506. s&@infodir@&$infodir&g
  27507. s&@localedir@&$localedir&g
  27508. s&@mandir@&$mandir&g
  27509. s&\\\${datarootdir}&$datarootdir&g' ;;
  27510. esac
  27511. _ACEOF
  27512. # Neutralize VPATH when `$srcdir' = `.'.
  27513. # Shell code in configure.ac might set extrasub.
  27514. # FIXME: do we really want to maintain this feature?
  27515. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27516. ac_sed_extra="$ac_vpsub
  27517. $extrasub
  27518. _ACEOF
  27519. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27520. :t
  27521. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27522. s|@configure_input@|$ac_sed_conf_input|;t t
  27523. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27524. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27525. s&@srcdir@&$ac_srcdir&;t t
  27526. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27527. s&@top_srcdir@&$ac_top_srcdir&;t t
  27528. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27529. s&@builddir@&$ac_builddir&;t t
  27530. s&@abs_builddir@&$ac_abs_builddir&;t t
  27531. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27532. s&@INSTALL@&$ac_INSTALL&;t t
  27533. $ac_datarootdir_hack
  27534. "
  27535. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27536. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27537. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27538. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27539. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27540. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27542. which seems to be undefined. Please make sure it is defined" >&5
  27543. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27544. which seems to be undefined. Please make sure it is defined" >&2;}
  27545. rm -f "$ac_tmp/stdin"
  27546. case $ac_file in
  27547. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27548. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27549. esac \
  27550. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27551. ;;
  27552. :H)
  27553. #
  27554. # CONFIG_HEADER
  27555. #
  27556. if test x"$ac_file" != x-; then
  27557. {
  27558. printf "%s\n" "/* $configure_input */" >&1 \
  27559. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27560. } >"$ac_tmp/config.h" \
  27561. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27562. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27564. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27565. else
  27566. rm -f "$ac_file"
  27567. mv "$ac_tmp/config.h" "$ac_file" \
  27568. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27569. fi
  27570. else
  27571. printf "%s\n" "/* $configure_input */" >&1 \
  27572. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27573. || as_fn_error $? "could not create -" "$LINENO" 5
  27574. fi
  27575. ;;
  27576. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27577. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27578. ;;
  27579. esac
  27580. case $ac_file$ac_mode in
  27581. "libtool":C)
  27582. # See if we are running on zsh, and set the options that allow our
  27583. # commands through without removal of \ escapes.
  27584. if test -n "${ZSH_VERSION+set}"; then
  27585. setopt NO_GLOB_SUBST
  27586. fi
  27587. cfgfile=${ofile}T
  27588. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27589. $RM "$cfgfile"
  27590. cat <<_LT_EOF >> "$cfgfile"
  27591. #! $SHELL
  27592. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27593. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27594. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27595. # Provide generalized library-building support services.
  27596. # Written by Gordon Matzigkeit, 1996
  27597. # Copyright (C) 2014 Free Software Foundation, Inc.
  27598. # This is free software; see the source for copying conditions. There is NO
  27599. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27600. # GNU Libtool is free software; you can redistribute it and/or modify
  27601. # it under the terms of the GNU General Public License as published by
  27602. # the Free Software Foundation; either version 2 of of the License, or
  27603. # (at your option) any later version.
  27604. #
  27605. # As a special exception to the GNU General Public License, if you
  27606. # distribute this file as part of a program or library that is built
  27607. # using GNU Libtool, you may include this file under the same
  27608. # distribution terms that you use for the rest of that program.
  27609. #
  27610. # GNU Libtool is distributed in the hope that it will be useful, but
  27611. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27612. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27613. # GNU General Public License for more details.
  27614. #
  27615. # You should have received a copy of the GNU General Public License
  27616. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27617. # The names of the tagged configurations supported by this script.
  27618. available_tags='RC CXX '
  27619. # Configured defaults for sys_lib_dlsearch_path munging.
  27620. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27621. # ### BEGIN LIBTOOL CONFIG
  27622. # Which release of libtool.m4 was used?
  27623. macro_version=$macro_version
  27624. macro_revision=$macro_revision
  27625. # Assembler program.
  27626. AS=$lt_AS
  27627. # DLL creation program.
  27628. DLLTOOL=$lt_DLLTOOL
  27629. # Object dumper program.
  27630. OBJDUMP=$lt_OBJDUMP
  27631. # Whether or not to build shared libraries.
  27632. build_libtool_libs=$enable_shared
  27633. # Whether or not to build static libraries.
  27634. build_old_libs=$enable_static
  27635. # What type of objects to build.
  27636. pic_mode=$pic_mode
  27637. # Whether or not to optimize for fast installation.
  27638. fast_install=$enable_fast_install
  27639. # Shared archive member basename,for filename based shared library versioning on AIX.
  27640. shared_archive_member_spec=$shared_archive_member_spec
  27641. # Shell to use when invoking shell scripts.
  27642. SHELL=$lt_SHELL
  27643. # An echo program that protects backslashes.
  27644. ECHO=$lt_ECHO
  27645. # The PATH separator for the build system.
  27646. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27647. # The host system.
  27648. host_alias=$host_alias
  27649. host=$host
  27650. host_os=$host_os
  27651. # The build system.
  27652. build_alias=$build_alias
  27653. build=$build
  27654. build_os=$build_os
  27655. # A sed program that does not truncate output.
  27656. SED=$lt_SED
  27657. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27658. Xsed="\$SED -e 1s/^X//"
  27659. # A grep program that handles long lines.
  27660. GREP=$lt_GREP
  27661. # An ERE matcher.
  27662. EGREP=$lt_EGREP
  27663. # A literal string matcher.
  27664. FGREP=$lt_FGREP
  27665. # A BSD- or MS-compatible name lister.
  27666. NM=$lt_NM
  27667. # Whether we need soft or hard links.
  27668. LN_S=$lt_LN_S
  27669. # What is the maximum length of a command?
  27670. max_cmd_len=$max_cmd_len
  27671. # Object file suffix (normally "o").
  27672. objext=$ac_objext
  27673. # Executable file suffix (normally "").
  27674. exeext=$exeext
  27675. # whether the shell understands "unset".
  27676. lt_unset=$lt_unset
  27677. # turn spaces into newlines.
  27678. SP2NL=$lt_lt_SP2NL
  27679. # turn newlines into spaces.
  27680. NL2SP=$lt_lt_NL2SP
  27681. # convert \$build file names to \$host format.
  27682. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27683. # convert \$build files to toolchain format.
  27684. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27685. # Method to check whether dependent libraries are shared objects.
  27686. deplibs_check_method=$lt_deplibs_check_method
  27687. # Command to use when deplibs_check_method = "file_magic".
  27688. file_magic_cmd=$lt_file_magic_cmd
  27689. # How to find potential files when deplibs_check_method = "file_magic".
  27690. file_magic_glob=$lt_file_magic_glob
  27691. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27692. want_nocaseglob=$lt_want_nocaseglob
  27693. # Command to associate shared and link libraries.
  27694. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27695. # The archiver.
  27696. AR=$lt_AR
  27697. # Flags to create an archive.
  27698. AR_FLAGS=$lt_AR_FLAGS
  27699. # How to feed a file listing to the archiver.
  27700. archiver_list_spec=$lt_archiver_list_spec
  27701. # A symbol stripping program.
  27702. STRIP=$lt_STRIP
  27703. # Commands used to install an old-style archive.
  27704. RANLIB=$lt_RANLIB
  27705. old_postinstall_cmds=$lt_old_postinstall_cmds
  27706. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27707. # Whether to use a lock for old archive extraction.
  27708. lock_old_archive_extraction=$lock_old_archive_extraction
  27709. # A C compiler.
  27710. LTCC=$lt_CC
  27711. # LTCC compiler flags.
  27712. LTCFLAGS=$lt_CFLAGS
  27713. # Take the output of nm and produce a listing of raw symbols and C names.
  27714. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27715. # Transform the output of nm in a proper C declaration.
  27716. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27717. # Transform the output of nm into a list of symbols to manually relocate.
  27718. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27719. # Transform the output of nm in a C name address pair.
  27720. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27721. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27722. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27723. # The name lister interface.
  27724. nm_interface=$lt_lt_cv_nm_interface
  27725. # Specify filename containing input files for \$NM.
  27726. nm_file_list_spec=$lt_nm_file_list_spec
  27727. # The root where to search for dependent libraries,and where our libraries should be installed.
  27728. lt_sysroot=$lt_sysroot
  27729. # Command to truncate a binary pipe.
  27730. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27731. # The name of the directory that contains temporary libtool files.
  27732. objdir=$objdir
  27733. # Used to examine libraries when file_magic_cmd begins with "file".
  27734. MAGIC_CMD=$MAGIC_CMD
  27735. # Must we lock files when doing compilation?
  27736. need_locks=$lt_need_locks
  27737. # Manifest tool.
  27738. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27739. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27740. DSYMUTIL=$lt_DSYMUTIL
  27741. # Tool to change global to local symbols on Mac OS X.
  27742. NMEDIT=$lt_NMEDIT
  27743. # Tool to manipulate fat objects and archives on Mac OS X.
  27744. LIPO=$lt_LIPO
  27745. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27746. OTOOL=$lt_OTOOL
  27747. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27748. OTOOL64=$lt_OTOOL64
  27749. # Old archive suffix (normally "a").
  27750. libext=$libext
  27751. # Shared library suffix (normally ".so").
  27752. shrext_cmds=$lt_shrext_cmds
  27753. # The commands to extract the exported symbol list from a shared archive.
  27754. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27755. # Variables whose values should be saved in libtool wrapper scripts and
  27756. # restored at link time.
  27757. variables_saved_for_relink=$lt_variables_saved_for_relink
  27758. # Do we need the "lib" prefix for modules?
  27759. need_lib_prefix=$need_lib_prefix
  27760. # Do we need a version for libraries?
  27761. need_version=$need_version
  27762. # Library versioning type.
  27763. version_type=$version_type
  27764. # Shared library runtime path variable.
  27765. runpath_var=$runpath_var
  27766. # Shared library path variable.
  27767. shlibpath_var=$shlibpath_var
  27768. # Is shlibpath searched before the hard-coded library search path?
  27769. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27770. # Format of library name prefix.
  27771. libname_spec=$lt_libname_spec
  27772. # List of archive names. First name is the real one, the rest are links.
  27773. # The last name is the one that the linker finds with -lNAME
  27774. library_names_spec=$lt_library_names_spec
  27775. # The coded name of the library, if different from the real name.
  27776. soname_spec=$lt_soname_spec
  27777. # Permission mode override for installation of shared libraries.
  27778. install_override_mode=$lt_install_override_mode
  27779. # Command to use after installation of a shared archive.
  27780. postinstall_cmds=$lt_postinstall_cmds
  27781. # Command to use after uninstallation of a shared archive.
  27782. postuninstall_cmds=$lt_postuninstall_cmds
  27783. # Commands used to finish a libtool library installation in a directory.
  27784. finish_cmds=$lt_finish_cmds
  27785. # As "finish_cmds", except a single script fragment to be evaled but
  27786. # not shown.
  27787. finish_eval=$lt_finish_eval
  27788. # Whether we should hardcode library paths into libraries.
  27789. hardcode_into_libs=$hardcode_into_libs
  27790. # Compile-time system search path for libraries.
  27791. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27792. # Detected run-time system search path for libraries.
  27793. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27794. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27795. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27796. # Whether dlopen is supported.
  27797. dlopen_support=$enable_dlopen
  27798. # Whether dlopen of programs is supported.
  27799. dlopen_self=$enable_dlopen_self
  27800. # Whether dlopen of statically linked programs is supported.
  27801. dlopen_self_static=$enable_dlopen_self_static
  27802. # Commands to strip libraries.
  27803. old_striplib=$lt_old_striplib
  27804. striplib=$lt_striplib
  27805. # The linker used to build libraries.
  27806. LD=$lt_LD
  27807. # How to create reloadable object files.
  27808. reload_flag=$lt_reload_flag
  27809. reload_cmds=$lt_reload_cmds
  27810. # Commands used to build an old-style archive.
  27811. old_archive_cmds=$lt_old_archive_cmds
  27812. # A language specific compiler.
  27813. CC=$lt_compiler
  27814. # Is the compiler the GNU compiler?
  27815. with_gcc=$GCC
  27816. # Compiler flag to turn off builtin functions.
  27817. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27818. # Additional compiler flags for building library objects.
  27819. pic_flag=$lt_lt_prog_compiler_pic
  27820. # How to pass a linker flag through the compiler.
  27821. wl=$lt_lt_prog_compiler_wl
  27822. # Compiler flag to prevent dynamic linking.
  27823. link_static_flag=$lt_lt_prog_compiler_static
  27824. # Does compiler simultaneously support -c and -o options?
  27825. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27826. # Whether or not to add -lc for building shared libraries.
  27827. build_libtool_need_lc=$archive_cmds_need_lc
  27828. # Whether or not to disallow shared libs when runtime libs are static.
  27829. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27830. # Compiler flag to allow reflexive dlopens.
  27831. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27832. # Compiler flag to generate shared objects directly from archives.
  27833. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27834. # Whether the compiler copes with passing no objects directly.
  27835. compiler_needs_object=$lt_compiler_needs_object
  27836. # Create an old-style archive from a shared archive.
  27837. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27838. # Create a temporary old-style archive to link instead of a shared archive.
  27839. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27840. # Commands used to build a shared archive.
  27841. archive_cmds=$lt_archive_cmds
  27842. archive_expsym_cmds=$lt_archive_expsym_cmds
  27843. # Commands used to build a loadable module if different from building
  27844. # a shared archive.
  27845. module_cmds=$lt_module_cmds
  27846. module_expsym_cmds=$lt_module_expsym_cmds
  27847. # Whether we are building with GNU ld or not.
  27848. with_gnu_ld=$lt_with_gnu_ld
  27849. # Flag that allows shared libraries with undefined symbols to be built.
  27850. allow_undefined_flag=$lt_allow_undefined_flag
  27851. # Flag that enforces no undefined symbols.
  27852. no_undefined_flag=$lt_no_undefined_flag
  27853. # Flag to hardcode \$libdir into a binary during linking.
  27854. # This must work even if \$libdir does not exist
  27855. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27856. # Whether we need a single "-rpath" flag with a separated argument.
  27857. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27858. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27859. # DIR into the resulting binary.
  27860. hardcode_direct=$hardcode_direct
  27861. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27862. # DIR into the resulting binary and the resulting library dependency is
  27863. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27864. # library is relocated.
  27865. hardcode_direct_absolute=$hardcode_direct_absolute
  27866. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27867. # into the resulting binary.
  27868. hardcode_minus_L=$hardcode_minus_L
  27869. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27870. # into the resulting binary.
  27871. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27872. # Set to "yes" if building a shared library automatically hardcodes DIR
  27873. # into the library and all subsequent libraries and executables linked
  27874. # against it.
  27875. hardcode_automatic=$hardcode_automatic
  27876. # Set to yes if linker adds runtime paths of dependent libraries
  27877. # to runtime path list.
  27878. inherit_rpath=$inherit_rpath
  27879. # Whether libtool must link a program against all its dependency libraries.
  27880. link_all_deplibs=$link_all_deplibs
  27881. # Set to "yes" if exported symbols are required.
  27882. always_export_symbols=$always_export_symbols
  27883. # The commands to list exported symbols.
  27884. export_symbols_cmds=$lt_export_symbols_cmds
  27885. # Symbols that should not be listed in the preloaded symbols.
  27886. exclude_expsyms=$lt_exclude_expsyms
  27887. # Symbols that must always be exported.
  27888. include_expsyms=$lt_include_expsyms
  27889. # Commands necessary for linking programs (against libraries) with templates.
  27890. prelink_cmds=$lt_prelink_cmds
  27891. # Commands necessary for finishing linking programs.
  27892. postlink_cmds=$lt_postlink_cmds
  27893. # Specify filename containing input files.
  27894. file_list_spec=$lt_file_list_spec
  27895. # How to hardcode a shared library path into an executable.
  27896. hardcode_action=$hardcode_action
  27897. # The directories searched by this compiler when creating a shared library.
  27898. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27899. # Dependencies to place before and after the objects being linked to
  27900. # create a shared library.
  27901. predep_objects=$lt_predep_objects
  27902. postdep_objects=$lt_postdep_objects
  27903. predeps=$lt_predeps
  27904. postdeps=$lt_postdeps
  27905. # The library search path used internally by the compiler when linking
  27906. # a shared library.
  27907. compiler_lib_search_path=$lt_compiler_lib_search_path
  27908. # ### END LIBTOOL CONFIG
  27909. _LT_EOF
  27910. cat <<'_LT_EOF' >> "$cfgfile"
  27911. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27912. # func_munge_path_list VARIABLE PATH
  27913. # -----------------------------------
  27914. # VARIABLE is name of variable containing _space_ separated list of
  27915. # directories to be munged by the contents of PATH, which is string
  27916. # having a format:
  27917. # "DIR[:DIR]:"
  27918. # string "DIR[ DIR]" will be prepended to VARIABLE
  27919. # ":DIR[:DIR]"
  27920. # string "DIR[ DIR]" will be appended to VARIABLE
  27921. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27922. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27923. # "DIRA[ DIRA]" will be appended to VARIABLE
  27924. # "DIR[:DIR]"
  27925. # VARIABLE will be replaced by "DIR[ DIR]"
  27926. func_munge_path_list ()
  27927. {
  27928. case x$2 in
  27929. x)
  27930. ;;
  27931. *:)
  27932. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27933. ;;
  27934. x:*)
  27935. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27936. ;;
  27937. *::*)
  27938. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27939. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27940. ;;
  27941. *)
  27942. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27943. ;;
  27944. esac
  27945. }
  27946. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27947. func_cc_basename ()
  27948. {
  27949. for cc_temp in $*""; do
  27950. case $cc_temp in
  27951. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27952. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27953. \-*) ;;
  27954. *) break;;
  27955. esac
  27956. done
  27957. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27958. }
  27959. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27960. _LT_EOF
  27961. case $host_os in
  27962. aix3*)
  27963. cat <<\_LT_EOF >> "$cfgfile"
  27964. # AIX sometimes has problems with the GCC collect2 program. For some
  27965. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27966. # vanish in a puff of smoke.
  27967. if test set != "${COLLECT_NAMES+set}"; then
  27968. COLLECT_NAMES=
  27969. export COLLECT_NAMES
  27970. fi
  27971. _LT_EOF
  27972. ;;
  27973. esac
  27974. ltmain=$ac_aux_dir/ltmain.sh
  27975. # We use sed instead of cat because bash on DJGPP gets confused if
  27976. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27977. # text mode, it properly converts lines to CR/LF. This bash problem
  27978. # is reportedly fixed, but why not run on old versions too?
  27979. sed '$q' "$ltmain" >> "$cfgfile" \
  27980. || (rm -f "$cfgfile"; exit 1)
  27981. mv -f "$cfgfile" "$ofile" ||
  27982. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27983. chmod +x "$ofile"
  27984. cat <<_LT_EOF >> "$ofile"
  27985. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27986. # The linker used to build libraries.
  27987. LD=$lt_LD_RC
  27988. # How to create reloadable object files.
  27989. reload_flag=$lt_reload_flag_RC
  27990. reload_cmds=$lt_reload_cmds_RC
  27991. # Commands used to build an old-style archive.
  27992. old_archive_cmds=$lt_old_archive_cmds_RC
  27993. # A language specific compiler.
  27994. CC=$lt_compiler_RC
  27995. # Is the compiler the GNU compiler?
  27996. with_gcc=$GCC_RC
  27997. # Compiler flag to turn off builtin functions.
  27998. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27999. # Additional compiler flags for building library objects.
  28000. pic_flag=$lt_lt_prog_compiler_pic_RC
  28001. # How to pass a linker flag through the compiler.
  28002. wl=$lt_lt_prog_compiler_wl_RC
  28003. # Compiler flag to prevent dynamic linking.
  28004. link_static_flag=$lt_lt_prog_compiler_static_RC
  28005. # Does compiler simultaneously support -c and -o options?
  28006. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  28007. # Whether or not to add -lc for building shared libraries.
  28008. build_libtool_need_lc=$archive_cmds_need_lc_RC
  28009. # Whether or not to disallow shared libs when runtime libs are static.
  28010. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  28011. # Compiler flag to allow reflexive dlopens.
  28012. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  28013. # Compiler flag to generate shared objects directly from archives.
  28014. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  28015. # Whether the compiler copes with passing no objects directly.
  28016. compiler_needs_object=$lt_compiler_needs_object_RC
  28017. # Create an old-style archive from a shared archive.
  28018. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  28019. # Create a temporary old-style archive to link instead of a shared archive.
  28020. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  28021. # Commands used to build a shared archive.
  28022. archive_cmds=$lt_archive_cmds_RC
  28023. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  28024. # Commands used to build a loadable module if different from building
  28025. # a shared archive.
  28026. module_cmds=$lt_module_cmds_RC
  28027. module_expsym_cmds=$lt_module_expsym_cmds_RC
  28028. # Whether we are building with GNU ld or not.
  28029. with_gnu_ld=$lt_with_gnu_ld_RC
  28030. # Flag that allows shared libraries with undefined symbols to be built.
  28031. allow_undefined_flag=$lt_allow_undefined_flag_RC
  28032. # Flag that enforces no undefined symbols.
  28033. no_undefined_flag=$lt_no_undefined_flag_RC
  28034. # Flag to hardcode \$libdir into a binary during linking.
  28035. # This must work even if \$libdir does not exist
  28036. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  28037. # Whether we need a single "-rpath" flag with a separated argument.
  28038. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  28039. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28040. # DIR into the resulting binary.
  28041. hardcode_direct=$hardcode_direct_RC
  28042. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28043. # DIR into the resulting binary and the resulting library dependency is
  28044. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28045. # library is relocated.
  28046. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  28047. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28048. # into the resulting binary.
  28049. hardcode_minus_L=$hardcode_minus_L_RC
  28050. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28051. # into the resulting binary.
  28052. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  28053. # Set to "yes" if building a shared library automatically hardcodes DIR
  28054. # into the library and all subsequent libraries and executables linked
  28055. # against it.
  28056. hardcode_automatic=$hardcode_automatic_RC
  28057. # Set to yes if linker adds runtime paths of dependent libraries
  28058. # to runtime path list.
  28059. inherit_rpath=$inherit_rpath_RC
  28060. # Whether libtool must link a program against all its dependency libraries.
  28061. link_all_deplibs=$link_all_deplibs_RC
  28062. # Set to "yes" if exported symbols are required.
  28063. always_export_symbols=$always_export_symbols_RC
  28064. # The commands to list exported symbols.
  28065. export_symbols_cmds=$lt_export_symbols_cmds_RC
  28066. # Symbols that should not be listed in the preloaded symbols.
  28067. exclude_expsyms=$lt_exclude_expsyms_RC
  28068. # Symbols that must always be exported.
  28069. include_expsyms=$lt_include_expsyms_RC
  28070. # Commands necessary for linking programs (against libraries) with templates.
  28071. prelink_cmds=$lt_prelink_cmds_RC
  28072. # Commands necessary for finishing linking programs.
  28073. postlink_cmds=$lt_postlink_cmds_RC
  28074. # Specify filename containing input files.
  28075. file_list_spec=$lt_file_list_spec_RC
  28076. # How to hardcode a shared library path into an executable.
  28077. hardcode_action=$hardcode_action_RC
  28078. # The directories searched by this compiler when creating a shared library.
  28079. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  28080. # Dependencies to place before and after the objects being linked to
  28081. # create a shared library.
  28082. predep_objects=$lt_predep_objects_RC
  28083. postdep_objects=$lt_postdep_objects_RC
  28084. predeps=$lt_predeps_RC
  28085. postdeps=$lt_postdeps_RC
  28086. # The library search path used internally by the compiler when linking
  28087. # a shared library.
  28088. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  28089. # ### END LIBTOOL TAG CONFIG: RC
  28090. _LT_EOF
  28091. cat <<_LT_EOF >> "$ofile"
  28092. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  28093. # The linker used to build libraries.
  28094. LD=$lt_LD_CXX
  28095. # How to create reloadable object files.
  28096. reload_flag=$lt_reload_flag_CXX
  28097. reload_cmds=$lt_reload_cmds_CXX
  28098. # Commands used to build an old-style archive.
  28099. old_archive_cmds=$lt_old_archive_cmds_CXX
  28100. # A language specific compiler.
  28101. CC=$lt_compiler_CXX
  28102. # Is the compiler the GNU compiler?
  28103. with_gcc=$GCC_CXX
  28104. # Compiler flag to turn off builtin functions.
  28105. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  28106. # Additional compiler flags for building library objects.
  28107. pic_flag=$lt_lt_prog_compiler_pic_CXX
  28108. # How to pass a linker flag through the compiler.
  28109. wl=$lt_lt_prog_compiler_wl_CXX
  28110. # Compiler flag to prevent dynamic linking.
  28111. link_static_flag=$lt_lt_prog_compiler_static_CXX
  28112. # Does compiler simultaneously support -c and -o options?
  28113. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  28114. # Whether or not to add -lc for building shared libraries.
  28115. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  28116. # Whether or not to disallow shared libs when runtime libs are static.
  28117. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  28118. # Compiler flag to allow reflexive dlopens.
  28119. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  28120. # Compiler flag to generate shared objects directly from archives.
  28121. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  28122. # Whether the compiler copes with passing no objects directly.
  28123. compiler_needs_object=$lt_compiler_needs_object_CXX
  28124. # Create an old-style archive from a shared archive.
  28125. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  28126. # Create a temporary old-style archive to link instead of a shared archive.
  28127. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  28128. # Commands used to build a shared archive.
  28129. archive_cmds=$lt_archive_cmds_CXX
  28130. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  28131. # Commands used to build a loadable module if different from building
  28132. # a shared archive.
  28133. module_cmds=$lt_module_cmds_CXX
  28134. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  28135. # Whether we are building with GNU ld or not.
  28136. with_gnu_ld=$lt_with_gnu_ld_CXX
  28137. # Flag that allows shared libraries with undefined symbols to be built.
  28138. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  28139. # Flag that enforces no undefined symbols.
  28140. no_undefined_flag=$lt_no_undefined_flag_CXX
  28141. # Flag to hardcode \$libdir into a binary during linking.
  28142. # This must work even if \$libdir does not exist
  28143. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  28144. # Whether we need a single "-rpath" flag with a separated argument.
  28145. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  28146. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28147. # DIR into the resulting binary.
  28148. hardcode_direct=$hardcode_direct_CXX
  28149. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28150. # DIR into the resulting binary and the resulting library dependency is
  28151. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28152. # library is relocated.
  28153. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  28154. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28155. # into the resulting binary.
  28156. hardcode_minus_L=$hardcode_minus_L_CXX
  28157. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28158. # into the resulting binary.
  28159. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  28160. # Set to "yes" if building a shared library automatically hardcodes DIR
  28161. # into the library and all subsequent libraries and executables linked
  28162. # against it.
  28163. hardcode_automatic=$hardcode_automatic_CXX
  28164. # Set to yes if linker adds runtime paths of dependent libraries
  28165. # to runtime path list.
  28166. inherit_rpath=$inherit_rpath_CXX
  28167. # Whether libtool must link a program against all its dependency libraries.
  28168. link_all_deplibs=$link_all_deplibs_CXX
  28169. # Set to "yes" if exported symbols are required.
  28170. always_export_symbols=$always_export_symbols_CXX
  28171. # The commands to list exported symbols.
  28172. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  28173. # Symbols that should not be listed in the preloaded symbols.
  28174. exclude_expsyms=$lt_exclude_expsyms_CXX
  28175. # Symbols that must always be exported.
  28176. include_expsyms=$lt_include_expsyms_CXX
  28177. # Commands necessary for linking programs (against libraries) with templates.
  28178. prelink_cmds=$lt_prelink_cmds_CXX
  28179. # Commands necessary for finishing linking programs.
  28180. postlink_cmds=$lt_postlink_cmds_CXX
  28181. # Specify filename containing input files.
  28182. file_list_spec=$lt_file_list_spec_CXX
  28183. # How to hardcode a shared library path into an executable.
  28184. hardcode_action=$hardcode_action_CXX
  28185. # The directories searched by this compiler when creating a shared library.
  28186. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  28187. # Dependencies to place before and after the objects being linked to
  28188. # create a shared library.
  28189. predep_objects=$lt_predep_objects_CXX
  28190. postdep_objects=$lt_postdep_objects_CXX
  28191. predeps=$lt_predeps_CXX
  28192. postdeps=$lt_postdeps_CXX
  28193. # The library search path used internally by the compiler when linking
  28194. # a shared library.
  28195. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  28196. # ### END LIBTOOL TAG CONFIG: CXX
  28197. _LT_EOF
  28198. ;;
  28199. "sdl2_config":C) chmod a+x sdl2-config ;;
  28200. "summary":C) printf "$SUMMARY" ;;
  28201. esac
  28202. done # for ac_tag
  28203. as_fn_exit 0
  28204. _ACEOF
  28205. ac_clean_files=$ac_clean_files_save
  28206. test $ac_write_fail = 0 ||
  28207. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  28208. # configure is writing to config.log, and then calls config.status.
  28209. # config.status does its own redirection, appending to config.log.
  28210. # Unfortunately, on DOS this fails, as config.log is still kept open
  28211. # by configure, so config.status won't be able to write to it; its
  28212. # output is simply discarded. So we exec the FD to /dev/null,
  28213. # effectively closing config.log, so it can be properly (re)opened and
  28214. # appended to by config.status. When coming back to configure, we
  28215. # need to make the FD available again.
  28216. if test "$no_create" != yes; then
  28217. ac_cs_success=:
  28218. ac_config_status_args=
  28219. test "$silent" = yes &&
  28220. ac_config_status_args="$ac_config_status_args --quiet"
  28221. exec 5>/dev/null
  28222. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28223. exec 5>>config.log
  28224. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28225. # would make configure fail if this is the last instruction.
  28226. $ac_cs_success || as_fn_exit 1
  28227. fi
  28228. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28230. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28231. fi