configure 951 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445
  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. WAYLAND_SCANNER_CODE_MODE
  601. WAYLAND_SCANNER
  602. EXTRA_LDFLAGS
  603. BUILD_LDFLAGS
  604. EXTRA_CFLAGS
  605. BUILD_CFLAGS
  606. SDLTEST_OBJECTS
  607. SDLMAIN_OBJECTS
  608. VERSION_OBJECTS
  609. GEN_OBJECTS
  610. GEN_HEADERS
  611. OBJECTS
  612. INCLUDE
  613. ac_aux_dir
  614. ENABLE_STATIC_FALSE
  615. ENABLE_STATIC_TRUE
  616. ENABLE_SHARED_FALSE
  617. ENABLE_SHARED_TRUE
  618. PKGCONFIG_LIBS_PRIV
  619. SDL_RLD_FLAGS
  620. SDL_STATIC_LIBS
  621. SDL_LIBS
  622. SDL_CFLAGS
  623. bin_prefix_relpath
  624. cmake_prefix_relpath
  625. INSTALL_SDL2_CONFIG
  626. LIBUSB_LIBS
  627. LIBUSB_CFLAGS
  628. IBUS_LIBS
  629. IBUS_CFLAGS
  630. DBUS_LIBS
  631. DBUS_CFLAGS
  632. LIBGBM_LIBS
  633. LIBGBM_CFLAGS
  634. LIBDRM_LIBS
  635. LIBDRM_CFLAGS
  636. DIRECTFB_LIBS
  637. DIRECTFB_CFLAGS
  638. X_EXTRA_LIBS
  639. X_LIBS
  640. X_PRE_LIBS
  641. X_CFLAGS
  642. XMKMF
  643. RPI_LIBS
  644. RPI_CFLAGS
  645. DECOR_LIBS
  646. DECOR_CFLAGS
  647. FUSIONSOUND_LIBS
  648. FUSIONSOUND_CFLAGS
  649. ARTSCONFIG
  650. PULSEAUDIO_LIBS
  651. PULSEAUDIO_CFLAGS
  652. PIPEWIRE_LIBS
  653. PIPEWIRE_CFLAGS
  654. ESD_LIBS
  655. ESD_CFLAGS
  656. ESD_CONFIG
  657. JACK_LIBS
  658. JACK_CFLAGS
  659. ALSA_LIBS
  660. ALSA_CFLAGS
  661. POW_LIB
  662. LIBOBJS
  663. ALLOCA
  664. CPP
  665. LIBTOOLLINKERTAG
  666. LINKER
  667. PKG_CONFIG_LIBDIR
  668. PKG_CONFIG_PATH
  669. PKG_CONFIG
  670. SET_MAKE
  671. INSTALL_DATA
  672. INSTALL_SCRIPT
  673. INSTALL_PROGRAM
  674. CXXCPP
  675. ac_ct_CXX
  676. CXXFLAGS
  677. CXX
  678. LT_AGE
  679. LT_REVISION
  680. LT_CURRENT
  681. LT_RELEASE
  682. RC
  683. LT_SYS_LIBRARY_PATH
  684. OTOOL64
  685. OTOOL
  686. LIPO
  687. NMEDIT
  688. DSYMUTIL
  689. MANIFEST_TOOL
  690. AWK
  691. RANLIB
  692. STRIP
  693. ac_ct_AR
  694. AR
  695. LN_S
  696. NM
  697. ac_ct_DUMPBIN
  698. DUMPBIN
  699. LD
  700. FGREP
  701. EGREP
  702. GREP
  703. SED
  704. OBJEXT
  705. EXEEXT
  706. ac_ct_CC
  707. CPPFLAGS
  708. LDFLAGS
  709. CFLAGS
  710. CC
  711. host_os
  712. host_vendor
  713. host_cpu
  714. host
  715. build_os
  716. build_vendor
  717. build_cpu
  718. build
  719. LIBTOOL
  720. OBJDUMP
  721. DLLTOOL
  722. AS
  723. SDL_VERSION
  724. SDL_BINARY_AGE
  725. SDL_INTERFACE_AGE
  726. SDL_MICRO_VERSION
  727. SDL_MINOR_VERSION
  728. SDL_MAJOR_VERSION
  729. target_alias
  730. host_alias
  731. build_alias
  732. LIBS
  733. ECHO_T
  734. ECHO_N
  735. ECHO_C
  736. DEFS
  737. mandir
  738. localedir
  739. libdir
  740. psdir
  741. pdfdir
  742. dvidir
  743. htmldir
  744. infodir
  745. docdir
  746. oldincludedir
  747. includedir
  748. runstatedir
  749. localstatedir
  750. sharedstatedir
  751. sysconfdir
  752. datadir
  753. datarootdir
  754. libexecdir
  755. sbindir
  756. bindir
  757. program_transform_name
  758. prefix
  759. exec_prefix
  760. PACKAGE_URL
  761. PACKAGE_BUGREPORT
  762. PACKAGE_STRING
  763. PACKAGE_VERSION
  764. PACKAGE_TARNAME
  765. PACKAGE_NAME
  766. PATH_SEPARATOR
  767. SHELL'
  768. ac_subst_files=''
  769. ac_user_opts='
  770. enable_option_checking
  771. enable_shared
  772. enable_static
  773. with_pic
  774. enable_fast_install
  775. with_aix_soname
  776. with_gnu_ld
  777. with_sysroot
  778. enable_libtool_lock
  779. enable_largefile
  780. enable_assertions
  781. enable_dependency_tracking
  782. enable_libc
  783. enable_gcc_atomics
  784. enable_atomic
  785. enable_audio
  786. enable_video
  787. enable_render
  788. enable_events
  789. enable_joystick
  790. enable_haptic
  791. enable_hidapi
  792. enable_sensor
  793. enable_power
  794. enable_filesystem
  795. enable_threads
  796. enable_timers
  797. enable_file
  798. enable_misc
  799. enable_locale
  800. enable_loadso
  801. enable_cpuinfo
  802. enable_assembly
  803. enable_ssemath
  804. enable_mmx
  805. enable_3dnow
  806. enable_sse
  807. enable_sse2
  808. enable_sse3
  809. enable_altivec
  810. enable_lsx
  811. enable_lasx
  812. enable_oss
  813. enable_alsa
  814. with_alsa_prefix
  815. with_alsa_inc_prefix
  816. enable_alsatest
  817. enable_alsa_shared
  818. enable_jack
  819. enable_jack_shared
  820. enable_esd
  821. with_esd_prefix
  822. with_esd_exec_prefix
  823. enable_esdtest
  824. enable_esd_shared
  825. enable_pipewire
  826. enable_pipewire_shared
  827. enable_pulseaudio
  828. enable_pulseaudio_shared
  829. enable_arts
  830. enable_arts_shared
  831. enable_nas
  832. enable_nas_shared
  833. enable_sndio
  834. enable_sndio_shared
  835. enable_fusionsound
  836. enable_fusionsound_shared
  837. enable_diskaudio
  838. enable_dummyaudio
  839. enable_libsamplerate
  840. enable_libsamplerate_shared
  841. enable_arm_simd
  842. enable_arm_neon
  843. enable_video_wayland
  844. enable_video_wayland_qt_touch
  845. enable_wayland_shared
  846. enable_libdecor
  847. enable_libdecor_shared
  848. enable_video_rpi
  849. enable_video_x11
  850. with_x
  851. enable_x11_shared
  852. enable_video_x11_xcursor
  853. enable_video_x11_xdbe
  854. enable_video_x11_xinput
  855. enable_video_x11_xfixes
  856. enable_video_x11_xrandr
  857. enable_video_x11_scrnsaver
  858. enable_video_x11_xshape
  859. enable_video_vivante
  860. enable_video_cocoa
  861. enable_video_metal
  862. enable_render_metal
  863. enable_video_directfb
  864. enable_directfb_shared
  865. enable_video_kmsdrm
  866. enable_kmsdrm_shared
  867. enable_video_dummy
  868. enable_video_offscreen
  869. enable_video_opengl
  870. enable_video_opengles
  871. enable_video_opengles1
  872. enable_video_opengles2
  873. enable_video_vulkan
  874. enable_libudev
  875. enable_dbus
  876. enable_ime
  877. enable_ibus
  878. enable_fcitx
  879. enable_joystick_mfi
  880. enable_pthreads
  881. enable_pthread_sem
  882. enable_directx
  883. enable_xinput
  884. enable_wasapi
  885. enable_hidapi_joystick
  886. enable_hidapi_libusb
  887. enable_clock_gettime
  888. enable_rpath
  889. enable_backgrounding_signal
  890. enable_foregrounding_signal
  891. enable_joystick_virtual
  892. enable_render_d3d
  893. enable_sdl2_config
  894. '
  895. ac_precious_vars='build_alias
  896. host_alias
  897. target_alias
  898. CC
  899. CFLAGS
  900. LDFLAGS
  901. LIBS
  902. CPPFLAGS
  903. LT_SYS_LIBRARY_PATH
  904. CXX
  905. CXXFLAGS
  906. CCC
  907. CXXCPP
  908. PKG_CONFIG
  909. PKG_CONFIG_PATH
  910. PKG_CONFIG_LIBDIR
  911. CPP
  912. JACK_CFLAGS
  913. JACK_LIBS
  914. PIPEWIRE_CFLAGS
  915. PIPEWIRE_LIBS
  916. PULSEAUDIO_CFLAGS
  917. PULSEAUDIO_LIBS
  918. FUSIONSOUND_CFLAGS
  919. FUSIONSOUND_LIBS
  920. DECOR_CFLAGS
  921. DECOR_LIBS
  922. RPI_CFLAGS
  923. RPI_LIBS
  924. XMKMF
  925. DIRECTFB_CFLAGS
  926. DIRECTFB_LIBS
  927. LIBDRM_CFLAGS
  928. LIBDRM_LIBS
  929. LIBGBM_CFLAGS
  930. LIBGBM_LIBS
  931. DBUS_CFLAGS
  932. DBUS_LIBS
  933. IBUS_CFLAGS
  934. IBUS_LIBS
  935. LIBUSB_CFLAGS
  936. LIBUSB_LIBS'
  937. # Initialize some variables set by options.
  938. ac_init_help=
  939. ac_init_version=false
  940. ac_unrecognized_opts=
  941. ac_unrecognized_sep=
  942. # The variables have the same names as the options, with
  943. # dashes changed to underlines.
  944. cache_file=/dev/null
  945. exec_prefix=NONE
  946. no_create=
  947. no_recursion=
  948. prefix=NONE
  949. program_prefix=NONE
  950. program_suffix=NONE
  951. program_transform_name=s,x,x,
  952. silent=
  953. site=
  954. srcdir=
  955. verbose=
  956. x_includes=NONE
  957. x_libraries=NONE
  958. # Installation directory options.
  959. # These are left unexpanded so users can "make install exec_prefix=/foo"
  960. # and all the variables that are supposed to be based on exec_prefix
  961. # by default will actually change.
  962. # Use braces instead of parens because sh, perl, etc. also accept them.
  963. # (The list follows the same order as the GNU Coding Standards.)
  964. bindir='${exec_prefix}/bin'
  965. sbindir='${exec_prefix}/sbin'
  966. libexecdir='${exec_prefix}/libexec'
  967. datarootdir='${prefix}/share'
  968. datadir='${datarootdir}'
  969. sysconfdir='${prefix}/etc'
  970. sharedstatedir='${prefix}/com'
  971. localstatedir='${prefix}/var'
  972. runstatedir='${localstatedir}/run'
  973. includedir='${prefix}/include'
  974. oldincludedir='/usr/include'
  975. docdir='${datarootdir}/doc/${PACKAGE}'
  976. infodir='${datarootdir}/info'
  977. htmldir='${docdir}'
  978. dvidir='${docdir}'
  979. pdfdir='${docdir}'
  980. psdir='${docdir}'
  981. libdir='${exec_prefix}/lib'
  982. localedir='${datarootdir}/locale'
  983. mandir='${datarootdir}/man'
  984. ac_prev=
  985. ac_dashdash=
  986. for ac_option
  987. do
  988. # If the previous option needs an argument, assign it.
  989. if test -n "$ac_prev"; then
  990. eval $ac_prev=\$ac_option
  991. ac_prev=
  992. continue
  993. fi
  994. case $ac_option in
  995. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  996. *=) ac_optarg= ;;
  997. *) ac_optarg=yes ;;
  998. esac
  999. case $ac_dashdash$ac_option in
  1000. --)
  1001. ac_dashdash=yes ;;
  1002. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1003. ac_prev=bindir ;;
  1004. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1005. bindir=$ac_optarg ;;
  1006. -build | --build | --buil | --bui | --bu)
  1007. ac_prev=build_alias ;;
  1008. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1009. build_alias=$ac_optarg ;;
  1010. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1011. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1012. ac_prev=cache_file ;;
  1013. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1014. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1015. cache_file=$ac_optarg ;;
  1016. --config-cache | -C)
  1017. cache_file=config.cache ;;
  1018. -datadir | --datadir | --datadi | --datad)
  1019. ac_prev=datadir ;;
  1020. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1021. datadir=$ac_optarg ;;
  1022. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1023. | --dataroo | --dataro | --datar)
  1024. ac_prev=datarootdir ;;
  1025. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1026. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1027. datarootdir=$ac_optarg ;;
  1028. -disable-* | --disable-*)
  1029. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1030. # Reject names that are not valid shell variable names.
  1031. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1032. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1033. ac_useropt_orig=$ac_useropt
  1034. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1035. case $ac_user_opts in
  1036. *"
  1037. "enable_$ac_useropt"
  1038. "*) ;;
  1039. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1040. ac_unrecognized_sep=', ';;
  1041. esac
  1042. eval enable_$ac_useropt=no ;;
  1043. -docdir | --docdir | --docdi | --doc | --do)
  1044. ac_prev=docdir ;;
  1045. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1046. docdir=$ac_optarg ;;
  1047. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1048. ac_prev=dvidir ;;
  1049. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1050. dvidir=$ac_optarg ;;
  1051. -enable-* | --enable-*)
  1052. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1053. # Reject names that are not valid shell variable names.
  1054. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1055. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1056. ac_useropt_orig=$ac_useropt
  1057. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1058. case $ac_user_opts in
  1059. *"
  1060. "enable_$ac_useropt"
  1061. "*) ;;
  1062. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1063. ac_unrecognized_sep=', ';;
  1064. esac
  1065. eval enable_$ac_useropt=\$ac_optarg ;;
  1066. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1067. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1068. | --exec | --exe | --ex)
  1069. ac_prev=exec_prefix ;;
  1070. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1071. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1072. | --exec=* | --exe=* | --ex=*)
  1073. exec_prefix=$ac_optarg ;;
  1074. -gas | --gas | --ga | --g)
  1075. # Obsolete; use --with-gas.
  1076. with_gas=yes ;;
  1077. -help | --help | --hel | --he | -h)
  1078. ac_init_help=long ;;
  1079. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1080. ac_init_help=recursive ;;
  1081. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1082. ac_init_help=short ;;
  1083. -host | --host | --hos | --ho)
  1084. ac_prev=host_alias ;;
  1085. -host=* | --host=* | --hos=* | --ho=*)
  1086. host_alias=$ac_optarg ;;
  1087. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1088. ac_prev=htmldir ;;
  1089. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1090. | --ht=*)
  1091. htmldir=$ac_optarg ;;
  1092. -includedir | --includedir | --includedi | --included | --include \
  1093. | --includ | --inclu | --incl | --inc)
  1094. ac_prev=includedir ;;
  1095. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1096. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1097. includedir=$ac_optarg ;;
  1098. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1099. ac_prev=infodir ;;
  1100. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1101. infodir=$ac_optarg ;;
  1102. -libdir | --libdir | --libdi | --libd)
  1103. ac_prev=libdir ;;
  1104. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1105. libdir=$ac_optarg ;;
  1106. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1107. | --libexe | --libex | --libe)
  1108. ac_prev=libexecdir ;;
  1109. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1110. | --libexe=* | --libex=* | --libe=*)
  1111. libexecdir=$ac_optarg ;;
  1112. -localedir | --localedir | --localedi | --localed | --locale)
  1113. ac_prev=localedir ;;
  1114. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1115. localedir=$ac_optarg ;;
  1116. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1117. | --localstate | --localstat | --localsta | --localst | --locals)
  1118. ac_prev=localstatedir ;;
  1119. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1120. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1121. localstatedir=$ac_optarg ;;
  1122. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1123. ac_prev=mandir ;;
  1124. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1125. mandir=$ac_optarg ;;
  1126. -nfp | --nfp | --nf)
  1127. # Obsolete; use --without-fp.
  1128. with_fp=no ;;
  1129. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1130. | --no-cr | --no-c | -n)
  1131. no_create=yes ;;
  1132. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1133. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1134. no_recursion=yes ;;
  1135. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1136. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1137. | --oldin | --oldi | --old | --ol | --o)
  1138. ac_prev=oldincludedir ;;
  1139. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1140. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1141. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1142. oldincludedir=$ac_optarg ;;
  1143. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1144. ac_prev=prefix ;;
  1145. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1146. prefix=$ac_optarg ;;
  1147. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1148. | --program-pre | --program-pr | --program-p)
  1149. ac_prev=program_prefix ;;
  1150. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1151. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1152. program_prefix=$ac_optarg ;;
  1153. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1154. | --program-suf | --program-su | --program-s)
  1155. ac_prev=program_suffix ;;
  1156. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1157. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1158. program_suffix=$ac_optarg ;;
  1159. -program-transform-name | --program-transform-name \
  1160. | --program-transform-nam | --program-transform-na \
  1161. | --program-transform-n | --program-transform- \
  1162. | --program-transform | --program-transfor \
  1163. | --program-transfo | --program-transf \
  1164. | --program-trans | --program-tran \
  1165. | --progr-tra | --program-tr | --program-t)
  1166. ac_prev=program_transform_name ;;
  1167. -program-transform-name=* | --program-transform-name=* \
  1168. | --program-transform-nam=* | --program-transform-na=* \
  1169. | --program-transform-n=* | --program-transform-=* \
  1170. | --program-transform=* | --program-transfor=* \
  1171. | --program-transfo=* | --program-transf=* \
  1172. | --program-trans=* | --program-tran=* \
  1173. | --progr-tra=* | --program-tr=* | --program-t=*)
  1174. program_transform_name=$ac_optarg ;;
  1175. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1176. ac_prev=pdfdir ;;
  1177. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1178. pdfdir=$ac_optarg ;;
  1179. -psdir | --psdir | --psdi | --psd | --ps)
  1180. ac_prev=psdir ;;
  1181. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1182. psdir=$ac_optarg ;;
  1183. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1184. | -silent | --silent | --silen | --sile | --sil)
  1185. silent=yes ;;
  1186. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1187. | --runstate | --runstat | --runsta | --runst | --runs \
  1188. | --run | --ru | --r)
  1189. ac_prev=runstatedir ;;
  1190. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1191. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1192. | --run=* | --ru=* | --r=*)
  1193. runstatedir=$ac_optarg ;;
  1194. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1195. ac_prev=sbindir ;;
  1196. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1197. | --sbi=* | --sb=*)
  1198. sbindir=$ac_optarg ;;
  1199. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1200. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1201. | --sharedst | --shareds | --shared | --share | --shar \
  1202. | --sha | --sh)
  1203. ac_prev=sharedstatedir ;;
  1204. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1205. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1206. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1207. | --sha=* | --sh=*)
  1208. sharedstatedir=$ac_optarg ;;
  1209. -site | --site | --sit)
  1210. ac_prev=site ;;
  1211. -site=* | --site=* | --sit=*)
  1212. site=$ac_optarg ;;
  1213. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1214. ac_prev=srcdir ;;
  1215. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1216. srcdir=$ac_optarg ;;
  1217. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1218. | --syscon | --sysco | --sysc | --sys | --sy)
  1219. ac_prev=sysconfdir ;;
  1220. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1221. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1222. sysconfdir=$ac_optarg ;;
  1223. -target | --target | --targe | --targ | --tar | --ta | --t)
  1224. ac_prev=target_alias ;;
  1225. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1226. target_alias=$ac_optarg ;;
  1227. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1228. verbose=yes ;;
  1229. -version | --version | --versio | --versi | --vers | -V)
  1230. ac_init_version=: ;;
  1231. -with-* | --with-*)
  1232. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1233. # Reject names that are not valid shell variable names.
  1234. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1235. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1236. ac_useropt_orig=$ac_useropt
  1237. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1238. case $ac_user_opts in
  1239. *"
  1240. "with_$ac_useropt"
  1241. "*) ;;
  1242. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1243. ac_unrecognized_sep=', ';;
  1244. esac
  1245. eval with_$ac_useropt=\$ac_optarg ;;
  1246. -without-* | --without-*)
  1247. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1248. # Reject names that are not valid shell variable names.
  1249. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1250. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1251. ac_useropt_orig=$ac_useropt
  1252. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1253. case $ac_user_opts in
  1254. *"
  1255. "with_$ac_useropt"
  1256. "*) ;;
  1257. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1258. ac_unrecognized_sep=', ';;
  1259. esac
  1260. eval with_$ac_useropt=no ;;
  1261. --x)
  1262. # Obsolete; use --with-x.
  1263. with_x=yes ;;
  1264. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1265. | --x-incl | --x-inc | --x-in | --x-i)
  1266. ac_prev=x_includes ;;
  1267. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1268. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1269. x_includes=$ac_optarg ;;
  1270. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1271. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1272. ac_prev=x_libraries ;;
  1273. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1274. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1275. x_libraries=$ac_optarg ;;
  1276. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1277. Try \`$0 --help' for more information"
  1278. ;;
  1279. *=*)
  1280. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1281. # Reject names that are not valid shell variable names.
  1282. case $ac_envvar in #(
  1283. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1284. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1285. esac
  1286. eval $ac_envvar=\$ac_optarg
  1287. export $ac_envvar ;;
  1288. *)
  1289. # FIXME: should be removed in autoconf 3.0.
  1290. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1291. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1292. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1293. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1294. ;;
  1295. esac
  1296. done
  1297. if test -n "$ac_prev"; then
  1298. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1299. as_fn_error $? "missing argument to $ac_option"
  1300. fi
  1301. if test -n "$ac_unrecognized_opts"; then
  1302. case $enable_option_checking in
  1303. no) ;;
  1304. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1305. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1306. esac
  1307. fi
  1308. # Check all directory arguments for consistency.
  1309. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1310. datadir sysconfdir sharedstatedir localstatedir includedir \
  1311. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1312. libdir localedir mandir runstatedir
  1313. do
  1314. eval ac_val=\$$ac_var
  1315. # Remove trailing slashes.
  1316. case $ac_val in
  1317. */ )
  1318. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1319. eval $ac_var=\$ac_val;;
  1320. esac
  1321. # Be sure to have absolute directory names.
  1322. case $ac_val in
  1323. [\\/$]* | ?:[\\/]* ) continue;;
  1324. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1325. esac
  1326. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1327. done
  1328. # There might be people who depend on the old broken behavior: `$host'
  1329. # used to hold the argument of --host etc.
  1330. # FIXME: To remove some day.
  1331. build=$build_alias
  1332. host=$host_alias
  1333. target=$target_alias
  1334. # FIXME: To remove some day.
  1335. if test "x$host_alias" != x; then
  1336. if test "x$build_alias" = x; then
  1337. cross_compiling=maybe
  1338. elif test "x$build_alias" != "x$host_alias"; then
  1339. cross_compiling=yes
  1340. fi
  1341. fi
  1342. ac_tool_prefix=
  1343. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1344. test "$silent" = yes && exec 6>/dev/null
  1345. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1346. ac_ls_di=`ls -di .` &&
  1347. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1348. as_fn_error $? "working directory cannot be determined"
  1349. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1350. as_fn_error $? "pwd does not report name of working directory"
  1351. # Find the source files, if location was not specified.
  1352. if test -z "$srcdir"; then
  1353. ac_srcdir_defaulted=yes
  1354. # Try the directory containing this script, then the parent directory.
  1355. ac_confdir=`$as_dirname -- "$as_myself" ||
  1356. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1357. X"$as_myself" : 'X\(//\)[^/]' \| \
  1358. X"$as_myself" : 'X\(//\)$' \| \
  1359. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1360. printf "%s\n" X"$as_myself" |
  1361. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1362. s//\1/
  1363. q
  1364. }
  1365. /^X\(\/\/\)[^/].*/{
  1366. s//\1/
  1367. q
  1368. }
  1369. /^X\(\/\/\)$/{
  1370. s//\1/
  1371. q
  1372. }
  1373. /^X\(\/\).*/{
  1374. s//\1/
  1375. q
  1376. }
  1377. s/.*/./; q'`
  1378. srcdir=$ac_confdir
  1379. if test ! -r "$srcdir/$ac_unique_file"; then
  1380. srcdir=..
  1381. fi
  1382. else
  1383. ac_srcdir_defaulted=no
  1384. fi
  1385. if test ! -r "$srcdir/$ac_unique_file"; then
  1386. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1387. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1388. fi
  1389. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1390. ac_abs_confdir=`(
  1391. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1392. pwd)`
  1393. # When building in place, set srcdir=.
  1394. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1395. srcdir=.
  1396. fi
  1397. # Remove unnecessary trailing slashes from srcdir.
  1398. # Double slashes in file names in object file debugging info
  1399. # mess up M-x gdb in Emacs.
  1400. case $srcdir in
  1401. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1402. esac
  1403. for ac_var in $ac_precious_vars; do
  1404. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1405. eval ac_env_${ac_var}_value=\$${ac_var}
  1406. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1407. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1408. done
  1409. #
  1410. # Report the --help message.
  1411. #
  1412. if test "$ac_init_help" = "long"; then
  1413. # Omit some internal or obsolete options to make the list less imposing.
  1414. # This message is too long to be a string in the A/UX 3.1 sh.
  1415. cat <<_ACEOF
  1416. \`configure' configures this package to adapt to many kinds of systems.
  1417. Usage: $0 [OPTION]... [VAR=VALUE]...
  1418. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1419. VAR=VALUE. See below for descriptions of some of the useful variables.
  1420. Defaults for the options are specified in brackets.
  1421. Configuration:
  1422. -h, --help display this help and exit
  1423. --help=short display options specific to this package
  1424. --help=recursive display the short help of all the included packages
  1425. -V, --version display version information and exit
  1426. -q, --quiet, --silent do not print \`checking ...' messages
  1427. --cache-file=FILE cache test results in FILE [disabled]
  1428. -C, --config-cache alias for \`--cache-file=config.cache'
  1429. -n, --no-create do not create output files
  1430. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1431. Installation directories:
  1432. --prefix=PREFIX install architecture-independent files in PREFIX
  1433. [$ac_default_prefix]
  1434. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1435. [PREFIX]
  1436. By default, \`make install' will install all the files in
  1437. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1438. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1439. for instance \`--prefix=\$HOME'.
  1440. For better control, use the options below.
  1441. Fine tuning of the installation directories:
  1442. --bindir=DIR user executables [EPREFIX/bin]
  1443. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1444. --libexecdir=DIR program executables [EPREFIX/libexec]
  1445. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1446. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1447. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1448. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1449. --libdir=DIR object code libraries [EPREFIX/lib]
  1450. --includedir=DIR C header files [PREFIX/include]
  1451. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1452. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1453. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1454. --infodir=DIR info documentation [DATAROOTDIR/info]
  1455. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1456. --mandir=DIR man documentation [DATAROOTDIR/man]
  1457. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1458. --htmldir=DIR html documentation [DOCDIR]
  1459. --dvidir=DIR dvi documentation [DOCDIR]
  1460. --pdfdir=DIR pdf documentation [DOCDIR]
  1461. --psdir=DIR ps documentation [DOCDIR]
  1462. _ACEOF
  1463. cat <<\_ACEOF
  1464. X features:
  1465. --x-includes=DIR X include files are in DIR
  1466. --x-libraries=DIR X library files are in DIR
  1467. System types:
  1468. --build=BUILD configure for building on BUILD [guessed]
  1469. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1470. _ACEOF
  1471. fi
  1472. if test -n "$ac_init_help"; then
  1473. cat <<\_ACEOF
  1474. Optional Features:
  1475. --disable-option-checking ignore unrecognized --enable/--with options
  1476. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1477. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1478. --enable-shared[=PKGS] build shared libraries [default=yes]
  1479. --enable-static[=PKGS] build static libraries [default=yes]
  1480. --enable-fast-install[=PKGS]
  1481. optimize for fast installation [default=yes]
  1482. --disable-libtool-lock avoid locking (might break parallel builds)
  1483. --disable-largefile omit support for large files
  1484. --enable-assertions Enable internal sanity checks
  1485. (auto/disabled/release/enabled/paranoid)
  1486. [default=auto]
  1487. --enable-dependency-tracking
  1488. Use gcc -MMD -MT dependency tracking [default=yes]
  1489. --enable-libc Use the system C library [default=yes]
  1490. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1491. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1492. --enable-audio Enable the audio subsystem [default=yes]
  1493. --enable-video Enable the video subsystem [default=yes]
  1494. --enable-render Enable the render subsystem [default=yes]
  1495. --enable-events Enable the events subsystem [default=yes]
  1496. --enable-joystick Enable the joystick subsystem [default=yes]
  1497. --enable-haptic Enable the haptic (force feedback) subsystem
  1498. [default=yes]
  1499. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1500. --enable-sensor Enable the sensor subsystem [default=yes]
  1501. --enable-power Enable the power subsystem [default=yes]
  1502. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1503. --enable-threads Enable the threading subsystem [default=yes]
  1504. --enable-timers Enable the timer subsystem [default=yes]
  1505. --enable-file Enable the file subsystem [default=yes]
  1506. --enable-misc Enable the misc subsystem [default=yes]
  1507. --enable-locale Enable the locale subsystem [default=yes]
  1508. --enable-loadso Enable the shared object loading subsystem
  1509. [default=yes]
  1510. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1511. --enable-assembly Enable assembly routines [default=yes]
  1512. --enable-ssemath Allow GCC to use SSE floating point math
  1513. [default=maybe]
  1514. --enable-mmx use MMX assembly routines [default=yes]
  1515. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1516. --enable-sse use SSE assembly routines [default=yes]
  1517. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1518. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1519. --enable-altivec use Altivec assembly routines [default=yes]
  1520. --enable-lsx use LSX assembly routines [default=yes]
  1521. --enable-lasx use LASX assembly routines [default=yes]
  1522. --enable-oss support the OSS audio API [default=maybe]
  1523. --enable-alsa support the ALSA audio API [default=yes]
  1524. --disable-alsatest Do not try to compile and run a test Alsa program
  1525. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1526. --enable-jack use JACK audio [default=yes]
  1527. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1528. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1529. --disable-esdtest Do not try to compile and run a test ESD program
  1530. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1531. --enable-pipewire use Pipewire audio [default=yes]
  1532. --enable-pipewire-shared
  1533. dynamically load Pipewire support [default=yes]
  1534. --enable-pulseaudio use PulseAudio [default=yes]
  1535. --enable-pulseaudio-shared
  1536. dynamically load PulseAudio support [default=yes]
  1537. --enable-arts support the Analog Real Time Synthesizer
  1538. [default=yes]
  1539. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1540. --enable-nas support the NAS audio API [default=yes]
  1541. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1542. --enable-sndio support the sndio audio API [default=yes]
  1543. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1544. --enable-fusionsound use FusionSound audio driver [default=no]
  1545. --enable-fusionsound-shared
  1546. dynamically load fusionsound audio support
  1547. [default=yes]
  1548. --enable-diskaudio support the disk writer audio driver [default=yes]
  1549. --enable-dummyaudio support the dummy audio driver [default=yes]
  1550. --enable-libsamplerate use libsamplerate for audio rate conversion
  1551. [default=yes]
  1552. --enable-libsamplerate-shared
  1553. dynamically load libsamplerate [default=yes]
  1554. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1555. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1556. --enable-video-wayland use Wayland video driver [default=yes]
  1557. --enable-video-wayland-qt-touch
  1558. QtWayland server support for Wayland video driver
  1559. [default=yes]
  1560. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1561. --enable-libdecor use libdecor for Wayland client-side decorations
  1562. [default=yes]
  1563. --enable-libdecor-shared
  1564. dynamically load libdecor [default=yes]
  1565. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1566. --enable-video-x11 use X11 video driver [default=yes]
  1567. --enable-x11-shared dynamically load X11 support [default=maybe]
  1568. --enable-video-x11-xcursor
  1569. enable X11 Xcursor support [default=yes]
  1570. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1571. --enable-video-x11-xinput
  1572. enable X11 XInput extension for manymouse, tablets,
  1573. etc [default=yes]
  1574. --enable-video-x11-xfixes
  1575. enable X11 Xfixes support [default=yes]
  1576. --enable-video-x11-xrandr
  1577. enable X11 Xrandr extension for fullscreen
  1578. [default=yes]
  1579. --enable-video-x11-scrnsaver
  1580. enable X11 screensaver extension [default=yes]
  1581. --enable-video-x11-xshape
  1582. enable X11 XShape support [default=yes]
  1583. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1584. --enable-video-cocoa use Cocoa video driver [default=yes]
  1585. --enable-video-metal include Metal support [default=yes]
  1586. --enable-render-metal enable the Metal render driver [default=yes]
  1587. --enable-video-directfb use DirectFB video driver [default=no]
  1588. --enable-directfb-shared
  1589. dynamically load directfb support [default=yes]
  1590. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1591. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1592. --enable-video-dummy use dummy video driver [default=yes]
  1593. --enable-video-offscreen
  1594. use offscreen video driver [default=no]
  1595. --enable-video-opengl include OpenGL support [default=yes]
  1596. --enable-video-opengles include OpenGL ES support [default=yes]
  1597. --enable-video-opengles1
  1598. include OpenGL ES 1.1 support [default=yes]
  1599. --enable-video-opengles2
  1600. include OpenGL ES 2.0 support [default=yes]
  1601. --enable-video-vulkan include Vulkan support [default=yes]
  1602. --enable-libudev enable libudev support [default=yes]
  1603. --enable-dbus enable D-Bus support [default=yes]
  1604. --enable-ime enable IME support [default=yes]
  1605. --enable-ibus enable IBus support [default=yes]
  1606. --enable-fcitx enable fcitx support [default=yes]
  1607. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1608. --enable-pthreads use POSIX threads for multi-threading
  1609. [default=maybe]
  1610. --enable-pthread-sem use pthread semaphores [default=maybe]
  1611. --enable-directx use DirectX for Windows audio/video [default=yes]
  1612. --enable-xinput use Xinput for Windows [default=yes]
  1613. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1614. --enable-hidapi-joystick
  1615. use HIDAPI for low level joystick drivers
  1616. [default=yes]
  1617. --enable-hidapi-libusb use libusb for low level joystick drivers
  1618. [default=maybe]
  1619. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1620. UNIX [default=yes]
  1621. --enable-rpath use an rpath when linking SDL [default=yes]
  1622. --enable-backgrounding-signal
  1623. number to use for magic backgrounding signal or 'no'
  1624. [default=no]
  1625. --enable-foregrounding-signal
  1626. number to use for magic foregrounding signal or 'no'
  1627. [default=no]
  1628. --enable-joystick-virtual
  1629. enable virtual joystick APIs [default=yes]
  1630. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1631. --enable-sdl2-config Install sdl2-config [default=yes]
  1632. Optional Packages:
  1633. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1634. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1635. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1636. both]
  1637. --with-aix-soname=aix|svr4|both
  1638. shared library versioning (aka "SONAME") variant to
  1639. provide on AIX, [default=aix].
  1640. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1641. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1642. compiler's sysroot if not specified).
  1643. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1644. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1645. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1646. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1647. --with-x use the X Window System
  1648. Some influential environment variables:
  1649. CC C compiler command
  1650. CFLAGS C compiler flags
  1651. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1652. nonstandard directory <lib dir>
  1653. LIBS libraries to pass to the linker, e.g. -l<library>
  1654. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1655. you have headers in a nonstandard directory <include dir>
  1656. LT_SYS_LIBRARY_PATH
  1657. User-defined run-time library search path.
  1658. CXX C++ compiler command
  1659. CXXFLAGS C++ compiler flags
  1660. CXXCPP C++ preprocessor
  1661. PKG_CONFIG path to pkg-config utility
  1662. PKG_CONFIG_PATH
  1663. directories to add to pkg-config's search path
  1664. PKG_CONFIG_LIBDIR
  1665. path overriding pkg-config's built-in search path
  1666. CPP C preprocessor
  1667. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1668. JACK_LIBS linker flags for JACK, overriding pkg-config
  1669. PIPEWIRE_CFLAGS
  1670. C compiler flags for PIPEWIRE, overriding pkg-config
  1671. PIPEWIRE_LIBS
  1672. linker flags for PIPEWIRE, overriding pkg-config
  1673. PULSEAUDIO_CFLAGS
  1674. C compiler flags for PULSEAUDIO, overriding pkg-config
  1675. PULSEAUDIO_LIBS
  1676. linker flags for PULSEAUDIO, overriding pkg-config
  1677. FUSIONSOUND_CFLAGS
  1678. C compiler flags for FUSIONSOUND, overriding pkg-config
  1679. FUSIONSOUND_LIBS
  1680. linker flags for FUSIONSOUND, overriding pkg-config
  1681. DECOR_CFLAGS
  1682. C compiler flags for DECOR, overriding pkg-config
  1683. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1684. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1685. RPI_LIBS linker flags for RPI, overriding pkg-config
  1686. XMKMF Path to xmkmf, Makefile generator for X Window System
  1687. DIRECTFB_CFLAGS
  1688. C compiler flags for DIRECTFB, overriding pkg-config
  1689. DIRECTFB_LIBS
  1690. linker flags for DIRECTFB, overriding pkg-config
  1691. LIBDRM_CFLAGS
  1692. C compiler flags for LIBDRM, overriding pkg-config
  1693. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1694. LIBGBM_CFLAGS
  1695. C compiler flags for LIBGBM, overriding pkg-config
  1696. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1697. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1698. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1699. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1700. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1701. LIBUSB_CFLAGS
  1702. C compiler flags for LIBUSB, overriding pkg-config
  1703. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1704. Use these variables to override the choices made by `configure' or to help
  1705. it to find libraries and programs with nonstandard names/locations.
  1706. Report bugs to the package provider.
  1707. _ACEOF
  1708. ac_status=$?
  1709. fi
  1710. if test "$ac_init_help" = "recursive"; then
  1711. # If there are subdirs, report their specific --help.
  1712. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1713. test -d "$ac_dir" ||
  1714. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1715. continue
  1716. ac_builddir=.
  1717. case "$ac_dir" in
  1718. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1719. *)
  1720. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1721. # A ".." for each directory in $ac_dir_suffix.
  1722. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1723. case $ac_top_builddir_sub in
  1724. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1725. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1726. esac ;;
  1727. esac
  1728. ac_abs_top_builddir=$ac_pwd
  1729. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1730. # for backward compatibility:
  1731. ac_top_builddir=$ac_top_build_prefix
  1732. case $srcdir in
  1733. .) # We are building in place.
  1734. ac_srcdir=.
  1735. ac_top_srcdir=$ac_top_builddir_sub
  1736. ac_abs_top_srcdir=$ac_pwd ;;
  1737. [\\/]* | ?:[\\/]* ) # Absolute name.
  1738. ac_srcdir=$srcdir$ac_dir_suffix;
  1739. ac_top_srcdir=$srcdir
  1740. ac_abs_top_srcdir=$srcdir ;;
  1741. *) # Relative name.
  1742. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1743. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1744. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1745. esac
  1746. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1747. cd "$ac_dir" || { ac_status=$?; continue; }
  1748. # Check for configure.gnu first; this name is used for a wrapper for
  1749. # Metaconfig's "Configure" on case-insensitive file systems.
  1750. if test -f "$ac_srcdir/configure.gnu"; then
  1751. echo &&
  1752. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1753. elif test -f "$ac_srcdir/configure"; then
  1754. echo &&
  1755. $SHELL "$ac_srcdir/configure" --help=recursive
  1756. else
  1757. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1758. fi || ac_status=$?
  1759. cd "$ac_pwd" || { ac_status=$?; break; }
  1760. done
  1761. fi
  1762. test -n "$ac_init_help" && exit $ac_status
  1763. if $ac_init_version; then
  1764. cat <<\_ACEOF
  1765. configure
  1766. generated by GNU Autoconf 2.71
  1767. Copyright (C) 2021 Free Software Foundation, Inc.
  1768. This configure script is free software; the Free Software Foundation
  1769. gives unlimited permission to copy, distribute and modify it.
  1770. _ACEOF
  1771. exit
  1772. fi
  1773. ## ------------------------ ##
  1774. ## Autoconf initialization. ##
  1775. ## ------------------------ ##
  1776. # ac_fn_c_try_compile LINENO
  1777. # --------------------------
  1778. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1779. ac_fn_c_try_compile ()
  1780. {
  1781. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1782. rm -f conftest.$ac_objext conftest.beam
  1783. if { { ac_try="$ac_compile"
  1784. case "(($ac_try" in
  1785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1786. *) ac_try_echo=$ac_try;;
  1787. esac
  1788. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1789. printf "%s\n" "$ac_try_echo"; } >&5
  1790. (eval "$ac_compile") 2>conftest.err
  1791. ac_status=$?
  1792. if test -s conftest.err; then
  1793. grep -v '^ *+' conftest.err >conftest.er1
  1794. cat conftest.er1 >&5
  1795. mv -f conftest.er1 conftest.err
  1796. fi
  1797. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1798. test $ac_status = 0; } && {
  1799. test -z "$ac_c_werror_flag" ||
  1800. test ! -s conftest.err
  1801. } && test -s conftest.$ac_objext
  1802. then :
  1803. ac_retval=0
  1804. else $as_nop
  1805. printf "%s\n" "$as_me: failed program was:" >&5
  1806. sed 's/^/| /' conftest.$ac_ext >&5
  1807. ac_retval=1
  1808. fi
  1809. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1810. as_fn_set_status $ac_retval
  1811. } # ac_fn_c_try_compile
  1812. # ac_fn_c_try_link LINENO
  1813. # -----------------------
  1814. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1815. ac_fn_c_try_link ()
  1816. {
  1817. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1818. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1819. if { { ac_try="$ac_link"
  1820. case "(($ac_try" in
  1821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1822. *) ac_try_echo=$ac_try;;
  1823. esac
  1824. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1825. printf "%s\n" "$ac_try_echo"; } >&5
  1826. (eval "$ac_link") 2>conftest.err
  1827. ac_status=$?
  1828. if test -s conftest.err; then
  1829. grep -v '^ *+' conftest.err >conftest.er1
  1830. cat conftest.er1 >&5
  1831. mv -f conftest.er1 conftest.err
  1832. fi
  1833. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1834. test $ac_status = 0; } && {
  1835. test -z "$ac_c_werror_flag" ||
  1836. test ! -s conftest.err
  1837. } && test -s conftest$ac_exeext && {
  1838. test "$cross_compiling" = yes ||
  1839. test -x conftest$ac_exeext
  1840. }
  1841. then :
  1842. ac_retval=0
  1843. else $as_nop
  1844. printf "%s\n" "$as_me: failed program was:" >&5
  1845. sed 's/^/| /' conftest.$ac_ext >&5
  1846. ac_retval=1
  1847. fi
  1848. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1849. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1850. # interfere with the next link command; also delete a directory that is
  1851. # left behind by Apple's compiler. We do this before executing the actions.
  1852. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1853. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1854. as_fn_set_status $ac_retval
  1855. } # ac_fn_c_try_link
  1856. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1857. # -------------------------------------------------------
  1858. # Tests whether HEADER exists and can be compiled using the include files in
  1859. # INCLUDES, setting the cache variable VAR accordingly.
  1860. ac_fn_c_check_header_compile ()
  1861. {
  1862. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1864. printf %s "checking for $2... " >&6; }
  1865. if eval test \${$3+y}
  1866. then :
  1867. printf %s "(cached) " >&6
  1868. else $as_nop
  1869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1870. /* end confdefs.h. */
  1871. $4
  1872. #include <$2>
  1873. _ACEOF
  1874. if ac_fn_c_try_compile "$LINENO"
  1875. then :
  1876. eval "$3=yes"
  1877. else $as_nop
  1878. eval "$3=no"
  1879. fi
  1880. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1881. fi
  1882. eval ac_res=\$$3
  1883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1884. printf "%s\n" "$ac_res" >&6; }
  1885. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1886. } # ac_fn_c_check_header_compile
  1887. # ac_fn_c_check_func LINENO FUNC VAR
  1888. # ----------------------------------
  1889. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1890. ac_fn_c_check_func ()
  1891. {
  1892. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1894. printf %s "checking for $2... " >&6; }
  1895. if eval test \${$3+y}
  1896. then :
  1897. printf %s "(cached) " >&6
  1898. else $as_nop
  1899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1900. /* end confdefs.h. */
  1901. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1902. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1903. #define $2 innocuous_$2
  1904. /* System header to define __stub macros and hopefully few prototypes,
  1905. which can conflict with char $2 (); below. */
  1906. #include <limits.h>
  1907. #undef $2
  1908. /* Override any GCC internal prototype to avoid an error.
  1909. Use char because int might match the return type of a GCC
  1910. builtin and then its argument prototype would still apply. */
  1911. #ifdef __cplusplus
  1912. extern "C"
  1913. #endif
  1914. char $2 ();
  1915. /* The GNU C library defines this for functions which it implements
  1916. to always fail with ENOSYS. Some functions are actually named
  1917. something starting with __ and the normal name is an alias. */
  1918. #if defined __stub_$2 || defined __stub___$2
  1919. choke me
  1920. #endif
  1921. int
  1922. main (void)
  1923. {
  1924. return $2 ();
  1925. ;
  1926. return 0;
  1927. }
  1928. _ACEOF
  1929. if ac_fn_c_try_link "$LINENO"
  1930. then :
  1931. eval "$3=yes"
  1932. else $as_nop
  1933. eval "$3=no"
  1934. fi
  1935. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1936. conftest$ac_exeext conftest.$ac_ext
  1937. fi
  1938. eval ac_res=\$$3
  1939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1940. printf "%s\n" "$ac_res" >&6; }
  1941. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1942. } # ac_fn_c_check_func
  1943. # ac_fn_cxx_try_compile LINENO
  1944. # ----------------------------
  1945. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1946. ac_fn_cxx_try_compile ()
  1947. {
  1948. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1949. rm -f conftest.$ac_objext conftest.beam
  1950. if { { ac_try="$ac_compile"
  1951. case "(($ac_try" in
  1952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1953. *) ac_try_echo=$ac_try;;
  1954. esac
  1955. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1956. printf "%s\n" "$ac_try_echo"; } >&5
  1957. (eval "$ac_compile") 2>conftest.err
  1958. ac_status=$?
  1959. if test -s conftest.err; then
  1960. grep -v '^ *+' conftest.err >conftest.er1
  1961. cat conftest.er1 >&5
  1962. mv -f conftest.er1 conftest.err
  1963. fi
  1964. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1965. test $ac_status = 0; } && {
  1966. test -z "$ac_cxx_werror_flag" ||
  1967. test ! -s conftest.err
  1968. } && test -s conftest.$ac_objext
  1969. then :
  1970. ac_retval=0
  1971. else $as_nop
  1972. printf "%s\n" "$as_me: failed program was:" >&5
  1973. sed 's/^/| /' conftest.$ac_ext >&5
  1974. ac_retval=1
  1975. fi
  1976. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1977. as_fn_set_status $ac_retval
  1978. } # ac_fn_cxx_try_compile
  1979. # ac_fn_cxx_try_cpp LINENO
  1980. # ------------------------
  1981. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1982. ac_fn_cxx_try_cpp ()
  1983. {
  1984. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1985. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1986. case "(($ac_try" in
  1987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1988. *) ac_try_echo=$ac_try;;
  1989. esac
  1990. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1991. printf "%s\n" "$ac_try_echo"; } >&5
  1992. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1993. ac_status=$?
  1994. if test -s conftest.err; then
  1995. grep -v '^ *+' conftest.err >conftest.er1
  1996. cat conftest.er1 >&5
  1997. mv -f conftest.er1 conftest.err
  1998. fi
  1999. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2000. test $ac_status = 0; } > conftest.i && {
  2001. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2002. test ! -s conftest.err
  2003. }
  2004. then :
  2005. ac_retval=0
  2006. else $as_nop
  2007. printf "%s\n" "$as_me: failed program was:" >&5
  2008. sed 's/^/| /' conftest.$ac_ext >&5
  2009. ac_retval=1
  2010. fi
  2011. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2012. as_fn_set_status $ac_retval
  2013. } # ac_fn_cxx_try_cpp
  2014. # ac_fn_cxx_try_link LINENO
  2015. # -------------------------
  2016. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2017. ac_fn_cxx_try_link ()
  2018. {
  2019. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2020. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2021. if { { ac_try="$ac_link"
  2022. case "(($ac_try" in
  2023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2024. *) ac_try_echo=$ac_try;;
  2025. esac
  2026. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2027. printf "%s\n" "$ac_try_echo"; } >&5
  2028. (eval "$ac_link") 2>conftest.err
  2029. ac_status=$?
  2030. if test -s conftest.err; then
  2031. grep -v '^ *+' conftest.err >conftest.er1
  2032. cat conftest.er1 >&5
  2033. mv -f conftest.er1 conftest.err
  2034. fi
  2035. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2036. test $ac_status = 0; } && {
  2037. test -z "$ac_cxx_werror_flag" ||
  2038. test ! -s conftest.err
  2039. } && test -s conftest$ac_exeext && {
  2040. test "$cross_compiling" = yes ||
  2041. test -x conftest$ac_exeext
  2042. }
  2043. then :
  2044. ac_retval=0
  2045. else $as_nop
  2046. printf "%s\n" "$as_me: failed program was:" >&5
  2047. sed 's/^/| /' conftest.$ac_ext >&5
  2048. ac_retval=1
  2049. fi
  2050. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2051. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2052. # interfere with the next link command; also delete a directory that is
  2053. # left behind by Apple's compiler. We do this before executing the actions.
  2054. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2055. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2056. as_fn_set_status $ac_retval
  2057. } # ac_fn_cxx_try_link
  2058. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2059. # -------------------------------------------
  2060. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2061. # variable VAR accordingly.
  2062. ac_fn_c_check_type ()
  2063. {
  2064. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2066. printf %s "checking for $2... " >&6; }
  2067. if eval test \${$3+y}
  2068. then :
  2069. printf %s "(cached) " >&6
  2070. else $as_nop
  2071. eval "$3=no"
  2072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2073. /* end confdefs.h. */
  2074. $4
  2075. int
  2076. main (void)
  2077. {
  2078. if (sizeof ($2))
  2079. return 0;
  2080. ;
  2081. return 0;
  2082. }
  2083. _ACEOF
  2084. if ac_fn_c_try_compile "$LINENO"
  2085. then :
  2086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2087. /* end confdefs.h. */
  2088. $4
  2089. int
  2090. main (void)
  2091. {
  2092. if (sizeof (($2)))
  2093. return 0;
  2094. ;
  2095. return 0;
  2096. }
  2097. _ACEOF
  2098. if ac_fn_c_try_compile "$LINENO"
  2099. then :
  2100. else $as_nop
  2101. eval "$3=yes"
  2102. fi
  2103. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2104. fi
  2105. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2106. fi
  2107. eval ac_res=\$$3
  2108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2109. printf "%s\n" "$ac_res" >&6; }
  2110. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2111. } # ac_fn_c_check_type
  2112. # ac_fn_c_try_cpp LINENO
  2113. # ----------------------
  2114. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2115. ac_fn_c_try_cpp ()
  2116. {
  2117. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2118. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2119. case "(($ac_try" in
  2120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2121. *) ac_try_echo=$ac_try;;
  2122. esac
  2123. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2124. printf "%s\n" "$ac_try_echo"; } >&5
  2125. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2126. ac_status=$?
  2127. if test -s conftest.err; then
  2128. grep -v '^ *+' conftest.err >conftest.er1
  2129. cat conftest.er1 >&5
  2130. mv -f conftest.er1 conftest.err
  2131. fi
  2132. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2133. test $ac_status = 0; } > conftest.i && {
  2134. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2135. test ! -s conftest.err
  2136. }
  2137. then :
  2138. ac_retval=0
  2139. else $as_nop
  2140. printf "%s\n" "$as_me: failed program was:" >&5
  2141. sed 's/^/| /' conftest.$ac_ext >&5
  2142. ac_retval=1
  2143. fi
  2144. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2145. as_fn_set_status $ac_retval
  2146. } # ac_fn_c_try_cpp
  2147. # ac_fn_c_try_run LINENO
  2148. # ----------------------
  2149. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2150. # executables *can* be run.
  2151. ac_fn_c_try_run ()
  2152. {
  2153. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2154. if { { ac_try="$ac_link"
  2155. case "(($ac_try" in
  2156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2157. *) ac_try_echo=$ac_try;;
  2158. esac
  2159. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2160. printf "%s\n" "$ac_try_echo"; } >&5
  2161. (eval "$ac_link") 2>&5
  2162. ac_status=$?
  2163. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2164. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2165. { { case "(($ac_try" in
  2166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2167. *) ac_try_echo=$ac_try;;
  2168. esac
  2169. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2170. printf "%s\n" "$ac_try_echo"; } >&5
  2171. (eval "$ac_try") 2>&5
  2172. ac_status=$?
  2173. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2174. test $ac_status = 0; }; }
  2175. then :
  2176. ac_retval=0
  2177. else $as_nop
  2178. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2179. printf "%s\n" "$as_me: failed program was:" >&5
  2180. sed 's/^/| /' conftest.$ac_ext >&5
  2181. ac_retval=$ac_status
  2182. fi
  2183. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2184. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2185. as_fn_set_status $ac_retval
  2186. } # ac_fn_c_try_run
  2187. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2188. # ----------------------------------------------------
  2189. # Tries to find if the field MEMBER exists in type AGGR, after including
  2190. # INCLUDES, setting cache variable VAR accordingly.
  2191. ac_fn_c_check_member ()
  2192. {
  2193. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2195. printf %s "checking for $2.$3... " >&6; }
  2196. if eval test \${$4+y}
  2197. then :
  2198. printf %s "(cached) " >&6
  2199. else $as_nop
  2200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2201. /* end confdefs.h. */
  2202. $5
  2203. int
  2204. main (void)
  2205. {
  2206. static $2 ac_aggr;
  2207. if (ac_aggr.$3)
  2208. return 0;
  2209. ;
  2210. return 0;
  2211. }
  2212. _ACEOF
  2213. if ac_fn_c_try_compile "$LINENO"
  2214. then :
  2215. eval "$4=yes"
  2216. else $as_nop
  2217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2218. /* end confdefs.h. */
  2219. $5
  2220. int
  2221. main (void)
  2222. {
  2223. static $2 ac_aggr;
  2224. if (sizeof ac_aggr.$3)
  2225. return 0;
  2226. ;
  2227. return 0;
  2228. }
  2229. _ACEOF
  2230. if ac_fn_c_try_compile "$LINENO"
  2231. then :
  2232. eval "$4=yes"
  2233. else $as_nop
  2234. eval "$4=no"
  2235. fi
  2236. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2237. fi
  2238. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2239. fi
  2240. eval ac_res=\$$4
  2241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2242. printf "%s\n" "$ac_res" >&6; }
  2243. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2244. } # ac_fn_c_check_member
  2245. ac_configure_args_raw=
  2246. for ac_arg
  2247. do
  2248. case $ac_arg in
  2249. *\'*)
  2250. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2251. esac
  2252. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2253. done
  2254. case $ac_configure_args_raw in
  2255. *$as_nl*)
  2256. ac_safe_unquote= ;;
  2257. *)
  2258. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2259. ac_unsafe_a="$ac_unsafe_z#~"
  2260. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2261. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2262. esac
  2263. cat >config.log <<_ACEOF
  2264. This file contains any messages produced by compilers while
  2265. running configure, to aid debugging if configure makes a mistake.
  2266. It was created by $as_me, which was
  2267. generated by GNU Autoconf 2.71. Invocation command line was
  2268. $ $0$ac_configure_args_raw
  2269. _ACEOF
  2270. exec 5>>config.log
  2271. {
  2272. cat <<_ASUNAME
  2273. ## --------- ##
  2274. ## Platform. ##
  2275. ## --------- ##
  2276. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2277. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2278. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2279. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2280. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2281. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2282. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2283. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2284. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2285. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2286. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2287. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2288. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2289. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2290. _ASUNAME
  2291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2292. for as_dir in $PATH
  2293. do
  2294. IFS=$as_save_IFS
  2295. case $as_dir in #(((
  2296. '') as_dir=./ ;;
  2297. */) ;;
  2298. *) as_dir=$as_dir/ ;;
  2299. esac
  2300. printf "%s\n" "PATH: $as_dir"
  2301. done
  2302. IFS=$as_save_IFS
  2303. } >&5
  2304. cat >&5 <<_ACEOF
  2305. ## ----------- ##
  2306. ## Core tests. ##
  2307. ## ----------- ##
  2308. _ACEOF
  2309. # Keep a trace of the command line.
  2310. # Strip out --no-create and --no-recursion so they do not pile up.
  2311. # Strip out --silent because we don't want to record it for future runs.
  2312. # Also quote any args containing shell meta-characters.
  2313. # Make two passes to allow for proper duplicate-argument suppression.
  2314. ac_configure_args=
  2315. ac_configure_args0=
  2316. ac_configure_args1=
  2317. ac_must_keep_next=false
  2318. for ac_pass in 1 2
  2319. do
  2320. for ac_arg
  2321. do
  2322. case $ac_arg in
  2323. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2324. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2325. | -silent | --silent | --silen | --sile | --sil)
  2326. continue ;;
  2327. *\'*)
  2328. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2329. esac
  2330. case $ac_pass in
  2331. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2332. 2)
  2333. as_fn_append ac_configure_args1 " '$ac_arg'"
  2334. if test $ac_must_keep_next = true; then
  2335. ac_must_keep_next=false # Got value, back to normal.
  2336. else
  2337. case $ac_arg in
  2338. *=* | --config-cache | -C | -disable-* | --disable-* \
  2339. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2340. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2341. | -with-* | --with-* | -without-* | --without-* | --x)
  2342. case "$ac_configure_args0 " in
  2343. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2344. esac
  2345. ;;
  2346. -* ) ac_must_keep_next=true ;;
  2347. esac
  2348. fi
  2349. as_fn_append ac_configure_args " '$ac_arg'"
  2350. ;;
  2351. esac
  2352. done
  2353. done
  2354. { ac_configure_args0=; unset ac_configure_args0;}
  2355. { ac_configure_args1=; unset ac_configure_args1;}
  2356. # When interrupted or exit'd, cleanup temporary files, and complete
  2357. # config.log. We remove comments because anyway the quotes in there
  2358. # would cause problems or look ugly.
  2359. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2360. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2361. trap 'exit_status=$?
  2362. # Sanitize IFS.
  2363. IFS=" "" $as_nl"
  2364. # Save into config.log some information that might help in debugging.
  2365. {
  2366. echo
  2367. printf "%s\n" "## ---------------- ##
  2368. ## Cache variables. ##
  2369. ## ---------------- ##"
  2370. echo
  2371. # The following way of writing the cache mishandles newlines in values,
  2372. (
  2373. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2374. eval ac_val=\$$ac_var
  2375. case $ac_val in #(
  2376. *${as_nl}*)
  2377. case $ac_var in #(
  2378. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2379. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2380. esac
  2381. case $ac_var in #(
  2382. _ | IFS | as_nl) ;; #(
  2383. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2384. *) { eval $ac_var=; unset $ac_var;} ;;
  2385. esac ;;
  2386. esac
  2387. done
  2388. (set) 2>&1 |
  2389. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2390. *${as_nl}ac_space=\ *)
  2391. sed -n \
  2392. "s/'\''/'\''\\\\'\'''\''/g;
  2393. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2394. ;; #(
  2395. *)
  2396. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2397. ;;
  2398. esac |
  2399. sort
  2400. )
  2401. echo
  2402. printf "%s\n" "## ----------------- ##
  2403. ## Output variables. ##
  2404. ## ----------------- ##"
  2405. echo
  2406. for ac_var in $ac_subst_vars
  2407. do
  2408. eval ac_val=\$$ac_var
  2409. case $ac_val in
  2410. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2411. esac
  2412. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2413. done | sort
  2414. echo
  2415. if test -n "$ac_subst_files"; then
  2416. printf "%s\n" "## ------------------- ##
  2417. ## File substitutions. ##
  2418. ## ------------------- ##"
  2419. echo
  2420. for ac_var in $ac_subst_files
  2421. do
  2422. eval ac_val=\$$ac_var
  2423. case $ac_val in
  2424. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2425. esac
  2426. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2427. done | sort
  2428. echo
  2429. fi
  2430. if test -s confdefs.h; then
  2431. printf "%s\n" "## ----------- ##
  2432. ## confdefs.h. ##
  2433. ## ----------- ##"
  2434. echo
  2435. cat confdefs.h
  2436. echo
  2437. fi
  2438. test "$ac_signal" != 0 &&
  2439. printf "%s\n" "$as_me: caught signal $ac_signal"
  2440. printf "%s\n" "$as_me: exit $exit_status"
  2441. } >&5
  2442. rm -f core *.core core.conftest.* &&
  2443. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2444. exit $exit_status
  2445. ' 0
  2446. for ac_signal in 1 2 13 15; do
  2447. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2448. done
  2449. ac_signal=0
  2450. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2451. rm -f -r conftest* confdefs.h
  2452. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2453. # Predefined preprocessor variables.
  2454. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2455. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2456. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2457. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2458. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2459. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2460. # Let the site file select an alternate cache file if it wants to.
  2461. # Prefer an explicitly selected file to automatically selected ones.
  2462. if test -n "$CONFIG_SITE"; then
  2463. ac_site_files="$CONFIG_SITE"
  2464. elif test "x$prefix" != xNONE; then
  2465. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2466. else
  2467. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2468. fi
  2469. for ac_site_file in $ac_site_files
  2470. do
  2471. case $ac_site_file in #(
  2472. */*) :
  2473. ;; #(
  2474. *) :
  2475. ac_site_file=./$ac_site_file ;;
  2476. esac
  2477. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2479. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2480. sed 's/^/| /' "$ac_site_file" >&5
  2481. . "$ac_site_file" \
  2482. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2483. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2484. as_fn_error $? "failed to load site script $ac_site_file
  2485. See \`config.log' for more details" "$LINENO" 5; }
  2486. fi
  2487. done
  2488. if test -r "$cache_file"; then
  2489. # Some versions of bash will fail to source /dev/null (special files
  2490. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2491. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2493. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2494. case $cache_file in
  2495. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2496. *) . "./$cache_file";;
  2497. esac
  2498. fi
  2499. else
  2500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2501. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2502. >$cache_file
  2503. fi
  2504. # Test code for whether the C compiler supports C89 (global declarations)
  2505. ac_c_conftest_c89_globals='
  2506. /* Does the compiler advertise C89 conformance?
  2507. Do not test the value of __STDC__, because some compilers set it to 0
  2508. while being otherwise adequately conformant. */
  2509. #if !defined __STDC__
  2510. # error "Compiler does not advertise C89 conformance"
  2511. #endif
  2512. #include <stddef.h>
  2513. #include <stdarg.h>
  2514. struct stat;
  2515. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2516. struct buf { int x; };
  2517. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2518. static char *e (p, i)
  2519. char **p;
  2520. int i;
  2521. {
  2522. return p[i];
  2523. }
  2524. static char *f (char * (*g) (char **, int), char **p, ...)
  2525. {
  2526. char *s;
  2527. va_list v;
  2528. va_start (v,p);
  2529. s = g (p, va_arg (v,int));
  2530. va_end (v);
  2531. return s;
  2532. }
  2533. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2534. function prototypes and stuff, but not \xHH hex character constants.
  2535. These do not provoke an error unfortunately, instead are silently treated
  2536. as an "x". The following induces an error, until -std is added to get
  2537. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2538. array size at least. It is necessary to write \x00 == 0 to get something
  2539. that is true only with -std. */
  2540. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2541. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2542. inside strings and character constants. */
  2543. #define FOO(x) '\''x'\''
  2544. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2545. int test (int i, double x);
  2546. struct s1 {int (*f) (int a);};
  2547. struct s2 {int (*f) (double a);};
  2548. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2549. int, int);'
  2550. # Test code for whether the C compiler supports C89 (body of main).
  2551. ac_c_conftest_c89_main='
  2552. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2553. '
  2554. # Test code for whether the C compiler supports C99 (global declarations)
  2555. ac_c_conftest_c99_globals='
  2556. // Does the compiler advertise C99 conformance?
  2557. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2558. # error "Compiler does not advertise C99 conformance"
  2559. #endif
  2560. #include <stdbool.h>
  2561. extern int puts (const char *);
  2562. extern int printf (const char *, ...);
  2563. extern int dprintf (int, const char *, ...);
  2564. extern void *malloc (size_t);
  2565. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2566. // dprintf is used instead of fprintf to avoid needing to declare
  2567. // FILE and stderr.
  2568. #define debug(...) dprintf (2, __VA_ARGS__)
  2569. #define showlist(...) puts (#__VA_ARGS__)
  2570. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2571. static void
  2572. test_varargs_macros (void)
  2573. {
  2574. int x = 1234;
  2575. int y = 5678;
  2576. debug ("Flag");
  2577. debug ("X = %d\n", x);
  2578. showlist (The first, second, and third items.);
  2579. report (x>y, "x is %d but y is %d", x, y);
  2580. }
  2581. // Check long long types.
  2582. #define BIG64 18446744073709551615ull
  2583. #define BIG32 4294967295ul
  2584. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2585. #if !BIG_OK
  2586. #error "your preprocessor is broken"
  2587. #endif
  2588. #if BIG_OK
  2589. #else
  2590. #error "your preprocessor is broken"
  2591. #endif
  2592. static long long int bignum = -9223372036854775807LL;
  2593. static unsigned long long int ubignum = BIG64;
  2594. struct incomplete_array
  2595. {
  2596. int datasize;
  2597. double data[];
  2598. };
  2599. struct named_init {
  2600. int number;
  2601. const wchar_t *name;
  2602. double average;
  2603. };
  2604. typedef const char *ccp;
  2605. static inline int
  2606. test_restrict (ccp restrict text)
  2607. {
  2608. // See if C++-style comments work.
  2609. // Iterate through items via the restricted pointer.
  2610. // Also check for declarations in for loops.
  2611. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2612. continue;
  2613. return 0;
  2614. }
  2615. // Check varargs and va_copy.
  2616. static bool
  2617. test_varargs (const char *format, ...)
  2618. {
  2619. va_list args;
  2620. va_start (args, format);
  2621. va_list args_copy;
  2622. va_copy (args_copy, args);
  2623. const char *str = "";
  2624. int number = 0;
  2625. float fnumber = 0;
  2626. while (*format)
  2627. {
  2628. switch (*format++)
  2629. {
  2630. case '\''s'\'': // string
  2631. str = va_arg (args_copy, const char *);
  2632. break;
  2633. case '\''d'\'': // int
  2634. number = va_arg (args_copy, int);
  2635. break;
  2636. case '\''f'\'': // float
  2637. fnumber = va_arg (args_copy, double);
  2638. break;
  2639. default:
  2640. break;
  2641. }
  2642. }
  2643. va_end (args_copy);
  2644. va_end (args);
  2645. return *str && number && fnumber;
  2646. }
  2647. '
  2648. # Test code for whether the C compiler supports C99 (body of main).
  2649. ac_c_conftest_c99_main='
  2650. // Check bool.
  2651. _Bool success = false;
  2652. success |= (argc != 0);
  2653. // Check restrict.
  2654. if (test_restrict ("String literal") == 0)
  2655. success = true;
  2656. char *restrict newvar = "Another string";
  2657. // Check varargs.
  2658. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2659. test_varargs_macros ();
  2660. // Check flexible array members.
  2661. struct incomplete_array *ia =
  2662. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2663. ia->datasize = 10;
  2664. for (int i = 0; i < ia->datasize; ++i)
  2665. ia->data[i] = i * 1.234;
  2666. // Check named initializers.
  2667. struct named_init ni = {
  2668. .number = 34,
  2669. .name = L"Test wide string",
  2670. .average = 543.34343,
  2671. };
  2672. ni.number = 58;
  2673. int dynamic_array[ni.number];
  2674. dynamic_array[0] = argv[0][0];
  2675. dynamic_array[ni.number - 1] = 543;
  2676. // work around unused variable warnings
  2677. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2678. || dynamic_array[ni.number - 1] != 543);
  2679. '
  2680. # Test code for whether the C compiler supports C11 (global declarations)
  2681. ac_c_conftest_c11_globals='
  2682. // Does the compiler advertise C11 conformance?
  2683. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2684. # error "Compiler does not advertise C11 conformance"
  2685. #endif
  2686. // Check _Alignas.
  2687. char _Alignas (double) aligned_as_double;
  2688. char _Alignas (0) no_special_alignment;
  2689. extern char aligned_as_int;
  2690. char _Alignas (0) _Alignas (int) aligned_as_int;
  2691. // Check _Alignof.
  2692. enum
  2693. {
  2694. int_alignment = _Alignof (int),
  2695. int_array_alignment = _Alignof (int[100]),
  2696. char_alignment = _Alignof (char)
  2697. };
  2698. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2699. // Check _Noreturn.
  2700. int _Noreturn does_not_return (void) { for (;;) continue; }
  2701. // Check _Static_assert.
  2702. struct test_static_assert
  2703. {
  2704. int x;
  2705. _Static_assert (sizeof (int) <= sizeof (long int),
  2706. "_Static_assert does not work in struct");
  2707. long int y;
  2708. };
  2709. // Check UTF-8 literals.
  2710. #define u8 syntax error!
  2711. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2712. // Check duplicate typedefs.
  2713. typedef long *long_ptr;
  2714. typedef long int *long_ptr;
  2715. typedef long_ptr long_ptr;
  2716. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2717. struct anonymous
  2718. {
  2719. union {
  2720. struct { int i; int j; };
  2721. struct { int k; long int l; } w;
  2722. };
  2723. int m;
  2724. } v1;
  2725. '
  2726. # Test code for whether the C compiler supports C11 (body of main).
  2727. ac_c_conftest_c11_main='
  2728. _Static_assert ((offsetof (struct anonymous, i)
  2729. == offsetof (struct anonymous, w.k)),
  2730. "Anonymous union alignment botch");
  2731. v1.i = 2;
  2732. v1.w.k = 5;
  2733. ok |= v1.i != 5;
  2734. '
  2735. # Test code for whether the C compiler supports C11 (complete).
  2736. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2737. ${ac_c_conftest_c99_globals}
  2738. ${ac_c_conftest_c11_globals}
  2739. int
  2740. main (int argc, char **argv)
  2741. {
  2742. int ok = 0;
  2743. ${ac_c_conftest_c89_main}
  2744. ${ac_c_conftest_c99_main}
  2745. ${ac_c_conftest_c11_main}
  2746. return ok;
  2747. }
  2748. "
  2749. # Test code for whether the C compiler supports C99 (complete).
  2750. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2751. ${ac_c_conftest_c99_globals}
  2752. int
  2753. main (int argc, char **argv)
  2754. {
  2755. int ok = 0;
  2756. ${ac_c_conftest_c89_main}
  2757. ${ac_c_conftest_c99_main}
  2758. return ok;
  2759. }
  2760. "
  2761. # Test code for whether the C compiler supports C89 (complete).
  2762. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2763. int
  2764. main (int argc, char **argv)
  2765. {
  2766. int ok = 0;
  2767. ${ac_c_conftest_c89_main}
  2768. return ok;
  2769. }
  2770. "
  2771. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2772. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2773. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2774. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2775. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2776. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2777. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2778. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2779. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2780. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2781. ac_cxx_conftest_cxx98_globals='
  2782. // Does the compiler advertise C++98 conformance?
  2783. #if !defined __cplusplus || __cplusplus < 199711L
  2784. # error "Compiler does not advertise C++98 conformance"
  2785. #endif
  2786. // These inclusions are to reject old compilers that
  2787. // lack the unsuffixed header files.
  2788. #include <cstdlib>
  2789. #include <exception>
  2790. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2791. extern void assert (int);
  2792. namespace std {
  2793. extern int strcmp (const char *, const char *);
  2794. }
  2795. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2796. using std::exception;
  2797. using std::strcmp;
  2798. namespace {
  2799. void test_exception_syntax()
  2800. {
  2801. try {
  2802. throw "test";
  2803. } catch (const char *s) {
  2804. // Extra parentheses suppress a warning when building autoconf itself,
  2805. // due to lint rules shared with more typical C programs.
  2806. assert (!(strcmp) (s, "test"));
  2807. }
  2808. }
  2809. template <typename T> struct test_template
  2810. {
  2811. T const val;
  2812. explicit test_template(T t) : val(t) {}
  2813. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2814. };
  2815. } // anonymous namespace
  2816. '
  2817. # Test code for whether the C++ compiler supports C++98 (body of main)
  2818. ac_cxx_conftest_cxx98_main='
  2819. assert (argc);
  2820. assert (! argv[0]);
  2821. {
  2822. test_exception_syntax ();
  2823. test_template<double> tt (2.0);
  2824. assert (tt.add (4) == 6.0);
  2825. assert (true && !false);
  2826. }
  2827. '
  2828. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2829. ac_cxx_conftest_cxx11_globals='
  2830. // Does the compiler advertise C++ 2011 conformance?
  2831. #if !defined __cplusplus || __cplusplus < 201103L
  2832. # error "Compiler does not advertise C++11 conformance"
  2833. #endif
  2834. namespace cxx11test
  2835. {
  2836. constexpr int get_val() { return 20; }
  2837. struct testinit
  2838. {
  2839. int i;
  2840. double d;
  2841. };
  2842. class delegate
  2843. {
  2844. public:
  2845. delegate(int n) : n(n) {}
  2846. delegate(): delegate(2354) {}
  2847. virtual int getval() { return this->n; };
  2848. protected:
  2849. int n;
  2850. };
  2851. class overridden : public delegate
  2852. {
  2853. public:
  2854. overridden(int n): delegate(n) {}
  2855. virtual int getval() override final { return this->n * 2; }
  2856. };
  2857. class nocopy
  2858. {
  2859. public:
  2860. nocopy(int i): i(i) {}
  2861. nocopy() = default;
  2862. nocopy(const nocopy&) = delete;
  2863. nocopy & operator=(const nocopy&) = delete;
  2864. private:
  2865. int i;
  2866. };
  2867. // for testing lambda expressions
  2868. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2869. {
  2870. return f(v);
  2871. }
  2872. // for testing variadic templates and trailing return types
  2873. template <typename V> auto sum(V first) -> V
  2874. {
  2875. return first;
  2876. }
  2877. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2878. {
  2879. return first + sum(rest...);
  2880. }
  2881. }
  2882. '
  2883. # Test code for whether the C++ compiler supports C++11 (body of main)
  2884. ac_cxx_conftest_cxx11_main='
  2885. {
  2886. // Test auto and decltype
  2887. auto a1 = 6538;
  2888. auto a2 = 48573953.4;
  2889. auto a3 = "String literal";
  2890. int total = 0;
  2891. for (auto i = a3; *i; ++i) { total += *i; }
  2892. decltype(a2) a4 = 34895.034;
  2893. }
  2894. {
  2895. // Test constexpr
  2896. short sa[cxx11test::get_val()] = { 0 };
  2897. }
  2898. {
  2899. // Test initializer lists
  2900. cxx11test::testinit il = { 4323, 435234.23544 };
  2901. }
  2902. {
  2903. // Test range-based for
  2904. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2905. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2906. for (auto &x : array) { x += 23; }
  2907. }
  2908. {
  2909. // Test lambda expressions
  2910. using cxx11test::eval;
  2911. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2912. double d = 2.0;
  2913. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2914. assert (d == 5.0);
  2915. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2916. assert (d == 5.0);
  2917. }
  2918. {
  2919. // Test use of variadic templates
  2920. using cxx11test::sum;
  2921. auto a = sum(1);
  2922. auto b = sum(1, 2);
  2923. auto c = sum(1.0, 2.0, 3.0);
  2924. }
  2925. {
  2926. // Test constructor delegation
  2927. cxx11test::delegate d1;
  2928. cxx11test::delegate d2();
  2929. cxx11test::delegate d3(45);
  2930. }
  2931. {
  2932. // Test override and final
  2933. cxx11test::overridden o1(55464);
  2934. }
  2935. {
  2936. // Test nullptr
  2937. char *c = nullptr;
  2938. }
  2939. {
  2940. // Test template brackets
  2941. test_template<::test_template<int>> v(test_template<int>(12));
  2942. }
  2943. {
  2944. // Unicode literals
  2945. char const *utf8 = u8"UTF-8 string \u2500";
  2946. char16_t const *utf16 = u"UTF-8 string \u2500";
  2947. char32_t const *utf32 = U"UTF-32 string \u2500";
  2948. }
  2949. '
  2950. # Test code for whether the C compiler supports C++11 (complete).
  2951. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2952. ${ac_cxx_conftest_cxx11_globals}
  2953. int
  2954. main (int argc, char **argv)
  2955. {
  2956. int ok = 0;
  2957. ${ac_cxx_conftest_cxx98_main}
  2958. ${ac_cxx_conftest_cxx11_main}
  2959. return ok;
  2960. }
  2961. "
  2962. # Test code for whether the C compiler supports C++98 (complete).
  2963. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2964. int
  2965. main (int argc, char **argv)
  2966. {
  2967. int ok = 0;
  2968. ${ac_cxx_conftest_cxx98_main}
  2969. return ok;
  2970. }
  2971. "
  2972. # Auxiliary files required by this configure script.
  2973. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2974. # Locations in which to look for auxiliary files.
  2975. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2976. # Search for a directory containing all of the required auxiliary files,
  2977. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2978. # If we don't find one directory that contains all the files we need,
  2979. # we report the set of missing files from the *first* directory in
  2980. # $ac_aux_dir_candidates and give up.
  2981. ac_missing_aux_files=""
  2982. ac_first_candidate=:
  2983. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2985. as_found=false
  2986. for as_dir in $ac_aux_dir_candidates
  2987. do
  2988. IFS=$as_save_IFS
  2989. case $as_dir in #(((
  2990. '') as_dir=./ ;;
  2991. */) ;;
  2992. *) as_dir=$as_dir/ ;;
  2993. esac
  2994. as_found=:
  2995. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2996. ac_aux_dir_found=yes
  2997. ac_install_sh=
  2998. for ac_aux in $ac_aux_files
  2999. do
  3000. # As a special case, if "install-sh" is required, that requirement
  3001. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3002. # and $ac_install_sh is set appropriately for whichever one is found.
  3003. if test x"$ac_aux" = x"install-sh"
  3004. then
  3005. if test -f "${as_dir}install-sh"; then
  3006. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3007. ac_install_sh="${as_dir}install-sh -c"
  3008. elif test -f "${as_dir}install.sh"; then
  3009. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3010. ac_install_sh="${as_dir}install.sh -c"
  3011. elif test -f "${as_dir}shtool"; then
  3012. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3013. ac_install_sh="${as_dir}shtool install -c"
  3014. else
  3015. ac_aux_dir_found=no
  3016. if $ac_first_candidate; then
  3017. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3018. else
  3019. break
  3020. fi
  3021. fi
  3022. else
  3023. if test -f "${as_dir}${ac_aux}"; then
  3024. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3025. else
  3026. ac_aux_dir_found=no
  3027. if $ac_first_candidate; then
  3028. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3029. else
  3030. break
  3031. fi
  3032. fi
  3033. fi
  3034. done
  3035. if test "$ac_aux_dir_found" = yes; then
  3036. ac_aux_dir="$as_dir"
  3037. break
  3038. fi
  3039. ac_first_candidate=false
  3040. as_found=false
  3041. done
  3042. IFS=$as_save_IFS
  3043. if $as_found
  3044. then :
  3045. else $as_nop
  3046. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3047. fi
  3048. # These three variables are undocumented and unsupported,
  3049. # and are intended to be withdrawn in a future Autoconf release.
  3050. # They can cause serious problems if a builder's source tree is in a directory
  3051. # whose full name contains unusual characters.
  3052. if test -f "${ac_aux_dir}config.guess"; then
  3053. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3054. fi
  3055. if test -f "${ac_aux_dir}config.sub"; then
  3056. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3057. fi
  3058. if test -f "$ac_aux_dir/configure"; then
  3059. ac_configure="$SHELL ${ac_aux_dir}configure"
  3060. fi
  3061. # Check that the precious variables saved in the cache have kept the same
  3062. # value.
  3063. ac_cache_corrupted=false
  3064. for ac_var in $ac_precious_vars; do
  3065. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3066. eval ac_new_set=\$ac_env_${ac_var}_set
  3067. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3068. eval ac_new_val=\$ac_env_${ac_var}_value
  3069. case $ac_old_set,$ac_new_set in
  3070. set,)
  3071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3072. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3073. ac_cache_corrupted=: ;;
  3074. ,set)
  3075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3076. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3077. ac_cache_corrupted=: ;;
  3078. ,);;
  3079. *)
  3080. if test "x$ac_old_val" != "x$ac_new_val"; then
  3081. # differences in whitespace do not lead to failure.
  3082. ac_old_val_w=`echo x $ac_old_val`
  3083. ac_new_val_w=`echo x $ac_new_val`
  3084. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3086. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3087. ac_cache_corrupted=:
  3088. else
  3089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3090. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3091. eval $ac_var=\$ac_old_val
  3092. fi
  3093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3094. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3096. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3097. fi;;
  3098. esac
  3099. # Pass precious variables to config.status.
  3100. if test "$ac_new_set" = set; then
  3101. case $ac_new_val in
  3102. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3103. *) ac_arg=$ac_var=$ac_new_val ;;
  3104. esac
  3105. case " $ac_configure_args " in
  3106. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3107. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3108. esac
  3109. fi
  3110. done
  3111. if $ac_cache_corrupted; then
  3112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3113. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3115. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3116. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3117. and start over" "$LINENO" 5
  3118. fi
  3119. ## -------------------- ##
  3120. ## Main body of script. ##
  3121. ## -------------------- ##
  3122. ac_ext=c
  3123. ac_cpp='$CPP $CPPFLAGS'
  3124. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3125. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3126. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3127. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3128. orig_CFLAGS="$CFLAGS"
  3129. # See docs/release_checklist.md
  3130. SDL_MAJOR_VERSION=2
  3131. SDL_MINOR_VERSION=23
  3132. SDL_MICRO_VERSION=1
  3133. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3134. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3135. case "$SDL_MINOR_VERSION" in #(
  3136. *[02468]) :
  3137. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3138. *) :
  3139. SDL_INTERFACE_AGE=0 ;; #(
  3140. *) :
  3141. ;;
  3142. esac
  3143. # libtool versioning
  3144. case `pwd` in
  3145. *\ * | *\ *)
  3146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3147. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3148. esac
  3149. macro_version='2.4.6'
  3150. macro_revision='2.4.6'
  3151. ltmain=$ac_aux_dir/ltmain.sh
  3152. # Make sure we can run config.sub.
  3153. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3154. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3156. printf %s "checking build system type... " >&6; }
  3157. if test ${ac_cv_build+y}
  3158. then :
  3159. printf %s "(cached) " >&6
  3160. else $as_nop
  3161. ac_build_alias=$build_alias
  3162. test "x$ac_build_alias" = x &&
  3163. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3164. test "x$ac_build_alias" = x &&
  3165. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3166. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3167. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3168. fi
  3169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3170. printf "%s\n" "$ac_cv_build" >&6; }
  3171. case $ac_cv_build in
  3172. *-*-*) ;;
  3173. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3174. esac
  3175. build=$ac_cv_build
  3176. ac_save_IFS=$IFS; IFS='-'
  3177. set x $ac_cv_build
  3178. shift
  3179. build_cpu=$1
  3180. build_vendor=$2
  3181. shift; shift
  3182. # Remember, the first character of IFS is used to create $*,
  3183. # except with old shells:
  3184. build_os=$*
  3185. IFS=$ac_save_IFS
  3186. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3188. printf %s "checking host system type... " >&6; }
  3189. if test ${ac_cv_host+y}
  3190. then :
  3191. printf %s "(cached) " >&6
  3192. else $as_nop
  3193. if test "x$host_alias" = x; then
  3194. ac_cv_host=$ac_cv_build
  3195. else
  3196. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3197. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3198. fi
  3199. fi
  3200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3201. printf "%s\n" "$ac_cv_host" >&6; }
  3202. case $ac_cv_host in
  3203. *-*-*) ;;
  3204. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3205. esac
  3206. host=$ac_cv_host
  3207. ac_save_IFS=$IFS; IFS='-'
  3208. set x $ac_cv_host
  3209. shift
  3210. host_cpu=$1
  3211. host_vendor=$2
  3212. shift; shift
  3213. # Remember, the first character of IFS is used to create $*,
  3214. # except with old shells:
  3215. host_os=$*
  3216. IFS=$ac_save_IFS
  3217. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3218. # Backslashify metacharacters that are still active within
  3219. # double-quoted strings.
  3220. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3221. # Same as above, but do not quote variable references.
  3222. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3223. # Sed substitution to delay expansion of an escaped shell variable in a
  3224. # double_quote_subst'ed string.
  3225. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3226. # Sed substitution to delay expansion of an escaped single quote.
  3227. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3228. # Sed substitution to avoid accidental globbing in evaled expressions
  3229. no_glob_subst='s/\*/\\\*/g'
  3230. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3231. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3232. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3234. printf %s "checking how to print strings... " >&6; }
  3235. # Test print first, because it will be a builtin if present.
  3236. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3237. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3238. ECHO='print -r --'
  3239. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3240. ECHO='printf %s\n'
  3241. else
  3242. # Use this function as a fallback that always works.
  3243. func_fallback_echo ()
  3244. {
  3245. eval 'cat <<_LTECHO_EOF
  3246. $1
  3247. _LTECHO_EOF'
  3248. }
  3249. ECHO='func_fallback_echo'
  3250. fi
  3251. # func_echo_all arg...
  3252. # Invoke $ECHO with all args, space-separated.
  3253. func_echo_all ()
  3254. {
  3255. $ECHO ""
  3256. }
  3257. case $ECHO in
  3258. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3259. printf "%s\n" "printf" >&6; } ;;
  3260. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3261. printf "%s\n" "print -r" >&6; } ;;
  3262. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3263. printf "%s\n" "cat" >&6; } ;;
  3264. esac
  3265. ac_ext=c
  3266. ac_cpp='$CPP $CPPFLAGS'
  3267. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3268. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3269. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3270. if test -n "$ac_tool_prefix"; then
  3271. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3272. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3274. printf %s "checking for $ac_word... " >&6; }
  3275. if test ${ac_cv_prog_CC+y}
  3276. then :
  3277. printf %s "(cached) " >&6
  3278. else $as_nop
  3279. if test -n "$CC"; then
  3280. ac_cv_prog_CC="$CC" # Let the user override the test.
  3281. else
  3282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3283. for as_dir in $PATH
  3284. do
  3285. IFS=$as_save_IFS
  3286. case $as_dir in #(((
  3287. '') as_dir=./ ;;
  3288. */) ;;
  3289. *) as_dir=$as_dir/ ;;
  3290. esac
  3291. for ac_exec_ext in '' $ac_executable_extensions; do
  3292. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3293. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3294. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3295. break 2
  3296. fi
  3297. done
  3298. done
  3299. IFS=$as_save_IFS
  3300. fi
  3301. fi
  3302. CC=$ac_cv_prog_CC
  3303. if test -n "$CC"; then
  3304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3305. printf "%s\n" "$CC" >&6; }
  3306. else
  3307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3308. printf "%s\n" "no" >&6; }
  3309. fi
  3310. fi
  3311. if test -z "$ac_cv_prog_CC"; then
  3312. ac_ct_CC=$CC
  3313. # Extract the first word of "gcc", so it can be a program name with args.
  3314. set dummy gcc; ac_word=$2
  3315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3316. printf %s "checking for $ac_word... " >&6; }
  3317. if test ${ac_cv_prog_ac_ct_CC+y}
  3318. then :
  3319. printf %s "(cached) " >&6
  3320. else $as_nop
  3321. if test -n "$ac_ct_CC"; then
  3322. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3323. else
  3324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3325. for as_dir in $PATH
  3326. do
  3327. IFS=$as_save_IFS
  3328. case $as_dir in #(((
  3329. '') as_dir=./ ;;
  3330. */) ;;
  3331. *) as_dir=$as_dir/ ;;
  3332. esac
  3333. for ac_exec_ext in '' $ac_executable_extensions; do
  3334. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3335. ac_cv_prog_ac_ct_CC="gcc"
  3336. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3337. break 2
  3338. fi
  3339. done
  3340. done
  3341. IFS=$as_save_IFS
  3342. fi
  3343. fi
  3344. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3345. if test -n "$ac_ct_CC"; then
  3346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3347. printf "%s\n" "$ac_ct_CC" >&6; }
  3348. else
  3349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3350. printf "%s\n" "no" >&6; }
  3351. fi
  3352. if test "x$ac_ct_CC" = x; then
  3353. CC=""
  3354. else
  3355. case $cross_compiling:$ac_tool_warned in
  3356. yes:)
  3357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3358. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3359. ac_tool_warned=yes ;;
  3360. esac
  3361. CC=$ac_ct_CC
  3362. fi
  3363. else
  3364. CC="$ac_cv_prog_CC"
  3365. fi
  3366. if test -z "$CC"; then
  3367. if test -n "$ac_tool_prefix"; then
  3368. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3369. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3371. printf %s "checking for $ac_word... " >&6; }
  3372. if test ${ac_cv_prog_CC+y}
  3373. then :
  3374. printf %s "(cached) " >&6
  3375. else $as_nop
  3376. if test -n "$CC"; then
  3377. ac_cv_prog_CC="$CC" # Let the user override the test.
  3378. else
  3379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3380. for as_dir in $PATH
  3381. do
  3382. IFS=$as_save_IFS
  3383. case $as_dir in #(((
  3384. '') as_dir=./ ;;
  3385. */) ;;
  3386. *) as_dir=$as_dir/ ;;
  3387. esac
  3388. for ac_exec_ext in '' $ac_executable_extensions; do
  3389. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3390. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3391. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3392. break 2
  3393. fi
  3394. done
  3395. done
  3396. IFS=$as_save_IFS
  3397. fi
  3398. fi
  3399. CC=$ac_cv_prog_CC
  3400. if test -n "$CC"; then
  3401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3402. printf "%s\n" "$CC" >&6; }
  3403. else
  3404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3405. printf "%s\n" "no" >&6; }
  3406. fi
  3407. fi
  3408. fi
  3409. if test -z "$CC"; then
  3410. # Extract the first word of "cc", so it can be a program name with args.
  3411. set dummy cc; ac_word=$2
  3412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3413. printf %s "checking for $ac_word... " >&6; }
  3414. if test ${ac_cv_prog_CC+y}
  3415. then :
  3416. printf %s "(cached) " >&6
  3417. else $as_nop
  3418. if test -n "$CC"; then
  3419. ac_cv_prog_CC="$CC" # Let the user override the test.
  3420. else
  3421. ac_prog_rejected=no
  3422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3423. for as_dir in $PATH
  3424. do
  3425. IFS=$as_save_IFS
  3426. case $as_dir in #(((
  3427. '') as_dir=./ ;;
  3428. */) ;;
  3429. *) as_dir=$as_dir/ ;;
  3430. esac
  3431. for ac_exec_ext in '' $ac_executable_extensions; do
  3432. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3433. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3434. ac_prog_rejected=yes
  3435. continue
  3436. fi
  3437. ac_cv_prog_CC="cc"
  3438. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3439. break 2
  3440. fi
  3441. done
  3442. done
  3443. IFS=$as_save_IFS
  3444. if test $ac_prog_rejected = yes; then
  3445. # We found a bogon in the path, so make sure we never use it.
  3446. set dummy $ac_cv_prog_CC
  3447. shift
  3448. if test $# != 0; then
  3449. # We chose a different compiler from the bogus one.
  3450. # However, it has the same basename, so the bogon will be chosen
  3451. # first if we set CC to just the basename; use the full file name.
  3452. shift
  3453. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3454. fi
  3455. fi
  3456. fi
  3457. fi
  3458. CC=$ac_cv_prog_CC
  3459. if test -n "$CC"; then
  3460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3461. printf "%s\n" "$CC" >&6; }
  3462. else
  3463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3464. printf "%s\n" "no" >&6; }
  3465. fi
  3466. fi
  3467. if test -z "$CC"; then
  3468. if test -n "$ac_tool_prefix"; then
  3469. for ac_prog in cl.exe
  3470. do
  3471. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3472. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3474. printf %s "checking for $ac_word... " >&6; }
  3475. if test ${ac_cv_prog_CC+y}
  3476. then :
  3477. printf %s "(cached) " >&6
  3478. else $as_nop
  3479. if test -n "$CC"; then
  3480. ac_cv_prog_CC="$CC" # Let the user override the test.
  3481. else
  3482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3483. for as_dir in $PATH
  3484. do
  3485. IFS=$as_save_IFS
  3486. case $as_dir in #(((
  3487. '') as_dir=./ ;;
  3488. */) ;;
  3489. *) as_dir=$as_dir/ ;;
  3490. esac
  3491. for ac_exec_ext in '' $ac_executable_extensions; do
  3492. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3493. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3494. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3495. break 2
  3496. fi
  3497. done
  3498. done
  3499. IFS=$as_save_IFS
  3500. fi
  3501. fi
  3502. CC=$ac_cv_prog_CC
  3503. if test -n "$CC"; then
  3504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3505. printf "%s\n" "$CC" >&6; }
  3506. else
  3507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3508. printf "%s\n" "no" >&6; }
  3509. fi
  3510. test -n "$CC" && break
  3511. done
  3512. fi
  3513. if test -z "$CC"; then
  3514. ac_ct_CC=$CC
  3515. for ac_prog in cl.exe
  3516. do
  3517. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3518. set dummy $ac_prog; ac_word=$2
  3519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3520. printf %s "checking for $ac_word... " >&6; }
  3521. if test ${ac_cv_prog_ac_ct_CC+y}
  3522. then :
  3523. printf %s "(cached) " >&6
  3524. else $as_nop
  3525. if test -n "$ac_ct_CC"; then
  3526. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3527. else
  3528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3529. for as_dir in $PATH
  3530. do
  3531. IFS=$as_save_IFS
  3532. case $as_dir in #(((
  3533. '') as_dir=./ ;;
  3534. */) ;;
  3535. *) as_dir=$as_dir/ ;;
  3536. esac
  3537. for ac_exec_ext in '' $ac_executable_extensions; do
  3538. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3539. ac_cv_prog_ac_ct_CC="$ac_prog"
  3540. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3541. break 2
  3542. fi
  3543. done
  3544. done
  3545. IFS=$as_save_IFS
  3546. fi
  3547. fi
  3548. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3549. if test -n "$ac_ct_CC"; then
  3550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3551. printf "%s\n" "$ac_ct_CC" >&6; }
  3552. else
  3553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3554. printf "%s\n" "no" >&6; }
  3555. fi
  3556. test -n "$ac_ct_CC" && break
  3557. done
  3558. if test "x$ac_ct_CC" = x; then
  3559. CC=""
  3560. else
  3561. case $cross_compiling:$ac_tool_warned in
  3562. yes:)
  3563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3564. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3565. ac_tool_warned=yes ;;
  3566. esac
  3567. CC=$ac_ct_CC
  3568. fi
  3569. fi
  3570. fi
  3571. if test -z "$CC"; then
  3572. if test -n "$ac_tool_prefix"; then
  3573. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3574. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3576. printf %s "checking for $ac_word... " >&6; }
  3577. if test ${ac_cv_prog_CC+y}
  3578. then :
  3579. printf %s "(cached) " >&6
  3580. else $as_nop
  3581. if test -n "$CC"; then
  3582. ac_cv_prog_CC="$CC" # Let the user override the test.
  3583. else
  3584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3585. for as_dir in $PATH
  3586. do
  3587. IFS=$as_save_IFS
  3588. case $as_dir in #(((
  3589. '') as_dir=./ ;;
  3590. */) ;;
  3591. *) as_dir=$as_dir/ ;;
  3592. esac
  3593. for ac_exec_ext in '' $ac_executable_extensions; do
  3594. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3595. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3596. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3597. break 2
  3598. fi
  3599. done
  3600. done
  3601. IFS=$as_save_IFS
  3602. fi
  3603. fi
  3604. CC=$ac_cv_prog_CC
  3605. if test -n "$CC"; then
  3606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3607. printf "%s\n" "$CC" >&6; }
  3608. else
  3609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3610. printf "%s\n" "no" >&6; }
  3611. fi
  3612. fi
  3613. if test -z "$ac_cv_prog_CC"; then
  3614. ac_ct_CC=$CC
  3615. # Extract the first word of "clang", so it can be a program name with args.
  3616. set dummy clang; ac_word=$2
  3617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3618. printf %s "checking for $ac_word... " >&6; }
  3619. if test ${ac_cv_prog_ac_ct_CC+y}
  3620. then :
  3621. printf %s "(cached) " >&6
  3622. else $as_nop
  3623. if test -n "$ac_ct_CC"; then
  3624. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3625. else
  3626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3627. for as_dir in $PATH
  3628. do
  3629. IFS=$as_save_IFS
  3630. case $as_dir in #(((
  3631. '') as_dir=./ ;;
  3632. */) ;;
  3633. *) as_dir=$as_dir/ ;;
  3634. esac
  3635. for ac_exec_ext in '' $ac_executable_extensions; do
  3636. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3637. ac_cv_prog_ac_ct_CC="clang"
  3638. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3639. break 2
  3640. fi
  3641. done
  3642. done
  3643. IFS=$as_save_IFS
  3644. fi
  3645. fi
  3646. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3647. if test -n "$ac_ct_CC"; then
  3648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3649. printf "%s\n" "$ac_ct_CC" >&6; }
  3650. else
  3651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3652. printf "%s\n" "no" >&6; }
  3653. fi
  3654. if test "x$ac_ct_CC" = x; then
  3655. CC=""
  3656. else
  3657. case $cross_compiling:$ac_tool_warned in
  3658. yes:)
  3659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3660. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3661. ac_tool_warned=yes ;;
  3662. esac
  3663. CC=$ac_ct_CC
  3664. fi
  3665. else
  3666. CC="$ac_cv_prog_CC"
  3667. fi
  3668. fi
  3669. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3670. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3671. as_fn_error $? "no acceptable C compiler found in \$PATH
  3672. See \`config.log' for more details" "$LINENO" 5; }
  3673. # Provide some information about the compiler.
  3674. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3675. set X $ac_compile
  3676. ac_compiler=$2
  3677. for ac_option in --version -v -V -qversion -version; do
  3678. { { ac_try="$ac_compiler $ac_option >&5"
  3679. case "(($ac_try" in
  3680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3681. *) ac_try_echo=$ac_try;;
  3682. esac
  3683. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3684. printf "%s\n" "$ac_try_echo"; } >&5
  3685. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3686. ac_status=$?
  3687. if test -s conftest.err; then
  3688. sed '10a\
  3689. ... rest of stderr output deleted ...
  3690. 10q' conftest.err >conftest.er1
  3691. cat conftest.er1 >&5
  3692. fi
  3693. rm -f conftest.er1 conftest.err
  3694. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3695. test $ac_status = 0; }
  3696. done
  3697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3698. /* end confdefs.h. */
  3699. int
  3700. main (void)
  3701. {
  3702. ;
  3703. return 0;
  3704. }
  3705. _ACEOF
  3706. ac_clean_files_save=$ac_clean_files
  3707. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3708. # Try to create an executable without -o first, disregard a.out.
  3709. # It will help us diagnose broken compilers, and finding out an intuition
  3710. # of exeext.
  3711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3712. printf %s "checking whether the C compiler works... " >&6; }
  3713. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3714. # The possible output files:
  3715. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3716. ac_rmfiles=
  3717. for ac_file in $ac_files
  3718. do
  3719. case $ac_file in
  3720. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3721. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3722. esac
  3723. done
  3724. rm -f $ac_rmfiles
  3725. if { { ac_try="$ac_link_default"
  3726. case "(($ac_try" in
  3727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3728. *) ac_try_echo=$ac_try;;
  3729. esac
  3730. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3731. printf "%s\n" "$ac_try_echo"; } >&5
  3732. (eval "$ac_link_default") 2>&5
  3733. ac_status=$?
  3734. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3735. test $ac_status = 0; }
  3736. then :
  3737. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3738. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3739. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3740. # so that the user can short-circuit this test for compilers unknown to
  3741. # Autoconf.
  3742. for ac_file in $ac_files ''
  3743. do
  3744. test -f "$ac_file" || continue
  3745. case $ac_file in
  3746. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3747. ;;
  3748. [ab].out )
  3749. # We found the default executable, but exeext='' is most
  3750. # certainly right.
  3751. break;;
  3752. *.* )
  3753. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3754. then :; else
  3755. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3756. fi
  3757. # We set ac_cv_exeext here because the later test for it is not
  3758. # safe: cross compilers may not add the suffix if given an `-o'
  3759. # argument, so we may need to know it at that point already.
  3760. # Even if this section looks crufty: it has the advantage of
  3761. # actually working.
  3762. break;;
  3763. * )
  3764. break;;
  3765. esac
  3766. done
  3767. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3768. else $as_nop
  3769. ac_file=''
  3770. fi
  3771. if test -z "$ac_file"
  3772. then :
  3773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3774. printf "%s\n" "no" >&6; }
  3775. printf "%s\n" "$as_me: failed program was:" >&5
  3776. sed 's/^/| /' conftest.$ac_ext >&5
  3777. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3778. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3779. as_fn_error 77 "C compiler cannot create executables
  3780. See \`config.log' for more details" "$LINENO" 5; }
  3781. else $as_nop
  3782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3783. printf "%s\n" "yes" >&6; }
  3784. fi
  3785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3786. printf %s "checking for C compiler default output file name... " >&6; }
  3787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3788. printf "%s\n" "$ac_file" >&6; }
  3789. ac_exeext=$ac_cv_exeext
  3790. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3791. ac_clean_files=$ac_clean_files_save
  3792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3793. printf %s "checking for suffix of executables... " >&6; }
  3794. if { { ac_try="$ac_link"
  3795. case "(($ac_try" in
  3796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3797. *) ac_try_echo=$ac_try;;
  3798. esac
  3799. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3800. printf "%s\n" "$ac_try_echo"; } >&5
  3801. (eval "$ac_link") 2>&5
  3802. ac_status=$?
  3803. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3804. test $ac_status = 0; }
  3805. then :
  3806. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3807. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3808. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3809. # `rm'.
  3810. for ac_file in conftest.exe conftest conftest.*; do
  3811. test -f "$ac_file" || continue
  3812. case $ac_file in
  3813. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3814. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3815. break;;
  3816. * ) break;;
  3817. esac
  3818. done
  3819. else $as_nop
  3820. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3821. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3822. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3823. See \`config.log' for more details" "$LINENO" 5; }
  3824. fi
  3825. rm -f conftest conftest$ac_cv_exeext
  3826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3827. printf "%s\n" "$ac_cv_exeext" >&6; }
  3828. rm -f conftest.$ac_ext
  3829. EXEEXT=$ac_cv_exeext
  3830. ac_exeext=$EXEEXT
  3831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3832. /* end confdefs.h. */
  3833. #include <stdio.h>
  3834. int
  3835. main (void)
  3836. {
  3837. FILE *f = fopen ("conftest.out", "w");
  3838. return ferror (f) || fclose (f) != 0;
  3839. ;
  3840. return 0;
  3841. }
  3842. _ACEOF
  3843. ac_clean_files="$ac_clean_files conftest.out"
  3844. # Check that the compiler produces executables we can run. If not, either
  3845. # the compiler is broken, or we cross compile.
  3846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3847. printf %s "checking whether we are cross compiling... " >&6; }
  3848. if test "$cross_compiling" != yes; then
  3849. { { ac_try="$ac_link"
  3850. case "(($ac_try" in
  3851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3852. *) ac_try_echo=$ac_try;;
  3853. esac
  3854. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3855. printf "%s\n" "$ac_try_echo"; } >&5
  3856. (eval "$ac_link") 2>&5
  3857. ac_status=$?
  3858. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3859. test $ac_status = 0; }
  3860. if { ac_try='./conftest$ac_cv_exeext'
  3861. { { case "(($ac_try" in
  3862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3863. *) ac_try_echo=$ac_try;;
  3864. esac
  3865. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3866. printf "%s\n" "$ac_try_echo"; } >&5
  3867. (eval "$ac_try") 2>&5
  3868. ac_status=$?
  3869. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3870. test $ac_status = 0; }; }; then
  3871. cross_compiling=no
  3872. else
  3873. if test "$cross_compiling" = maybe; then
  3874. cross_compiling=yes
  3875. else
  3876. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3877. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3878. as_fn_error 77 "cannot run C compiled programs.
  3879. If you meant to cross compile, use \`--host'.
  3880. See \`config.log' for more details" "$LINENO" 5; }
  3881. fi
  3882. fi
  3883. fi
  3884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3885. printf "%s\n" "$cross_compiling" >&6; }
  3886. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3887. ac_clean_files=$ac_clean_files_save
  3888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3889. printf %s "checking for suffix of object files... " >&6; }
  3890. if test ${ac_cv_objext+y}
  3891. then :
  3892. printf %s "(cached) " >&6
  3893. else $as_nop
  3894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3895. /* end confdefs.h. */
  3896. int
  3897. main (void)
  3898. {
  3899. ;
  3900. return 0;
  3901. }
  3902. _ACEOF
  3903. rm -f conftest.o conftest.obj
  3904. if { { ac_try="$ac_compile"
  3905. case "(($ac_try" in
  3906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3907. *) ac_try_echo=$ac_try;;
  3908. esac
  3909. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3910. printf "%s\n" "$ac_try_echo"; } >&5
  3911. (eval "$ac_compile") 2>&5
  3912. ac_status=$?
  3913. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3914. test $ac_status = 0; }
  3915. then :
  3916. for ac_file in conftest.o conftest.obj conftest.*; do
  3917. test -f "$ac_file" || continue;
  3918. case $ac_file in
  3919. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3920. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3921. break;;
  3922. esac
  3923. done
  3924. else $as_nop
  3925. printf "%s\n" "$as_me: failed program was:" >&5
  3926. sed 's/^/| /' conftest.$ac_ext >&5
  3927. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3928. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3929. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3930. See \`config.log' for more details" "$LINENO" 5; }
  3931. fi
  3932. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3933. fi
  3934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3935. printf "%s\n" "$ac_cv_objext" >&6; }
  3936. OBJEXT=$ac_cv_objext
  3937. ac_objext=$OBJEXT
  3938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3939. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3940. if test ${ac_cv_c_compiler_gnu+y}
  3941. then :
  3942. printf %s "(cached) " >&6
  3943. else $as_nop
  3944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3945. /* end confdefs.h. */
  3946. int
  3947. main (void)
  3948. {
  3949. #ifndef __GNUC__
  3950. choke me
  3951. #endif
  3952. ;
  3953. return 0;
  3954. }
  3955. _ACEOF
  3956. if ac_fn_c_try_compile "$LINENO"
  3957. then :
  3958. ac_compiler_gnu=yes
  3959. else $as_nop
  3960. ac_compiler_gnu=no
  3961. fi
  3962. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3963. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3964. fi
  3965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3966. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3967. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3968. if test $ac_compiler_gnu = yes; then
  3969. GCC=yes
  3970. else
  3971. GCC=
  3972. fi
  3973. ac_test_CFLAGS=${CFLAGS+y}
  3974. ac_save_CFLAGS=$CFLAGS
  3975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3976. printf %s "checking whether $CC accepts -g... " >&6; }
  3977. if test ${ac_cv_prog_cc_g+y}
  3978. then :
  3979. printf %s "(cached) " >&6
  3980. else $as_nop
  3981. ac_save_c_werror_flag=$ac_c_werror_flag
  3982. ac_c_werror_flag=yes
  3983. ac_cv_prog_cc_g=no
  3984. CFLAGS="-g"
  3985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3986. /* end confdefs.h. */
  3987. int
  3988. main (void)
  3989. {
  3990. ;
  3991. return 0;
  3992. }
  3993. _ACEOF
  3994. if ac_fn_c_try_compile "$LINENO"
  3995. then :
  3996. ac_cv_prog_cc_g=yes
  3997. else $as_nop
  3998. CFLAGS=""
  3999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4000. /* end confdefs.h. */
  4001. int
  4002. main (void)
  4003. {
  4004. ;
  4005. return 0;
  4006. }
  4007. _ACEOF
  4008. if ac_fn_c_try_compile "$LINENO"
  4009. then :
  4010. else $as_nop
  4011. ac_c_werror_flag=$ac_save_c_werror_flag
  4012. CFLAGS="-g"
  4013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4014. /* end confdefs.h. */
  4015. int
  4016. main (void)
  4017. {
  4018. ;
  4019. return 0;
  4020. }
  4021. _ACEOF
  4022. if ac_fn_c_try_compile "$LINENO"
  4023. then :
  4024. ac_cv_prog_cc_g=yes
  4025. fi
  4026. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4027. fi
  4028. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4029. fi
  4030. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4031. ac_c_werror_flag=$ac_save_c_werror_flag
  4032. fi
  4033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4034. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4035. if test $ac_test_CFLAGS; then
  4036. CFLAGS=$ac_save_CFLAGS
  4037. elif test $ac_cv_prog_cc_g = yes; then
  4038. if test "$GCC" = yes; then
  4039. CFLAGS="-g -O2"
  4040. else
  4041. CFLAGS="-g"
  4042. fi
  4043. else
  4044. if test "$GCC" = yes; then
  4045. CFLAGS="-O2"
  4046. else
  4047. CFLAGS=
  4048. fi
  4049. fi
  4050. ac_prog_cc_stdc=no
  4051. if test x$ac_prog_cc_stdc = xno
  4052. then :
  4053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4054. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4055. if test ${ac_cv_prog_cc_c11+y}
  4056. then :
  4057. printf %s "(cached) " >&6
  4058. else $as_nop
  4059. ac_cv_prog_cc_c11=no
  4060. ac_save_CC=$CC
  4061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4062. /* end confdefs.h. */
  4063. $ac_c_conftest_c11_program
  4064. _ACEOF
  4065. for ac_arg in '' -std=gnu11
  4066. do
  4067. CC="$ac_save_CC $ac_arg"
  4068. if ac_fn_c_try_compile "$LINENO"
  4069. then :
  4070. ac_cv_prog_cc_c11=$ac_arg
  4071. fi
  4072. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4073. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4074. done
  4075. rm -f conftest.$ac_ext
  4076. CC=$ac_save_CC
  4077. fi
  4078. if test "x$ac_cv_prog_cc_c11" = xno
  4079. then :
  4080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4081. printf "%s\n" "unsupported" >&6; }
  4082. else $as_nop
  4083. if test "x$ac_cv_prog_cc_c11" = x
  4084. then :
  4085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4086. printf "%s\n" "none needed" >&6; }
  4087. else $as_nop
  4088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4089. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4090. CC="$CC $ac_cv_prog_cc_c11"
  4091. fi
  4092. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4093. ac_prog_cc_stdc=c11
  4094. fi
  4095. fi
  4096. if test x$ac_prog_cc_stdc = xno
  4097. then :
  4098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4099. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4100. if test ${ac_cv_prog_cc_c99+y}
  4101. then :
  4102. printf %s "(cached) " >&6
  4103. else $as_nop
  4104. ac_cv_prog_cc_c99=no
  4105. ac_save_CC=$CC
  4106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4107. /* end confdefs.h. */
  4108. $ac_c_conftest_c99_program
  4109. _ACEOF
  4110. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4111. do
  4112. CC="$ac_save_CC $ac_arg"
  4113. if ac_fn_c_try_compile "$LINENO"
  4114. then :
  4115. ac_cv_prog_cc_c99=$ac_arg
  4116. fi
  4117. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4118. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4119. done
  4120. rm -f conftest.$ac_ext
  4121. CC=$ac_save_CC
  4122. fi
  4123. if test "x$ac_cv_prog_cc_c99" = xno
  4124. then :
  4125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4126. printf "%s\n" "unsupported" >&6; }
  4127. else $as_nop
  4128. if test "x$ac_cv_prog_cc_c99" = x
  4129. then :
  4130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4131. printf "%s\n" "none needed" >&6; }
  4132. else $as_nop
  4133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4134. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4135. CC="$CC $ac_cv_prog_cc_c99"
  4136. fi
  4137. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4138. ac_prog_cc_stdc=c99
  4139. fi
  4140. fi
  4141. if test x$ac_prog_cc_stdc = xno
  4142. then :
  4143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4144. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4145. if test ${ac_cv_prog_cc_c89+y}
  4146. then :
  4147. printf %s "(cached) " >&6
  4148. else $as_nop
  4149. ac_cv_prog_cc_c89=no
  4150. ac_save_CC=$CC
  4151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4152. /* end confdefs.h. */
  4153. $ac_c_conftest_c89_program
  4154. _ACEOF
  4155. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4156. do
  4157. CC="$ac_save_CC $ac_arg"
  4158. if ac_fn_c_try_compile "$LINENO"
  4159. then :
  4160. ac_cv_prog_cc_c89=$ac_arg
  4161. fi
  4162. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4163. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4164. done
  4165. rm -f conftest.$ac_ext
  4166. CC=$ac_save_CC
  4167. fi
  4168. if test "x$ac_cv_prog_cc_c89" = xno
  4169. then :
  4170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4171. printf "%s\n" "unsupported" >&6; }
  4172. else $as_nop
  4173. if test "x$ac_cv_prog_cc_c89" = x
  4174. then :
  4175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4176. printf "%s\n" "none needed" >&6; }
  4177. else $as_nop
  4178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4179. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4180. CC="$CC $ac_cv_prog_cc_c89"
  4181. fi
  4182. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4183. ac_prog_cc_stdc=c89
  4184. fi
  4185. fi
  4186. ac_ext=c
  4187. ac_cpp='$CPP $CPPFLAGS'
  4188. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4189. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4190. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4192. printf %s "checking for a sed that does not truncate output... " >&6; }
  4193. if test ${ac_cv_path_SED+y}
  4194. then :
  4195. printf %s "(cached) " >&6
  4196. else $as_nop
  4197. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4198. for ac_i in 1 2 3 4 5 6 7; do
  4199. ac_script="$ac_script$as_nl$ac_script"
  4200. done
  4201. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4202. { ac_script=; unset ac_script;}
  4203. if test -z "$SED"; then
  4204. ac_path_SED_found=false
  4205. # Loop through the user's path and test for each of PROGNAME-LIST
  4206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4207. for as_dir in $PATH
  4208. do
  4209. IFS=$as_save_IFS
  4210. case $as_dir in #(((
  4211. '') as_dir=./ ;;
  4212. */) ;;
  4213. *) as_dir=$as_dir/ ;;
  4214. esac
  4215. for ac_prog in sed gsed
  4216. do
  4217. for ac_exec_ext in '' $ac_executable_extensions; do
  4218. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4219. as_fn_executable_p "$ac_path_SED" || continue
  4220. # Check for GNU ac_path_SED and select it if it is found.
  4221. # Check for GNU $ac_path_SED
  4222. case `"$ac_path_SED" --version 2>&1` in
  4223. *GNU*)
  4224. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4225. *)
  4226. ac_count=0
  4227. printf %s 0123456789 >"conftest.in"
  4228. while :
  4229. do
  4230. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4231. mv "conftest.tmp" "conftest.in"
  4232. cp "conftest.in" "conftest.nl"
  4233. printf "%s\n" '' >> "conftest.nl"
  4234. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4235. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4236. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4237. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4238. # Best one so far, save it but keep looking for a better one
  4239. ac_cv_path_SED="$ac_path_SED"
  4240. ac_path_SED_max=$ac_count
  4241. fi
  4242. # 10*(2^10) chars as input seems more than enough
  4243. test $ac_count -gt 10 && break
  4244. done
  4245. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4246. esac
  4247. $ac_path_SED_found && break 3
  4248. done
  4249. done
  4250. done
  4251. IFS=$as_save_IFS
  4252. if test -z "$ac_cv_path_SED"; then
  4253. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4254. fi
  4255. else
  4256. ac_cv_path_SED=$SED
  4257. fi
  4258. fi
  4259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4260. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4261. SED="$ac_cv_path_SED"
  4262. rm -f conftest.sed
  4263. test -z "$SED" && SED=sed
  4264. Xsed="$SED -e 1s/^X//"
  4265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4266. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4267. if test ${ac_cv_path_GREP+y}
  4268. then :
  4269. printf %s "(cached) " >&6
  4270. else $as_nop
  4271. if test -z "$GREP"; then
  4272. ac_path_GREP_found=false
  4273. # Loop through the user's path and test for each of PROGNAME-LIST
  4274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4275. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4276. do
  4277. IFS=$as_save_IFS
  4278. case $as_dir in #(((
  4279. '') as_dir=./ ;;
  4280. */) ;;
  4281. *) as_dir=$as_dir/ ;;
  4282. esac
  4283. for ac_prog in grep ggrep
  4284. do
  4285. for ac_exec_ext in '' $ac_executable_extensions; do
  4286. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4287. as_fn_executable_p "$ac_path_GREP" || continue
  4288. # Check for GNU ac_path_GREP and select it if it is found.
  4289. # Check for GNU $ac_path_GREP
  4290. case `"$ac_path_GREP" --version 2>&1` in
  4291. *GNU*)
  4292. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4293. *)
  4294. ac_count=0
  4295. printf %s 0123456789 >"conftest.in"
  4296. while :
  4297. do
  4298. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4299. mv "conftest.tmp" "conftest.in"
  4300. cp "conftest.in" "conftest.nl"
  4301. printf "%s\n" 'GREP' >> "conftest.nl"
  4302. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4303. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4304. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4305. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4306. # Best one so far, save it but keep looking for a better one
  4307. ac_cv_path_GREP="$ac_path_GREP"
  4308. ac_path_GREP_max=$ac_count
  4309. fi
  4310. # 10*(2^10) chars as input seems more than enough
  4311. test $ac_count -gt 10 && break
  4312. done
  4313. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4314. esac
  4315. $ac_path_GREP_found && break 3
  4316. done
  4317. done
  4318. done
  4319. IFS=$as_save_IFS
  4320. if test -z "$ac_cv_path_GREP"; then
  4321. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4322. fi
  4323. else
  4324. ac_cv_path_GREP=$GREP
  4325. fi
  4326. fi
  4327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4328. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4329. GREP="$ac_cv_path_GREP"
  4330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4331. printf %s "checking for egrep... " >&6; }
  4332. if test ${ac_cv_path_EGREP+y}
  4333. then :
  4334. printf %s "(cached) " >&6
  4335. else $as_nop
  4336. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4337. then ac_cv_path_EGREP="$GREP -E"
  4338. else
  4339. if test -z "$EGREP"; then
  4340. ac_path_EGREP_found=false
  4341. # Loop through the user's path and test for each of PROGNAME-LIST
  4342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4343. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4344. do
  4345. IFS=$as_save_IFS
  4346. case $as_dir in #(((
  4347. '') as_dir=./ ;;
  4348. */) ;;
  4349. *) as_dir=$as_dir/ ;;
  4350. esac
  4351. for ac_prog in egrep
  4352. do
  4353. for ac_exec_ext in '' $ac_executable_extensions; do
  4354. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4355. as_fn_executable_p "$ac_path_EGREP" || continue
  4356. # Check for GNU ac_path_EGREP and select it if it is found.
  4357. # Check for GNU $ac_path_EGREP
  4358. case `"$ac_path_EGREP" --version 2>&1` in
  4359. *GNU*)
  4360. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4361. *)
  4362. ac_count=0
  4363. printf %s 0123456789 >"conftest.in"
  4364. while :
  4365. do
  4366. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4367. mv "conftest.tmp" "conftest.in"
  4368. cp "conftest.in" "conftest.nl"
  4369. printf "%s\n" 'EGREP' >> "conftest.nl"
  4370. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4371. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4372. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4373. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4374. # Best one so far, save it but keep looking for a better one
  4375. ac_cv_path_EGREP="$ac_path_EGREP"
  4376. ac_path_EGREP_max=$ac_count
  4377. fi
  4378. # 10*(2^10) chars as input seems more than enough
  4379. test $ac_count -gt 10 && break
  4380. done
  4381. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4382. esac
  4383. $ac_path_EGREP_found && break 3
  4384. done
  4385. done
  4386. done
  4387. IFS=$as_save_IFS
  4388. if test -z "$ac_cv_path_EGREP"; then
  4389. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4390. fi
  4391. else
  4392. ac_cv_path_EGREP=$EGREP
  4393. fi
  4394. fi
  4395. fi
  4396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4397. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4398. EGREP="$ac_cv_path_EGREP"
  4399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4400. printf %s "checking for fgrep... " >&6; }
  4401. if test ${ac_cv_path_FGREP+y}
  4402. then :
  4403. printf %s "(cached) " >&6
  4404. else $as_nop
  4405. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4406. then ac_cv_path_FGREP="$GREP -F"
  4407. else
  4408. if test -z "$FGREP"; then
  4409. ac_path_FGREP_found=false
  4410. # Loop through the user's path and test for each of PROGNAME-LIST
  4411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4412. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4413. do
  4414. IFS=$as_save_IFS
  4415. case $as_dir in #(((
  4416. '') as_dir=./ ;;
  4417. */) ;;
  4418. *) as_dir=$as_dir/ ;;
  4419. esac
  4420. for ac_prog in fgrep
  4421. do
  4422. for ac_exec_ext in '' $ac_executable_extensions; do
  4423. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4424. as_fn_executable_p "$ac_path_FGREP" || continue
  4425. # Check for GNU ac_path_FGREP and select it if it is found.
  4426. # Check for GNU $ac_path_FGREP
  4427. case `"$ac_path_FGREP" --version 2>&1` in
  4428. *GNU*)
  4429. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4430. *)
  4431. ac_count=0
  4432. printf %s 0123456789 >"conftest.in"
  4433. while :
  4434. do
  4435. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4436. mv "conftest.tmp" "conftest.in"
  4437. cp "conftest.in" "conftest.nl"
  4438. printf "%s\n" 'FGREP' >> "conftest.nl"
  4439. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4440. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4441. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4442. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4443. # Best one so far, save it but keep looking for a better one
  4444. ac_cv_path_FGREP="$ac_path_FGREP"
  4445. ac_path_FGREP_max=$ac_count
  4446. fi
  4447. # 10*(2^10) chars as input seems more than enough
  4448. test $ac_count -gt 10 && break
  4449. done
  4450. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4451. esac
  4452. $ac_path_FGREP_found && break 3
  4453. done
  4454. done
  4455. done
  4456. IFS=$as_save_IFS
  4457. if test -z "$ac_cv_path_FGREP"; then
  4458. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4459. fi
  4460. else
  4461. ac_cv_path_FGREP=$FGREP
  4462. fi
  4463. fi
  4464. fi
  4465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4466. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4467. FGREP="$ac_cv_path_FGREP"
  4468. test -z "$GREP" && GREP=grep
  4469. # Check whether --with-gnu-ld was given.
  4470. if test ${with_gnu_ld+y}
  4471. then :
  4472. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4473. else $as_nop
  4474. with_gnu_ld=no
  4475. fi
  4476. ac_prog=ld
  4477. if test yes = "$GCC"; then
  4478. # Check if gcc -print-prog-name=ld gives a path.
  4479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4480. printf %s "checking for ld used by $CC... " >&6; }
  4481. case $host in
  4482. *-*-mingw*)
  4483. # gcc leaves a trailing carriage return, which upsets mingw
  4484. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4485. *)
  4486. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4487. esac
  4488. case $ac_prog in
  4489. # Accept absolute paths.
  4490. [\\/]* | ?:[\\/]*)
  4491. re_direlt='/[^/][^/]*/\.\./'
  4492. # Canonicalize the pathname of ld
  4493. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4494. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4495. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4496. done
  4497. test -z "$LD" && LD=$ac_prog
  4498. ;;
  4499. "")
  4500. # If it fails, then pretend we aren't using GCC.
  4501. ac_prog=ld
  4502. ;;
  4503. *)
  4504. # If it is relative, then search for the first ld in PATH.
  4505. with_gnu_ld=unknown
  4506. ;;
  4507. esac
  4508. elif test yes = "$with_gnu_ld"; then
  4509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4510. printf %s "checking for GNU ld... " >&6; }
  4511. else
  4512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4513. printf %s "checking for non-GNU ld... " >&6; }
  4514. fi
  4515. if test ${lt_cv_path_LD+y}
  4516. then :
  4517. printf %s "(cached) " >&6
  4518. else $as_nop
  4519. if test -z "$LD"; then
  4520. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4521. for ac_dir in $PATH; do
  4522. IFS=$lt_save_ifs
  4523. test -z "$ac_dir" && ac_dir=.
  4524. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4525. lt_cv_path_LD=$ac_dir/$ac_prog
  4526. # Check to see if the program is GNU ld. I'd rather use --version,
  4527. # but apparently some variants of GNU ld only accept -v.
  4528. # Break only if it was the GNU/non-GNU ld that we prefer.
  4529. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4530. *GNU* | *'with BFD'*)
  4531. test no != "$with_gnu_ld" && break
  4532. ;;
  4533. *)
  4534. test yes != "$with_gnu_ld" && break
  4535. ;;
  4536. esac
  4537. fi
  4538. done
  4539. IFS=$lt_save_ifs
  4540. else
  4541. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4542. fi
  4543. fi
  4544. LD=$lt_cv_path_LD
  4545. if test -n "$LD"; then
  4546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4547. printf "%s\n" "$LD" >&6; }
  4548. else
  4549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4550. printf "%s\n" "no" >&6; }
  4551. fi
  4552. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4554. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4555. if test ${lt_cv_prog_gnu_ld+y}
  4556. then :
  4557. printf %s "(cached) " >&6
  4558. else $as_nop
  4559. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4560. case `$LD -v 2>&1 </dev/null` in
  4561. *GNU* | *'with BFD'*)
  4562. lt_cv_prog_gnu_ld=yes
  4563. ;;
  4564. *)
  4565. lt_cv_prog_gnu_ld=no
  4566. ;;
  4567. esac
  4568. fi
  4569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4570. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4571. with_gnu_ld=$lt_cv_prog_gnu_ld
  4572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4573. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4574. if test ${lt_cv_path_NM+y}
  4575. then :
  4576. printf %s "(cached) " >&6
  4577. else $as_nop
  4578. if test -n "$NM"; then
  4579. # Let the user override the test.
  4580. lt_cv_path_NM=$NM
  4581. else
  4582. lt_nm_to_check=${ac_tool_prefix}nm
  4583. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4584. lt_nm_to_check="$lt_nm_to_check nm"
  4585. fi
  4586. for lt_tmp_nm in $lt_nm_to_check; do
  4587. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4588. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4589. IFS=$lt_save_ifs
  4590. test -z "$ac_dir" && ac_dir=.
  4591. tmp_nm=$ac_dir/$lt_tmp_nm
  4592. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4593. # Check to see if the nm accepts a BSD-compat flag.
  4594. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4595. # nm: unknown option "B" ignored
  4596. # Tru64's nm complains that /dev/null is an invalid object file
  4597. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4598. case $build_os in
  4599. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4600. *) lt_bad_file=/dev/null ;;
  4601. esac
  4602. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4603. *$lt_bad_file* | *'Invalid file or object type'*)
  4604. lt_cv_path_NM="$tmp_nm -B"
  4605. break 2
  4606. ;;
  4607. *)
  4608. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4609. */dev/null*)
  4610. lt_cv_path_NM="$tmp_nm -p"
  4611. break 2
  4612. ;;
  4613. *)
  4614. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4615. continue # so that we can try to find one that supports BSD flags
  4616. ;;
  4617. esac
  4618. ;;
  4619. esac
  4620. fi
  4621. done
  4622. IFS=$lt_save_ifs
  4623. done
  4624. : ${lt_cv_path_NM=no}
  4625. fi
  4626. fi
  4627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4628. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4629. if test no != "$lt_cv_path_NM"; then
  4630. NM=$lt_cv_path_NM
  4631. else
  4632. # Didn't find any BSD compatible name lister, look for dumpbin.
  4633. if test -n "$DUMPBIN"; then :
  4634. # Let the user override the test.
  4635. else
  4636. if test -n "$ac_tool_prefix"; then
  4637. for ac_prog in dumpbin "link -dump"
  4638. do
  4639. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4640. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4642. printf %s "checking for $ac_word... " >&6; }
  4643. if test ${ac_cv_prog_DUMPBIN+y}
  4644. then :
  4645. printf %s "(cached) " >&6
  4646. else $as_nop
  4647. if test -n "$DUMPBIN"; then
  4648. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4649. else
  4650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4651. for as_dir in $PATH
  4652. do
  4653. IFS=$as_save_IFS
  4654. case $as_dir in #(((
  4655. '') as_dir=./ ;;
  4656. */) ;;
  4657. *) as_dir=$as_dir/ ;;
  4658. esac
  4659. for ac_exec_ext in '' $ac_executable_extensions; do
  4660. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4661. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4662. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4663. break 2
  4664. fi
  4665. done
  4666. done
  4667. IFS=$as_save_IFS
  4668. fi
  4669. fi
  4670. DUMPBIN=$ac_cv_prog_DUMPBIN
  4671. if test -n "$DUMPBIN"; then
  4672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4673. printf "%s\n" "$DUMPBIN" >&6; }
  4674. else
  4675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4676. printf "%s\n" "no" >&6; }
  4677. fi
  4678. test -n "$DUMPBIN" && break
  4679. done
  4680. fi
  4681. if test -z "$DUMPBIN"; then
  4682. ac_ct_DUMPBIN=$DUMPBIN
  4683. for ac_prog in dumpbin "link -dump"
  4684. do
  4685. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4686. set dummy $ac_prog; ac_word=$2
  4687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4688. printf %s "checking for $ac_word... " >&6; }
  4689. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4690. then :
  4691. printf %s "(cached) " >&6
  4692. else $as_nop
  4693. if test -n "$ac_ct_DUMPBIN"; then
  4694. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4695. else
  4696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4697. for as_dir in $PATH
  4698. do
  4699. IFS=$as_save_IFS
  4700. case $as_dir in #(((
  4701. '') as_dir=./ ;;
  4702. */) ;;
  4703. *) as_dir=$as_dir/ ;;
  4704. esac
  4705. for ac_exec_ext in '' $ac_executable_extensions; do
  4706. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4707. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4708. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4709. break 2
  4710. fi
  4711. done
  4712. done
  4713. IFS=$as_save_IFS
  4714. fi
  4715. fi
  4716. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4717. if test -n "$ac_ct_DUMPBIN"; then
  4718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4719. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4720. else
  4721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4722. printf "%s\n" "no" >&6; }
  4723. fi
  4724. test -n "$ac_ct_DUMPBIN" && break
  4725. done
  4726. if test "x$ac_ct_DUMPBIN" = x; then
  4727. DUMPBIN=":"
  4728. else
  4729. case $cross_compiling:$ac_tool_warned in
  4730. yes:)
  4731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4732. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4733. ac_tool_warned=yes ;;
  4734. esac
  4735. DUMPBIN=$ac_ct_DUMPBIN
  4736. fi
  4737. fi
  4738. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4739. *COFF*)
  4740. DUMPBIN="$DUMPBIN -symbols -headers"
  4741. ;;
  4742. *)
  4743. DUMPBIN=:
  4744. ;;
  4745. esac
  4746. fi
  4747. if test : != "$DUMPBIN"; then
  4748. NM=$DUMPBIN
  4749. fi
  4750. fi
  4751. test -z "$NM" && NM=nm
  4752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4753. printf %s "checking the name lister ($NM) interface... " >&6; }
  4754. if test ${lt_cv_nm_interface+y}
  4755. then :
  4756. printf %s "(cached) " >&6
  4757. else $as_nop
  4758. lt_cv_nm_interface="BSD nm"
  4759. echo "int some_variable = 0;" > conftest.$ac_ext
  4760. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4761. (eval "$ac_compile" 2>conftest.err)
  4762. cat conftest.err >&5
  4763. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4764. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4765. cat conftest.err >&5
  4766. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4767. cat conftest.out >&5
  4768. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4769. lt_cv_nm_interface="MS dumpbin"
  4770. fi
  4771. rm -f conftest*
  4772. fi
  4773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4774. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4776. printf %s "checking whether ln -s works... " >&6; }
  4777. LN_S=$as_ln_s
  4778. if test "$LN_S" = "ln -s"; then
  4779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4780. printf "%s\n" "yes" >&6; }
  4781. else
  4782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4783. printf "%s\n" "no, using $LN_S" >&6; }
  4784. fi
  4785. # find the maximum length of command line arguments
  4786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4787. printf %s "checking the maximum length of command line arguments... " >&6; }
  4788. if test ${lt_cv_sys_max_cmd_len+y}
  4789. then :
  4790. printf %s "(cached) " >&6
  4791. else $as_nop
  4792. i=0
  4793. teststring=ABCD
  4794. case $build_os in
  4795. msdosdjgpp*)
  4796. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4797. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4798. # during glob expansion). Even if it were fixed, the result of this
  4799. # check would be larger than it should be.
  4800. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4801. ;;
  4802. gnu*)
  4803. # Under GNU Hurd, this test is not required because there is
  4804. # no limit to the length of command line arguments.
  4805. # Libtool will interpret -1 as no limit whatsoever
  4806. lt_cv_sys_max_cmd_len=-1;
  4807. ;;
  4808. cygwin* | mingw* | cegcc*)
  4809. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4810. # about 5 minutes as the teststring grows exponentially.
  4811. # Worse, since 9x/ME are not pre-emptively multitasking,
  4812. # you end up with a "frozen" computer, even though with patience
  4813. # the test eventually succeeds (with a max line length of 256k).
  4814. # Instead, let's just punt: use the minimum linelength reported by
  4815. # all of the supported platforms: 8192 (on NT/2K/XP).
  4816. lt_cv_sys_max_cmd_len=8192;
  4817. ;;
  4818. mint*)
  4819. # On MiNT this can take a long time and run out of memory.
  4820. lt_cv_sys_max_cmd_len=8192;
  4821. ;;
  4822. amigaos*)
  4823. # On AmigaOS with pdksh, this test takes hours, literally.
  4824. # So we just punt and use a minimum line length of 8192.
  4825. lt_cv_sys_max_cmd_len=8192;
  4826. ;;
  4827. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4828. # This has been around since 386BSD, at least. Likely further.
  4829. if test -x /sbin/sysctl; then
  4830. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4831. elif test -x /usr/sbin/sysctl; then
  4832. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4833. else
  4834. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4835. fi
  4836. # And add a safety zone
  4837. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4838. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4839. ;;
  4840. interix*)
  4841. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4842. lt_cv_sys_max_cmd_len=196608
  4843. ;;
  4844. os2*)
  4845. # The test takes a long time on OS/2.
  4846. lt_cv_sys_max_cmd_len=8192
  4847. ;;
  4848. osf*)
  4849. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4850. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4851. # nice to cause kernel panics so lets avoid the loop below.
  4852. # First set a reasonable default.
  4853. lt_cv_sys_max_cmd_len=16384
  4854. #
  4855. if test -x /sbin/sysconfig; then
  4856. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4857. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4858. esac
  4859. fi
  4860. ;;
  4861. sco3.2v5*)
  4862. lt_cv_sys_max_cmd_len=102400
  4863. ;;
  4864. sysv5* | sco5v6* | sysv4.2uw2*)
  4865. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4866. if test -n "$kargmax"; then
  4867. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4868. else
  4869. lt_cv_sys_max_cmd_len=32768
  4870. fi
  4871. ;;
  4872. *)
  4873. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4874. if test -n "$lt_cv_sys_max_cmd_len" && \
  4875. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4876. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4877. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4878. else
  4879. # Make teststring a little bigger before we do anything with it.
  4880. # a 1K string should be a reasonable start.
  4881. for i in 1 2 3 4 5 6 7 8; do
  4882. teststring=$teststring$teststring
  4883. done
  4884. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4885. # If test is not a shell built-in, we'll probably end up computing a
  4886. # maximum length that is only half of the actual maximum length, but
  4887. # we can't tell.
  4888. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4889. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4890. test 17 != "$i" # 1/2 MB should be enough
  4891. do
  4892. i=`expr $i + 1`
  4893. teststring=$teststring$teststring
  4894. done
  4895. # Only check the string length outside the loop.
  4896. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4897. teststring=
  4898. # Add a significant safety factor because C++ compilers can tack on
  4899. # massive amounts of additional arguments before passing them to the
  4900. # linker. It appears as though 1/2 is a usable value.
  4901. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4902. fi
  4903. ;;
  4904. esac
  4905. fi
  4906. if test -n "$lt_cv_sys_max_cmd_len"; then
  4907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4908. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4909. else
  4910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4911. printf "%s\n" "none" >&6; }
  4912. fi
  4913. max_cmd_len=$lt_cv_sys_max_cmd_len
  4914. : ${CP="cp -f"}
  4915. : ${MV="mv -f"}
  4916. : ${RM="rm -f"}
  4917. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4918. lt_unset=unset
  4919. else
  4920. lt_unset=false
  4921. fi
  4922. # test EBCDIC or ASCII
  4923. case `echo X|tr X '\101'` in
  4924. A) # ASCII based system
  4925. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4926. lt_SP2NL='tr \040 \012'
  4927. lt_NL2SP='tr \015\012 \040\040'
  4928. ;;
  4929. *) # EBCDIC based system
  4930. lt_SP2NL='tr \100 \n'
  4931. lt_NL2SP='tr \r\n \100\100'
  4932. ;;
  4933. esac
  4934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4935. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4936. if test ${lt_cv_to_host_file_cmd+y}
  4937. then :
  4938. printf %s "(cached) " >&6
  4939. else $as_nop
  4940. case $host in
  4941. *-*-mingw* )
  4942. case $build in
  4943. *-*-mingw* ) # actually msys
  4944. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4945. ;;
  4946. *-*-cygwin* )
  4947. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4948. ;;
  4949. * ) # otherwise, assume *nix
  4950. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4951. ;;
  4952. esac
  4953. ;;
  4954. *-*-cygwin* )
  4955. case $build in
  4956. *-*-mingw* ) # actually msys
  4957. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4958. ;;
  4959. *-*-cygwin* )
  4960. lt_cv_to_host_file_cmd=func_convert_file_noop
  4961. ;;
  4962. * ) # otherwise, assume *nix
  4963. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4964. ;;
  4965. esac
  4966. ;;
  4967. * ) # unhandled hosts (and "normal" native builds)
  4968. lt_cv_to_host_file_cmd=func_convert_file_noop
  4969. ;;
  4970. esac
  4971. fi
  4972. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4974. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4976. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4977. if test ${lt_cv_to_tool_file_cmd+y}
  4978. then :
  4979. printf %s "(cached) " >&6
  4980. else $as_nop
  4981. #assume ordinary cross tools, or native build.
  4982. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4983. case $host in
  4984. *-*-mingw* )
  4985. case $build in
  4986. *-*-mingw* ) # actually msys
  4987. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4988. ;;
  4989. esac
  4990. ;;
  4991. esac
  4992. fi
  4993. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4995. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  4996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4997. printf %s "checking for $LD option to reload object files... " >&6; }
  4998. if test ${lt_cv_ld_reload_flag+y}
  4999. then :
  5000. printf %s "(cached) " >&6
  5001. else $as_nop
  5002. lt_cv_ld_reload_flag='-r'
  5003. fi
  5004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5005. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5006. reload_flag=$lt_cv_ld_reload_flag
  5007. case $reload_flag in
  5008. "" | " "*) ;;
  5009. *) reload_flag=" $reload_flag" ;;
  5010. esac
  5011. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5012. case $host_os in
  5013. cygwin* | mingw* | pw32* | cegcc*)
  5014. if test yes != "$GCC"; then
  5015. reload_cmds=false
  5016. fi
  5017. ;;
  5018. darwin*)
  5019. if test yes = "$GCC"; then
  5020. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5021. else
  5022. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5023. fi
  5024. ;;
  5025. esac
  5026. if test -n "$ac_tool_prefix"; then
  5027. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5028. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5030. printf %s "checking for $ac_word... " >&6; }
  5031. if test ${ac_cv_prog_OBJDUMP+y}
  5032. then :
  5033. printf %s "(cached) " >&6
  5034. else $as_nop
  5035. if test -n "$OBJDUMP"; then
  5036. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5037. else
  5038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5039. for as_dir in $PATH
  5040. do
  5041. IFS=$as_save_IFS
  5042. case $as_dir in #(((
  5043. '') as_dir=./ ;;
  5044. */) ;;
  5045. *) as_dir=$as_dir/ ;;
  5046. esac
  5047. for ac_exec_ext in '' $ac_executable_extensions; do
  5048. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5049. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5050. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5051. break 2
  5052. fi
  5053. done
  5054. done
  5055. IFS=$as_save_IFS
  5056. fi
  5057. fi
  5058. OBJDUMP=$ac_cv_prog_OBJDUMP
  5059. if test -n "$OBJDUMP"; then
  5060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5061. printf "%s\n" "$OBJDUMP" >&6; }
  5062. else
  5063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5064. printf "%s\n" "no" >&6; }
  5065. fi
  5066. fi
  5067. if test -z "$ac_cv_prog_OBJDUMP"; then
  5068. ac_ct_OBJDUMP=$OBJDUMP
  5069. # Extract the first word of "objdump", so it can be a program name with args.
  5070. set dummy objdump; ac_word=$2
  5071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5072. printf %s "checking for $ac_word... " >&6; }
  5073. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5074. then :
  5075. printf %s "(cached) " >&6
  5076. else $as_nop
  5077. if test -n "$ac_ct_OBJDUMP"; then
  5078. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5079. else
  5080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5081. for as_dir in $PATH
  5082. do
  5083. IFS=$as_save_IFS
  5084. case $as_dir in #(((
  5085. '') as_dir=./ ;;
  5086. */) ;;
  5087. *) as_dir=$as_dir/ ;;
  5088. esac
  5089. for ac_exec_ext in '' $ac_executable_extensions; do
  5090. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5091. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5092. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5093. break 2
  5094. fi
  5095. done
  5096. done
  5097. IFS=$as_save_IFS
  5098. fi
  5099. fi
  5100. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5101. if test -n "$ac_ct_OBJDUMP"; then
  5102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5103. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5104. else
  5105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5106. printf "%s\n" "no" >&6; }
  5107. fi
  5108. if test "x$ac_ct_OBJDUMP" = x; then
  5109. OBJDUMP="false"
  5110. else
  5111. case $cross_compiling:$ac_tool_warned in
  5112. yes:)
  5113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5114. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5115. ac_tool_warned=yes ;;
  5116. esac
  5117. OBJDUMP=$ac_ct_OBJDUMP
  5118. fi
  5119. else
  5120. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5121. fi
  5122. test -z "$OBJDUMP" && OBJDUMP=objdump
  5123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5124. printf %s "checking how to recognize dependent libraries... " >&6; }
  5125. if test ${lt_cv_deplibs_check_method+y}
  5126. then :
  5127. printf %s "(cached) " >&6
  5128. else $as_nop
  5129. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5130. lt_cv_file_magic_test_file=
  5131. lt_cv_deplibs_check_method='unknown'
  5132. # Need to set the preceding variable on all platforms that support
  5133. # interlibrary dependencies.
  5134. # 'none' -- dependencies not supported.
  5135. # 'unknown' -- same as none, but documents that we really don't know.
  5136. # 'pass_all' -- all dependencies passed with no checks.
  5137. # 'test_compile' -- check by making test program.
  5138. # 'file_magic [[regex]]' -- check by looking for files in library path
  5139. # that responds to the $file_magic_cmd with a given extended regex.
  5140. # If you have 'file' or equivalent on your system and you're not sure
  5141. # whether 'pass_all' will *always* work, you probably want this one.
  5142. case $host_os in
  5143. aix[4-9]*)
  5144. lt_cv_deplibs_check_method=pass_all
  5145. ;;
  5146. beos*)
  5147. lt_cv_deplibs_check_method=pass_all
  5148. ;;
  5149. bsdi[45]*)
  5150. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5151. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5152. lt_cv_file_magic_test_file=/shlib/libc.so
  5153. ;;
  5154. cygwin*)
  5155. # func_win32_libid is a shell function defined in ltmain.sh
  5156. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5157. lt_cv_file_magic_cmd='func_win32_libid'
  5158. lt_cv_deplibs_check_method=pass_all # SDL customization
  5159. ;;
  5160. mingw* | pw32*)
  5161. # Base MSYS/MinGW do not provide the 'file' command needed by
  5162. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5163. # unless we find 'file', for example because we are cross-compiling.
  5164. if ( file / ) >/dev/null 2>&1; then
  5165. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5166. lt_cv_file_magic_cmd='func_win32_libid'
  5167. else
  5168. # Keep this pattern in sync with the one in func_win32_libid.
  5169. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5170. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5171. fi
  5172. lt_cv_deplibs_check_method=pass_all # SDL customization
  5173. ;;
  5174. cegcc*)
  5175. # use the weaker test based on 'objdump'. See mingw*.
  5176. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5177. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5178. ;;
  5179. darwin* | rhapsody*)
  5180. lt_cv_deplibs_check_method=pass_all
  5181. ;;
  5182. freebsd* | dragonfly* | midnightbsd*)
  5183. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5184. case $host_cpu in
  5185. i*86 )
  5186. # Not sure whether the presence of OpenBSD here was a mistake.
  5187. # Let's accept both of them until this is cleared up.
  5188. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5189. lt_cv_file_magic_cmd=/usr/bin/file
  5190. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5191. ;;
  5192. esac
  5193. else
  5194. lt_cv_deplibs_check_method=pass_all
  5195. fi
  5196. ;;
  5197. haiku*)
  5198. lt_cv_deplibs_check_method=pass_all
  5199. ;;
  5200. hpux10.20* | hpux11*)
  5201. lt_cv_file_magic_cmd=/usr/bin/file
  5202. case $host_cpu in
  5203. ia64*)
  5204. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5205. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5206. ;;
  5207. hppa*64*)
  5208. 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]'
  5209. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5210. ;;
  5211. *)
  5212. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5213. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5214. ;;
  5215. esac
  5216. ;;
  5217. interix[3-9]*)
  5218. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5219. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5220. ;;
  5221. irix5* | irix6* | nonstopux*)
  5222. case $LD in
  5223. *-32|*"-32 ") libmagic=32-bit;;
  5224. *-n32|*"-n32 ") libmagic=N32;;
  5225. *-64|*"-64 ") libmagic=64-bit;;
  5226. *) libmagic=never-match;;
  5227. esac
  5228. lt_cv_deplibs_check_method=pass_all
  5229. ;;
  5230. # This must be glibc/ELF.
  5231. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5232. lt_cv_deplibs_check_method=pass_all
  5233. ;;
  5234. netbsd*)
  5235. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5236. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5237. else
  5238. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5239. fi
  5240. ;;
  5241. newos6*)
  5242. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5243. lt_cv_file_magic_cmd=/usr/bin/file
  5244. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5245. ;;
  5246. *nto* | *qnx*)
  5247. lt_cv_deplibs_check_method=pass_all
  5248. ;;
  5249. openbsd* | bitrig*)
  5250. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5251. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5252. else
  5253. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5254. fi
  5255. ;;
  5256. osf3* | osf4* | osf5*)
  5257. lt_cv_deplibs_check_method=pass_all
  5258. ;;
  5259. rdos*)
  5260. lt_cv_deplibs_check_method=pass_all
  5261. ;;
  5262. solaris*)
  5263. lt_cv_deplibs_check_method=pass_all
  5264. ;;
  5265. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5266. lt_cv_deplibs_check_method=pass_all
  5267. ;;
  5268. sysv4 | sysv4.3*)
  5269. case $host_vendor in
  5270. motorola)
  5271. 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]'
  5272. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5273. ;;
  5274. ncr)
  5275. lt_cv_deplibs_check_method=pass_all
  5276. ;;
  5277. sequent)
  5278. lt_cv_file_magic_cmd='/bin/file'
  5279. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5280. ;;
  5281. sni)
  5282. lt_cv_file_magic_cmd='/bin/file'
  5283. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5284. lt_cv_file_magic_test_file=/lib/libc.so
  5285. ;;
  5286. siemens)
  5287. lt_cv_deplibs_check_method=pass_all
  5288. ;;
  5289. pc)
  5290. lt_cv_deplibs_check_method=pass_all
  5291. ;;
  5292. esac
  5293. ;;
  5294. tpf*)
  5295. lt_cv_deplibs_check_method=pass_all
  5296. ;;
  5297. os2*)
  5298. lt_cv_deplibs_check_method=pass_all
  5299. ;;
  5300. esac
  5301. fi
  5302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5303. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5304. file_magic_glob=
  5305. want_nocaseglob=no
  5306. if test "$build" = "$host"; then
  5307. case $host_os in
  5308. mingw* | pw32*)
  5309. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5310. want_nocaseglob=yes
  5311. else
  5312. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5313. fi
  5314. ;;
  5315. esac
  5316. fi
  5317. file_magic_cmd=$lt_cv_file_magic_cmd
  5318. deplibs_check_method=$lt_cv_deplibs_check_method
  5319. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5320. if test -n "$ac_tool_prefix"; then
  5321. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5322. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5324. printf %s "checking for $ac_word... " >&6; }
  5325. if test ${ac_cv_prog_DLLTOOL+y}
  5326. then :
  5327. printf %s "(cached) " >&6
  5328. else $as_nop
  5329. if test -n "$DLLTOOL"; then
  5330. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5331. else
  5332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5333. for as_dir in $PATH
  5334. do
  5335. IFS=$as_save_IFS
  5336. case $as_dir in #(((
  5337. '') as_dir=./ ;;
  5338. */) ;;
  5339. *) as_dir=$as_dir/ ;;
  5340. esac
  5341. for ac_exec_ext in '' $ac_executable_extensions; do
  5342. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5343. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5344. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5345. break 2
  5346. fi
  5347. done
  5348. done
  5349. IFS=$as_save_IFS
  5350. fi
  5351. fi
  5352. DLLTOOL=$ac_cv_prog_DLLTOOL
  5353. if test -n "$DLLTOOL"; then
  5354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5355. printf "%s\n" "$DLLTOOL" >&6; }
  5356. else
  5357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5358. printf "%s\n" "no" >&6; }
  5359. fi
  5360. fi
  5361. if test -z "$ac_cv_prog_DLLTOOL"; then
  5362. ac_ct_DLLTOOL=$DLLTOOL
  5363. # Extract the first word of "dlltool", so it can be a program name with args.
  5364. set dummy dlltool; ac_word=$2
  5365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5366. printf %s "checking for $ac_word... " >&6; }
  5367. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5368. then :
  5369. printf %s "(cached) " >&6
  5370. else $as_nop
  5371. if test -n "$ac_ct_DLLTOOL"; then
  5372. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5373. else
  5374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5375. for as_dir in $PATH
  5376. do
  5377. IFS=$as_save_IFS
  5378. case $as_dir in #(((
  5379. '') as_dir=./ ;;
  5380. */) ;;
  5381. *) as_dir=$as_dir/ ;;
  5382. esac
  5383. for ac_exec_ext in '' $ac_executable_extensions; do
  5384. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5385. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5386. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5387. break 2
  5388. fi
  5389. done
  5390. done
  5391. IFS=$as_save_IFS
  5392. fi
  5393. fi
  5394. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5395. if test -n "$ac_ct_DLLTOOL"; then
  5396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5397. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5398. else
  5399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5400. printf "%s\n" "no" >&6; }
  5401. fi
  5402. if test "x$ac_ct_DLLTOOL" = x; then
  5403. DLLTOOL="false"
  5404. else
  5405. case $cross_compiling:$ac_tool_warned in
  5406. yes:)
  5407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5408. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5409. ac_tool_warned=yes ;;
  5410. esac
  5411. DLLTOOL=$ac_ct_DLLTOOL
  5412. fi
  5413. else
  5414. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5415. fi
  5416. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5418. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5419. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5420. then :
  5421. printf %s "(cached) " >&6
  5422. else $as_nop
  5423. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5424. case $host_os in
  5425. cygwin* | mingw* | pw32* | cegcc*)
  5426. # two different shell functions defined in ltmain.sh;
  5427. # decide which one to use based on capabilities of $DLLTOOL
  5428. case `$DLLTOOL --help 2>&1` in
  5429. *--identify-strict*)
  5430. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5431. ;;
  5432. *)
  5433. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5434. ;;
  5435. esac
  5436. ;;
  5437. *)
  5438. # fallback: assume linklib IS sharedlib
  5439. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5440. ;;
  5441. esac
  5442. fi
  5443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5444. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5445. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5446. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5447. if test -n "$ac_tool_prefix"; then
  5448. for ac_prog in ar
  5449. do
  5450. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5451. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5453. printf %s "checking for $ac_word... " >&6; }
  5454. if test ${ac_cv_prog_AR+y}
  5455. then :
  5456. printf %s "(cached) " >&6
  5457. else $as_nop
  5458. if test -n "$AR"; then
  5459. ac_cv_prog_AR="$AR" # Let the user override the test.
  5460. else
  5461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5462. for as_dir in $PATH
  5463. do
  5464. IFS=$as_save_IFS
  5465. case $as_dir in #(((
  5466. '') as_dir=./ ;;
  5467. */) ;;
  5468. *) as_dir=$as_dir/ ;;
  5469. esac
  5470. for ac_exec_ext in '' $ac_executable_extensions; do
  5471. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5472. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5473. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5474. break 2
  5475. fi
  5476. done
  5477. done
  5478. IFS=$as_save_IFS
  5479. fi
  5480. fi
  5481. AR=$ac_cv_prog_AR
  5482. if test -n "$AR"; then
  5483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5484. printf "%s\n" "$AR" >&6; }
  5485. else
  5486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5487. printf "%s\n" "no" >&6; }
  5488. fi
  5489. test -n "$AR" && break
  5490. done
  5491. fi
  5492. if test -z "$AR"; then
  5493. ac_ct_AR=$AR
  5494. for ac_prog in ar
  5495. do
  5496. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5497. set dummy $ac_prog; ac_word=$2
  5498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5499. printf %s "checking for $ac_word... " >&6; }
  5500. if test ${ac_cv_prog_ac_ct_AR+y}
  5501. then :
  5502. printf %s "(cached) " >&6
  5503. else $as_nop
  5504. if test -n "$ac_ct_AR"; then
  5505. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5506. else
  5507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5508. for as_dir in $PATH
  5509. do
  5510. IFS=$as_save_IFS
  5511. case $as_dir in #(((
  5512. '') as_dir=./ ;;
  5513. */) ;;
  5514. *) as_dir=$as_dir/ ;;
  5515. esac
  5516. for ac_exec_ext in '' $ac_executable_extensions; do
  5517. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5518. ac_cv_prog_ac_ct_AR="$ac_prog"
  5519. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5520. break 2
  5521. fi
  5522. done
  5523. done
  5524. IFS=$as_save_IFS
  5525. fi
  5526. fi
  5527. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5528. if test -n "$ac_ct_AR"; then
  5529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5530. printf "%s\n" "$ac_ct_AR" >&6; }
  5531. else
  5532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5533. printf "%s\n" "no" >&6; }
  5534. fi
  5535. test -n "$ac_ct_AR" && break
  5536. done
  5537. if test "x$ac_ct_AR" = x; then
  5538. AR="false"
  5539. else
  5540. case $cross_compiling:$ac_tool_warned in
  5541. yes:)
  5542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5543. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5544. ac_tool_warned=yes ;;
  5545. esac
  5546. AR=$ac_ct_AR
  5547. fi
  5548. fi
  5549. : ${AR=ar}
  5550. : ${AR_FLAGS=cru}
  5551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5552. printf %s "checking for archiver @FILE support... " >&6; }
  5553. if test ${lt_cv_ar_at_file+y}
  5554. then :
  5555. printf %s "(cached) " >&6
  5556. else $as_nop
  5557. lt_cv_ar_at_file=no
  5558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5559. /* end confdefs.h. */
  5560. int
  5561. main (void)
  5562. {
  5563. ;
  5564. return 0;
  5565. }
  5566. _ACEOF
  5567. if ac_fn_c_try_compile "$LINENO"
  5568. then :
  5569. echo conftest.$ac_objext > conftest.lst
  5570. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5571. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5572. (eval $lt_ar_try) 2>&5
  5573. ac_status=$?
  5574. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5575. test $ac_status = 0; }
  5576. if test 0 -eq "$ac_status"; then
  5577. # Ensure the archiver fails upon bogus file names.
  5578. rm -f conftest.$ac_objext libconftest.a
  5579. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5580. (eval $lt_ar_try) 2>&5
  5581. ac_status=$?
  5582. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5583. test $ac_status = 0; }
  5584. if test 0 -ne "$ac_status"; then
  5585. lt_cv_ar_at_file=@
  5586. fi
  5587. fi
  5588. rm -f conftest.* libconftest.a
  5589. fi
  5590. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5591. fi
  5592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5593. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5594. if test no = "$lt_cv_ar_at_file"; then
  5595. archiver_list_spec=
  5596. else
  5597. archiver_list_spec=$lt_cv_ar_at_file
  5598. fi
  5599. if test -n "$ac_tool_prefix"; then
  5600. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5601. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5603. printf %s "checking for $ac_word... " >&6; }
  5604. if test ${ac_cv_prog_STRIP+y}
  5605. then :
  5606. printf %s "(cached) " >&6
  5607. else $as_nop
  5608. if test -n "$STRIP"; then
  5609. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5610. else
  5611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5612. for as_dir in $PATH
  5613. do
  5614. IFS=$as_save_IFS
  5615. case $as_dir in #(((
  5616. '') as_dir=./ ;;
  5617. */) ;;
  5618. *) as_dir=$as_dir/ ;;
  5619. esac
  5620. for ac_exec_ext in '' $ac_executable_extensions; do
  5621. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5622. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5623. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5624. break 2
  5625. fi
  5626. done
  5627. done
  5628. IFS=$as_save_IFS
  5629. fi
  5630. fi
  5631. STRIP=$ac_cv_prog_STRIP
  5632. if test -n "$STRIP"; then
  5633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5634. printf "%s\n" "$STRIP" >&6; }
  5635. else
  5636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5637. printf "%s\n" "no" >&6; }
  5638. fi
  5639. fi
  5640. if test -z "$ac_cv_prog_STRIP"; then
  5641. ac_ct_STRIP=$STRIP
  5642. # Extract the first word of "strip", so it can be a program name with args.
  5643. set dummy strip; ac_word=$2
  5644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5645. printf %s "checking for $ac_word... " >&6; }
  5646. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5647. then :
  5648. printf %s "(cached) " >&6
  5649. else $as_nop
  5650. if test -n "$ac_ct_STRIP"; then
  5651. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5652. else
  5653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5654. for as_dir in $PATH
  5655. do
  5656. IFS=$as_save_IFS
  5657. case $as_dir in #(((
  5658. '') as_dir=./ ;;
  5659. */) ;;
  5660. *) as_dir=$as_dir/ ;;
  5661. esac
  5662. for ac_exec_ext in '' $ac_executable_extensions; do
  5663. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5664. ac_cv_prog_ac_ct_STRIP="strip"
  5665. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5666. break 2
  5667. fi
  5668. done
  5669. done
  5670. IFS=$as_save_IFS
  5671. fi
  5672. fi
  5673. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5674. if test -n "$ac_ct_STRIP"; then
  5675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5676. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5677. else
  5678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5679. printf "%s\n" "no" >&6; }
  5680. fi
  5681. if test "x$ac_ct_STRIP" = x; then
  5682. STRIP=":"
  5683. else
  5684. case $cross_compiling:$ac_tool_warned in
  5685. yes:)
  5686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5687. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5688. ac_tool_warned=yes ;;
  5689. esac
  5690. STRIP=$ac_ct_STRIP
  5691. fi
  5692. else
  5693. STRIP="$ac_cv_prog_STRIP"
  5694. fi
  5695. test -z "$STRIP" && STRIP=:
  5696. if test -n "$ac_tool_prefix"; then
  5697. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5698. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5700. printf %s "checking for $ac_word... " >&6; }
  5701. if test ${ac_cv_prog_RANLIB+y}
  5702. then :
  5703. printf %s "(cached) " >&6
  5704. else $as_nop
  5705. if test -n "$RANLIB"; then
  5706. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5707. else
  5708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5709. for as_dir in $PATH
  5710. do
  5711. IFS=$as_save_IFS
  5712. case $as_dir in #(((
  5713. '') as_dir=./ ;;
  5714. */) ;;
  5715. *) as_dir=$as_dir/ ;;
  5716. esac
  5717. for ac_exec_ext in '' $ac_executable_extensions; do
  5718. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5719. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5720. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5721. break 2
  5722. fi
  5723. done
  5724. done
  5725. IFS=$as_save_IFS
  5726. fi
  5727. fi
  5728. RANLIB=$ac_cv_prog_RANLIB
  5729. if test -n "$RANLIB"; then
  5730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5731. printf "%s\n" "$RANLIB" >&6; }
  5732. else
  5733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5734. printf "%s\n" "no" >&6; }
  5735. fi
  5736. fi
  5737. if test -z "$ac_cv_prog_RANLIB"; then
  5738. ac_ct_RANLIB=$RANLIB
  5739. # Extract the first word of "ranlib", so it can be a program name with args.
  5740. set dummy ranlib; ac_word=$2
  5741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5742. printf %s "checking for $ac_word... " >&6; }
  5743. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5744. then :
  5745. printf %s "(cached) " >&6
  5746. else $as_nop
  5747. if test -n "$ac_ct_RANLIB"; then
  5748. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5749. else
  5750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5751. for as_dir in $PATH
  5752. do
  5753. IFS=$as_save_IFS
  5754. case $as_dir in #(((
  5755. '') as_dir=./ ;;
  5756. */) ;;
  5757. *) as_dir=$as_dir/ ;;
  5758. esac
  5759. for ac_exec_ext in '' $ac_executable_extensions; do
  5760. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5761. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5762. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5763. break 2
  5764. fi
  5765. done
  5766. done
  5767. IFS=$as_save_IFS
  5768. fi
  5769. fi
  5770. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5771. if test -n "$ac_ct_RANLIB"; then
  5772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5773. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5774. else
  5775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5776. printf "%s\n" "no" >&6; }
  5777. fi
  5778. if test "x$ac_ct_RANLIB" = x; then
  5779. RANLIB=":"
  5780. else
  5781. case $cross_compiling:$ac_tool_warned in
  5782. yes:)
  5783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5784. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5785. ac_tool_warned=yes ;;
  5786. esac
  5787. RANLIB=$ac_ct_RANLIB
  5788. fi
  5789. else
  5790. RANLIB="$ac_cv_prog_RANLIB"
  5791. fi
  5792. test -z "$RANLIB" && RANLIB=:
  5793. # Determine commands to create old-style static archives.
  5794. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5795. old_postinstall_cmds='chmod 644 $oldlib'
  5796. old_postuninstall_cmds=
  5797. if test -n "$RANLIB"; then
  5798. case $host_os in
  5799. bitrig* | openbsd*)
  5800. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5801. ;;
  5802. *)
  5803. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5804. ;;
  5805. esac
  5806. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5807. fi
  5808. case $host_os in
  5809. darwin*)
  5810. lock_old_archive_extraction=yes ;;
  5811. *)
  5812. lock_old_archive_extraction=no ;;
  5813. esac
  5814. for ac_prog in gawk mawk nawk awk
  5815. do
  5816. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5817. set dummy $ac_prog; ac_word=$2
  5818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5819. printf %s "checking for $ac_word... " >&6; }
  5820. if test ${ac_cv_prog_AWK+y}
  5821. then :
  5822. printf %s "(cached) " >&6
  5823. else $as_nop
  5824. if test -n "$AWK"; then
  5825. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5826. else
  5827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5828. for as_dir in $PATH
  5829. do
  5830. IFS=$as_save_IFS
  5831. case $as_dir in #(((
  5832. '') as_dir=./ ;;
  5833. */) ;;
  5834. *) as_dir=$as_dir/ ;;
  5835. esac
  5836. for ac_exec_ext in '' $ac_executable_extensions; do
  5837. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5838. ac_cv_prog_AWK="$ac_prog"
  5839. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5840. break 2
  5841. fi
  5842. done
  5843. done
  5844. IFS=$as_save_IFS
  5845. fi
  5846. fi
  5847. AWK=$ac_cv_prog_AWK
  5848. if test -n "$AWK"; then
  5849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5850. printf "%s\n" "$AWK" >&6; }
  5851. else
  5852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5853. printf "%s\n" "no" >&6; }
  5854. fi
  5855. test -n "$AWK" && break
  5856. done
  5857. # If no C compiler was specified, use CC.
  5858. LTCC=${LTCC-"$CC"}
  5859. # If no C compiler flags were specified, use CFLAGS.
  5860. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5861. # Allow CC to be a program name with arguments.
  5862. compiler=$CC
  5863. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5865. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5866. if test ${lt_cv_sys_global_symbol_pipe+y}
  5867. then :
  5868. printf %s "(cached) " >&6
  5869. else $as_nop
  5870. # These are sane defaults that work on at least a few old systems.
  5871. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5872. # Character class describing NM global symbol codes.
  5873. symcode='[BCDEGRST]'
  5874. # Regexp to match symbols that can be accessed directly from C.
  5875. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5876. # Define system-specific variables.
  5877. case $host_os in
  5878. aix*)
  5879. symcode='[BCDT]'
  5880. ;;
  5881. cygwin* | mingw* | pw32* | cegcc*)
  5882. symcode='[ABCDGISTW]'
  5883. ;;
  5884. hpux*)
  5885. if test ia64 = "$host_cpu"; then
  5886. symcode='[ABCDEGRST]'
  5887. fi
  5888. ;;
  5889. irix* | nonstopux*)
  5890. symcode='[BCDEGRST]'
  5891. ;;
  5892. osf*)
  5893. symcode='[BCDEGQRST]'
  5894. ;;
  5895. solaris*)
  5896. symcode='[BCDRT]'
  5897. ;;
  5898. sco3.2v5*)
  5899. symcode='[DT]'
  5900. ;;
  5901. sysv4.2uw2*)
  5902. symcode='[DT]'
  5903. ;;
  5904. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5905. symcode='[ABDT]'
  5906. ;;
  5907. sysv4)
  5908. symcode='[DFNSTU]'
  5909. ;;
  5910. esac
  5911. # If we're using GNU nm, then use its standard symbol codes.
  5912. case `$NM -V 2>&1` in
  5913. *GNU* | *'with BFD'*)
  5914. symcode='[ABCDGIRSTW]' ;;
  5915. esac
  5916. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5917. # Gets list of data symbols to import.
  5918. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5919. # Adjust the below global symbol transforms to fixup imported variables.
  5920. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5921. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5922. lt_c_name_lib_hook="\
  5923. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5924. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5925. else
  5926. # Disable hooks by default.
  5927. lt_cv_sys_global_symbol_to_import=
  5928. lt_cdecl_hook=
  5929. lt_c_name_hook=
  5930. lt_c_name_lib_hook=
  5931. fi
  5932. # Transform an extracted symbol line into a proper C declaration.
  5933. # Some systems (esp. on ia64) link data and code symbols differently,
  5934. # so use this general approach.
  5935. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5936. $lt_cdecl_hook\
  5937. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5938. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5939. # Transform an extracted symbol line into symbol name and symbol address
  5940. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5941. $lt_c_name_hook\
  5942. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5943. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5944. # Transform an extracted symbol line into symbol name with lib prefix and
  5945. # symbol address.
  5946. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5947. $lt_c_name_lib_hook\
  5948. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5949. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5950. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5951. # Handle CRLF in mingw tool chain
  5952. opt_cr=
  5953. case $build_os in
  5954. mingw*)
  5955. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5956. ;;
  5957. esac
  5958. # Try without a prefix underscore, then with it.
  5959. for ac_symprfx in "" "_"; do
  5960. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5961. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5962. # Write the raw and C identifiers.
  5963. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5964. # Fake it for dumpbin and say T for any non-static function,
  5965. # D for any global variable and I for any imported variable.
  5966. # Also find C++ and __fastcall symbols from MSVC++,
  5967. # which start with @ or ?.
  5968. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5969. " {last_section=section; section=\$ 3};"\
  5970. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5971. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5972. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5973. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5974. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5975. " \$ 0!~/External *\|/{next};"\
  5976. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5977. " {if(hide[section]) next};"\
  5978. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5979. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5980. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5981. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5982. " ' prfx=^$ac_symprfx"
  5983. else
  5984. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5985. fi
  5986. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5987. # Check to see that the pipe works correctly.
  5988. pipe_works=no
  5989. rm -f conftest*
  5990. cat > conftest.$ac_ext <<_LT_EOF
  5991. #ifdef __cplusplus
  5992. extern "C" {
  5993. #endif
  5994. char nm_test_var;
  5995. void nm_test_func(void);
  5996. void nm_test_func(void){}
  5997. #ifdef __cplusplus
  5998. }
  5999. #endif
  6000. int main(){nm_test_var='a';nm_test_func();return(0);}
  6001. _LT_EOF
  6002. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6003. (eval $ac_compile) 2>&5
  6004. ac_status=$?
  6005. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6006. test $ac_status = 0; }; then
  6007. # Now try to grab the symbols.
  6008. nlist=conftest.nm
  6009. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6010. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6011. ac_status=$?
  6012. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6013. test $ac_status = 0; } && test -s "$nlist"; then
  6014. # Try sorting and uniquifying the output.
  6015. if sort "$nlist" | uniq > "$nlist"T; then
  6016. mv -f "$nlist"T "$nlist"
  6017. else
  6018. rm -f "$nlist"T
  6019. fi
  6020. # Make sure that we snagged all the symbols we need.
  6021. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6022. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6023. cat <<_LT_EOF > conftest.$ac_ext
  6024. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6025. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6026. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6027. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6028. # define LT_DLSYM_CONST
  6029. #elif defined __osf__
  6030. /* This system does not cope well with relocations in const data. */
  6031. # define LT_DLSYM_CONST
  6032. #else
  6033. # define LT_DLSYM_CONST const
  6034. #endif
  6035. #ifdef __cplusplus
  6036. extern "C" {
  6037. #endif
  6038. _LT_EOF
  6039. # Now generate the symbol file.
  6040. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6041. cat <<_LT_EOF >> conftest.$ac_ext
  6042. /* The mapping between symbol names and symbols. */
  6043. LT_DLSYM_CONST struct {
  6044. const char *name;
  6045. void *address;
  6046. }
  6047. lt__PROGRAM__LTX_preloaded_symbols[] =
  6048. {
  6049. { "@PROGRAM@", (void *) 0 },
  6050. _LT_EOF
  6051. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6052. cat <<\_LT_EOF >> conftest.$ac_ext
  6053. {0, (void *) 0}
  6054. };
  6055. /* This works around a problem in FreeBSD linker */
  6056. #ifdef FREEBSD_WORKAROUND
  6057. static const void *lt_preloaded_setup() {
  6058. return lt__PROGRAM__LTX_preloaded_symbols;
  6059. }
  6060. #endif
  6061. #ifdef __cplusplus
  6062. }
  6063. #endif
  6064. _LT_EOF
  6065. # Now try linking the two files.
  6066. mv conftest.$ac_objext conftstm.$ac_objext
  6067. lt_globsym_save_LIBS=$LIBS
  6068. lt_globsym_save_CFLAGS=$CFLAGS
  6069. LIBS=conftstm.$ac_objext
  6070. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6071. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6072. (eval $ac_link) 2>&5
  6073. ac_status=$?
  6074. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6075. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6076. pipe_works=yes
  6077. fi
  6078. LIBS=$lt_globsym_save_LIBS
  6079. CFLAGS=$lt_globsym_save_CFLAGS
  6080. else
  6081. echo "cannot find nm_test_func in $nlist" >&5
  6082. fi
  6083. else
  6084. echo "cannot find nm_test_var in $nlist" >&5
  6085. fi
  6086. else
  6087. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6088. fi
  6089. else
  6090. echo "$progname: failed program was:" >&5
  6091. cat conftest.$ac_ext >&5
  6092. fi
  6093. rm -rf conftest* conftst*
  6094. # Do not use the global_symbol_pipe unless it works.
  6095. if test yes = "$pipe_works"; then
  6096. break
  6097. else
  6098. lt_cv_sys_global_symbol_pipe=
  6099. fi
  6100. done
  6101. fi
  6102. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6103. lt_cv_sys_global_symbol_to_cdecl=
  6104. fi
  6105. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6107. printf "%s\n" "failed" >&6; }
  6108. else
  6109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6110. printf "%s\n" "ok" >&6; }
  6111. fi
  6112. # Response file support.
  6113. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6114. nm_file_list_spec='@'
  6115. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6116. nm_file_list_spec='@'
  6117. fi
  6118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6119. printf %s "checking for sysroot... " >&6; }
  6120. # Check whether --with-sysroot was given.
  6121. if test ${with_sysroot+y}
  6122. then :
  6123. withval=$with_sysroot;
  6124. else $as_nop
  6125. with_sysroot=no
  6126. fi
  6127. lt_sysroot=
  6128. case $with_sysroot in #(
  6129. yes)
  6130. if test yes = "$GCC"; then
  6131. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6132. fi
  6133. ;; #(
  6134. /*)
  6135. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6136. ;; #(
  6137. no|'')
  6138. ;; #(
  6139. *)
  6140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6141. printf "%s\n" "$with_sysroot" >&6; }
  6142. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6143. ;;
  6144. esac
  6145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6146. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6148. printf %s "checking for a working dd... " >&6; }
  6149. if test ${ac_cv_path_lt_DD+y}
  6150. then :
  6151. printf %s "(cached) " >&6
  6152. else $as_nop
  6153. printf 0123456789abcdef0123456789abcdef >conftest.i
  6154. cat conftest.i conftest.i >conftest2.i
  6155. : ${lt_DD:=$DD}
  6156. if test -z "$lt_DD"; then
  6157. ac_path_lt_DD_found=false
  6158. # Loop through the user's path and test for each of PROGNAME-LIST
  6159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6160. for as_dir in $PATH
  6161. do
  6162. IFS=$as_save_IFS
  6163. case $as_dir in #(((
  6164. '') as_dir=./ ;;
  6165. */) ;;
  6166. *) as_dir=$as_dir/ ;;
  6167. esac
  6168. for ac_prog in dd
  6169. do
  6170. for ac_exec_ext in '' $ac_executable_extensions; do
  6171. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6172. as_fn_executable_p "$ac_path_lt_DD" || continue
  6173. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6174. cmp -s conftest.i conftest.out \
  6175. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6176. fi
  6177. $ac_path_lt_DD_found && break 3
  6178. done
  6179. done
  6180. done
  6181. IFS=$as_save_IFS
  6182. if test -z "$ac_cv_path_lt_DD"; then
  6183. :
  6184. fi
  6185. else
  6186. ac_cv_path_lt_DD=$lt_DD
  6187. fi
  6188. rm -f conftest.i conftest2.i conftest.out
  6189. fi
  6190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6191. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6193. printf %s "checking how to truncate binary pipes... " >&6; }
  6194. if test ${lt_cv_truncate_bin+y}
  6195. then :
  6196. printf %s "(cached) " >&6
  6197. else $as_nop
  6198. printf 0123456789abcdef0123456789abcdef >conftest.i
  6199. cat conftest.i conftest.i >conftest2.i
  6200. lt_cv_truncate_bin=
  6201. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6202. cmp -s conftest.i conftest.out \
  6203. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6204. fi
  6205. rm -f conftest.i conftest2.i conftest.out
  6206. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6207. fi
  6208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6209. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6210. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6211. func_cc_basename ()
  6212. {
  6213. for cc_temp in $*""; do
  6214. case $cc_temp in
  6215. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6216. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6217. \-*) ;;
  6218. *) break;;
  6219. esac
  6220. done
  6221. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6222. }
  6223. # Check whether --enable-libtool-lock was given.
  6224. if test ${enable_libtool_lock+y}
  6225. then :
  6226. enableval=$enable_libtool_lock;
  6227. fi
  6228. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6229. # Some flags need to be propagated to the compiler or linker for good
  6230. # libtool support.
  6231. case $host in
  6232. ia64-*-hpux*)
  6233. # Find out what ABI is being produced by ac_compile, and set mode
  6234. # options accordingly.
  6235. echo 'int i;' > conftest.$ac_ext
  6236. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6237. (eval $ac_compile) 2>&5
  6238. ac_status=$?
  6239. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6240. test $ac_status = 0; }; then
  6241. case `/usr/bin/file conftest.$ac_objext` in
  6242. *ELF-32*)
  6243. HPUX_IA64_MODE=32
  6244. ;;
  6245. *ELF-64*)
  6246. HPUX_IA64_MODE=64
  6247. ;;
  6248. esac
  6249. fi
  6250. rm -rf conftest*
  6251. ;;
  6252. *-*-irix6*)
  6253. # Find out what ABI is being produced by ac_compile, and set linker
  6254. # options accordingly.
  6255. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6256. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6257. (eval $ac_compile) 2>&5
  6258. ac_status=$?
  6259. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6260. test $ac_status = 0; }; then
  6261. if test yes = "$lt_cv_prog_gnu_ld"; then
  6262. case `/usr/bin/file conftest.$ac_objext` in
  6263. *32-bit*)
  6264. LD="${LD-ld} -melf32bsmip"
  6265. ;;
  6266. *N32*)
  6267. LD="${LD-ld} -melf32bmipn32"
  6268. ;;
  6269. *64-bit*)
  6270. LD="${LD-ld} -melf64bmip"
  6271. ;;
  6272. esac
  6273. else
  6274. case `/usr/bin/file conftest.$ac_objext` in
  6275. *32-bit*)
  6276. LD="${LD-ld} -32"
  6277. ;;
  6278. *N32*)
  6279. LD="${LD-ld} -n32"
  6280. ;;
  6281. *64-bit*)
  6282. LD="${LD-ld} -64"
  6283. ;;
  6284. esac
  6285. fi
  6286. fi
  6287. rm -rf conftest*
  6288. ;;
  6289. mips64*-*linux*)
  6290. # Find out what ABI is being produced by ac_compile, and set linker
  6291. # options accordingly.
  6292. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6293. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6294. (eval $ac_compile) 2>&5
  6295. ac_status=$?
  6296. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6297. test $ac_status = 0; }; then
  6298. emul=elf
  6299. case `/usr/bin/file conftest.$ac_objext` in
  6300. *32-bit*)
  6301. emul="${emul}32"
  6302. ;;
  6303. *64-bit*)
  6304. emul="${emul}64"
  6305. ;;
  6306. esac
  6307. case `/usr/bin/file conftest.$ac_objext` in
  6308. *MSB*)
  6309. emul="${emul}btsmip"
  6310. ;;
  6311. *LSB*)
  6312. emul="${emul}ltsmip"
  6313. ;;
  6314. esac
  6315. case `/usr/bin/file conftest.$ac_objext` in
  6316. *N32*)
  6317. emul="${emul}n32"
  6318. ;;
  6319. esac
  6320. LD="${LD-ld} -m $emul"
  6321. fi
  6322. rm -rf conftest*
  6323. ;;
  6324. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6325. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6326. # Find out what ABI is being produced by ac_compile, and set linker
  6327. # options accordingly. Note that the listed cases only cover the
  6328. # situations where additional linker options are needed (such as when
  6329. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6330. # vice versa); the common cases where no linker options are needed do
  6331. # not appear in the list.
  6332. echo 'int i;' > conftest.$ac_ext
  6333. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6334. (eval $ac_compile) 2>&5
  6335. ac_status=$?
  6336. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6337. test $ac_status = 0; }; then
  6338. case `/usr/bin/file conftest.o` in
  6339. *32-bit*)
  6340. case $host in
  6341. x86_64-*kfreebsd*-gnu)
  6342. LD="${LD-ld} -m elf_i386_fbsd"
  6343. ;;
  6344. x86_64-*linux*)
  6345. case `/usr/bin/file conftest.o` in
  6346. *x86-64*)
  6347. LD="${LD-ld} -m elf32_x86_64"
  6348. ;;
  6349. *)
  6350. LD="${LD-ld} -m elf_i386"
  6351. ;;
  6352. esac
  6353. ;;
  6354. powerpc64le-*linux*)
  6355. LD="${LD-ld} -m elf32lppclinux"
  6356. ;;
  6357. powerpc64-*linux*)
  6358. LD="${LD-ld} -m elf32ppclinux"
  6359. ;;
  6360. s390x-*linux*)
  6361. LD="${LD-ld} -m elf_s390"
  6362. ;;
  6363. sparc64-*linux*)
  6364. LD="${LD-ld} -m elf32_sparc"
  6365. ;;
  6366. esac
  6367. ;;
  6368. *64-bit*)
  6369. case $host in
  6370. x86_64-*kfreebsd*-gnu)
  6371. LD="${LD-ld} -m elf_x86_64_fbsd"
  6372. ;;
  6373. x86_64-*linux*)
  6374. LD="${LD-ld} -m elf_x86_64"
  6375. ;;
  6376. powerpcle-*linux*|powerpc64le-*linux*)
  6377. LD="${LD-ld} -m elf64lppc"
  6378. ;;
  6379. powerpc-*linux*|powerpc64-*linux*)
  6380. LD="${LD-ld} -m elf64ppc"
  6381. ;;
  6382. s390*-*linux*|s390*-*tpf*)
  6383. LD="${LD-ld} -m elf64_s390"
  6384. ;;
  6385. sparc*-*linux*)
  6386. LD="${LD-ld} -m elf64_sparc"
  6387. ;;
  6388. esac
  6389. ;;
  6390. esac
  6391. fi
  6392. rm -rf conftest*
  6393. ;;
  6394. *-*-sco3.2v5*)
  6395. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6396. SAVE_CFLAGS=$CFLAGS
  6397. CFLAGS="$CFLAGS -belf"
  6398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6399. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6400. if test ${lt_cv_cc_needs_belf+y}
  6401. then :
  6402. printf %s "(cached) " >&6
  6403. else $as_nop
  6404. ac_ext=c
  6405. ac_cpp='$CPP $CPPFLAGS'
  6406. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6407. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6408. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6410. /* end confdefs.h. */
  6411. int
  6412. main (void)
  6413. {
  6414. ;
  6415. return 0;
  6416. }
  6417. _ACEOF
  6418. if ac_fn_c_try_link "$LINENO"
  6419. then :
  6420. lt_cv_cc_needs_belf=yes
  6421. else $as_nop
  6422. lt_cv_cc_needs_belf=no
  6423. fi
  6424. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6425. conftest$ac_exeext conftest.$ac_ext
  6426. ac_ext=c
  6427. ac_cpp='$CPP $CPPFLAGS'
  6428. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6429. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6430. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6431. fi
  6432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6433. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6434. if test yes != "$lt_cv_cc_needs_belf"; then
  6435. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6436. CFLAGS=$SAVE_CFLAGS
  6437. fi
  6438. ;;
  6439. *-*solaris*)
  6440. # Find out what ABI is being produced by ac_compile, and set linker
  6441. # options accordingly.
  6442. echo 'int i;' > conftest.$ac_ext
  6443. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6444. (eval $ac_compile) 2>&5
  6445. ac_status=$?
  6446. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6447. test $ac_status = 0; }; then
  6448. case `/usr/bin/file conftest.o` in
  6449. *64-bit*)
  6450. case $lt_cv_prog_gnu_ld in
  6451. yes*)
  6452. case $host in
  6453. i?86-*-solaris*|x86_64-*-solaris*)
  6454. LD="${LD-ld} -m elf_x86_64"
  6455. ;;
  6456. sparc*-*-solaris*)
  6457. LD="${LD-ld} -m elf64_sparc"
  6458. ;;
  6459. esac
  6460. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6461. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6462. LD=${LD-ld}_sol2
  6463. fi
  6464. ;;
  6465. *)
  6466. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6467. LD="${LD-ld} -64"
  6468. fi
  6469. ;;
  6470. esac
  6471. ;;
  6472. esac
  6473. fi
  6474. rm -rf conftest*
  6475. ;;
  6476. esac
  6477. need_locks=$enable_libtool_lock
  6478. if test -n "$ac_tool_prefix"; then
  6479. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6480. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6482. printf %s "checking for $ac_word... " >&6; }
  6483. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6484. then :
  6485. printf %s "(cached) " >&6
  6486. else $as_nop
  6487. if test -n "$MANIFEST_TOOL"; then
  6488. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6489. else
  6490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6491. for as_dir in $PATH
  6492. do
  6493. IFS=$as_save_IFS
  6494. case $as_dir in #(((
  6495. '') as_dir=./ ;;
  6496. */) ;;
  6497. *) as_dir=$as_dir/ ;;
  6498. esac
  6499. for ac_exec_ext in '' $ac_executable_extensions; do
  6500. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6501. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6502. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6503. break 2
  6504. fi
  6505. done
  6506. done
  6507. IFS=$as_save_IFS
  6508. fi
  6509. fi
  6510. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6511. if test -n "$MANIFEST_TOOL"; then
  6512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6513. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6514. else
  6515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6516. printf "%s\n" "no" >&6; }
  6517. fi
  6518. fi
  6519. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6520. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6521. # Extract the first word of "mt", so it can be a program name with args.
  6522. set dummy mt; ac_word=$2
  6523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6524. printf %s "checking for $ac_word... " >&6; }
  6525. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6526. then :
  6527. printf %s "(cached) " >&6
  6528. else $as_nop
  6529. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6530. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6531. else
  6532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6533. for as_dir in $PATH
  6534. do
  6535. IFS=$as_save_IFS
  6536. case $as_dir in #(((
  6537. '') as_dir=./ ;;
  6538. */) ;;
  6539. *) as_dir=$as_dir/ ;;
  6540. esac
  6541. for ac_exec_ext in '' $ac_executable_extensions; do
  6542. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6543. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6544. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6545. break 2
  6546. fi
  6547. done
  6548. done
  6549. IFS=$as_save_IFS
  6550. fi
  6551. fi
  6552. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6553. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6555. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6556. else
  6557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6558. printf "%s\n" "no" >&6; }
  6559. fi
  6560. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6561. MANIFEST_TOOL=":"
  6562. else
  6563. case $cross_compiling:$ac_tool_warned in
  6564. yes:)
  6565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6566. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6567. ac_tool_warned=yes ;;
  6568. esac
  6569. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6570. fi
  6571. else
  6572. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6573. fi
  6574. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6576. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6577. if test ${lt_cv_path_mainfest_tool+y}
  6578. then :
  6579. printf %s "(cached) " >&6
  6580. else $as_nop
  6581. lt_cv_path_mainfest_tool=no
  6582. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6583. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6584. cat conftest.err >&5
  6585. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6586. lt_cv_path_mainfest_tool=yes
  6587. fi
  6588. rm -f conftest*
  6589. fi
  6590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6591. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6592. if test yes != "$lt_cv_path_mainfest_tool"; then
  6593. MANIFEST_TOOL=:
  6594. fi
  6595. case $host_os in
  6596. rhapsody* | darwin*)
  6597. if test -n "$ac_tool_prefix"; then
  6598. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6599. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6601. printf %s "checking for $ac_word... " >&6; }
  6602. if test ${ac_cv_prog_DSYMUTIL+y}
  6603. then :
  6604. printf %s "(cached) " >&6
  6605. else $as_nop
  6606. if test -n "$DSYMUTIL"; then
  6607. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6608. else
  6609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6610. for as_dir in $PATH
  6611. do
  6612. IFS=$as_save_IFS
  6613. case $as_dir in #(((
  6614. '') as_dir=./ ;;
  6615. */) ;;
  6616. *) as_dir=$as_dir/ ;;
  6617. esac
  6618. for ac_exec_ext in '' $ac_executable_extensions; do
  6619. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6620. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6621. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6622. break 2
  6623. fi
  6624. done
  6625. done
  6626. IFS=$as_save_IFS
  6627. fi
  6628. fi
  6629. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6630. if test -n "$DSYMUTIL"; then
  6631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6632. printf "%s\n" "$DSYMUTIL" >&6; }
  6633. else
  6634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6635. printf "%s\n" "no" >&6; }
  6636. fi
  6637. fi
  6638. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6639. ac_ct_DSYMUTIL=$DSYMUTIL
  6640. # Extract the first word of "dsymutil", so it can be a program name with args.
  6641. set dummy dsymutil; ac_word=$2
  6642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6643. printf %s "checking for $ac_word... " >&6; }
  6644. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6645. then :
  6646. printf %s "(cached) " >&6
  6647. else $as_nop
  6648. if test -n "$ac_ct_DSYMUTIL"; then
  6649. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6650. else
  6651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6652. for as_dir in $PATH
  6653. do
  6654. IFS=$as_save_IFS
  6655. case $as_dir in #(((
  6656. '') as_dir=./ ;;
  6657. */) ;;
  6658. *) as_dir=$as_dir/ ;;
  6659. esac
  6660. for ac_exec_ext in '' $ac_executable_extensions; do
  6661. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6662. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6663. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6664. break 2
  6665. fi
  6666. done
  6667. done
  6668. IFS=$as_save_IFS
  6669. fi
  6670. fi
  6671. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6672. if test -n "$ac_ct_DSYMUTIL"; then
  6673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6674. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6675. else
  6676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6677. printf "%s\n" "no" >&6; }
  6678. fi
  6679. if test "x$ac_ct_DSYMUTIL" = x; then
  6680. DSYMUTIL=":"
  6681. else
  6682. case $cross_compiling:$ac_tool_warned in
  6683. yes:)
  6684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6685. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6686. ac_tool_warned=yes ;;
  6687. esac
  6688. DSYMUTIL=$ac_ct_DSYMUTIL
  6689. fi
  6690. else
  6691. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6692. fi
  6693. if test -n "$ac_tool_prefix"; then
  6694. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6695. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6697. printf %s "checking for $ac_word... " >&6; }
  6698. if test ${ac_cv_prog_NMEDIT+y}
  6699. then :
  6700. printf %s "(cached) " >&6
  6701. else $as_nop
  6702. if test -n "$NMEDIT"; then
  6703. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6704. else
  6705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6706. for as_dir in $PATH
  6707. do
  6708. IFS=$as_save_IFS
  6709. case $as_dir in #(((
  6710. '') as_dir=./ ;;
  6711. */) ;;
  6712. *) as_dir=$as_dir/ ;;
  6713. esac
  6714. for ac_exec_ext in '' $ac_executable_extensions; do
  6715. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6716. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6717. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6718. break 2
  6719. fi
  6720. done
  6721. done
  6722. IFS=$as_save_IFS
  6723. fi
  6724. fi
  6725. NMEDIT=$ac_cv_prog_NMEDIT
  6726. if test -n "$NMEDIT"; then
  6727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6728. printf "%s\n" "$NMEDIT" >&6; }
  6729. else
  6730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6731. printf "%s\n" "no" >&6; }
  6732. fi
  6733. fi
  6734. if test -z "$ac_cv_prog_NMEDIT"; then
  6735. ac_ct_NMEDIT=$NMEDIT
  6736. # Extract the first word of "nmedit", so it can be a program name with args.
  6737. set dummy nmedit; ac_word=$2
  6738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6739. printf %s "checking for $ac_word... " >&6; }
  6740. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6741. then :
  6742. printf %s "(cached) " >&6
  6743. else $as_nop
  6744. if test -n "$ac_ct_NMEDIT"; then
  6745. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6746. else
  6747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6748. for as_dir in $PATH
  6749. do
  6750. IFS=$as_save_IFS
  6751. case $as_dir in #(((
  6752. '') as_dir=./ ;;
  6753. */) ;;
  6754. *) as_dir=$as_dir/ ;;
  6755. esac
  6756. for ac_exec_ext in '' $ac_executable_extensions; do
  6757. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6758. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6759. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6760. break 2
  6761. fi
  6762. done
  6763. done
  6764. IFS=$as_save_IFS
  6765. fi
  6766. fi
  6767. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6768. if test -n "$ac_ct_NMEDIT"; then
  6769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6770. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6771. else
  6772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6773. printf "%s\n" "no" >&6; }
  6774. fi
  6775. if test "x$ac_ct_NMEDIT" = x; then
  6776. NMEDIT=":"
  6777. else
  6778. case $cross_compiling:$ac_tool_warned in
  6779. yes:)
  6780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6781. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6782. ac_tool_warned=yes ;;
  6783. esac
  6784. NMEDIT=$ac_ct_NMEDIT
  6785. fi
  6786. else
  6787. NMEDIT="$ac_cv_prog_NMEDIT"
  6788. fi
  6789. if test -n "$ac_tool_prefix"; then
  6790. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6791. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6793. printf %s "checking for $ac_word... " >&6; }
  6794. if test ${ac_cv_prog_LIPO+y}
  6795. then :
  6796. printf %s "(cached) " >&6
  6797. else $as_nop
  6798. if test -n "$LIPO"; then
  6799. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6800. else
  6801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6802. for as_dir in $PATH
  6803. do
  6804. IFS=$as_save_IFS
  6805. case $as_dir in #(((
  6806. '') as_dir=./ ;;
  6807. */) ;;
  6808. *) as_dir=$as_dir/ ;;
  6809. esac
  6810. for ac_exec_ext in '' $ac_executable_extensions; do
  6811. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6812. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6813. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6814. break 2
  6815. fi
  6816. done
  6817. done
  6818. IFS=$as_save_IFS
  6819. fi
  6820. fi
  6821. LIPO=$ac_cv_prog_LIPO
  6822. if test -n "$LIPO"; then
  6823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6824. printf "%s\n" "$LIPO" >&6; }
  6825. else
  6826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6827. printf "%s\n" "no" >&6; }
  6828. fi
  6829. fi
  6830. if test -z "$ac_cv_prog_LIPO"; then
  6831. ac_ct_LIPO=$LIPO
  6832. # Extract the first word of "lipo", so it can be a program name with args.
  6833. set dummy lipo; ac_word=$2
  6834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6835. printf %s "checking for $ac_word... " >&6; }
  6836. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6837. then :
  6838. printf %s "(cached) " >&6
  6839. else $as_nop
  6840. if test -n "$ac_ct_LIPO"; then
  6841. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6842. else
  6843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6844. for as_dir in $PATH
  6845. do
  6846. IFS=$as_save_IFS
  6847. case $as_dir in #(((
  6848. '') as_dir=./ ;;
  6849. */) ;;
  6850. *) as_dir=$as_dir/ ;;
  6851. esac
  6852. for ac_exec_ext in '' $ac_executable_extensions; do
  6853. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6854. ac_cv_prog_ac_ct_LIPO="lipo"
  6855. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6856. break 2
  6857. fi
  6858. done
  6859. done
  6860. IFS=$as_save_IFS
  6861. fi
  6862. fi
  6863. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6864. if test -n "$ac_ct_LIPO"; then
  6865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6866. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6867. else
  6868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6869. printf "%s\n" "no" >&6; }
  6870. fi
  6871. if test "x$ac_ct_LIPO" = x; then
  6872. LIPO=":"
  6873. else
  6874. case $cross_compiling:$ac_tool_warned in
  6875. yes:)
  6876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6877. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6878. ac_tool_warned=yes ;;
  6879. esac
  6880. LIPO=$ac_ct_LIPO
  6881. fi
  6882. else
  6883. LIPO="$ac_cv_prog_LIPO"
  6884. fi
  6885. if test -n "$ac_tool_prefix"; then
  6886. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6887. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6889. printf %s "checking for $ac_word... " >&6; }
  6890. if test ${ac_cv_prog_OTOOL+y}
  6891. then :
  6892. printf %s "(cached) " >&6
  6893. else $as_nop
  6894. if test -n "$OTOOL"; then
  6895. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6896. else
  6897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6898. for as_dir in $PATH
  6899. do
  6900. IFS=$as_save_IFS
  6901. case $as_dir in #(((
  6902. '') as_dir=./ ;;
  6903. */) ;;
  6904. *) as_dir=$as_dir/ ;;
  6905. esac
  6906. for ac_exec_ext in '' $ac_executable_extensions; do
  6907. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6908. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6909. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6910. break 2
  6911. fi
  6912. done
  6913. done
  6914. IFS=$as_save_IFS
  6915. fi
  6916. fi
  6917. OTOOL=$ac_cv_prog_OTOOL
  6918. if test -n "$OTOOL"; then
  6919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6920. printf "%s\n" "$OTOOL" >&6; }
  6921. else
  6922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6923. printf "%s\n" "no" >&6; }
  6924. fi
  6925. fi
  6926. if test -z "$ac_cv_prog_OTOOL"; then
  6927. ac_ct_OTOOL=$OTOOL
  6928. # Extract the first word of "otool", so it can be a program name with args.
  6929. set dummy otool; ac_word=$2
  6930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6931. printf %s "checking for $ac_word... " >&6; }
  6932. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6933. then :
  6934. printf %s "(cached) " >&6
  6935. else $as_nop
  6936. if test -n "$ac_ct_OTOOL"; then
  6937. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6938. else
  6939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6940. for as_dir in $PATH
  6941. do
  6942. IFS=$as_save_IFS
  6943. case $as_dir in #(((
  6944. '') as_dir=./ ;;
  6945. */) ;;
  6946. *) as_dir=$as_dir/ ;;
  6947. esac
  6948. for ac_exec_ext in '' $ac_executable_extensions; do
  6949. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6950. ac_cv_prog_ac_ct_OTOOL="otool"
  6951. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6952. break 2
  6953. fi
  6954. done
  6955. done
  6956. IFS=$as_save_IFS
  6957. fi
  6958. fi
  6959. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6960. if test -n "$ac_ct_OTOOL"; then
  6961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6962. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6963. else
  6964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6965. printf "%s\n" "no" >&6; }
  6966. fi
  6967. if test "x$ac_ct_OTOOL" = x; then
  6968. OTOOL=":"
  6969. else
  6970. case $cross_compiling:$ac_tool_warned in
  6971. yes:)
  6972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6973. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6974. ac_tool_warned=yes ;;
  6975. esac
  6976. OTOOL=$ac_ct_OTOOL
  6977. fi
  6978. else
  6979. OTOOL="$ac_cv_prog_OTOOL"
  6980. fi
  6981. if test -n "$ac_tool_prefix"; then
  6982. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6983. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6985. printf %s "checking for $ac_word... " >&6; }
  6986. if test ${ac_cv_prog_OTOOL64+y}
  6987. then :
  6988. printf %s "(cached) " >&6
  6989. else $as_nop
  6990. if test -n "$OTOOL64"; then
  6991. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6992. else
  6993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6994. for as_dir in $PATH
  6995. do
  6996. IFS=$as_save_IFS
  6997. case $as_dir in #(((
  6998. '') as_dir=./ ;;
  6999. */) ;;
  7000. *) as_dir=$as_dir/ ;;
  7001. esac
  7002. for ac_exec_ext in '' $ac_executable_extensions; do
  7003. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7004. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7005. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7006. break 2
  7007. fi
  7008. done
  7009. done
  7010. IFS=$as_save_IFS
  7011. fi
  7012. fi
  7013. OTOOL64=$ac_cv_prog_OTOOL64
  7014. if test -n "$OTOOL64"; then
  7015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7016. printf "%s\n" "$OTOOL64" >&6; }
  7017. else
  7018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7019. printf "%s\n" "no" >&6; }
  7020. fi
  7021. fi
  7022. if test -z "$ac_cv_prog_OTOOL64"; then
  7023. ac_ct_OTOOL64=$OTOOL64
  7024. # Extract the first word of "otool64", so it can be a program name with args.
  7025. set dummy otool64; ac_word=$2
  7026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7027. printf %s "checking for $ac_word... " >&6; }
  7028. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7029. then :
  7030. printf %s "(cached) " >&6
  7031. else $as_nop
  7032. if test -n "$ac_ct_OTOOL64"; then
  7033. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7034. else
  7035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7036. for as_dir in $PATH
  7037. do
  7038. IFS=$as_save_IFS
  7039. case $as_dir in #(((
  7040. '') as_dir=./ ;;
  7041. */) ;;
  7042. *) as_dir=$as_dir/ ;;
  7043. esac
  7044. for ac_exec_ext in '' $ac_executable_extensions; do
  7045. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7046. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7047. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7048. break 2
  7049. fi
  7050. done
  7051. done
  7052. IFS=$as_save_IFS
  7053. fi
  7054. fi
  7055. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7056. if test -n "$ac_ct_OTOOL64"; then
  7057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7058. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7059. else
  7060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7061. printf "%s\n" "no" >&6; }
  7062. fi
  7063. if test "x$ac_ct_OTOOL64" = x; then
  7064. OTOOL64=":"
  7065. else
  7066. case $cross_compiling:$ac_tool_warned in
  7067. yes:)
  7068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7069. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7070. ac_tool_warned=yes ;;
  7071. esac
  7072. OTOOL64=$ac_ct_OTOOL64
  7073. fi
  7074. else
  7075. OTOOL64="$ac_cv_prog_OTOOL64"
  7076. fi
  7077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7078. printf %s "checking for -single_module linker flag... " >&6; }
  7079. if test ${lt_cv_apple_cc_single_mod+y}
  7080. then :
  7081. printf %s "(cached) " >&6
  7082. else $as_nop
  7083. lt_cv_apple_cc_single_mod=no
  7084. if test -z "$LT_MULTI_MODULE"; then
  7085. # By default we will add the -single_module flag. You can override
  7086. # by either setting the environment variable LT_MULTI_MODULE
  7087. # non-empty at configure time, or by adding -multi_module to the
  7088. # link flags.
  7089. rm -rf libconftest.dylib*
  7090. echo "int foo(void){return 1;}" > conftest.c
  7091. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7092. -dynamiclib -Wl,-single_module conftest.c" >&5
  7093. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7094. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7095. _lt_result=$?
  7096. # If there is a non-empty error log, and "single_module"
  7097. # appears in it, assume the flag caused a linker warning
  7098. if test -s conftest.err && $GREP single_module conftest.err; then
  7099. cat conftest.err >&5
  7100. # Otherwise, if the output was created with a 0 exit code from
  7101. # the compiler, it worked.
  7102. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7103. lt_cv_apple_cc_single_mod=yes
  7104. else
  7105. cat conftest.err >&5
  7106. fi
  7107. rm -rf libconftest.dylib*
  7108. rm -f conftest.*
  7109. fi
  7110. fi
  7111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7112. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7114. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7115. if test ${lt_cv_ld_exported_symbols_list+y}
  7116. then :
  7117. printf %s "(cached) " >&6
  7118. else $as_nop
  7119. lt_cv_ld_exported_symbols_list=no
  7120. save_LDFLAGS=$LDFLAGS
  7121. echo "_main" > conftest.sym
  7122. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7124. /* end confdefs.h. */
  7125. int
  7126. main (void)
  7127. {
  7128. ;
  7129. return 0;
  7130. }
  7131. _ACEOF
  7132. if ac_fn_c_try_link "$LINENO"
  7133. then :
  7134. lt_cv_ld_exported_symbols_list=yes
  7135. else $as_nop
  7136. lt_cv_ld_exported_symbols_list=no
  7137. fi
  7138. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7139. conftest$ac_exeext conftest.$ac_ext
  7140. LDFLAGS=$save_LDFLAGS
  7141. fi
  7142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7143. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7145. printf %s "checking for -force_load linker flag... " >&6; }
  7146. if test ${lt_cv_ld_force_load+y}
  7147. then :
  7148. printf %s "(cached) " >&6
  7149. else $as_nop
  7150. lt_cv_ld_force_load=no
  7151. cat > conftest.c << _LT_EOF
  7152. int forced_loaded() { return 2;}
  7153. _LT_EOF
  7154. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7155. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7156. echo "$AR cru libconftest.a conftest.o" >&5
  7157. $AR cru libconftest.a conftest.o 2>&5
  7158. echo "$RANLIB libconftest.a" >&5
  7159. $RANLIB libconftest.a 2>&5
  7160. cat > conftest.c << _LT_EOF
  7161. int main() { return 0;}
  7162. _LT_EOF
  7163. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7164. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7165. _lt_result=$?
  7166. if test -s conftest.err && $GREP force_load conftest.err; then
  7167. cat conftest.err >&5
  7168. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7169. lt_cv_ld_force_load=yes
  7170. else
  7171. cat conftest.err >&5
  7172. fi
  7173. rm -f conftest.err libconftest.a conftest conftest.c
  7174. rm -rf conftest.dSYM
  7175. fi
  7176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7177. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7178. case $host_os in
  7179. rhapsody* | darwin1.[012])
  7180. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7181. darwin1.*)
  7182. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7183. darwin*)
  7184. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7185. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7186. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7187. *)
  7188. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7189. esac
  7190. ;;
  7191. esac
  7192. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7193. _lt_dar_single_mod='$single_module'
  7194. fi
  7195. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7196. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7197. else
  7198. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7199. fi
  7200. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7201. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7202. else
  7203. _lt_dsymutil=
  7204. fi
  7205. ;;
  7206. esac
  7207. # func_munge_path_list VARIABLE PATH
  7208. # -----------------------------------
  7209. # VARIABLE is name of variable containing _space_ separated list of
  7210. # directories to be munged by the contents of PATH, which is string
  7211. # having a format:
  7212. # "DIR[:DIR]:"
  7213. # string "DIR[ DIR]" will be prepended to VARIABLE
  7214. # ":DIR[:DIR]"
  7215. # string "DIR[ DIR]" will be appended to VARIABLE
  7216. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7217. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7218. # "DIRA[ DIRA]" will be appended to VARIABLE
  7219. # "DIR[:DIR]"
  7220. # VARIABLE will be replaced by "DIR[ DIR]"
  7221. func_munge_path_list ()
  7222. {
  7223. case x$2 in
  7224. x)
  7225. ;;
  7226. *:)
  7227. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7228. ;;
  7229. x:*)
  7230. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7231. ;;
  7232. *::*)
  7233. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7234. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7235. ;;
  7236. *)
  7237. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7238. ;;
  7239. esac
  7240. }
  7241. ac_header= ac_cache=
  7242. for ac_item in $ac_header_c_list
  7243. do
  7244. if test $ac_cache; then
  7245. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7246. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7247. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7248. fi
  7249. ac_header= ac_cache=
  7250. elif test $ac_header; then
  7251. ac_cache=$ac_item
  7252. else
  7253. ac_header=$ac_item
  7254. fi
  7255. done
  7256. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7257. then :
  7258. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7259. fi
  7260. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7261. "
  7262. if test "x$ac_cv_header_dlfcn_h" = xyes
  7263. then :
  7264. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7265. fi
  7266. # Set options
  7267. enable_win32_dll=yes
  7268. case $host in
  7269. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7270. if test -n "$ac_tool_prefix"; then
  7271. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7272. set dummy ${ac_tool_prefix}as; ac_word=$2
  7273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7274. printf %s "checking for $ac_word... " >&6; }
  7275. if test ${ac_cv_prog_AS+y}
  7276. then :
  7277. printf %s "(cached) " >&6
  7278. else $as_nop
  7279. if test -n "$AS"; then
  7280. ac_cv_prog_AS="$AS" # Let the user override the test.
  7281. else
  7282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7283. for as_dir in $PATH
  7284. do
  7285. IFS=$as_save_IFS
  7286. case $as_dir in #(((
  7287. '') as_dir=./ ;;
  7288. */) ;;
  7289. *) as_dir=$as_dir/ ;;
  7290. esac
  7291. for ac_exec_ext in '' $ac_executable_extensions; do
  7292. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7293. ac_cv_prog_AS="${ac_tool_prefix}as"
  7294. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7295. break 2
  7296. fi
  7297. done
  7298. done
  7299. IFS=$as_save_IFS
  7300. fi
  7301. fi
  7302. AS=$ac_cv_prog_AS
  7303. if test -n "$AS"; then
  7304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7305. printf "%s\n" "$AS" >&6; }
  7306. else
  7307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7308. printf "%s\n" "no" >&6; }
  7309. fi
  7310. fi
  7311. if test -z "$ac_cv_prog_AS"; then
  7312. ac_ct_AS=$AS
  7313. # Extract the first word of "as", so it can be a program name with args.
  7314. set dummy as; ac_word=$2
  7315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7316. printf %s "checking for $ac_word... " >&6; }
  7317. if test ${ac_cv_prog_ac_ct_AS+y}
  7318. then :
  7319. printf %s "(cached) " >&6
  7320. else $as_nop
  7321. if test -n "$ac_ct_AS"; then
  7322. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7323. else
  7324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7325. for as_dir in $PATH
  7326. do
  7327. IFS=$as_save_IFS
  7328. case $as_dir in #(((
  7329. '') as_dir=./ ;;
  7330. */) ;;
  7331. *) as_dir=$as_dir/ ;;
  7332. esac
  7333. for ac_exec_ext in '' $ac_executable_extensions; do
  7334. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7335. ac_cv_prog_ac_ct_AS="as"
  7336. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7337. break 2
  7338. fi
  7339. done
  7340. done
  7341. IFS=$as_save_IFS
  7342. fi
  7343. fi
  7344. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7345. if test -n "$ac_ct_AS"; then
  7346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7347. printf "%s\n" "$ac_ct_AS" >&6; }
  7348. else
  7349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7350. printf "%s\n" "no" >&6; }
  7351. fi
  7352. if test "x$ac_ct_AS" = x; then
  7353. AS="false"
  7354. else
  7355. case $cross_compiling:$ac_tool_warned in
  7356. yes:)
  7357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7358. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7359. ac_tool_warned=yes ;;
  7360. esac
  7361. AS=$ac_ct_AS
  7362. fi
  7363. else
  7364. AS="$ac_cv_prog_AS"
  7365. fi
  7366. if test -n "$ac_tool_prefix"; then
  7367. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7368. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7370. printf %s "checking for $ac_word... " >&6; }
  7371. if test ${ac_cv_prog_DLLTOOL+y}
  7372. then :
  7373. printf %s "(cached) " >&6
  7374. else $as_nop
  7375. if test -n "$DLLTOOL"; then
  7376. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7377. else
  7378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7379. for as_dir in $PATH
  7380. do
  7381. IFS=$as_save_IFS
  7382. case $as_dir in #(((
  7383. '') as_dir=./ ;;
  7384. */) ;;
  7385. *) as_dir=$as_dir/ ;;
  7386. esac
  7387. for ac_exec_ext in '' $ac_executable_extensions; do
  7388. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7389. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7390. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7391. break 2
  7392. fi
  7393. done
  7394. done
  7395. IFS=$as_save_IFS
  7396. fi
  7397. fi
  7398. DLLTOOL=$ac_cv_prog_DLLTOOL
  7399. if test -n "$DLLTOOL"; then
  7400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7401. printf "%s\n" "$DLLTOOL" >&6; }
  7402. else
  7403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7404. printf "%s\n" "no" >&6; }
  7405. fi
  7406. fi
  7407. if test -z "$ac_cv_prog_DLLTOOL"; then
  7408. ac_ct_DLLTOOL=$DLLTOOL
  7409. # Extract the first word of "dlltool", so it can be a program name with args.
  7410. set dummy dlltool; ac_word=$2
  7411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7412. printf %s "checking for $ac_word... " >&6; }
  7413. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7414. then :
  7415. printf %s "(cached) " >&6
  7416. else $as_nop
  7417. if test -n "$ac_ct_DLLTOOL"; then
  7418. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7419. else
  7420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7421. for as_dir in $PATH
  7422. do
  7423. IFS=$as_save_IFS
  7424. case $as_dir in #(((
  7425. '') as_dir=./ ;;
  7426. */) ;;
  7427. *) as_dir=$as_dir/ ;;
  7428. esac
  7429. for ac_exec_ext in '' $ac_executable_extensions; do
  7430. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7431. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7432. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7433. break 2
  7434. fi
  7435. done
  7436. done
  7437. IFS=$as_save_IFS
  7438. fi
  7439. fi
  7440. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7441. if test -n "$ac_ct_DLLTOOL"; then
  7442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7443. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7444. else
  7445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7446. printf "%s\n" "no" >&6; }
  7447. fi
  7448. if test "x$ac_ct_DLLTOOL" = x; then
  7449. DLLTOOL="false"
  7450. else
  7451. case $cross_compiling:$ac_tool_warned in
  7452. yes:)
  7453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7454. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7455. ac_tool_warned=yes ;;
  7456. esac
  7457. DLLTOOL=$ac_ct_DLLTOOL
  7458. fi
  7459. else
  7460. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7461. fi
  7462. if test -n "$ac_tool_prefix"; then
  7463. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7464. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7466. printf %s "checking for $ac_word... " >&6; }
  7467. if test ${ac_cv_prog_OBJDUMP+y}
  7468. then :
  7469. printf %s "(cached) " >&6
  7470. else $as_nop
  7471. if test -n "$OBJDUMP"; then
  7472. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7473. else
  7474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7475. for as_dir in $PATH
  7476. do
  7477. IFS=$as_save_IFS
  7478. case $as_dir in #(((
  7479. '') as_dir=./ ;;
  7480. */) ;;
  7481. *) as_dir=$as_dir/ ;;
  7482. esac
  7483. for ac_exec_ext in '' $ac_executable_extensions; do
  7484. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7485. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7486. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7487. break 2
  7488. fi
  7489. done
  7490. done
  7491. IFS=$as_save_IFS
  7492. fi
  7493. fi
  7494. OBJDUMP=$ac_cv_prog_OBJDUMP
  7495. if test -n "$OBJDUMP"; then
  7496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7497. printf "%s\n" "$OBJDUMP" >&6; }
  7498. else
  7499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7500. printf "%s\n" "no" >&6; }
  7501. fi
  7502. fi
  7503. if test -z "$ac_cv_prog_OBJDUMP"; then
  7504. ac_ct_OBJDUMP=$OBJDUMP
  7505. # Extract the first word of "objdump", so it can be a program name with args.
  7506. set dummy objdump; ac_word=$2
  7507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7508. printf %s "checking for $ac_word... " >&6; }
  7509. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7510. then :
  7511. printf %s "(cached) " >&6
  7512. else $as_nop
  7513. if test -n "$ac_ct_OBJDUMP"; then
  7514. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7515. else
  7516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7517. for as_dir in $PATH
  7518. do
  7519. IFS=$as_save_IFS
  7520. case $as_dir in #(((
  7521. '') as_dir=./ ;;
  7522. */) ;;
  7523. *) as_dir=$as_dir/ ;;
  7524. esac
  7525. for ac_exec_ext in '' $ac_executable_extensions; do
  7526. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7527. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7528. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7529. break 2
  7530. fi
  7531. done
  7532. done
  7533. IFS=$as_save_IFS
  7534. fi
  7535. fi
  7536. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7537. if test -n "$ac_ct_OBJDUMP"; then
  7538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7539. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7540. else
  7541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7542. printf "%s\n" "no" >&6; }
  7543. fi
  7544. if test "x$ac_ct_OBJDUMP" = x; then
  7545. OBJDUMP="false"
  7546. else
  7547. case $cross_compiling:$ac_tool_warned in
  7548. yes:)
  7549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7550. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7551. ac_tool_warned=yes ;;
  7552. esac
  7553. OBJDUMP=$ac_ct_OBJDUMP
  7554. fi
  7555. else
  7556. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7557. fi
  7558. ;;
  7559. esac
  7560. test -z "$AS" && AS=as
  7561. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7562. test -z "$OBJDUMP" && OBJDUMP=objdump
  7563. enable_dlopen=no
  7564. # Check whether --enable-shared was given.
  7565. if test ${enable_shared+y}
  7566. then :
  7567. enableval=$enable_shared; p=${PACKAGE-default}
  7568. case $enableval in
  7569. yes) enable_shared=yes ;;
  7570. no) enable_shared=no ;;
  7571. *)
  7572. enable_shared=no
  7573. # Look at the argument we got. We use all the common list separators.
  7574. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7575. for pkg in $enableval; do
  7576. IFS=$lt_save_ifs
  7577. if test "X$pkg" = "X$p"; then
  7578. enable_shared=yes
  7579. fi
  7580. done
  7581. IFS=$lt_save_ifs
  7582. ;;
  7583. esac
  7584. else $as_nop
  7585. enable_shared=yes
  7586. fi
  7587. # Check whether --enable-static was given.
  7588. if test ${enable_static+y}
  7589. then :
  7590. enableval=$enable_static; p=${PACKAGE-default}
  7591. case $enableval in
  7592. yes) enable_static=yes ;;
  7593. no) enable_static=no ;;
  7594. *)
  7595. enable_static=no
  7596. # Look at the argument we got. We use all the common list separators.
  7597. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7598. for pkg in $enableval; do
  7599. IFS=$lt_save_ifs
  7600. if test "X$pkg" = "X$p"; then
  7601. enable_static=yes
  7602. fi
  7603. done
  7604. IFS=$lt_save_ifs
  7605. ;;
  7606. esac
  7607. else $as_nop
  7608. enable_static=yes
  7609. fi
  7610. # Check whether --with-pic was given.
  7611. if test ${with_pic+y}
  7612. then :
  7613. withval=$with_pic; lt_p=${PACKAGE-default}
  7614. case $withval in
  7615. yes|no) pic_mode=$withval ;;
  7616. *)
  7617. pic_mode=default
  7618. # Look at the argument we got. We use all the common list separators.
  7619. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7620. for lt_pkg in $withval; do
  7621. IFS=$lt_save_ifs
  7622. if test "X$lt_pkg" = "X$lt_p"; then
  7623. pic_mode=yes
  7624. fi
  7625. done
  7626. IFS=$lt_save_ifs
  7627. ;;
  7628. esac
  7629. else $as_nop
  7630. pic_mode=default
  7631. fi
  7632. # Check whether --enable-fast-install was given.
  7633. if test ${enable_fast_install+y}
  7634. then :
  7635. enableval=$enable_fast_install; p=${PACKAGE-default}
  7636. case $enableval in
  7637. yes) enable_fast_install=yes ;;
  7638. no) enable_fast_install=no ;;
  7639. *)
  7640. enable_fast_install=no
  7641. # Look at the argument we got. We use all the common list separators.
  7642. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7643. for pkg in $enableval; do
  7644. IFS=$lt_save_ifs
  7645. if test "X$pkg" = "X$p"; then
  7646. enable_fast_install=yes
  7647. fi
  7648. done
  7649. IFS=$lt_save_ifs
  7650. ;;
  7651. esac
  7652. else $as_nop
  7653. enable_fast_install=yes
  7654. fi
  7655. shared_archive_member_spec=
  7656. case $host,$enable_shared in
  7657. power*-*-aix[5-9]*,yes)
  7658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7659. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7660. # Check whether --with-aix-soname was given.
  7661. if test ${with_aix_soname+y}
  7662. then :
  7663. withval=$with_aix_soname; case $withval in
  7664. aix|svr4|both)
  7665. ;;
  7666. *)
  7667. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7668. ;;
  7669. esac
  7670. lt_cv_with_aix_soname=$with_aix_soname
  7671. else $as_nop
  7672. if test ${lt_cv_with_aix_soname+y}
  7673. then :
  7674. printf %s "(cached) " >&6
  7675. else $as_nop
  7676. lt_cv_with_aix_soname=aix
  7677. fi
  7678. with_aix_soname=$lt_cv_with_aix_soname
  7679. fi
  7680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7681. printf "%s\n" "$with_aix_soname" >&6; }
  7682. if test aix != "$with_aix_soname"; then
  7683. # For the AIX way of multilib, we name the shared archive member
  7684. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7685. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7686. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7687. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7688. if test 64 = "${OBJECT_MODE-32}"; then
  7689. shared_archive_member_spec=shr_64
  7690. else
  7691. shared_archive_member_spec=shr
  7692. fi
  7693. fi
  7694. ;;
  7695. *)
  7696. with_aix_soname=aix
  7697. ;;
  7698. esac
  7699. # This can be used to rebuild libtool when needed
  7700. LIBTOOL_DEPS=$ltmain
  7701. # Always use our own libtool.
  7702. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7703. test -z "$LN_S" && LN_S="ln -s"
  7704. if test -n "${ZSH_VERSION+set}"; then
  7705. setopt NO_GLOB_SUBST
  7706. fi
  7707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7708. printf %s "checking for objdir... " >&6; }
  7709. if test ${lt_cv_objdir+y}
  7710. then :
  7711. printf %s "(cached) " >&6
  7712. else $as_nop
  7713. rm -f .libs 2>/dev/null
  7714. mkdir .libs 2>/dev/null
  7715. if test -d .libs; then
  7716. lt_cv_objdir=.libs
  7717. else
  7718. # MS-DOS does not allow filenames that begin with a dot.
  7719. lt_cv_objdir=_libs
  7720. fi
  7721. rmdir .libs 2>/dev/null
  7722. fi
  7723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7724. printf "%s\n" "$lt_cv_objdir" >&6; }
  7725. objdir=$lt_cv_objdir
  7726. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7727. case $host_os in
  7728. aix3*)
  7729. # AIX sometimes has problems with the GCC collect2 program. For some
  7730. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7731. # vanish in a puff of smoke.
  7732. if test set != "${COLLECT_NAMES+set}"; then
  7733. COLLECT_NAMES=
  7734. export COLLECT_NAMES
  7735. fi
  7736. ;;
  7737. esac
  7738. # Global variables:
  7739. ofile=libtool
  7740. can_build_shared=yes
  7741. # All known linkers require a '.a' archive for static linking (except MSVC,
  7742. # which needs '.lib').
  7743. libext=a
  7744. with_gnu_ld=$lt_cv_prog_gnu_ld
  7745. old_CC=$CC
  7746. old_CFLAGS=$CFLAGS
  7747. # Set sane defaults for various variables
  7748. test -z "$CC" && CC=cc
  7749. test -z "$LTCC" && LTCC=$CC
  7750. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7751. test -z "$LD" && LD=ld
  7752. test -z "$ac_objext" && ac_objext=o
  7753. func_cc_basename $compiler
  7754. cc_basename=$func_cc_basename_result
  7755. # Only perform the check for file, if the check method requires it
  7756. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7757. case $deplibs_check_method in
  7758. file_magic*)
  7759. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7761. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7762. if test ${lt_cv_path_MAGIC_CMD+y}
  7763. then :
  7764. printf %s "(cached) " >&6
  7765. else $as_nop
  7766. case $MAGIC_CMD in
  7767. [\\/*] | ?:[\\/]*)
  7768. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7769. ;;
  7770. *)
  7771. lt_save_MAGIC_CMD=$MAGIC_CMD
  7772. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7773. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7774. for ac_dir in $ac_dummy; do
  7775. IFS=$lt_save_ifs
  7776. test -z "$ac_dir" && ac_dir=.
  7777. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7778. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7779. if test -n "$file_magic_test_file"; then
  7780. case $deplibs_check_method in
  7781. "file_magic "*)
  7782. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7783. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7784. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7785. $EGREP "$file_magic_regex" > /dev/null; then
  7786. :
  7787. else
  7788. cat <<_LT_EOF 1>&2
  7789. *** Warning: the command libtool uses to detect shared libraries,
  7790. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7791. *** The result is that libtool may fail to recognize shared libraries
  7792. *** as such. This will affect the creation of libtool libraries that
  7793. *** depend on shared libraries, but programs linked with such libtool
  7794. *** libraries will work regardless of this problem. Nevertheless, you
  7795. *** may want to report the problem to your system manager and/or to
  7796. *** bug-libtool@gnu.org
  7797. _LT_EOF
  7798. fi ;;
  7799. esac
  7800. fi
  7801. break
  7802. fi
  7803. done
  7804. IFS=$lt_save_ifs
  7805. MAGIC_CMD=$lt_save_MAGIC_CMD
  7806. ;;
  7807. esac
  7808. fi
  7809. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7810. if test -n "$MAGIC_CMD"; then
  7811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7812. printf "%s\n" "$MAGIC_CMD" >&6; }
  7813. else
  7814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7815. printf "%s\n" "no" >&6; }
  7816. fi
  7817. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7818. if test -n "$ac_tool_prefix"; then
  7819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7820. printf %s "checking for file... " >&6; }
  7821. if test ${lt_cv_path_MAGIC_CMD+y}
  7822. then :
  7823. printf %s "(cached) " >&6
  7824. else $as_nop
  7825. case $MAGIC_CMD in
  7826. [\\/*] | ?:[\\/]*)
  7827. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7828. ;;
  7829. *)
  7830. lt_save_MAGIC_CMD=$MAGIC_CMD
  7831. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7832. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7833. for ac_dir in $ac_dummy; do
  7834. IFS=$lt_save_ifs
  7835. test -z "$ac_dir" && ac_dir=.
  7836. if test -f "$ac_dir/file"; then
  7837. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7838. if test -n "$file_magic_test_file"; then
  7839. case $deplibs_check_method in
  7840. "file_magic "*)
  7841. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7842. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7843. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7844. $EGREP "$file_magic_regex" > /dev/null; then
  7845. :
  7846. else
  7847. cat <<_LT_EOF 1>&2
  7848. *** Warning: the command libtool uses to detect shared libraries,
  7849. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7850. *** The result is that libtool may fail to recognize shared libraries
  7851. *** as such. This will affect the creation of libtool libraries that
  7852. *** depend on shared libraries, but programs linked with such libtool
  7853. *** libraries will work regardless of this problem. Nevertheless, you
  7854. *** may want to report the problem to your system manager and/or to
  7855. *** bug-libtool@gnu.org
  7856. _LT_EOF
  7857. fi ;;
  7858. esac
  7859. fi
  7860. break
  7861. fi
  7862. done
  7863. IFS=$lt_save_ifs
  7864. MAGIC_CMD=$lt_save_MAGIC_CMD
  7865. ;;
  7866. esac
  7867. fi
  7868. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7869. if test -n "$MAGIC_CMD"; then
  7870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7871. printf "%s\n" "$MAGIC_CMD" >&6; }
  7872. else
  7873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7874. printf "%s\n" "no" >&6; }
  7875. fi
  7876. else
  7877. MAGIC_CMD=:
  7878. fi
  7879. fi
  7880. fi
  7881. ;;
  7882. esac
  7883. # Use C for the default configuration in the libtool script
  7884. lt_save_CC=$CC
  7885. ac_ext=c
  7886. ac_cpp='$CPP $CPPFLAGS'
  7887. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7888. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7889. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7890. # Source file extension for C test sources.
  7891. ac_ext=c
  7892. # Object file extension for compiled C test sources.
  7893. objext=o
  7894. objext=$objext
  7895. # Code to be used in simple compile tests
  7896. lt_simple_compile_test_code="int some_variable = 0;"
  7897. # Code to be used in simple link tests
  7898. lt_simple_link_test_code='int main(){return(0);}'
  7899. # If no C compiler was specified, use CC.
  7900. LTCC=${LTCC-"$CC"}
  7901. # If no C compiler flags were specified, use CFLAGS.
  7902. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7903. # Allow CC to be a program name with arguments.
  7904. compiler=$CC
  7905. # Save the default compiler, since it gets overwritten when the other
  7906. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7907. compiler_DEFAULT=$CC
  7908. # save warnings/boilerplate of simple test code
  7909. ac_outfile=conftest.$ac_objext
  7910. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7911. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7912. _lt_compiler_boilerplate=`cat conftest.err`
  7913. $RM conftest*
  7914. ac_outfile=conftest.$ac_objext
  7915. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7916. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7917. _lt_linker_boilerplate=`cat conftest.err`
  7918. $RM -r conftest*
  7919. ## CAVEAT EMPTOR:
  7920. ## There is no encapsulation within the following macros, do not change
  7921. ## the running order or otherwise move them around unless you know exactly
  7922. ## what you are doing...
  7923. if test -n "$compiler"; then
  7924. lt_prog_compiler_no_builtin_flag=
  7925. if test yes = "$GCC"; then
  7926. case $cc_basename in
  7927. nvcc*)
  7928. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7929. *)
  7930. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7931. esac
  7932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7933. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7934. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7935. then :
  7936. printf %s "(cached) " >&6
  7937. else $as_nop
  7938. lt_cv_prog_compiler_rtti_exceptions=no
  7939. ac_outfile=conftest.$ac_objext
  7940. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7941. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7942. # Insert the option either (1) after the last *FLAGS variable, or
  7943. # (2) before a word containing "conftest.", or (3) at the end.
  7944. # Note that $ac_compile itself does not contain backslashes and begins
  7945. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7946. # The option is referenced via a variable to avoid confusing sed.
  7947. lt_compile=`echo "$ac_compile" | $SED \
  7948. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7949. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7950. -e 's:$: $lt_compiler_flag:'`
  7951. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7952. (eval "$lt_compile" 2>conftest.err)
  7953. ac_status=$?
  7954. cat conftest.err >&5
  7955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7956. if (exit $ac_status) && test -s "$ac_outfile"; then
  7957. # The compiler can only warn and ignore the option if not recognized
  7958. # So say no if there are warnings other than the usual output.
  7959. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7960. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7961. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7962. lt_cv_prog_compiler_rtti_exceptions=yes
  7963. fi
  7964. fi
  7965. $RM conftest*
  7966. fi
  7967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7968. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7969. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7970. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7971. else
  7972. :
  7973. fi
  7974. fi
  7975. lt_prog_compiler_wl=
  7976. lt_prog_compiler_pic=
  7977. lt_prog_compiler_static=
  7978. if test yes = "$GCC"; then
  7979. lt_prog_compiler_wl='-Wl,'
  7980. lt_prog_compiler_static='-static'
  7981. case $host_os in
  7982. aix*)
  7983. # All AIX code is PIC.
  7984. if test ia64 = "$host_cpu"; then
  7985. # AIX 5 now supports IA64 processor
  7986. lt_prog_compiler_static='-Bstatic'
  7987. fi
  7988. lt_prog_compiler_pic='-fPIC'
  7989. ;;
  7990. amigaos*)
  7991. case $host_cpu in
  7992. powerpc)
  7993. # see comment about AmigaOS4 .so support
  7994. lt_prog_compiler_pic='-fPIC'
  7995. ;;
  7996. m68k)
  7997. # FIXME: we need at least 68020 code to build shared libraries, but
  7998. # adding the '-m68020' flag to GCC prevents building anything better,
  7999. # like '-m68040'.
  8000. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8001. ;;
  8002. esac
  8003. ;;
  8004. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8005. # PIC is the default for these OSes.
  8006. ;;
  8007. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8008. # This hack is so that the source file can tell whether it is being
  8009. # built for inclusion in a dll (and should export symbols for example).
  8010. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8011. # (--disable-auto-import) libraries
  8012. lt_prog_compiler_pic='-DDLL_EXPORT'
  8013. case $host_os in
  8014. os2*)
  8015. lt_prog_compiler_static='$wl-static'
  8016. ;;
  8017. esac
  8018. ;;
  8019. darwin* | rhapsody*)
  8020. # PIC is the default on this platform
  8021. # Common symbols not allowed in MH_DYLIB files
  8022. lt_prog_compiler_pic='-fno-common'
  8023. ;;
  8024. haiku*)
  8025. # PIC is the default for Haiku.
  8026. # The "-static" flag exists, but is broken.
  8027. lt_prog_compiler_static=
  8028. ;;
  8029. hpux*)
  8030. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8031. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8032. # sets the default TLS model and affects inlining.
  8033. case $host_cpu in
  8034. hppa*64*)
  8035. # +Z the default
  8036. ;;
  8037. *)
  8038. lt_prog_compiler_pic='-fPIC'
  8039. ;;
  8040. esac
  8041. ;;
  8042. interix[3-9]*)
  8043. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8044. # Instead, we relocate shared libraries at runtime.
  8045. ;;
  8046. msdosdjgpp*)
  8047. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8048. # on systems that don't support them.
  8049. lt_prog_compiler_can_build_shared=no
  8050. enable_shared=no
  8051. ;;
  8052. *nto* | *qnx*)
  8053. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8054. # it will coredump.
  8055. lt_prog_compiler_pic='-fPIC -shared'
  8056. ;;
  8057. sysv4*MP*)
  8058. if test -d /usr/nec; then
  8059. lt_prog_compiler_pic=-Kconform_pic
  8060. fi
  8061. ;;
  8062. *)
  8063. lt_prog_compiler_pic='-fPIC'
  8064. ;;
  8065. esac
  8066. case $cc_basename in
  8067. nvcc*) # Cuda Compiler Driver 2.2
  8068. lt_prog_compiler_wl='-Xlinker '
  8069. if test -n "$lt_prog_compiler_pic"; then
  8070. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8071. fi
  8072. ;;
  8073. esac
  8074. else
  8075. # PORTME Check for flag to pass linker flags through the system compiler.
  8076. case $host_os in
  8077. aix*)
  8078. lt_prog_compiler_wl='-Wl,'
  8079. if test ia64 = "$host_cpu"; then
  8080. # AIX 5 now supports IA64 processor
  8081. lt_prog_compiler_static='-Bstatic'
  8082. else
  8083. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8084. fi
  8085. ;;
  8086. darwin* | rhapsody*)
  8087. # PIC is the default on this platform
  8088. # Common symbols not allowed in MH_DYLIB files
  8089. lt_prog_compiler_pic='-fno-common'
  8090. case $cc_basename in
  8091. nagfor*)
  8092. # NAG Fortran compiler
  8093. lt_prog_compiler_wl='-Wl,-Wl,,'
  8094. lt_prog_compiler_pic='-PIC'
  8095. lt_prog_compiler_static='-Bstatic'
  8096. ;;
  8097. esac
  8098. ;;
  8099. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8100. # This hack is so that the source file can tell whether it is being
  8101. # built for inclusion in a dll (and should export symbols for example).
  8102. lt_prog_compiler_pic='-DDLL_EXPORT'
  8103. case $host_os in
  8104. os2*)
  8105. lt_prog_compiler_static='$wl-static'
  8106. ;;
  8107. esac
  8108. ;;
  8109. hpux9* | hpux10* | hpux11*)
  8110. lt_prog_compiler_wl='-Wl,'
  8111. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8112. # not for PA HP-UX.
  8113. case $host_cpu in
  8114. hppa*64*|ia64*)
  8115. # +Z the default
  8116. ;;
  8117. *)
  8118. lt_prog_compiler_pic='+Z'
  8119. ;;
  8120. esac
  8121. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8122. lt_prog_compiler_static='$wl-a ${wl}archive'
  8123. ;;
  8124. irix5* | irix6* | nonstopux*)
  8125. lt_prog_compiler_wl='-Wl,'
  8126. # PIC (with -KPIC) is the default.
  8127. lt_prog_compiler_static='-non_shared'
  8128. ;;
  8129. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8130. case $cc_basename in
  8131. # old Intel for x86_64, which still supported -KPIC.
  8132. ecc*)
  8133. lt_prog_compiler_wl='-Wl,'
  8134. lt_prog_compiler_pic='-KPIC'
  8135. lt_prog_compiler_static='-static'
  8136. ;;
  8137. # icc used to be incompatible with GCC.
  8138. # ICC 10 doesn't accept -KPIC any more.
  8139. icc* | ifort*)
  8140. lt_prog_compiler_wl='-Wl,'
  8141. lt_prog_compiler_pic='-fPIC'
  8142. lt_prog_compiler_static='-static'
  8143. ;;
  8144. # Lahey Fortran 8.1.
  8145. lf95*)
  8146. lt_prog_compiler_wl='-Wl,'
  8147. lt_prog_compiler_pic='--shared'
  8148. lt_prog_compiler_static='--static'
  8149. ;;
  8150. nagfor*)
  8151. # NAG Fortran compiler
  8152. lt_prog_compiler_wl='-Wl,-Wl,,'
  8153. lt_prog_compiler_pic='-PIC'
  8154. lt_prog_compiler_static='-Bstatic'
  8155. ;;
  8156. tcc*)
  8157. # Fabrice Bellard et al's Tiny C Compiler
  8158. lt_prog_compiler_wl='-Wl,'
  8159. lt_prog_compiler_pic='-fPIC'
  8160. lt_prog_compiler_static='-static'
  8161. ;;
  8162. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8163. # Portland Group compilers (*not* the Pentium gcc compiler,
  8164. # which looks to be a dead project)
  8165. lt_prog_compiler_wl='-Wl,'
  8166. lt_prog_compiler_pic='-fpic'
  8167. lt_prog_compiler_static='-Bstatic'
  8168. ;;
  8169. ccc*)
  8170. lt_prog_compiler_wl='-Wl,'
  8171. # All Alpha code is PIC.
  8172. lt_prog_compiler_static='-non_shared'
  8173. ;;
  8174. xl* | bgxl* | bgf* | mpixl*)
  8175. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8176. lt_prog_compiler_wl='-Wl,'
  8177. lt_prog_compiler_pic='-qpic'
  8178. lt_prog_compiler_static='-qstaticlink'
  8179. ;;
  8180. *)
  8181. case `$CC -V 2>&1 | sed 5q` in
  8182. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8183. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8184. lt_prog_compiler_pic='-KPIC'
  8185. lt_prog_compiler_static='-Bstatic'
  8186. lt_prog_compiler_wl=''
  8187. ;;
  8188. *Sun\ F* | *Sun*Fortran*)
  8189. lt_prog_compiler_pic='-KPIC'
  8190. lt_prog_compiler_static='-Bstatic'
  8191. lt_prog_compiler_wl='-Qoption ld '
  8192. ;;
  8193. *Sun\ C*)
  8194. # Sun C 5.9
  8195. lt_prog_compiler_pic='-KPIC'
  8196. lt_prog_compiler_static='-Bstatic'
  8197. lt_prog_compiler_wl='-Wl,'
  8198. ;;
  8199. *Intel*\ [CF]*Compiler*)
  8200. lt_prog_compiler_wl='-Wl,'
  8201. lt_prog_compiler_pic='-fPIC'
  8202. lt_prog_compiler_static='-static'
  8203. ;;
  8204. *Portland\ Group*)
  8205. lt_prog_compiler_wl='-Wl,'
  8206. lt_prog_compiler_pic='-fpic'
  8207. lt_prog_compiler_static='-Bstatic'
  8208. ;;
  8209. esac
  8210. ;;
  8211. esac
  8212. ;;
  8213. newsos6)
  8214. lt_prog_compiler_pic='-KPIC'
  8215. lt_prog_compiler_static='-Bstatic'
  8216. ;;
  8217. *nto* | *qnx*)
  8218. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8219. # it will coredump.
  8220. lt_prog_compiler_pic='-fPIC -shared'
  8221. ;;
  8222. osf3* | osf4* | osf5*)
  8223. lt_prog_compiler_wl='-Wl,'
  8224. # All OSF/1 code is PIC.
  8225. lt_prog_compiler_static='-non_shared'
  8226. ;;
  8227. rdos*)
  8228. lt_prog_compiler_static='-non_shared'
  8229. ;;
  8230. solaris*)
  8231. lt_prog_compiler_pic='-KPIC'
  8232. lt_prog_compiler_static='-Bstatic'
  8233. case $cc_basename in
  8234. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8235. lt_prog_compiler_wl='-Qoption ld ';;
  8236. *)
  8237. lt_prog_compiler_wl='-Wl,';;
  8238. esac
  8239. ;;
  8240. sunos4*)
  8241. lt_prog_compiler_wl='-Qoption ld '
  8242. lt_prog_compiler_pic='-PIC'
  8243. lt_prog_compiler_static='-Bstatic'
  8244. ;;
  8245. sysv4 | sysv4.2uw2* | sysv4.3*)
  8246. lt_prog_compiler_wl='-Wl,'
  8247. lt_prog_compiler_pic='-KPIC'
  8248. lt_prog_compiler_static='-Bstatic'
  8249. ;;
  8250. sysv4*MP*)
  8251. if test -d /usr/nec; then
  8252. lt_prog_compiler_pic='-Kconform_pic'
  8253. lt_prog_compiler_static='-Bstatic'
  8254. fi
  8255. ;;
  8256. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8257. lt_prog_compiler_wl='-Wl,'
  8258. lt_prog_compiler_pic='-KPIC'
  8259. lt_prog_compiler_static='-Bstatic'
  8260. ;;
  8261. unicos*)
  8262. lt_prog_compiler_wl='-Wl,'
  8263. lt_prog_compiler_can_build_shared=no
  8264. ;;
  8265. uts4*)
  8266. lt_prog_compiler_pic='-pic'
  8267. lt_prog_compiler_static='-Bstatic'
  8268. ;;
  8269. *)
  8270. lt_prog_compiler_can_build_shared=no
  8271. ;;
  8272. esac
  8273. fi
  8274. case $host_os in
  8275. # For platforms that do not support PIC, -DPIC is meaningless:
  8276. *djgpp*)
  8277. lt_prog_compiler_pic=
  8278. ;;
  8279. *)
  8280. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8281. ;;
  8282. esac
  8283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8284. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8285. if test ${lt_cv_prog_compiler_pic+y}
  8286. then :
  8287. printf %s "(cached) " >&6
  8288. else $as_nop
  8289. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8290. fi
  8291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8292. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8293. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8294. #
  8295. # Check to make sure the PIC flag actually works.
  8296. #
  8297. if test -n "$lt_prog_compiler_pic"; then
  8298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8299. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8300. if test ${lt_cv_prog_compiler_pic_works+y}
  8301. then :
  8302. printf %s "(cached) " >&6
  8303. else $as_nop
  8304. lt_cv_prog_compiler_pic_works=no
  8305. ac_outfile=conftest.$ac_objext
  8306. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8307. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8308. # Insert the option either (1) after the last *FLAGS variable, or
  8309. # (2) before a word containing "conftest.", or (3) at the end.
  8310. # Note that $ac_compile itself does not contain backslashes and begins
  8311. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8312. # The option is referenced via a variable to avoid confusing sed.
  8313. lt_compile=`echo "$ac_compile" | $SED \
  8314. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8315. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8316. -e 's:$: $lt_compiler_flag:'`
  8317. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8318. (eval "$lt_compile" 2>conftest.err)
  8319. ac_status=$?
  8320. cat conftest.err >&5
  8321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8322. if (exit $ac_status) && test -s "$ac_outfile"; then
  8323. # The compiler can only warn and ignore the option if not recognized
  8324. # So say no if there are warnings other than the usual output.
  8325. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8326. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8327. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8328. lt_cv_prog_compiler_pic_works=yes
  8329. fi
  8330. fi
  8331. $RM conftest*
  8332. fi
  8333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8334. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8335. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8336. case $lt_prog_compiler_pic in
  8337. "" | " "*) ;;
  8338. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8339. esac
  8340. else
  8341. lt_prog_compiler_pic=
  8342. lt_prog_compiler_can_build_shared=no
  8343. fi
  8344. fi
  8345. #
  8346. # Check to make sure the static flag actually works.
  8347. #
  8348. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8350. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8351. if test ${lt_cv_prog_compiler_static_works+y}
  8352. then :
  8353. printf %s "(cached) " >&6
  8354. else $as_nop
  8355. lt_cv_prog_compiler_static_works=no
  8356. save_LDFLAGS=$LDFLAGS
  8357. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8358. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8359. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8360. # The linker can only warn and ignore the option if not recognized
  8361. # So say no if there are warnings
  8362. if test -s conftest.err; then
  8363. # Append any errors to the config.log.
  8364. cat conftest.err 1>&5
  8365. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8366. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8367. if diff conftest.exp conftest.er2 >/dev/null; then
  8368. lt_cv_prog_compiler_static_works=yes
  8369. fi
  8370. else
  8371. lt_cv_prog_compiler_static_works=yes
  8372. fi
  8373. fi
  8374. $RM -r conftest*
  8375. LDFLAGS=$save_LDFLAGS
  8376. fi
  8377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8378. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8379. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8380. :
  8381. else
  8382. lt_prog_compiler_static=
  8383. fi
  8384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8385. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8386. if test ${lt_cv_prog_compiler_c_o+y}
  8387. then :
  8388. printf %s "(cached) " >&6
  8389. else $as_nop
  8390. lt_cv_prog_compiler_c_o=no
  8391. $RM -r conftest 2>/dev/null
  8392. mkdir conftest
  8393. cd conftest
  8394. mkdir out
  8395. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8396. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8397. # Insert the option either (1) after the last *FLAGS variable, or
  8398. # (2) before a word containing "conftest.", or (3) at the end.
  8399. # Note that $ac_compile itself does not contain backslashes and begins
  8400. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8401. lt_compile=`echo "$ac_compile" | $SED \
  8402. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8403. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8404. -e 's:$: $lt_compiler_flag:'`
  8405. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8406. (eval "$lt_compile" 2>out/conftest.err)
  8407. ac_status=$?
  8408. cat out/conftest.err >&5
  8409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8410. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8411. then
  8412. # The compiler can only warn and ignore the option if not recognized
  8413. # So say no if there are warnings
  8414. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8415. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8416. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8417. lt_cv_prog_compiler_c_o=yes
  8418. fi
  8419. fi
  8420. chmod u+w . 2>&5
  8421. $RM conftest*
  8422. # SGI C++ compiler will create directory out/ii_files/ for
  8423. # template instantiation
  8424. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8425. $RM out/* && rmdir out
  8426. cd ..
  8427. $RM -r conftest
  8428. $RM conftest*
  8429. fi
  8430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8431. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8433. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8434. if test ${lt_cv_prog_compiler_c_o+y}
  8435. then :
  8436. printf %s "(cached) " >&6
  8437. else $as_nop
  8438. lt_cv_prog_compiler_c_o=no
  8439. $RM -r conftest 2>/dev/null
  8440. mkdir conftest
  8441. cd conftest
  8442. mkdir out
  8443. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8444. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8445. # Insert the option either (1) after the last *FLAGS variable, or
  8446. # (2) before a word containing "conftest.", or (3) at the end.
  8447. # Note that $ac_compile itself does not contain backslashes and begins
  8448. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8449. lt_compile=`echo "$ac_compile" | $SED \
  8450. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8451. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8452. -e 's:$: $lt_compiler_flag:'`
  8453. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8454. (eval "$lt_compile" 2>out/conftest.err)
  8455. ac_status=$?
  8456. cat out/conftest.err >&5
  8457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8458. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8459. then
  8460. # The compiler can only warn and ignore the option if not recognized
  8461. # So say no if there are warnings
  8462. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8463. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8464. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8465. lt_cv_prog_compiler_c_o=yes
  8466. fi
  8467. fi
  8468. chmod u+w . 2>&5
  8469. $RM conftest*
  8470. # SGI C++ compiler will create directory out/ii_files/ for
  8471. # template instantiation
  8472. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8473. $RM out/* && rmdir out
  8474. cd ..
  8475. $RM -r conftest
  8476. $RM conftest*
  8477. fi
  8478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8479. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8480. hard_links=nottested
  8481. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8482. # do not overwrite the value of need_locks provided by the user
  8483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8484. printf %s "checking if we can lock with hard links... " >&6; }
  8485. hard_links=yes
  8486. $RM conftest*
  8487. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8488. touch conftest.a
  8489. ln conftest.a conftest.b 2>&5 || hard_links=no
  8490. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8492. printf "%s\n" "$hard_links" >&6; }
  8493. if test no = "$hard_links"; then
  8494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8495. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8496. need_locks=warn
  8497. fi
  8498. else
  8499. need_locks=no
  8500. fi
  8501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8502. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8503. runpath_var=
  8504. allow_undefined_flag=
  8505. always_export_symbols=no
  8506. archive_cmds=
  8507. archive_expsym_cmds=
  8508. compiler_needs_object=no
  8509. enable_shared_with_static_runtimes=no
  8510. export_dynamic_flag_spec=
  8511. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8512. hardcode_automatic=no
  8513. hardcode_direct=no
  8514. hardcode_direct_absolute=no
  8515. hardcode_libdir_flag_spec=
  8516. hardcode_libdir_separator=
  8517. hardcode_minus_L=no
  8518. hardcode_shlibpath_var=unsupported
  8519. inherit_rpath=no
  8520. link_all_deplibs=unknown
  8521. module_cmds=
  8522. module_expsym_cmds=
  8523. old_archive_from_new_cmds=
  8524. old_archive_from_expsyms_cmds=
  8525. thread_safe_flag_spec=
  8526. whole_archive_flag_spec=
  8527. # include_expsyms should be a list of space-separated symbols to be *always*
  8528. # included in the symbol list
  8529. include_expsyms=
  8530. # exclude_expsyms can be an extended regexp of symbols to exclude
  8531. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8532. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8533. # as well as any symbol that contains 'd'.
  8534. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8535. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8536. # platforms (ab)use it in PIC code, but their linkers get confused if
  8537. # the symbol is explicitly referenced. Since portable code cannot
  8538. # rely on this symbol name, it's probably fine to never include it in
  8539. # preloaded symbol tables.
  8540. # Exclude shared library initialization/finalization symbols.
  8541. extract_expsyms_cmds=
  8542. case $host_os in
  8543. cygwin* | mingw* | pw32* | cegcc*)
  8544. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8545. # When not using gcc, we currently assume that we are using
  8546. # Microsoft Visual C++.
  8547. if test yes != "$GCC"; then
  8548. with_gnu_ld=no
  8549. fi
  8550. ;;
  8551. interix*)
  8552. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8553. with_gnu_ld=yes
  8554. ;;
  8555. openbsd* | bitrig*)
  8556. with_gnu_ld=no
  8557. ;;
  8558. esac
  8559. ld_shlibs=yes
  8560. # On some targets, GNU ld is compatible enough with the native linker
  8561. # that we're better off using the native interface for both.
  8562. lt_use_gnu_ld_interface=no
  8563. if test yes = "$with_gnu_ld"; then
  8564. case $host_os in
  8565. aix*)
  8566. # The AIX port of GNU ld has always aspired to compatibility
  8567. # with the native linker. However, as the warning in the GNU ld
  8568. # block says, versions before 2.19.5* couldn't really create working
  8569. # shared libraries, regardless of the interface used.
  8570. case `$LD -v 2>&1` in
  8571. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8572. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8573. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8574. *)
  8575. lt_use_gnu_ld_interface=yes
  8576. ;;
  8577. esac
  8578. ;;
  8579. *)
  8580. lt_use_gnu_ld_interface=yes
  8581. ;;
  8582. esac
  8583. fi
  8584. if test yes = "$lt_use_gnu_ld_interface"; then
  8585. # If archive_cmds runs LD, not CC, wlarc should be empty
  8586. wlarc='$wl'
  8587. # Set some defaults for GNU ld with shared library support. These
  8588. # are reset later if shared libraries are not supported. Putting them
  8589. # here allows them to be overridden if necessary.
  8590. runpath_var=LD_RUN_PATH
  8591. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8592. export_dynamic_flag_spec='$wl--export-dynamic'
  8593. # ancient GNU ld didn't support --whole-archive et. al.
  8594. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8595. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8596. else
  8597. whole_archive_flag_spec=
  8598. fi
  8599. supports_anon_versioning=no
  8600. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8601. *GNU\ gold*) supports_anon_versioning=yes ;;
  8602. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8603. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8604. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8605. *\ 2.11.*) ;; # other 2.11 versions
  8606. *) supports_anon_versioning=yes ;;
  8607. esac
  8608. # See if GNU ld supports shared libraries.
  8609. case $host_os in
  8610. aix[3-9]*)
  8611. # On AIX/PPC, the GNU linker is very broken
  8612. if test ia64 != "$host_cpu"; then
  8613. ld_shlibs=no
  8614. cat <<_LT_EOF 1>&2
  8615. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8616. *** to be unable to reliably create shared libraries on AIX.
  8617. *** Therefore, libtool is disabling shared libraries support. If you
  8618. *** really care for shared libraries, you may want to install binutils
  8619. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8620. *** You will then need to restart the configuration process.
  8621. _LT_EOF
  8622. fi
  8623. ;;
  8624. amigaos*)
  8625. case $host_cpu in
  8626. powerpc)
  8627. # see comment about AmigaOS4 .so support
  8628. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8629. archive_expsym_cmds=''
  8630. ;;
  8631. m68k)
  8632. 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)'
  8633. hardcode_libdir_flag_spec='-L$libdir'
  8634. hardcode_minus_L=yes
  8635. ;;
  8636. esac
  8637. ;;
  8638. beos*)
  8639. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8640. allow_undefined_flag=unsupported
  8641. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8642. # support --undefined. This deserves some investigation. FIXME
  8643. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8644. else
  8645. ld_shlibs=no
  8646. fi
  8647. ;;
  8648. cygwin* | mingw* | pw32* | cegcc*)
  8649. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8650. # as there is no search path for DLLs.
  8651. hardcode_libdir_flag_spec='-L$libdir'
  8652. export_dynamic_flag_spec='$wl--export-all-symbols'
  8653. allow_undefined_flag=unsupported
  8654. always_export_symbols=no
  8655. enable_shared_with_static_runtimes=yes
  8656. 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'
  8657. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8658. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8659. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8660. # If the export-symbols file already is a .def file, use it as
  8661. # is; otherwise, prepend EXPORTS...
  8662. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8663. cp $export_symbols $output_objdir/$soname.def;
  8664. else
  8665. echo EXPORTS > $output_objdir/$soname.def;
  8666. cat $export_symbols >> $output_objdir/$soname.def;
  8667. fi~
  8668. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8669. else
  8670. ld_shlibs=no
  8671. fi
  8672. ;;
  8673. haiku*)
  8674. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8675. link_all_deplibs=yes
  8676. ;;
  8677. os2*)
  8678. hardcode_libdir_flag_spec='-L$libdir'
  8679. hardcode_minus_L=yes
  8680. allow_undefined_flag=unsupported
  8681. shrext_cmds=.dll
  8682. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8683. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8684. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8685. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8686. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8687. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8688. emximp -o $lib $output_objdir/$libname.def'
  8689. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8690. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8691. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8692. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8693. prefix_cmds="$SED"~
  8694. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8695. prefix_cmds="$prefix_cmds -e 1d";
  8696. fi~
  8697. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8698. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8699. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8700. emximp -o $lib $output_objdir/$libname.def'
  8701. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8702. enable_shared_with_static_runtimes=yes
  8703. file_list_spec='@'
  8704. ;;
  8705. interix[3-9]*)
  8706. hardcode_direct=no
  8707. hardcode_shlibpath_var=no
  8708. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8709. export_dynamic_flag_spec='$wl-E'
  8710. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8711. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8712. # default) and relocated if they conflict, which is a slow very memory
  8713. # consuming and fragmenting process. To avoid this, we pick a random,
  8714. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8715. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8716. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8717. 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'
  8718. ;;
  8719. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8720. tmp_diet=no
  8721. if test linux-dietlibc = "$host_os"; then
  8722. case $cc_basename in
  8723. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8724. esac
  8725. fi
  8726. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8727. && test no = "$tmp_diet"
  8728. then
  8729. tmp_addflag=' $pic_flag'
  8730. tmp_sharedflag='-shared'
  8731. case $cc_basename,$host_cpu in
  8732. pgcc*) # Portland Group C compiler
  8733. 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'
  8734. tmp_addflag=' $pic_flag'
  8735. ;;
  8736. pgf77* | pgf90* | pgf95* | pgfortran*)
  8737. # Portland Group f77 and f90 compilers
  8738. 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'
  8739. tmp_addflag=' $pic_flag -Mnomain' ;;
  8740. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8741. tmp_addflag=' -i_dynamic' ;;
  8742. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8743. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8744. ifc* | ifort*) # Intel Fortran compiler
  8745. tmp_addflag=' -nofor_main' ;;
  8746. lf95*) # Lahey Fortran 8.1
  8747. whole_archive_flag_spec=
  8748. tmp_sharedflag='--shared' ;;
  8749. nagfor*) # NAGFOR 5.3
  8750. tmp_sharedflag='-Wl,-shared' ;;
  8751. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8752. tmp_sharedflag='-qmkshrobj'
  8753. tmp_addflag= ;;
  8754. nvcc*) # Cuda Compiler Driver 2.2
  8755. 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'
  8756. compiler_needs_object=yes
  8757. ;;
  8758. esac
  8759. case `$CC -V 2>&1 | sed 5q` in
  8760. *Sun\ C*) # Sun C 5.9
  8761. 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'
  8762. compiler_needs_object=yes
  8763. tmp_sharedflag='-G' ;;
  8764. *Sun\ F*) # Sun Fortran 8.3
  8765. tmp_sharedflag='-G' ;;
  8766. esac
  8767. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8768. if test yes = "$supports_anon_versioning"; then
  8769. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8770. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8771. echo "local: *; };" >> $output_objdir/$libname.ver~
  8772. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8773. fi
  8774. case $cc_basename in
  8775. tcc*)
  8776. export_dynamic_flag_spec='-rdynamic'
  8777. ;;
  8778. xlf* | bgf* | bgxlf* | mpixlf*)
  8779. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8780. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8781. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8782. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8783. if test yes = "$supports_anon_versioning"; then
  8784. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8785. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8786. echo "local: *; };" >> $output_objdir/$libname.ver~
  8787. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8788. fi
  8789. ;;
  8790. esac
  8791. else
  8792. ld_shlibs=no
  8793. fi
  8794. ;;
  8795. netbsd*)
  8796. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8797. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8798. wlarc=
  8799. else
  8800. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8801. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8802. fi
  8803. ;;
  8804. solaris*)
  8805. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8806. ld_shlibs=no
  8807. cat <<_LT_EOF 1>&2
  8808. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8809. *** create shared libraries on Solaris systems. Therefore, libtool
  8810. *** is disabling shared libraries support. We urge you to upgrade GNU
  8811. *** binutils to release 2.9.1 or newer. Another option is to modify
  8812. *** your PATH or compiler configuration so that the native linker is
  8813. *** used, and then restart.
  8814. _LT_EOF
  8815. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8816. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8817. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8818. else
  8819. ld_shlibs=no
  8820. fi
  8821. ;;
  8822. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8823. case `$LD -v 2>&1` in
  8824. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8825. ld_shlibs=no
  8826. cat <<_LT_EOF 1>&2
  8827. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8828. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8829. *** is disabling shared libraries support. We urge you to upgrade GNU
  8830. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8831. *** your PATH or compiler configuration so that the native linker is
  8832. *** used, and then restart.
  8833. _LT_EOF
  8834. ;;
  8835. *)
  8836. # For security reasons, it is highly recommended that you always
  8837. # use absolute paths for naming shared libraries, and exclude the
  8838. # DT_RUNPATH tag from executables and libraries. But doing so
  8839. # requires that you compile everything twice, which is a pain.
  8840. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8841. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8842. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8843. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8844. else
  8845. ld_shlibs=no
  8846. fi
  8847. ;;
  8848. esac
  8849. ;;
  8850. sunos4*)
  8851. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8852. wlarc=
  8853. hardcode_direct=yes
  8854. hardcode_shlibpath_var=no
  8855. ;;
  8856. *)
  8857. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8858. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8859. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8860. else
  8861. ld_shlibs=no
  8862. fi
  8863. ;;
  8864. esac
  8865. if test no = "$ld_shlibs"; then
  8866. runpath_var=
  8867. hardcode_libdir_flag_spec=
  8868. export_dynamic_flag_spec=
  8869. whole_archive_flag_spec=
  8870. fi
  8871. else
  8872. # PORTME fill in a description of your system's linker (not GNU ld)
  8873. case $host_os in
  8874. aix3*)
  8875. allow_undefined_flag=unsupported
  8876. always_export_symbols=yes
  8877. 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'
  8878. # Note: this linker hardcodes the directories in LIBPATH if there
  8879. # are no directories specified by -L.
  8880. hardcode_minus_L=yes
  8881. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8882. # Neither direct hardcoding nor static linking is supported with a
  8883. # broken collect2.
  8884. hardcode_direct=unsupported
  8885. fi
  8886. ;;
  8887. aix[4-9]*)
  8888. if test ia64 = "$host_cpu"; then
  8889. # On IA64, the linker does run time linking by default, so we don't
  8890. # have to do anything special.
  8891. aix_use_runtimelinking=no
  8892. exp_sym_flag='-Bexport'
  8893. no_entry_flag=
  8894. else
  8895. # If we're using GNU nm, then we don't want the "-C" option.
  8896. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8897. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8898. # weak defined symbols like other global defined symbols, whereas
  8899. # GNU nm marks them as "W".
  8900. # While the 'weak' keyword is ignored in the Export File, we need
  8901. # it in the Import File for the 'aix-soname' feature, so we have
  8902. # to replace the "-B" option with "-P" for AIX nm.
  8903. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8904. 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'
  8905. else
  8906. 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'
  8907. fi
  8908. aix_use_runtimelinking=no
  8909. # Test if we are trying to use run time linking or normal
  8910. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8911. # have runtime linking enabled, and use it for executables.
  8912. # For shared libraries, we enable/disable runtime linking
  8913. # depending on the kind of the shared library created -
  8914. # when "with_aix_soname,aix_use_runtimelinking" is:
  8915. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8916. # "aix,yes" lib.so shared, rtl:yes, for executables
  8917. # lib.a static archive
  8918. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8919. # lib.a(lib.so.V) shared, rtl:no, for executables
  8920. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8921. # lib.a(lib.so.V) shared, rtl:no
  8922. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8923. # lib.a static archive
  8924. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8925. for ld_flag in $LDFLAGS; do
  8926. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8927. aix_use_runtimelinking=yes
  8928. break
  8929. fi
  8930. done
  8931. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8932. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8933. # so we don't have lib.a shared libs to link our executables.
  8934. # We have to force runtime linking in this case.
  8935. aix_use_runtimelinking=yes
  8936. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8937. fi
  8938. ;;
  8939. esac
  8940. exp_sym_flag='-bexport'
  8941. no_entry_flag='-bnoentry'
  8942. fi
  8943. # When large executables or shared objects are built, AIX ld can
  8944. # have problems creating the table of contents. If linking a library
  8945. # or program results in "error TOC overflow" add -mminimal-toc to
  8946. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8947. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8948. archive_cmds=''
  8949. hardcode_direct=yes
  8950. hardcode_direct_absolute=yes
  8951. hardcode_libdir_separator=':'
  8952. link_all_deplibs=yes
  8953. file_list_spec='$wl-f,'
  8954. case $with_aix_soname,$aix_use_runtimelinking in
  8955. aix,*) ;; # traditional, no import file
  8956. svr4,* | *,yes) # use import file
  8957. # The Import File defines what to hardcode.
  8958. hardcode_direct=no
  8959. hardcode_direct_absolute=no
  8960. ;;
  8961. esac
  8962. if test yes = "$GCC"; then
  8963. case $host_os in aix4.[012]|aix4.[012].*)
  8964. # We only want to do this on AIX 4.2 and lower, the check
  8965. # below for broken collect2 doesn't work under 4.3+
  8966. collect2name=`$CC -print-prog-name=collect2`
  8967. if test -f "$collect2name" &&
  8968. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8969. then
  8970. # We have reworked collect2
  8971. :
  8972. else
  8973. # We have old collect2
  8974. hardcode_direct=unsupported
  8975. # It fails to find uninstalled libraries when the uninstalled
  8976. # path is not listed in the libpath. Setting hardcode_minus_L
  8977. # to unsupported forces relinking
  8978. hardcode_minus_L=yes
  8979. hardcode_libdir_flag_spec='-L$libdir'
  8980. hardcode_libdir_separator=
  8981. fi
  8982. ;;
  8983. esac
  8984. shared_flag='-shared'
  8985. if test yes = "$aix_use_runtimelinking"; then
  8986. shared_flag="$shared_flag "'$wl-G'
  8987. fi
  8988. # Need to ensure runtime linking is disabled for the traditional
  8989. # shared library, or the linker may eventually find shared libraries
  8990. # /with/ Import File - we do not want to mix them.
  8991. shared_flag_aix='-shared'
  8992. shared_flag_svr4='-shared $wl-G'
  8993. else
  8994. # not using gcc
  8995. if test ia64 = "$host_cpu"; then
  8996. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8997. # chokes on -Wl,-G. The following line is correct:
  8998. shared_flag='-G'
  8999. else
  9000. if test yes = "$aix_use_runtimelinking"; then
  9001. shared_flag='$wl-G'
  9002. else
  9003. shared_flag='$wl-bM:SRE'
  9004. fi
  9005. shared_flag_aix='$wl-bM:SRE'
  9006. shared_flag_svr4='$wl-G'
  9007. fi
  9008. fi
  9009. export_dynamic_flag_spec='$wl-bexpall'
  9010. # It seems that -bexpall does not export symbols beginning with
  9011. # underscore (_), so it is better to generate a list of symbols to export.
  9012. always_export_symbols=yes
  9013. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9014. # Warning - without using the other runtime loading flags (-brtl),
  9015. # -berok will link without error, but may produce a broken library.
  9016. allow_undefined_flag='-berok'
  9017. # Determine the default libpath from the value encoded in an
  9018. # empty executable.
  9019. if test set = "${lt_cv_aix_libpath+set}"; then
  9020. aix_libpath=$lt_cv_aix_libpath
  9021. else
  9022. if test ${lt_cv_aix_libpath_+y}
  9023. then :
  9024. printf %s "(cached) " >&6
  9025. else $as_nop
  9026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9027. /* end confdefs.h. */
  9028. int
  9029. main (void)
  9030. {
  9031. ;
  9032. return 0;
  9033. }
  9034. _ACEOF
  9035. if ac_fn_c_try_link "$LINENO"
  9036. then :
  9037. lt_aix_libpath_sed='
  9038. /Import File Strings/,/^$/ {
  9039. /^0/ {
  9040. s/^0 *\([^ ]*\) *$/\1/
  9041. p
  9042. }
  9043. }'
  9044. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9045. # Check for a 64-bit object if we didn't find anything.
  9046. if test -z "$lt_cv_aix_libpath_"; then
  9047. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9048. fi
  9049. fi
  9050. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9051. conftest$ac_exeext conftest.$ac_ext
  9052. if test -z "$lt_cv_aix_libpath_"; then
  9053. lt_cv_aix_libpath_=/usr/lib:/lib
  9054. fi
  9055. fi
  9056. aix_libpath=$lt_cv_aix_libpath_
  9057. fi
  9058. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9059. 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
  9060. else
  9061. if test ia64 = "$host_cpu"; then
  9062. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9063. allow_undefined_flag="-z nodefs"
  9064. 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"
  9065. else
  9066. # Determine the default libpath from the value encoded in an
  9067. # empty executable.
  9068. if test set = "${lt_cv_aix_libpath+set}"; then
  9069. aix_libpath=$lt_cv_aix_libpath
  9070. else
  9071. if test ${lt_cv_aix_libpath_+y}
  9072. then :
  9073. printf %s "(cached) " >&6
  9074. else $as_nop
  9075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9076. /* end confdefs.h. */
  9077. int
  9078. main (void)
  9079. {
  9080. ;
  9081. return 0;
  9082. }
  9083. _ACEOF
  9084. if ac_fn_c_try_link "$LINENO"
  9085. then :
  9086. lt_aix_libpath_sed='
  9087. /Import File Strings/,/^$/ {
  9088. /^0/ {
  9089. s/^0 *\([^ ]*\) *$/\1/
  9090. p
  9091. }
  9092. }'
  9093. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9094. # Check for a 64-bit object if we didn't find anything.
  9095. if test -z "$lt_cv_aix_libpath_"; then
  9096. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9097. fi
  9098. fi
  9099. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9100. conftest$ac_exeext conftest.$ac_ext
  9101. if test -z "$lt_cv_aix_libpath_"; then
  9102. lt_cv_aix_libpath_=/usr/lib:/lib
  9103. fi
  9104. fi
  9105. aix_libpath=$lt_cv_aix_libpath_
  9106. fi
  9107. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9108. # Warning - without using the other run time loading flags,
  9109. # -berok will link without error, but may produce a broken library.
  9110. no_undefined_flag=' $wl-bernotok'
  9111. allow_undefined_flag=' $wl-berok'
  9112. if test yes = "$with_gnu_ld"; then
  9113. # We only use this code for GNU lds that support --whole-archive.
  9114. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9115. else
  9116. # Exported symbols can be pulled into shared objects from archives
  9117. whole_archive_flag_spec='$convenience'
  9118. fi
  9119. archive_cmds_need_lc=yes
  9120. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9121. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9122. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9123. if test svr4 != "$with_aix_soname"; then
  9124. # This is similar to how AIX traditionally builds its shared libraries.
  9125. 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'
  9126. fi
  9127. if test aix != "$with_aix_soname"; then
  9128. 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'
  9129. else
  9130. # used by -dlpreopen to get the symbols
  9131. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9132. fi
  9133. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9134. fi
  9135. fi
  9136. ;;
  9137. amigaos*)
  9138. case $host_cpu in
  9139. powerpc)
  9140. # see comment about AmigaOS4 .so support
  9141. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9142. archive_expsym_cmds=''
  9143. ;;
  9144. m68k)
  9145. 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)'
  9146. hardcode_libdir_flag_spec='-L$libdir'
  9147. hardcode_minus_L=yes
  9148. ;;
  9149. esac
  9150. ;;
  9151. bsdi[45]*)
  9152. export_dynamic_flag_spec=-rdynamic
  9153. ;;
  9154. cygwin* | mingw* | pw32* | cegcc*)
  9155. # When not using gcc, we currently assume that we are using
  9156. # Microsoft Visual C++.
  9157. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9158. # no search path for DLLs.
  9159. case $cc_basename in
  9160. cl*)
  9161. # Native MSVC
  9162. hardcode_libdir_flag_spec=' '
  9163. allow_undefined_flag=unsupported
  9164. always_export_symbols=yes
  9165. file_list_spec='@'
  9166. # Tell ltmain to make .lib files, not .a files.
  9167. libext=lib
  9168. # Tell ltmain to make .dll files, not .so files.
  9169. shrext_cmds=.dll
  9170. # FIXME: Setting linknames here is a bad hack.
  9171. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9172. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9173. cp "$export_symbols" "$output_objdir/$soname.def";
  9174. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9175. else
  9176. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9177. fi~
  9178. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9179. linknames='
  9180. # The linker will not automatically build a static lib if we build a DLL.
  9181. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9182. enable_shared_with_static_runtimes=yes
  9183. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9184. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9185. # Don't use ranlib
  9186. old_postinstall_cmds='chmod 644 $oldlib'
  9187. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9188. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9189. case $lt_outputfile in
  9190. *.exe|*.EXE) ;;
  9191. *)
  9192. lt_outputfile=$lt_outputfile.exe
  9193. lt_tool_outputfile=$lt_tool_outputfile.exe
  9194. ;;
  9195. esac~
  9196. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9197. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9198. $RM "$lt_outputfile.manifest";
  9199. fi'
  9200. ;;
  9201. *)
  9202. # Assume MSVC wrapper
  9203. hardcode_libdir_flag_spec=' '
  9204. allow_undefined_flag=unsupported
  9205. # Tell ltmain to make .lib files, not .a files.
  9206. libext=lib
  9207. # Tell ltmain to make .dll files, not .so files.
  9208. shrext_cmds=.dll
  9209. # FIXME: Setting linknames here is a bad hack.
  9210. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9211. # The linker will automatically build a .lib file if we build a DLL.
  9212. old_archive_from_new_cmds='true'
  9213. # FIXME: Should let the user specify the lib program.
  9214. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9215. enable_shared_with_static_runtimes=yes
  9216. ;;
  9217. esac
  9218. ;;
  9219. darwin* | rhapsody*)
  9220. archive_cmds_need_lc=no
  9221. hardcode_direct=no
  9222. hardcode_automatic=yes
  9223. hardcode_shlibpath_var=unsupported
  9224. if test yes = "$lt_cv_ld_force_load"; then
  9225. 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\"`'
  9226. else
  9227. whole_archive_flag_spec=''
  9228. fi
  9229. link_all_deplibs=yes
  9230. allow_undefined_flag=$_lt_dar_allow_undefined
  9231. case $cc_basename in
  9232. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9233. *) _lt_dar_can_shared=$GCC ;;
  9234. esac
  9235. if test yes = "$_lt_dar_can_shared"; then
  9236. output_verbose_link_cmd=func_echo_all
  9237. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9238. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9239. 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"
  9240. 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"
  9241. else
  9242. ld_shlibs=no
  9243. fi
  9244. ;;
  9245. dgux*)
  9246. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9247. hardcode_libdir_flag_spec='-L$libdir'
  9248. hardcode_shlibpath_var=no
  9249. ;;
  9250. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9251. # support. Future versions do this automatically, but an explicit c++rt0.o
  9252. # does not break anything, and helps significantly (at the cost of a little
  9253. # extra space).
  9254. freebsd2.2*)
  9255. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9256. hardcode_libdir_flag_spec='-R$libdir'
  9257. hardcode_direct=yes
  9258. hardcode_shlibpath_var=no
  9259. ;;
  9260. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9261. freebsd2.*)
  9262. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9263. hardcode_direct=yes
  9264. hardcode_minus_L=yes
  9265. hardcode_shlibpath_var=no
  9266. ;;
  9267. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9268. freebsd* | dragonfly* | midnightbsd*)
  9269. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9270. hardcode_libdir_flag_spec='-R$libdir'
  9271. hardcode_direct=yes
  9272. hardcode_shlibpath_var=no
  9273. ;;
  9274. hpux9*)
  9275. if test yes = "$GCC"; then
  9276. 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'
  9277. else
  9278. 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'
  9279. fi
  9280. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9281. hardcode_libdir_separator=:
  9282. hardcode_direct=yes
  9283. # hardcode_minus_L: Not really in the search PATH,
  9284. # but as the default location of the library.
  9285. hardcode_minus_L=yes
  9286. export_dynamic_flag_spec='$wl-E'
  9287. ;;
  9288. hpux10*)
  9289. if test yes,no = "$GCC,$with_gnu_ld"; then
  9290. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9291. else
  9292. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9293. fi
  9294. if test no = "$with_gnu_ld"; then
  9295. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9296. hardcode_libdir_separator=:
  9297. hardcode_direct=yes
  9298. hardcode_direct_absolute=yes
  9299. export_dynamic_flag_spec='$wl-E'
  9300. # hardcode_minus_L: Not really in the search PATH,
  9301. # but as the default location of the library.
  9302. hardcode_minus_L=yes
  9303. fi
  9304. ;;
  9305. hpux11*)
  9306. if test yes,no = "$GCC,$with_gnu_ld"; then
  9307. case $host_cpu in
  9308. hppa*64*)
  9309. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9310. ;;
  9311. ia64*)
  9312. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9313. ;;
  9314. *)
  9315. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9316. ;;
  9317. esac
  9318. else
  9319. case $host_cpu in
  9320. hppa*64*)
  9321. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9322. ;;
  9323. ia64*)
  9324. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9325. ;;
  9326. *)
  9327. # Older versions of the 11.00 compiler do not understand -b yet
  9328. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9330. printf %s "checking if $CC understands -b... " >&6; }
  9331. if test ${lt_cv_prog_compiler__b+y}
  9332. then :
  9333. printf %s "(cached) " >&6
  9334. else $as_nop
  9335. lt_cv_prog_compiler__b=no
  9336. save_LDFLAGS=$LDFLAGS
  9337. LDFLAGS="$LDFLAGS -b"
  9338. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9339. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9340. # The linker can only warn and ignore the option if not recognized
  9341. # So say no if there are warnings
  9342. if test -s conftest.err; then
  9343. # Append any errors to the config.log.
  9344. cat conftest.err 1>&5
  9345. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9346. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9347. if diff conftest.exp conftest.er2 >/dev/null; then
  9348. lt_cv_prog_compiler__b=yes
  9349. fi
  9350. else
  9351. lt_cv_prog_compiler__b=yes
  9352. fi
  9353. fi
  9354. $RM -r conftest*
  9355. LDFLAGS=$save_LDFLAGS
  9356. fi
  9357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9358. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9359. if test yes = "$lt_cv_prog_compiler__b"; then
  9360. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9361. else
  9362. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9363. fi
  9364. ;;
  9365. esac
  9366. fi
  9367. if test no = "$with_gnu_ld"; then
  9368. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9369. hardcode_libdir_separator=:
  9370. case $host_cpu in
  9371. hppa*64*|ia64*)
  9372. hardcode_direct=no
  9373. hardcode_shlibpath_var=no
  9374. ;;
  9375. *)
  9376. hardcode_direct=yes
  9377. hardcode_direct_absolute=yes
  9378. export_dynamic_flag_spec='$wl-E'
  9379. # hardcode_minus_L: Not really in the search PATH,
  9380. # but as the default location of the library.
  9381. hardcode_minus_L=yes
  9382. ;;
  9383. esac
  9384. fi
  9385. ;;
  9386. irix5* | irix6* | nonstopux*)
  9387. if test yes = "$GCC"; then
  9388. 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'
  9389. # Try to use the -exported_symbol ld option, if it does not
  9390. # work, assume that -exports_file does not work either and
  9391. # implicitly export all symbols.
  9392. # This should be the same for all languages, so no per-tag cache variable.
  9393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9394. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9395. if test ${lt_cv_irix_exported_symbol+y}
  9396. then :
  9397. printf %s "(cached) " >&6
  9398. else $as_nop
  9399. save_LDFLAGS=$LDFLAGS
  9400. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9402. /* end confdefs.h. */
  9403. int foo (void) { return 0; }
  9404. _ACEOF
  9405. if ac_fn_c_try_link "$LINENO"
  9406. then :
  9407. lt_cv_irix_exported_symbol=yes
  9408. else $as_nop
  9409. lt_cv_irix_exported_symbol=no
  9410. fi
  9411. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9412. conftest$ac_exeext conftest.$ac_ext
  9413. LDFLAGS=$save_LDFLAGS
  9414. fi
  9415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9416. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9417. if test yes = "$lt_cv_irix_exported_symbol"; then
  9418. 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'
  9419. fi
  9420. else
  9421. 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'
  9422. 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'
  9423. fi
  9424. archive_cmds_need_lc='no'
  9425. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9426. hardcode_libdir_separator=:
  9427. inherit_rpath=yes
  9428. link_all_deplibs=yes
  9429. ;;
  9430. linux*)
  9431. case $cc_basename in
  9432. tcc*)
  9433. # Fabrice Bellard et al's Tiny C Compiler
  9434. ld_shlibs=yes
  9435. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9436. ;;
  9437. esac
  9438. ;;
  9439. netbsd*)
  9440. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9441. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9442. else
  9443. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9444. fi
  9445. hardcode_libdir_flag_spec='-R$libdir'
  9446. hardcode_direct=yes
  9447. hardcode_shlibpath_var=no
  9448. ;;
  9449. newsos6)
  9450. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9451. hardcode_direct=yes
  9452. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9453. hardcode_libdir_separator=:
  9454. hardcode_shlibpath_var=no
  9455. ;;
  9456. *nto* | *qnx*)
  9457. ;;
  9458. openbsd* | bitrig*)
  9459. if test -f /usr/libexec/ld.so; then
  9460. hardcode_direct=yes
  9461. hardcode_shlibpath_var=no
  9462. hardcode_direct_absolute=yes
  9463. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9464. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9465. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9466. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9467. export_dynamic_flag_spec='$wl-E'
  9468. else
  9469. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9470. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9471. fi
  9472. else
  9473. ld_shlibs=no
  9474. fi
  9475. ;;
  9476. os2*)
  9477. hardcode_libdir_flag_spec='-L$libdir'
  9478. hardcode_minus_L=yes
  9479. allow_undefined_flag=unsupported
  9480. shrext_cmds=.dll
  9481. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9482. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9483. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9484. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9485. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9486. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9487. emximp -o $lib $output_objdir/$libname.def'
  9488. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9489. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9490. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9491. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9492. prefix_cmds="$SED"~
  9493. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9494. prefix_cmds="$prefix_cmds -e 1d";
  9495. fi~
  9496. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9497. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9498. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9499. emximp -o $lib $output_objdir/$libname.def'
  9500. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9501. enable_shared_with_static_runtimes=yes
  9502. file_list_spec='@'
  9503. ;;
  9504. osf3*)
  9505. if test yes = "$GCC"; then
  9506. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9507. 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'
  9508. else
  9509. allow_undefined_flag=' -expect_unresolved \*'
  9510. 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'
  9511. fi
  9512. archive_cmds_need_lc='no'
  9513. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9514. hardcode_libdir_separator=:
  9515. ;;
  9516. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9517. if test yes = "$GCC"; then
  9518. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9519. 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'
  9520. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9521. else
  9522. allow_undefined_flag=' -expect_unresolved \*'
  9523. 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'
  9524. 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~
  9525. $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'
  9526. # Both c and cxx compiler support -rpath directly
  9527. hardcode_libdir_flag_spec='-rpath $libdir'
  9528. fi
  9529. archive_cmds_need_lc='no'
  9530. hardcode_libdir_separator=:
  9531. ;;
  9532. solaris*)
  9533. no_undefined_flag=' -z defs'
  9534. if test yes = "$GCC"; then
  9535. wlarc='$wl'
  9536. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9537. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9538. $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'
  9539. else
  9540. case `$CC -V 2>&1` in
  9541. *"Compilers 5.0"*)
  9542. wlarc=''
  9543. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9544. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9545. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9546. ;;
  9547. *)
  9548. wlarc='$wl'
  9549. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9550. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9551. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9552. ;;
  9553. esac
  9554. fi
  9555. hardcode_libdir_flag_spec='-R$libdir'
  9556. hardcode_shlibpath_var=no
  9557. case $host_os in
  9558. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9559. *)
  9560. # The compiler driver will combine and reorder linker options,
  9561. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9562. # but is careful enough not to reorder.
  9563. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9564. if test yes = "$GCC"; then
  9565. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9566. else
  9567. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9568. fi
  9569. ;;
  9570. esac
  9571. link_all_deplibs=yes
  9572. ;;
  9573. sunos4*)
  9574. if test sequent = "$host_vendor"; then
  9575. # Use $CC to link under sequent, because it throws in some extra .o
  9576. # files that make .init and .fini sections work.
  9577. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9578. else
  9579. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9580. fi
  9581. hardcode_libdir_flag_spec='-L$libdir'
  9582. hardcode_direct=yes
  9583. hardcode_minus_L=yes
  9584. hardcode_shlibpath_var=no
  9585. ;;
  9586. sysv4)
  9587. case $host_vendor in
  9588. sni)
  9589. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9590. hardcode_direct=yes # is this really true???
  9591. ;;
  9592. siemens)
  9593. ## LD is ld it makes a PLAMLIB
  9594. ## CC just makes a GrossModule.
  9595. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9596. reload_cmds='$CC -r -o $output$reload_objs'
  9597. hardcode_direct=no
  9598. ;;
  9599. motorola)
  9600. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9601. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9602. ;;
  9603. esac
  9604. runpath_var='LD_RUN_PATH'
  9605. hardcode_shlibpath_var=no
  9606. ;;
  9607. sysv4.3*)
  9608. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9609. hardcode_shlibpath_var=no
  9610. export_dynamic_flag_spec='-Bexport'
  9611. ;;
  9612. sysv4*MP*)
  9613. if test -d /usr/nec; then
  9614. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9615. hardcode_shlibpath_var=no
  9616. runpath_var=LD_RUN_PATH
  9617. hardcode_runpath_var=yes
  9618. ld_shlibs=yes
  9619. fi
  9620. ;;
  9621. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9622. no_undefined_flag='$wl-z,text'
  9623. archive_cmds_need_lc=no
  9624. hardcode_shlibpath_var=no
  9625. runpath_var='LD_RUN_PATH'
  9626. if test yes = "$GCC"; then
  9627. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9628. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9629. else
  9630. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9631. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9632. fi
  9633. ;;
  9634. sysv5* | sco3.2v5* | sco5v6*)
  9635. # Note: We CANNOT use -z defs as we might desire, because we do not
  9636. # link with -lc, and that would cause any symbols used from libc to
  9637. # always be unresolved, which means just about no library would
  9638. # ever link correctly. If we're not using GNU ld we use -z text
  9639. # though, which does catch some bad symbols but isn't as heavy-handed
  9640. # as -z defs.
  9641. no_undefined_flag='$wl-z,text'
  9642. allow_undefined_flag='$wl-z,nodefs'
  9643. archive_cmds_need_lc=no
  9644. hardcode_shlibpath_var=no
  9645. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9646. hardcode_libdir_separator=':'
  9647. link_all_deplibs=yes
  9648. export_dynamic_flag_spec='$wl-Bexport'
  9649. runpath_var='LD_RUN_PATH'
  9650. if test yes = "$GCC"; then
  9651. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9652. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9653. else
  9654. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9655. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9656. fi
  9657. ;;
  9658. uts4*)
  9659. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9660. hardcode_libdir_flag_spec='-L$libdir'
  9661. hardcode_shlibpath_var=no
  9662. ;;
  9663. *)
  9664. ld_shlibs=no
  9665. ;;
  9666. esac
  9667. if test sni = "$host_vendor"; then
  9668. case $host in
  9669. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9670. export_dynamic_flag_spec='$wl-Blargedynsym'
  9671. ;;
  9672. esac
  9673. fi
  9674. fi
  9675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9676. printf "%s\n" "$ld_shlibs" >&6; }
  9677. test no = "$ld_shlibs" && can_build_shared=no
  9678. with_gnu_ld=$with_gnu_ld
  9679. #
  9680. # Do we need to explicitly link libc?
  9681. #
  9682. case "x$archive_cmds_need_lc" in
  9683. x|xyes)
  9684. # Assume -lc should be added
  9685. archive_cmds_need_lc=yes
  9686. if test yes,yes = "$GCC,$enable_shared"; then
  9687. case $archive_cmds in
  9688. *'~'*)
  9689. # FIXME: we may have to deal with multi-command sequences.
  9690. ;;
  9691. '$CC '*)
  9692. # Test whether the compiler implicitly links with -lc since on some
  9693. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9694. # to ld, don't add -lc before -lgcc.
  9695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9696. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9697. if test ${lt_cv_archive_cmds_need_lc+y}
  9698. then :
  9699. printf %s "(cached) " >&6
  9700. else $as_nop
  9701. $RM conftest*
  9702. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9703. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9704. (eval $ac_compile) 2>&5
  9705. ac_status=$?
  9706. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9707. test $ac_status = 0; } 2>conftest.err; then
  9708. soname=conftest
  9709. lib=conftest
  9710. libobjs=conftest.$ac_objext
  9711. deplibs=
  9712. wl=$lt_prog_compiler_wl
  9713. pic_flag=$lt_prog_compiler_pic
  9714. compiler_flags=-v
  9715. linker_flags=-v
  9716. verstring=
  9717. output_objdir=.
  9718. libname=conftest
  9719. lt_save_allow_undefined_flag=$allow_undefined_flag
  9720. allow_undefined_flag=
  9721. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9722. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9723. ac_status=$?
  9724. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9725. test $ac_status = 0; }
  9726. then
  9727. lt_cv_archive_cmds_need_lc=no
  9728. else
  9729. lt_cv_archive_cmds_need_lc=yes
  9730. fi
  9731. allow_undefined_flag=$lt_save_allow_undefined_flag
  9732. else
  9733. cat conftest.err 1>&5
  9734. fi
  9735. $RM conftest*
  9736. fi
  9737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9738. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9739. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9740. ;;
  9741. esac
  9742. fi
  9743. ;;
  9744. esac
  9745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9746. printf %s "checking dynamic linker characteristics... " >&6; }
  9747. if test yes = "$GCC"; then
  9748. case $host_os in
  9749. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9750. *) lt_awk_arg='/^libraries:/' ;;
  9751. esac
  9752. case $host_os in
  9753. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9754. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9755. esac
  9756. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9757. case $lt_search_path_spec in
  9758. *\;*)
  9759. # if the path contains ";" then we assume it to be the separator
  9760. # otherwise default to the standard path separator (i.e. ":") - it is
  9761. # assumed that no part of a normal pathname contains ";" but that should
  9762. # okay in the real world where ";" in dirpaths is itself problematic.
  9763. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9764. ;;
  9765. *)
  9766. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9767. ;;
  9768. esac
  9769. # Ok, now we have the path, separated by spaces, we can step through it
  9770. # and add multilib dir if necessary...
  9771. lt_tmp_lt_search_path_spec=
  9772. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9773. # ...but if some path component already ends with the multilib dir we assume
  9774. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9775. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9776. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9777. lt_multi_os_dir=
  9778. ;;
  9779. esac
  9780. for lt_sys_path in $lt_search_path_spec; do
  9781. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9782. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9783. elif test -n "$lt_multi_os_dir"; then
  9784. test -d "$lt_sys_path" && \
  9785. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9786. fi
  9787. done
  9788. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9789. BEGIN {RS = " "; FS = "/|\n";} {
  9790. lt_foo = "";
  9791. lt_count = 0;
  9792. for (lt_i = NF; lt_i > 0; lt_i--) {
  9793. if ($lt_i != "" && $lt_i != ".") {
  9794. if ($lt_i == "..") {
  9795. lt_count++;
  9796. } else {
  9797. if (lt_count == 0) {
  9798. lt_foo = "/" $lt_i lt_foo;
  9799. } else {
  9800. lt_count--;
  9801. }
  9802. }
  9803. }
  9804. }
  9805. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9806. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9807. }'`
  9808. # AWK program above erroneously prepends '/' to C:/dos/paths
  9809. # for these hosts.
  9810. case $host_os in
  9811. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9812. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9813. esac
  9814. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9815. else
  9816. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9817. fi
  9818. library_names_spec=
  9819. libname_spec='lib$name'
  9820. soname_spec=
  9821. shrext_cmds=.so
  9822. postinstall_cmds=
  9823. postuninstall_cmds=
  9824. finish_cmds=
  9825. finish_eval=
  9826. shlibpath_var=
  9827. shlibpath_overrides_runpath=unknown
  9828. version_type=none
  9829. dynamic_linker="$host_os ld.so"
  9830. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9831. need_lib_prefix=unknown
  9832. hardcode_into_libs=no
  9833. # when you set need_version to no, make sure it does not cause -set_version
  9834. # flags to be left without arguments
  9835. need_version=unknown
  9836. case $host_os in
  9837. aix3*)
  9838. version_type=linux # correct to gnu/linux during the next big refactor
  9839. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9840. shlibpath_var=LIBPATH
  9841. # AIX 3 has no versioning support, so we append a major version to the name.
  9842. soname_spec='$libname$release$shared_ext$major'
  9843. ;;
  9844. aix[4-9]*)
  9845. version_type=linux # correct to gnu/linux during the next big refactor
  9846. need_lib_prefix=no
  9847. need_version=no
  9848. hardcode_into_libs=yes
  9849. if test ia64 = "$host_cpu"; then
  9850. # AIX 5 supports IA64
  9851. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9852. shlibpath_var=LD_LIBRARY_PATH
  9853. else
  9854. # With GCC up to 2.95.x, collect2 would create an import file
  9855. # for dependence libraries. The import file would start with
  9856. # the line '#! .'. This would cause the generated library to
  9857. # depend on '.', always an invalid library. This was fixed in
  9858. # development snapshots of GCC prior to 3.0.
  9859. case $host_os in
  9860. aix4 | aix4.[01] | aix4.[01].*)
  9861. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9862. echo ' yes '
  9863. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9864. :
  9865. else
  9866. can_build_shared=no
  9867. fi
  9868. ;;
  9869. esac
  9870. # Using Import Files as archive members, it is possible to support
  9871. # filename-based versioning of shared library archives on AIX. While
  9872. # this would work for both with and without runtime linking, it will
  9873. # prevent static linking of such archives. So we do filename-based
  9874. # shared library versioning with .so extension only, which is used
  9875. # when both runtime linking and shared linking is enabled.
  9876. # Unfortunately, runtime linking may impact performance, so we do
  9877. # not want this to be the default eventually. Also, we use the
  9878. # versioned .so libs for executables only if there is the -brtl
  9879. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9880. # To allow for filename-based versioning support, we need to create
  9881. # libNAME.so.V as an archive file, containing:
  9882. # *) an Import File, referring to the versioned filename of the
  9883. # archive as well as the shared archive member, telling the
  9884. # bitwidth (32 or 64) of that shared object, and providing the
  9885. # list of exported symbols of that shared object, eventually
  9886. # decorated with the 'weak' keyword
  9887. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9888. # it being seen by the linker.
  9889. # At run time we better use the real file rather than another symlink,
  9890. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9891. case $with_aix_soname,$aix_use_runtimelinking in
  9892. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9893. # soname into executable. Probably we can add versioning support to
  9894. # collect2, so additional links can be useful in future.
  9895. aix,yes) # traditional libtool
  9896. dynamic_linker='AIX unversionable lib.so'
  9897. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9898. # instead of lib<name>.a to let people know that these are not
  9899. # typical AIX shared libraries.
  9900. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9901. ;;
  9902. aix,no) # traditional AIX only
  9903. dynamic_linker='AIX lib.a(lib.so.V)'
  9904. # We preserve .a as extension for shared libraries through AIX4.2
  9905. # and later when we are not doing run time linking.
  9906. library_names_spec='$libname$release.a $libname.a'
  9907. soname_spec='$libname$release$shared_ext$major'
  9908. ;;
  9909. svr4,*) # full svr4 only
  9910. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9911. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9912. # We do not specify a path in Import Files, so LIBPATH fires.
  9913. shlibpath_overrides_runpath=yes
  9914. ;;
  9915. *,yes) # both, prefer svr4
  9916. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9917. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9918. # unpreferred sharedlib libNAME.a needs extra handling
  9919. 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"'
  9920. 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"'
  9921. # We do not specify a path in Import Files, so LIBPATH fires.
  9922. shlibpath_overrides_runpath=yes
  9923. ;;
  9924. *,no) # both, prefer aix
  9925. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9926. library_names_spec='$libname$release.a $libname.a'
  9927. soname_spec='$libname$release$shared_ext$major'
  9928. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9929. 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)'
  9930. 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"'
  9931. ;;
  9932. esac
  9933. shlibpath_var=LIBPATH
  9934. fi
  9935. ;;
  9936. amigaos*)
  9937. case $host_cpu in
  9938. powerpc)
  9939. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9940. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9941. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9942. ;;
  9943. m68k)
  9944. library_names_spec='$libname.ixlibrary $libname.a'
  9945. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9946. 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'
  9947. ;;
  9948. esac
  9949. ;;
  9950. beos*)
  9951. library_names_spec='$libname$shared_ext'
  9952. dynamic_linker="$host_os ld.so"
  9953. shlibpath_var=LIBRARY_PATH
  9954. ;;
  9955. bsdi[45]*)
  9956. version_type=linux # correct to gnu/linux during the next big refactor
  9957. need_version=no
  9958. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9959. soname_spec='$libname$release$shared_ext$major'
  9960. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9961. shlibpath_var=LD_LIBRARY_PATH
  9962. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9963. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9964. # the default ld.so.conf also contains /usr/contrib/lib and
  9965. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9966. # libtool to hard-code these into programs
  9967. ;;
  9968. cygwin* | mingw* | pw32* | cegcc*)
  9969. version_type=windows
  9970. shrext_cmds=.dll
  9971. need_version=no
  9972. need_lib_prefix=no
  9973. case $GCC,$cc_basename in
  9974. yes,*)
  9975. # gcc
  9976. library_names_spec='$libname.dll.a'
  9977. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9978. postinstall_cmds='base_file=`basename \$file`~
  9979. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9980. dldir=$destdir/`dirname \$dlpath`~
  9981. test -d \$dldir || mkdir -p \$dldir~
  9982. $install_prog $dir/$dlname \$dldir/$dlname~
  9983. chmod a+x \$dldir/$dlname~
  9984. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9985. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9986. fi'
  9987. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9988. dlpath=$dir/\$dldll~
  9989. $RM \$dlpath'
  9990. shlibpath_overrides_runpath=yes
  9991. case $host_os in
  9992. cygwin*)
  9993. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9994. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9995. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9996. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9997. ;;
  9998. mingw* | cegcc*)
  9999. # MinGW DLLs use traditional 'lib' prefix
  10000. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10001. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10002. ;;
  10003. pw32*)
  10004. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10005. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10006. ;;
  10007. esac
  10008. dynamic_linker='Win32 ld.exe'
  10009. ;;
  10010. *,cl*)
  10011. # Native MSVC
  10012. libname_spec='$name'
  10013. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10014. library_names_spec='$libname.dll.lib'
  10015. case $build_os in
  10016. mingw*)
  10017. sys_lib_search_path_spec=
  10018. lt_save_ifs=$IFS
  10019. IFS=';'
  10020. for lt_path in $LIB
  10021. do
  10022. IFS=$lt_save_ifs
  10023. # Let DOS variable expansion print the short 8.3 style file name.
  10024. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10025. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10026. done
  10027. IFS=$lt_save_ifs
  10028. # Convert to MSYS style.
  10029. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10030. ;;
  10031. cygwin*)
  10032. # Convert to unix form, then to dos form, then back to unix form
  10033. # but this time dos style (no spaces!) so that the unix form looks
  10034. # like /cygdrive/c/PROGRA~1:/cygdr...
  10035. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10036. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10037. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10038. ;;
  10039. *)
  10040. sys_lib_search_path_spec=$LIB
  10041. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10042. # It is most probably a Windows format PATH.
  10043. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10044. else
  10045. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10046. fi
  10047. # FIXME: find the short name or the path components, as spaces are
  10048. # common. (e.g. "Program Files" -> "PROGRA~1")
  10049. ;;
  10050. esac
  10051. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10052. postinstall_cmds='base_file=`basename \$file`~
  10053. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10054. dldir=$destdir/`dirname \$dlpath`~
  10055. test -d \$dldir || mkdir -p \$dldir~
  10056. $install_prog $dir/$dlname \$dldir/$dlname'
  10057. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10058. dlpath=$dir/\$dldll~
  10059. $RM \$dlpath'
  10060. shlibpath_overrides_runpath=yes
  10061. dynamic_linker='Win32 link.exe'
  10062. ;;
  10063. *)
  10064. # Assume MSVC wrapper
  10065. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10066. dynamic_linker='Win32 ld.exe'
  10067. ;;
  10068. esac
  10069. # FIXME: first we should search . and the directory the executable is in
  10070. shlibpath_var=PATH
  10071. ;;
  10072. darwin* | rhapsody*)
  10073. dynamic_linker="$host_os dyld"
  10074. version_type=darwin
  10075. need_lib_prefix=no
  10076. need_version=no
  10077. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10078. soname_spec='$libname$release$major$shared_ext'
  10079. shlibpath_overrides_runpath=yes
  10080. shlibpath_var=DYLD_LIBRARY_PATH
  10081. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10082. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10083. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10084. ;;
  10085. dgux*)
  10086. version_type=linux # correct to gnu/linux during the next big refactor
  10087. need_lib_prefix=no
  10088. need_version=no
  10089. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10090. soname_spec='$libname$release$shared_ext$major'
  10091. shlibpath_var=LD_LIBRARY_PATH
  10092. ;;
  10093. freebsd* | dragonfly* | midnightbsd*)
  10094. # DragonFly does not have aout. When/if they implement a new
  10095. # versioning mechanism, adjust this.
  10096. if test -x /usr/bin/objformat; then
  10097. objformat=`/usr/bin/objformat`
  10098. else
  10099. case $host_os in
  10100. freebsd[23].*) objformat=aout ;;
  10101. *) objformat=elf ;;
  10102. esac
  10103. fi
  10104. version_type=freebsd-$objformat
  10105. case $version_type in
  10106. freebsd-elf*)
  10107. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10108. soname_spec='$libname$release$shared_ext$major'
  10109. need_version=no
  10110. need_lib_prefix=no
  10111. ;;
  10112. freebsd-*)
  10113. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10114. need_version=yes
  10115. ;;
  10116. esac
  10117. shlibpath_var=LD_LIBRARY_PATH
  10118. case $host_os in
  10119. freebsd2.*)
  10120. shlibpath_overrides_runpath=yes
  10121. ;;
  10122. freebsd3.[01]* | freebsdelf3.[01]*)
  10123. shlibpath_overrides_runpath=yes
  10124. hardcode_into_libs=yes
  10125. ;;
  10126. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10127. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10128. shlibpath_overrides_runpath=no
  10129. hardcode_into_libs=yes
  10130. ;;
  10131. *) # from 4.6 on, and DragonFly
  10132. shlibpath_overrides_runpath=yes
  10133. hardcode_into_libs=yes
  10134. ;;
  10135. esac
  10136. ;;
  10137. haiku*)
  10138. version_type=linux # correct to gnu/linux during the next big refactor
  10139. need_lib_prefix=no
  10140. need_version=no
  10141. dynamic_linker="$host_os runtime_loader"
  10142. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10143. soname_spec='$libname$release$shared_ext$major'
  10144. shlibpath_var=LIBRARY_PATH
  10145. shlibpath_overrides_runpath=no
  10146. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10147. hardcode_into_libs=yes
  10148. ;;
  10149. hpux9* | hpux10* | hpux11*)
  10150. # Give a soname corresponding to the major version so that dld.sl refuses to
  10151. # link against other versions.
  10152. version_type=sunos
  10153. need_lib_prefix=no
  10154. need_version=no
  10155. case $host_cpu in
  10156. ia64*)
  10157. shrext_cmds='.so'
  10158. hardcode_into_libs=yes
  10159. dynamic_linker="$host_os dld.so"
  10160. shlibpath_var=LD_LIBRARY_PATH
  10161. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10162. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10163. soname_spec='$libname$release$shared_ext$major'
  10164. if test 32 = "$HPUX_IA64_MODE"; then
  10165. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10166. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10167. else
  10168. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10169. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10170. fi
  10171. ;;
  10172. hppa*64*)
  10173. shrext_cmds='.sl'
  10174. hardcode_into_libs=yes
  10175. dynamic_linker="$host_os dld.sl"
  10176. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10177. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10178. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10179. soname_spec='$libname$release$shared_ext$major'
  10180. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10181. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10182. ;;
  10183. *)
  10184. shrext_cmds='.sl'
  10185. dynamic_linker="$host_os dld.sl"
  10186. shlibpath_var=SHLIB_PATH
  10187. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10188. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10189. soname_spec='$libname$release$shared_ext$major'
  10190. ;;
  10191. esac
  10192. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10193. postinstall_cmds='chmod 555 $lib'
  10194. # or fails outright, so override atomically:
  10195. install_override_mode=555
  10196. ;;
  10197. interix[3-9]*)
  10198. version_type=linux # correct to gnu/linux during the next big refactor
  10199. need_lib_prefix=no
  10200. need_version=no
  10201. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10202. soname_spec='$libname$release$shared_ext$major'
  10203. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10204. shlibpath_var=LD_LIBRARY_PATH
  10205. shlibpath_overrides_runpath=no
  10206. hardcode_into_libs=yes
  10207. ;;
  10208. irix5* | irix6* | nonstopux*)
  10209. case $host_os in
  10210. nonstopux*) version_type=nonstopux ;;
  10211. *)
  10212. if test yes = "$lt_cv_prog_gnu_ld"; then
  10213. version_type=linux # correct to gnu/linux during the next big refactor
  10214. else
  10215. version_type=irix
  10216. fi ;;
  10217. esac
  10218. need_lib_prefix=no
  10219. need_version=no
  10220. soname_spec='$libname$release$shared_ext$major'
  10221. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10222. case $host_os in
  10223. irix5* | nonstopux*)
  10224. libsuff= shlibsuff=
  10225. ;;
  10226. *)
  10227. case $LD in # libtool.m4 will add one of these switches to LD
  10228. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10229. libsuff= shlibsuff= libmagic=32-bit;;
  10230. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10231. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10232. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10233. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10234. *) libsuff= shlibsuff= libmagic=never-match;;
  10235. esac
  10236. ;;
  10237. esac
  10238. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10239. shlibpath_overrides_runpath=no
  10240. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10241. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10242. hardcode_into_libs=yes
  10243. ;;
  10244. # No shared lib support for Linux oldld, aout, or coff.
  10245. linux*oldld* | linux*aout* | linux*coff*)
  10246. dynamic_linker=no
  10247. ;;
  10248. linux*android*)
  10249. version_type=none # Android doesn't support versioned libraries.
  10250. need_lib_prefix=no
  10251. need_version=no
  10252. library_names_spec='$libname$release$shared_ext'
  10253. soname_spec='$libname$release$shared_ext'
  10254. finish_cmds=
  10255. shlibpath_var=LD_LIBRARY_PATH
  10256. shlibpath_overrides_runpath=yes
  10257. # This implies no fast_install, which is unacceptable.
  10258. # Some rework will be needed to allow for fast_install
  10259. # before this can be enabled.
  10260. hardcode_into_libs=yes
  10261. dynamic_linker='Android linker'
  10262. # Don't embed -rpath directories since the linker doesn't support them.
  10263. hardcode_libdir_flag_spec='-L$libdir'
  10264. ;;
  10265. # This must be glibc/ELF.
  10266. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  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. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10273. shlibpath_var=LD_LIBRARY_PATH
  10274. shlibpath_overrides_runpath=no
  10275. # Some binutils ld are patched to set DT_RUNPATH
  10276. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10277. then :
  10278. printf %s "(cached) " >&6
  10279. else $as_nop
  10280. lt_cv_shlibpath_overrides_runpath=no
  10281. save_LDFLAGS=$LDFLAGS
  10282. save_libdir=$libdir
  10283. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10284. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10286. /* end confdefs.h. */
  10287. int
  10288. main (void)
  10289. {
  10290. ;
  10291. return 0;
  10292. }
  10293. _ACEOF
  10294. if ac_fn_c_try_link "$LINENO"
  10295. then :
  10296. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10297. then :
  10298. lt_cv_shlibpath_overrides_runpath=yes
  10299. fi
  10300. fi
  10301. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10302. conftest$ac_exeext conftest.$ac_ext
  10303. LDFLAGS=$save_LDFLAGS
  10304. libdir=$save_libdir
  10305. fi
  10306. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10307. # This implies no fast_install, which is unacceptable.
  10308. # Some rework will be needed to allow for fast_install
  10309. # before this can be enabled.
  10310. hardcode_into_libs=yes
  10311. # Add ABI-specific directories to the system library path.
  10312. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10313. # Ideally, we could use ldconfig to report *all* directores which are
  10314. # searched for libraries, however this is still not possible. Aside from not
  10315. # being certain /sbin/ldconfig is available, command
  10316. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10317. # even though it is searched at run-time. Try to do the best guess by
  10318. # appending ld.so.conf contents (and includes) to the search path.
  10319. if test -f /etc/ld.so.conf; then
  10320. 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' ' '`
  10321. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10322. fi
  10323. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10324. # powerpc, because MkLinux only supported shared libraries with the
  10325. # GNU dynamic linker. Since this was broken with cross compilers,
  10326. # most powerpc-linux boxes support dynamic linking these days and
  10327. # people can always --disable-shared, the test was removed, and we
  10328. # assume the GNU/Linux dynamic linker is in use.
  10329. dynamic_linker='GNU/Linux ld.so'
  10330. ;;
  10331. netbsd*)
  10332. version_type=sunos
  10333. need_lib_prefix=no
  10334. need_version=no
  10335. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10336. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10337. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10338. dynamic_linker='NetBSD (a.out) ld.so'
  10339. else
  10340. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10341. soname_spec='$libname$release$shared_ext$major'
  10342. dynamic_linker='NetBSD ld.elf_so'
  10343. fi
  10344. shlibpath_var=LD_LIBRARY_PATH
  10345. shlibpath_overrides_runpath=yes
  10346. hardcode_into_libs=yes
  10347. ;;
  10348. newsos6)
  10349. version_type=linux # correct to gnu/linux during the next big refactor
  10350. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10351. shlibpath_var=LD_LIBRARY_PATH
  10352. shlibpath_overrides_runpath=yes
  10353. ;;
  10354. *nto* | *qnx*)
  10355. version_type=qnx
  10356. need_lib_prefix=no
  10357. need_version=no
  10358. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10359. soname_spec='$libname$release$shared_ext$major'
  10360. shlibpath_var=LD_LIBRARY_PATH
  10361. shlibpath_overrides_runpath=no
  10362. hardcode_into_libs=yes
  10363. dynamic_linker='ldqnx.so'
  10364. ;;
  10365. openbsd* | bitrig*)
  10366. version_type=sunos
  10367. sys_lib_dlsearch_path_spec=/usr/lib
  10368. need_lib_prefix=no
  10369. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10370. need_version=no
  10371. else
  10372. need_version=yes
  10373. fi
  10374. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10375. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10376. shlibpath_var=LD_LIBRARY_PATH
  10377. shlibpath_overrides_runpath=yes
  10378. ;;
  10379. os2*)
  10380. libname_spec='$name'
  10381. shrext_cmds=.dll
  10382. need_lib_prefix=no
  10383. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10384. # SDL customization: removed versioning support.
  10385. # version_type=windows
  10386. # need_version=no
  10387. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10388. # v=$($ECHO $release$versuffix | tr -d .-);
  10389. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10390. # $ECHO $n$v`$shared_ext'
  10391. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10392. library_names_spec='${libname}_dll.$libext'
  10393. dynamic_linker='OS/2 ld.exe'
  10394. shlibpath_var=BEGINLIBPATH
  10395. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10396. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10397. postinstall_cmds='base_file=`basename \$file`~
  10398. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10399. dldir=$destdir/`dirname \$dlpath`~
  10400. test -d \$dldir || mkdir -p \$dldir~
  10401. $install_prog $dir/$dlname \$dldir/$dlname~
  10402. chmod a+x \$dldir/$dlname~
  10403. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10404. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10405. fi'
  10406. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10407. dlpath=$dir/\$dldll~
  10408. $RM \$dlpath'
  10409. ;;
  10410. osf3* | osf4* | osf5*)
  10411. version_type=osf
  10412. need_lib_prefix=no
  10413. need_version=no
  10414. soname_spec='$libname$release$shared_ext$major'
  10415. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10416. shlibpath_var=LD_LIBRARY_PATH
  10417. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10418. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10419. ;;
  10420. rdos*)
  10421. dynamic_linker=no
  10422. ;;
  10423. solaris*)
  10424. version_type=linux # correct to gnu/linux during the next big refactor
  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=yes
  10431. hardcode_into_libs=yes
  10432. # ldd complains unless libraries are executable
  10433. postinstall_cmds='chmod +x $lib'
  10434. ;;
  10435. sunos4*)
  10436. version_type=sunos
  10437. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10438. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10439. shlibpath_var=LD_LIBRARY_PATH
  10440. shlibpath_overrides_runpath=yes
  10441. if test yes = "$with_gnu_ld"; then
  10442. need_lib_prefix=no
  10443. fi
  10444. need_version=yes
  10445. ;;
  10446. sysv4 | sysv4.3*)
  10447. version_type=linux # correct to gnu/linux during the next big refactor
  10448. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10449. soname_spec='$libname$release$shared_ext$major'
  10450. shlibpath_var=LD_LIBRARY_PATH
  10451. case $host_vendor in
  10452. sni)
  10453. shlibpath_overrides_runpath=no
  10454. need_lib_prefix=no
  10455. runpath_var=LD_RUN_PATH
  10456. ;;
  10457. siemens)
  10458. need_lib_prefix=no
  10459. ;;
  10460. motorola)
  10461. need_lib_prefix=no
  10462. need_version=no
  10463. shlibpath_overrides_runpath=no
  10464. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10465. ;;
  10466. esac
  10467. ;;
  10468. sysv4*MP*)
  10469. if test -d /usr/nec; then
  10470. version_type=linux # correct to gnu/linux during the next big refactor
  10471. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10472. soname_spec='$libname$shared_ext.$major'
  10473. shlibpath_var=LD_LIBRARY_PATH
  10474. fi
  10475. ;;
  10476. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10477. version_type=sco
  10478. need_lib_prefix=no
  10479. need_version=no
  10480. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10481. soname_spec='$libname$release$shared_ext$major'
  10482. shlibpath_var=LD_LIBRARY_PATH
  10483. shlibpath_overrides_runpath=yes
  10484. hardcode_into_libs=yes
  10485. if test yes = "$with_gnu_ld"; then
  10486. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10487. else
  10488. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10489. case $host_os in
  10490. sco3.2v5*)
  10491. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10492. ;;
  10493. esac
  10494. fi
  10495. sys_lib_dlsearch_path_spec='/usr/lib'
  10496. ;;
  10497. tpf*)
  10498. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10499. version_type=linux # correct to gnu/linux during the next big refactor
  10500. need_lib_prefix=no
  10501. need_version=no
  10502. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10503. shlibpath_var=LD_LIBRARY_PATH
  10504. shlibpath_overrides_runpath=no
  10505. hardcode_into_libs=yes
  10506. ;;
  10507. uts4*)
  10508. version_type=linux # correct to gnu/linux during the next big refactor
  10509. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10510. soname_spec='$libname$release$shared_ext$major'
  10511. shlibpath_var=LD_LIBRARY_PATH
  10512. ;;
  10513. *)
  10514. dynamic_linker=no
  10515. ;;
  10516. esac
  10517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10518. printf "%s\n" "$dynamic_linker" >&6; }
  10519. test no = "$dynamic_linker" && can_build_shared=no
  10520. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10521. if test yes = "$GCC"; then
  10522. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10523. fi
  10524. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10525. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10526. fi
  10527. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10528. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10529. fi
  10530. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10531. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10532. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10533. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10534. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10535. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10537. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10538. hardcode_action=
  10539. if test -n "$hardcode_libdir_flag_spec" ||
  10540. test -n "$runpath_var" ||
  10541. test yes = "$hardcode_automatic"; then
  10542. # We can hardcode non-existent directories.
  10543. if test no != "$hardcode_direct" &&
  10544. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10545. # have to relink, otherwise we might link with an installed library
  10546. # when we should be linking with a yet-to-be-installed one
  10547. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10548. test no != "$hardcode_minus_L"; then
  10549. # Linking always hardcodes the temporary library directory.
  10550. hardcode_action=relink
  10551. else
  10552. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10553. hardcode_action=immediate
  10554. fi
  10555. else
  10556. # We cannot hardcode anything, or else we can only hardcode existing
  10557. # directories.
  10558. hardcode_action=unsupported
  10559. fi
  10560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10561. printf "%s\n" "$hardcode_action" >&6; }
  10562. if test relink = "$hardcode_action" ||
  10563. test yes = "$inherit_rpath"; then
  10564. # Fast installation is not supported
  10565. enable_fast_install=no
  10566. elif test yes = "$shlibpath_overrides_runpath" ||
  10567. test no = "$enable_shared"; then
  10568. # Fast installation is not necessary
  10569. enable_fast_install=needless
  10570. fi
  10571. if test yes != "$enable_dlopen"; then
  10572. enable_dlopen=unknown
  10573. enable_dlopen_self=unknown
  10574. enable_dlopen_self_static=unknown
  10575. else
  10576. lt_cv_dlopen=no
  10577. lt_cv_dlopen_libs=
  10578. case $host_os in
  10579. beos*)
  10580. lt_cv_dlopen=load_add_on
  10581. lt_cv_dlopen_libs=
  10582. lt_cv_dlopen_self=yes
  10583. ;;
  10584. mingw* | pw32* | cegcc*)
  10585. lt_cv_dlopen=LoadLibrary
  10586. lt_cv_dlopen_libs=
  10587. ;;
  10588. cygwin*)
  10589. lt_cv_dlopen=dlopen
  10590. lt_cv_dlopen_libs=
  10591. ;;
  10592. darwin*)
  10593. # if libdl is installed we need to link against it
  10594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10595. printf %s "checking for dlopen in -ldl... " >&6; }
  10596. if test ${ac_cv_lib_dl_dlopen+y}
  10597. then :
  10598. printf %s "(cached) " >&6
  10599. else $as_nop
  10600. ac_check_lib_save_LIBS=$LIBS
  10601. LIBS="-ldl $LIBS"
  10602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10603. /* end confdefs.h. */
  10604. /* Override any GCC internal prototype to avoid an error.
  10605. Use char because int might match the return type of a GCC
  10606. builtin and then its argument prototype would still apply. */
  10607. char dlopen ();
  10608. int
  10609. main (void)
  10610. {
  10611. return dlopen ();
  10612. ;
  10613. return 0;
  10614. }
  10615. _ACEOF
  10616. if ac_fn_c_try_link "$LINENO"
  10617. then :
  10618. ac_cv_lib_dl_dlopen=yes
  10619. else $as_nop
  10620. ac_cv_lib_dl_dlopen=no
  10621. fi
  10622. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10623. conftest$ac_exeext conftest.$ac_ext
  10624. LIBS=$ac_check_lib_save_LIBS
  10625. fi
  10626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10627. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10628. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10629. then :
  10630. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10631. else $as_nop
  10632. lt_cv_dlopen=dyld
  10633. lt_cv_dlopen_libs=
  10634. lt_cv_dlopen_self=yes
  10635. fi
  10636. ;;
  10637. tpf*)
  10638. # Don't try to run any link tests for TPF. We know it's impossible
  10639. # because TPF is a cross-compiler, and we know how we open DSOs.
  10640. lt_cv_dlopen=dlopen
  10641. lt_cv_dlopen_libs=
  10642. lt_cv_dlopen_self=no
  10643. ;;
  10644. *)
  10645. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10646. if test "x$ac_cv_func_shl_load" = xyes
  10647. then :
  10648. lt_cv_dlopen=shl_load
  10649. else $as_nop
  10650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10651. printf %s "checking for shl_load in -ldld... " >&6; }
  10652. if test ${ac_cv_lib_dld_shl_load+y}
  10653. then :
  10654. printf %s "(cached) " >&6
  10655. else $as_nop
  10656. ac_check_lib_save_LIBS=$LIBS
  10657. LIBS="-ldld $LIBS"
  10658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10659. /* end confdefs.h. */
  10660. /* Override any GCC internal prototype to avoid an error.
  10661. Use char because int might match the return type of a GCC
  10662. builtin and then its argument prototype would still apply. */
  10663. char shl_load ();
  10664. int
  10665. main (void)
  10666. {
  10667. return shl_load ();
  10668. ;
  10669. return 0;
  10670. }
  10671. _ACEOF
  10672. if ac_fn_c_try_link "$LINENO"
  10673. then :
  10674. ac_cv_lib_dld_shl_load=yes
  10675. else $as_nop
  10676. ac_cv_lib_dld_shl_load=no
  10677. fi
  10678. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10679. conftest$ac_exeext conftest.$ac_ext
  10680. LIBS=$ac_check_lib_save_LIBS
  10681. fi
  10682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10683. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10684. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10685. then :
  10686. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10687. else $as_nop
  10688. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10689. if test "x$ac_cv_func_dlopen" = xyes
  10690. then :
  10691. lt_cv_dlopen=dlopen
  10692. else $as_nop
  10693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10694. printf %s "checking for dlopen in -ldl... " >&6; }
  10695. if test ${ac_cv_lib_dl_dlopen+y}
  10696. then :
  10697. printf %s "(cached) " >&6
  10698. else $as_nop
  10699. ac_check_lib_save_LIBS=$LIBS
  10700. LIBS="-ldl $LIBS"
  10701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10702. /* end confdefs.h. */
  10703. /* Override any GCC internal prototype to avoid an error.
  10704. Use char because int might match the return type of a GCC
  10705. builtin and then its argument prototype would still apply. */
  10706. char dlopen ();
  10707. int
  10708. main (void)
  10709. {
  10710. return dlopen ();
  10711. ;
  10712. return 0;
  10713. }
  10714. _ACEOF
  10715. if ac_fn_c_try_link "$LINENO"
  10716. then :
  10717. ac_cv_lib_dl_dlopen=yes
  10718. else $as_nop
  10719. ac_cv_lib_dl_dlopen=no
  10720. fi
  10721. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10722. conftest$ac_exeext conftest.$ac_ext
  10723. LIBS=$ac_check_lib_save_LIBS
  10724. fi
  10725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10726. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10727. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10728. then :
  10729. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10730. else $as_nop
  10731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10732. printf %s "checking for dlopen in -lsvld... " >&6; }
  10733. if test ${ac_cv_lib_svld_dlopen+y}
  10734. then :
  10735. printf %s "(cached) " >&6
  10736. else $as_nop
  10737. ac_check_lib_save_LIBS=$LIBS
  10738. LIBS="-lsvld $LIBS"
  10739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10740. /* end confdefs.h. */
  10741. /* Override any GCC internal prototype to avoid an error.
  10742. Use char because int might match the return type of a GCC
  10743. builtin and then its argument prototype would still apply. */
  10744. char dlopen ();
  10745. int
  10746. main (void)
  10747. {
  10748. return dlopen ();
  10749. ;
  10750. return 0;
  10751. }
  10752. _ACEOF
  10753. if ac_fn_c_try_link "$LINENO"
  10754. then :
  10755. ac_cv_lib_svld_dlopen=yes
  10756. else $as_nop
  10757. ac_cv_lib_svld_dlopen=no
  10758. fi
  10759. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10760. conftest$ac_exeext conftest.$ac_ext
  10761. LIBS=$ac_check_lib_save_LIBS
  10762. fi
  10763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10764. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10765. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10766. then :
  10767. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10768. else $as_nop
  10769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10770. printf %s "checking for dld_link in -ldld... " >&6; }
  10771. if test ${ac_cv_lib_dld_dld_link+y}
  10772. then :
  10773. printf %s "(cached) " >&6
  10774. else $as_nop
  10775. ac_check_lib_save_LIBS=$LIBS
  10776. LIBS="-ldld $LIBS"
  10777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10778. /* end confdefs.h. */
  10779. /* Override any GCC internal prototype to avoid an error.
  10780. Use char because int might match the return type of a GCC
  10781. builtin and then its argument prototype would still apply. */
  10782. char dld_link ();
  10783. int
  10784. main (void)
  10785. {
  10786. return dld_link ();
  10787. ;
  10788. return 0;
  10789. }
  10790. _ACEOF
  10791. if ac_fn_c_try_link "$LINENO"
  10792. then :
  10793. ac_cv_lib_dld_dld_link=yes
  10794. else $as_nop
  10795. ac_cv_lib_dld_dld_link=no
  10796. fi
  10797. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10798. conftest$ac_exeext conftest.$ac_ext
  10799. LIBS=$ac_check_lib_save_LIBS
  10800. fi
  10801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10802. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10803. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10804. then :
  10805. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10806. fi
  10807. fi
  10808. fi
  10809. fi
  10810. fi
  10811. fi
  10812. ;;
  10813. esac
  10814. if test no = "$lt_cv_dlopen"; then
  10815. enable_dlopen=no
  10816. else
  10817. enable_dlopen=yes
  10818. fi
  10819. case $lt_cv_dlopen in
  10820. dlopen)
  10821. save_CPPFLAGS=$CPPFLAGS
  10822. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10823. save_LDFLAGS=$LDFLAGS
  10824. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10825. save_LIBS=$LIBS
  10826. LIBS="$lt_cv_dlopen_libs $LIBS"
  10827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10828. printf %s "checking whether a program can dlopen itself... " >&6; }
  10829. if test ${lt_cv_dlopen_self+y}
  10830. then :
  10831. printf %s "(cached) " >&6
  10832. else $as_nop
  10833. if test yes = "$cross_compiling"; then :
  10834. lt_cv_dlopen_self=cross
  10835. else
  10836. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10837. lt_status=$lt_dlunknown
  10838. cat > conftest.$ac_ext <<_LT_EOF
  10839. #line $LINENO "configure"
  10840. #include "confdefs.h"
  10841. #if HAVE_DLFCN_H
  10842. #include <dlfcn.h>
  10843. #endif
  10844. #include <stdio.h>
  10845. #ifdef RTLD_GLOBAL
  10846. # define LT_DLGLOBAL RTLD_GLOBAL
  10847. #else
  10848. # ifdef DL_GLOBAL
  10849. # define LT_DLGLOBAL DL_GLOBAL
  10850. # else
  10851. # define LT_DLGLOBAL 0
  10852. # endif
  10853. #endif
  10854. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10855. find out it does not work in some platform. */
  10856. #ifndef LT_DLLAZY_OR_NOW
  10857. # ifdef RTLD_LAZY
  10858. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10859. # else
  10860. # ifdef DL_LAZY
  10861. # define LT_DLLAZY_OR_NOW DL_LAZY
  10862. # else
  10863. # ifdef RTLD_NOW
  10864. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10865. # else
  10866. # ifdef DL_NOW
  10867. # define LT_DLLAZY_OR_NOW DL_NOW
  10868. # else
  10869. # define LT_DLLAZY_OR_NOW 0
  10870. # endif
  10871. # endif
  10872. # endif
  10873. # endif
  10874. #endif
  10875. /* When -fvisibility=hidden is used, assume the code has been annotated
  10876. correspondingly for the symbols needed. */
  10877. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10878. int fnord () __attribute__((visibility("default")));
  10879. #endif
  10880. int fnord () { return 42; }
  10881. int main ()
  10882. {
  10883. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10884. int status = $lt_dlunknown;
  10885. if (self)
  10886. {
  10887. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10888. else
  10889. {
  10890. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10891. else puts (dlerror ());
  10892. }
  10893. /* dlclose (self); */
  10894. }
  10895. else
  10896. puts (dlerror ());
  10897. return status;
  10898. }
  10899. _LT_EOF
  10900. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10901. (eval $ac_link) 2>&5
  10902. ac_status=$?
  10903. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10904. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10905. (./conftest; exit; ) >&5 2>/dev/null
  10906. lt_status=$?
  10907. case x$lt_status in
  10908. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10909. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10910. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10911. esac
  10912. else :
  10913. # compilation failed
  10914. lt_cv_dlopen_self=no
  10915. fi
  10916. fi
  10917. rm -fr conftest*
  10918. fi
  10919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10920. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10921. if test yes = "$lt_cv_dlopen_self"; then
  10922. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10924. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10925. if test ${lt_cv_dlopen_self_static+y}
  10926. then :
  10927. printf %s "(cached) " >&6
  10928. else $as_nop
  10929. if test yes = "$cross_compiling"; then :
  10930. lt_cv_dlopen_self_static=cross
  10931. else
  10932. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10933. lt_status=$lt_dlunknown
  10934. cat > conftest.$ac_ext <<_LT_EOF
  10935. #line $LINENO "configure"
  10936. #include "confdefs.h"
  10937. #if HAVE_DLFCN_H
  10938. #include <dlfcn.h>
  10939. #endif
  10940. #include <stdio.h>
  10941. #ifdef RTLD_GLOBAL
  10942. # define LT_DLGLOBAL RTLD_GLOBAL
  10943. #else
  10944. # ifdef DL_GLOBAL
  10945. # define LT_DLGLOBAL DL_GLOBAL
  10946. # else
  10947. # define LT_DLGLOBAL 0
  10948. # endif
  10949. #endif
  10950. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10951. find out it does not work in some platform. */
  10952. #ifndef LT_DLLAZY_OR_NOW
  10953. # ifdef RTLD_LAZY
  10954. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10955. # else
  10956. # ifdef DL_LAZY
  10957. # define LT_DLLAZY_OR_NOW DL_LAZY
  10958. # else
  10959. # ifdef RTLD_NOW
  10960. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10961. # else
  10962. # ifdef DL_NOW
  10963. # define LT_DLLAZY_OR_NOW DL_NOW
  10964. # else
  10965. # define LT_DLLAZY_OR_NOW 0
  10966. # endif
  10967. # endif
  10968. # endif
  10969. # endif
  10970. #endif
  10971. /* When -fvisibility=hidden is used, assume the code has been annotated
  10972. correspondingly for the symbols needed. */
  10973. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10974. int fnord () __attribute__((visibility("default")));
  10975. #endif
  10976. int fnord () { return 42; }
  10977. int main ()
  10978. {
  10979. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10980. int status = $lt_dlunknown;
  10981. if (self)
  10982. {
  10983. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10984. else
  10985. {
  10986. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10987. else puts (dlerror ());
  10988. }
  10989. /* dlclose (self); */
  10990. }
  10991. else
  10992. puts (dlerror ());
  10993. return status;
  10994. }
  10995. _LT_EOF
  10996. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10997. (eval $ac_link) 2>&5
  10998. ac_status=$?
  10999. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11000. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11001. (./conftest; exit; ) >&5 2>/dev/null
  11002. lt_status=$?
  11003. case x$lt_status in
  11004. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11005. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11006. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11007. esac
  11008. else :
  11009. # compilation failed
  11010. lt_cv_dlopen_self_static=no
  11011. fi
  11012. fi
  11013. rm -fr conftest*
  11014. fi
  11015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11016. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11017. fi
  11018. CPPFLAGS=$save_CPPFLAGS
  11019. LDFLAGS=$save_LDFLAGS
  11020. LIBS=$save_LIBS
  11021. ;;
  11022. esac
  11023. case $lt_cv_dlopen_self in
  11024. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11025. *) enable_dlopen_self=unknown ;;
  11026. esac
  11027. case $lt_cv_dlopen_self_static in
  11028. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11029. *) enable_dlopen_self_static=unknown ;;
  11030. esac
  11031. fi
  11032. striplib=
  11033. old_striplib=
  11034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11035. printf %s "checking whether stripping libraries is possible... " >&6; }
  11036. if test -z "$STRIP"; then
  11037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11038. printf "%s\n" "no" >&6; }
  11039. else
  11040. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11041. old_striplib="$STRIP --strip-debug"
  11042. striplib="$STRIP --strip-unneeded"
  11043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11044. printf "%s\n" "yes" >&6; }
  11045. else
  11046. case $host_os in
  11047. darwin*)
  11048. # FIXME - insert some real tests, host_os isn't really good enough
  11049. striplib="$STRIP -x"
  11050. old_striplib="$STRIP -S"
  11051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11052. printf "%s\n" "yes" >&6; }
  11053. ;;
  11054. freebsd*)
  11055. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11056. old_striplib="$STRIP --strip-debug"
  11057. striplib="$STRIP --strip-unneeded"
  11058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11059. printf "%s\n" "yes" >&6; }
  11060. else
  11061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11062. printf "%s\n" "no" >&6; }
  11063. fi
  11064. ;;
  11065. *)
  11066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11067. printf "%s\n" "no" >&6; }
  11068. ;;
  11069. esac
  11070. fi
  11071. fi
  11072. # Report what library types will actually be built
  11073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11074. printf %s "checking if libtool supports shared libraries... " >&6; }
  11075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11076. printf "%s\n" "$can_build_shared" >&6; }
  11077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11078. printf %s "checking whether to build shared libraries... " >&6; }
  11079. test no = "$can_build_shared" && enable_shared=no
  11080. # On AIX, shared libraries and static libraries use the same namespace, and
  11081. # are all built from PIC.
  11082. case $host_os in
  11083. aix3*)
  11084. test yes = "$enable_shared" && enable_static=no
  11085. if test -n "$RANLIB"; then
  11086. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11087. postinstall_cmds='$RANLIB $lib'
  11088. fi
  11089. ;;
  11090. aix[4-9]*)
  11091. if test ia64 != "$host_cpu"; then
  11092. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11093. yes,aix,yes) ;; # shared object as lib.so file only
  11094. yes,svr4,*) ;; # shared object as lib.so archive member only
  11095. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11096. esac
  11097. fi
  11098. ;;
  11099. esac
  11100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11101. printf "%s\n" "$enable_shared" >&6; }
  11102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11103. printf %s "checking whether to build static libraries... " >&6; }
  11104. # Make sure either enable_shared or enable_static is yes.
  11105. test yes = "$enable_shared" || enable_static=yes
  11106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11107. printf "%s\n" "$enable_static" >&6; }
  11108. fi
  11109. ac_ext=c
  11110. ac_cpp='$CPP $CPPFLAGS'
  11111. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11112. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11113. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11114. CC=$lt_save_CC
  11115. ac_config_commands="$ac_config_commands libtool"
  11116. # Only expand once:
  11117. if test -n "$ac_tool_prefix"; then
  11118. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11119. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11121. printf %s "checking for $ac_word... " >&6; }
  11122. if test ${ac_cv_prog_RC+y}
  11123. then :
  11124. printf %s "(cached) " >&6
  11125. else $as_nop
  11126. if test -n "$RC"; then
  11127. ac_cv_prog_RC="$RC" # Let the user override the test.
  11128. else
  11129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11130. for as_dir in $PATH
  11131. do
  11132. IFS=$as_save_IFS
  11133. case $as_dir in #(((
  11134. '') as_dir=./ ;;
  11135. */) ;;
  11136. *) as_dir=$as_dir/ ;;
  11137. esac
  11138. for ac_exec_ext in '' $ac_executable_extensions; do
  11139. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11140. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11141. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11142. break 2
  11143. fi
  11144. done
  11145. done
  11146. IFS=$as_save_IFS
  11147. fi
  11148. fi
  11149. RC=$ac_cv_prog_RC
  11150. if test -n "$RC"; then
  11151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11152. printf "%s\n" "$RC" >&6; }
  11153. else
  11154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11155. printf "%s\n" "no" >&6; }
  11156. fi
  11157. fi
  11158. if test -z "$ac_cv_prog_RC"; then
  11159. ac_ct_RC=$RC
  11160. # Extract the first word of "windres", so it can be a program name with args.
  11161. set dummy windres; ac_word=$2
  11162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11163. printf %s "checking for $ac_word... " >&6; }
  11164. if test ${ac_cv_prog_ac_ct_RC+y}
  11165. then :
  11166. printf %s "(cached) " >&6
  11167. else $as_nop
  11168. if test -n "$ac_ct_RC"; then
  11169. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11170. else
  11171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11172. for as_dir in $PATH
  11173. do
  11174. IFS=$as_save_IFS
  11175. case $as_dir in #(((
  11176. '') as_dir=./ ;;
  11177. */) ;;
  11178. *) as_dir=$as_dir/ ;;
  11179. esac
  11180. for ac_exec_ext in '' $ac_executable_extensions; do
  11181. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11182. ac_cv_prog_ac_ct_RC="windres"
  11183. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11184. break 2
  11185. fi
  11186. done
  11187. done
  11188. IFS=$as_save_IFS
  11189. fi
  11190. fi
  11191. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11192. if test -n "$ac_ct_RC"; then
  11193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11194. printf "%s\n" "$ac_ct_RC" >&6; }
  11195. else
  11196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11197. printf "%s\n" "no" >&6; }
  11198. fi
  11199. if test "x$ac_ct_RC" = x; then
  11200. RC=""
  11201. else
  11202. case $cross_compiling:$ac_tool_warned in
  11203. yes:)
  11204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11205. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11206. ac_tool_warned=yes ;;
  11207. esac
  11208. RC=$ac_ct_RC
  11209. fi
  11210. else
  11211. RC="$ac_cv_prog_RC"
  11212. fi
  11213. # Source file extension for RC test sources.
  11214. ac_ext=rc
  11215. # Object file extension for compiled RC test sources.
  11216. objext=o
  11217. objext_RC=$objext
  11218. # Code to be used in simple compile tests
  11219. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11220. # Code to be used in simple link tests
  11221. lt_simple_link_test_code=$lt_simple_compile_test_code
  11222. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11223. # If no C compiler was specified, use CC.
  11224. LTCC=${LTCC-"$CC"}
  11225. # If no C compiler flags were specified, use CFLAGS.
  11226. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11227. # Allow CC to be a program name with arguments.
  11228. compiler=$CC
  11229. # save warnings/boilerplate of simple test code
  11230. ac_outfile=conftest.$ac_objext
  11231. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11232. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11233. _lt_compiler_boilerplate=`cat conftest.err`
  11234. $RM conftest*
  11235. ac_outfile=conftest.$ac_objext
  11236. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11237. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11238. _lt_linker_boilerplate=`cat conftest.err`
  11239. $RM -r conftest*
  11240. # Allow CC to be a program name with arguments.
  11241. lt_save_CC=$CC
  11242. lt_save_CFLAGS=$CFLAGS
  11243. lt_save_GCC=$GCC
  11244. GCC=
  11245. CC=${RC-"windres"}
  11246. CFLAGS=
  11247. compiler=$CC
  11248. compiler_RC=$CC
  11249. func_cc_basename $compiler
  11250. cc_basename=$func_cc_basename_result
  11251. lt_cv_prog_compiler_c_o_RC=yes
  11252. if test -n "$compiler"; then
  11253. :
  11254. fi
  11255. GCC=$lt_save_GCC
  11256. ac_ext=c
  11257. ac_cpp='$CPP $CPPFLAGS'
  11258. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11259. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11260. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11261. CC=$lt_save_CC
  11262. CFLAGS=$lt_save_CFLAGS
  11263. # For historical reasons, the library name redundantly includes the major
  11264. # version twice: libSDL2-2.0.so.0.
  11265. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11266. LT_RELEASE=2.0
  11267. # Increment this if there is an incompatible change - but if that happens,
  11268. # we should rename the library from SDL2 to SDL3, at which point this would
  11269. # reset to 0 anyway.
  11270. LT_MAJOR=0
  11271. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11272. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11273. LT_REVISION=$SDL_INTERFACE_AGE
  11274. for ac_prog in gawk mawk nawk awk
  11275. do
  11276. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11277. set dummy $ac_prog; ac_word=$2
  11278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11279. printf %s "checking for $ac_word... " >&6; }
  11280. if test ${ac_cv_prog_AWK+y}
  11281. then :
  11282. printf %s "(cached) " >&6
  11283. else $as_nop
  11284. if test -n "$AWK"; then
  11285. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11286. else
  11287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11288. for as_dir in $PATH
  11289. do
  11290. IFS=$as_save_IFS
  11291. case $as_dir in #(((
  11292. '') as_dir=./ ;;
  11293. */) ;;
  11294. *) as_dir=$as_dir/ ;;
  11295. esac
  11296. for ac_exec_ext in '' $ac_executable_extensions; do
  11297. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11298. ac_cv_prog_AWK="$ac_prog"
  11299. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11300. break 2
  11301. fi
  11302. done
  11303. done
  11304. IFS=$as_save_IFS
  11305. fi
  11306. fi
  11307. AWK=$ac_cv_prog_AWK
  11308. if test -n "$AWK"; then
  11309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11310. printf "%s\n" "$AWK" >&6; }
  11311. else
  11312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11313. printf "%s\n" "no" >&6; }
  11314. fi
  11315. test -n "$AWK" && break
  11316. done
  11317. ac_ext=c
  11318. ac_cpp='$CPP $CPPFLAGS'
  11319. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11320. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11321. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11322. if test -n "$ac_tool_prefix"; then
  11323. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11324. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11326. printf %s "checking for $ac_word... " >&6; }
  11327. if test ${ac_cv_prog_CC+y}
  11328. then :
  11329. printf %s "(cached) " >&6
  11330. else $as_nop
  11331. if test -n "$CC"; then
  11332. ac_cv_prog_CC="$CC" # Let the user override the test.
  11333. else
  11334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11335. for as_dir in $PATH
  11336. do
  11337. IFS=$as_save_IFS
  11338. case $as_dir in #(((
  11339. '') as_dir=./ ;;
  11340. */) ;;
  11341. *) as_dir=$as_dir/ ;;
  11342. esac
  11343. for ac_exec_ext in '' $ac_executable_extensions; do
  11344. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11345. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11346. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11347. break 2
  11348. fi
  11349. done
  11350. done
  11351. IFS=$as_save_IFS
  11352. fi
  11353. fi
  11354. CC=$ac_cv_prog_CC
  11355. if test -n "$CC"; then
  11356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11357. printf "%s\n" "$CC" >&6; }
  11358. else
  11359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11360. printf "%s\n" "no" >&6; }
  11361. fi
  11362. fi
  11363. if test -z "$ac_cv_prog_CC"; then
  11364. ac_ct_CC=$CC
  11365. # Extract the first word of "gcc", so it can be a program name with args.
  11366. set dummy gcc; ac_word=$2
  11367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11368. printf %s "checking for $ac_word... " >&6; }
  11369. if test ${ac_cv_prog_ac_ct_CC+y}
  11370. then :
  11371. printf %s "(cached) " >&6
  11372. else $as_nop
  11373. if test -n "$ac_ct_CC"; then
  11374. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11375. else
  11376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11377. for as_dir in $PATH
  11378. do
  11379. IFS=$as_save_IFS
  11380. case $as_dir in #(((
  11381. '') as_dir=./ ;;
  11382. */) ;;
  11383. *) as_dir=$as_dir/ ;;
  11384. esac
  11385. for ac_exec_ext in '' $ac_executable_extensions; do
  11386. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11387. ac_cv_prog_ac_ct_CC="gcc"
  11388. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11389. break 2
  11390. fi
  11391. done
  11392. done
  11393. IFS=$as_save_IFS
  11394. fi
  11395. fi
  11396. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11397. if test -n "$ac_ct_CC"; then
  11398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11399. printf "%s\n" "$ac_ct_CC" >&6; }
  11400. else
  11401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11402. printf "%s\n" "no" >&6; }
  11403. fi
  11404. if test "x$ac_ct_CC" = x; then
  11405. CC=""
  11406. else
  11407. case $cross_compiling:$ac_tool_warned in
  11408. yes:)
  11409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11410. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11411. ac_tool_warned=yes ;;
  11412. esac
  11413. CC=$ac_ct_CC
  11414. fi
  11415. else
  11416. CC="$ac_cv_prog_CC"
  11417. fi
  11418. if test -z "$CC"; then
  11419. if test -n "$ac_tool_prefix"; then
  11420. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11421. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11423. printf %s "checking for $ac_word... " >&6; }
  11424. if test ${ac_cv_prog_CC+y}
  11425. then :
  11426. printf %s "(cached) " >&6
  11427. else $as_nop
  11428. if test -n "$CC"; then
  11429. ac_cv_prog_CC="$CC" # Let the user override the test.
  11430. else
  11431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11432. for as_dir in $PATH
  11433. do
  11434. IFS=$as_save_IFS
  11435. case $as_dir in #(((
  11436. '') as_dir=./ ;;
  11437. */) ;;
  11438. *) as_dir=$as_dir/ ;;
  11439. esac
  11440. for ac_exec_ext in '' $ac_executable_extensions; do
  11441. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11442. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11443. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11444. break 2
  11445. fi
  11446. done
  11447. done
  11448. IFS=$as_save_IFS
  11449. fi
  11450. fi
  11451. CC=$ac_cv_prog_CC
  11452. if test -n "$CC"; then
  11453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11454. printf "%s\n" "$CC" >&6; }
  11455. else
  11456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11457. printf "%s\n" "no" >&6; }
  11458. fi
  11459. fi
  11460. fi
  11461. if test -z "$CC"; then
  11462. # Extract the first word of "cc", so it can be a program name with args.
  11463. set dummy cc; ac_word=$2
  11464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11465. printf %s "checking for $ac_word... " >&6; }
  11466. if test ${ac_cv_prog_CC+y}
  11467. then :
  11468. printf %s "(cached) " >&6
  11469. else $as_nop
  11470. if test -n "$CC"; then
  11471. ac_cv_prog_CC="$CC" # Let the user override the test.
  11472. else
  11473. ac_prog_rejected=no
  11474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11475. for as_dir in $PATH
  11476. do
  11477. IFS=$as_save_IFS
  11478. case $as_dir in #(((
  11479. '') as_dir=./ ;;
  11480. */) ;;
  11481. *) as_dir=$as_dir/ ;;
  11482. esac
  11483. for ac_exec_ext in '' $ac_executable_extensions; do
  11484. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11485. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11486. ac_prog_rejected=yes
  11487. continue
  11488. fi
  11489. ac_cv_prog_CC="cc"
  11490. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11491. break 2
  11492. fi
  11493. done
  11494. done
  11495. IFS=$as_save_IFS
  11496. if test $ac_prog_rejected = yes; then
  11497. # We found a bogon in the path, so make sure we never use it.
  11498. set dummy $ac_cv_prog_CC
  11499. shift
  11500. if test $# != 0; then
  11501. # We chose a different compiler from the bogus one.
  11502. # However, it has the same basename, so the bogon will be chosen
  11503. # first if we set CC to just the basename; use the full file name.
  11504. shift
  11505. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11506. fi
  11507. fi
  11508. fi
  11509. fi
  11510. CC=$ac_cv_prog_CC
  11511. if test -n "$CC"; then
  11512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11513. printf "%s\n" "$CC" >&6; }
  11514. else
  11515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11516. printf "%s\n" "no" >&6; }
  11517. fi
  11518. fi
  11519. if test -z "$CC"; then
  11520. if test -n "$ac_tool_prefix"; then
  11521. for ac_prog in cl.exe
  11522. do
  11523. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11524. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11526. printf %s "checking for $ac_word... " >&6; }
  11527. if test ${ac_cv_prog_CC+y}
  11528. then :
  11529. printf %s "(cached) " >&6
  11530. else $as_nop
  11531. if test -n "$CC"; then
  11532. ac_cv_prog_CC="$CC" # Let the user override the test.
  11533. else
  11534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11535. for as_dir in $PATH
  11536. do
  11537. IFS=$as_save_IFS
  11538. case $as_dir in #(((
  11539. '') as_dir=./ ;;
  11540. */) ;;
  11541. *) as_dir=$as_dir/ ;;
  11542. esac
  11543. for ac_exec_ext in '' $ac_executable_extensions; do
  11544. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11545. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11546. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11547. break 2
  11548. fi
  11549. done
  11550. done
  11551. IFS=$as_save_IFS
  11552. fi
  11553. fi
  11554. CC=$ac_cv_prog_CC
  11555. if test -n "$CC"; then
  11556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11557. printf "%s\n" "$CC" >&6; }
  11558. else
  11559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11560. printf "%s\n" "no" >&6; }
  11561. fi
  11562. test -n "$CC" && break
  11563. done
  11564. fi
  11565. if test -z "$CC"; then
  11566. ac_ct_CC=$CC
  11567. for ac_prog in cl.exe
  11568. do
  11569. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11570. set dummy $ac_prog; ac_word=$2
  11571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11572. printf %s "checking for $ac_word... " >&6; }
  11573. if test ${ac_cv_prog_ac_ct_CC+y}
  11574. then :
  11575. printf %s "(cached) " >&6
  11576. else $as_nop
  11577. if test -n "$ac_ct_CC"; then
  11578. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11579. else
  11580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11581. for as_dir in $PATH
  11582. do
  11583. IFS=$as_save_IFS
  11584. case $as_dir in #(((
  11585. '') as_dir=./ ;;
  11586. */) ;;
  11587. *) as_dir=$as_dir/ ;;
  11588. esac
  11589. for ac_exec_ext in '' $ac_executable_extensions; do
  11590. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11591. ac_cv_prog_ac_ct_CC="$ac_prog"
  11592. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11593. break 2
  11594. fi
  11595. done
  11596. done
  11597. IFS=$as_save_IFS
  11598. fi
  11599. fi
  11600. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11601. if test -n "$ac_ct_CC"; then
  11602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11603. printf "%s\n" "$ac_ct_CC" >&6; }
  11604. else
  11605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11606. printf "%s\n" "no" >&6; }
  11607. fi
  11608. test -n "$ac_ct_CC" && break
  11609. done
  11610. if test "x$ac_ct_CC" = x; then
  11611. CC=""
  11612. else
  11613. case $cross_compiling:$ac_tool_warned in
  11614. yes:)
  11615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11616. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11617. ac_tool_warned=yes ;;
  11618. esac
  11619. CC=$ac_ct_CC
  11620. fi
  11621. fi
  11622. fi
  11623. if test -z "$CC"; then
  11624. if test -n "$ac_tool_prefix"; then
  11625. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11626. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11628. printf %s "checking for $ac_word... " >&6; }
  11629. if test ${ac_cv_prog_CC+y}
  11630. then :
  11631. printf %s "(cached) " >&6
  11632. else $as_nop
  11633. if test -n "$CC"; then
  11634. ac_cv_prog_CC="$CC" # Let the user override the test.
  11635. else
  11636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11637. for as_dir in $PATH
  11638. do
  11639. IFS=$as_save_IFS
  11640. case $as_dir in #(((
  11641. '') as_dir=./ ;;
  11642. */) ;;
  11643. *) as_dir=$as_dir/ ;;
  11644. esac
  11645. for ac_exec_ext in '' $ac_executable_extensions; do
  11646. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11647. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11648. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11649. break 2
  11650. fi
  11651. done
  11652. done
  11653. IFS=$as_save_IFS
  11654. fi
  11655. fi
  11656. CC=$ac_cv_prog_CC
  11657. if test -n "$CC"; then
  11658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11659. printf "%s\n" "$CC" >&6; }
  11660. else
  11661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11662. printf "%s\n" "no" >&6; }
  11663. fi
  11664. fi
  11665. if test -z "$ac_cv_prog_CC"; then
  11666. ac_ct_CC=$CC
  11667. # Extract the first word of "clang", so it can be a program name with args.
  11668. set dummy clang; ac_word=$2
  11669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11670. printf %s "checking for $ac_word... " >&6; }
  11671. if test ${ac_cv_prog_ac_ct_CC+y}
  11672. then :
  11673. printf %s "(cached) " >&6
  11674. else $as_nop
  11675. if test -n "$ac_ct_CC"; then
  11676. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11677. else
  11678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11679. for as_dir in $PATH
  11680. do
  11681. IFS=$as_save_IFS
  11682. case $as_dir in #(((
  11683. '') as_dir=./ ;;
  11684. */) ;;
  11685. *) as_dir=$as_dir/ ;;
  11686. esac
  11687. for ac_exec_ext in '' $ac_executable_extensions; do
  11688. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11689. ac_cv_prog_ac_ct_CC="clang"
  11690. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11691. break 2
  11692. fi
  11693. done
  11694. done
  11695. IFS=$as_save_IFS
  11696. fi
  11697. fi
  11698. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11699. if test -n "$ac_ct_CC"; then
  11700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11701. printf "%s\n" "$ac_ct_CC" >&6; }
  11702. else
  11703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11704. printf "%s\n" "no" >&6; }
  11705. fi
  11706. if test "x$ac_ct_CC" = x; then
  11707. CC=""
  11708. else
  11709. case $cross_compiling:$ac_tool_warned in
  11710. yes:)
  11711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11712. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11713. ac_tool_warned=yes ;;
  11714. esac
  11715. CC=$ac_ct_CC
  11716. fi
  11717. else
  11718. CC="$ac_cv_prog_CC"
  11719. fi
  11720. fi
  11721. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11722. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11723. as_fn_error $? "no acceptable C compiler found in \$PATH
  11724. See \`config.log' for more details" "$LINENO" 5; }
  11725. # Provide some information about the compiler.
  11726. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11727. set X $ac_compile
  11728. ac_compiler=$2
  11729. for ac_option in --version -v -V -qversion -version; do
  11730. { { ac_try="$ac_compiler $ac_option >&5"
  11731. case "(($ac_try" in
  11732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11733. *) ac_try_echo=$ac_try;;
  11734. esac
  11735. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11736. printf "%s\n" "$ac_try_echo"; } >&5
  11737. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11738. ac_status=$?
  11739. if test -s conftest.err; then
  11740. sed '10a\
  11741. ... rest of stderr output deleted ...
  11742. 10q' conftest.err >conftest.er1
  11743. cat conftest.er1 >&5
  11744. fi
  11745. rm -f conftest.er1 conftest.err
  11746. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11747. test $ac_status = 0; }
  11748. done
  11749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11750. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11751. if test ${ac_cv_c_compiler_gnu+y}
  11752. then :
  11753. printf %s "(cached) " >&6
  11754. else $as_nop
  11755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11756. /* end confdefs.h. */
  11757. int
  11758. main (void)
  11759. {
  11760. #ifndef __GNUC__
  11761. choke me
  11762. #endif
  11763. ;
  11764. return 0;
  11765. }
  11766. _ACEOF
  11767. if ac_fn_c_try_compile "$LINENO"
  11768. then :
  11769. ac_compiler_gnu=yes
  11770. else $as_nop
  11771. ac_compiler_gnu=no
  11772. fi
  11773. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11774. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11775. fi
  11776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11777. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11778. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11779. if test $ac_compiler_gnu = yes; then
  11780. GCC=yes
  11781. else
  11782. GCC=
  11783. fi
  11784. ac_test_CFLAGS=${CFLAGS+y}
  11785. ac_save_CFLAGS=$CFLAGS
  11786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11787. printf %s "checking whether $CC accepts -g... " >&6; }
  11788. if test ${ac_cv_prog_cc_g+y}
  11789. then :
  11790. printf %s "(cached) " >&6
  11791. else $as_nop
  11792. ac_save_c_werror_flag=$ac_c_werror_flag
  11793. ac_c_werror_flag=yes
  11794. ac_cv_prog_cc_g=no
  11795. CFLAGS="-g"
  11796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11797. /* end confdefs.h. */
  11798. int
  11799. main (void)
  11800. {
  11801. ;
  11802. return 0;
  11803. }
  11804. _ACEOF
  11805. if ac_fn_c_try_compile "$LINENO"
  11806. then :
  11807. ac_cv_prog_cc_g=yes
  11808. else $as_nop
  11809. CFLAGS=""
  11810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11811. /* end confdefs.h. */
  11812. int
  11813. main (void)
  11814. {
  11815. ;
  11816. return 0;
  11817. }
  11818. _ACEOF
  11819. if ac_fn_c_try_compile "$LINENO"
  11820. then :
  11821. else $as_nop
  11822. ac_c_werror_flag=$ac_save_c_werror_flag
  11823. CFLAGS="-g"
  11824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11825. /* end confdefs.h. */
  11826. int
  11827. main (void)
  11828. {
  11829. ;
  11830. return 0;
  11831. }
  11832. _ACEOF
  11833. if ac_fn_c_try_compile "$LINENO"
  11834. then :
  11835. ac_cv_prog_cc_g=yes
  11836. fi
  11837. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11838. fi
  11839. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11840. fi
  11841. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11842. ac_c_werror_flag=$ac_save_c_werror_flag
  11843. fi
  11844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11845. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11846. if test $ac_test_CFLAGS; then
  11847. CFLAGS=$ac_save_CFLAGS
  11848. elif test $ac_cv_prog_cc_g = yes; then
  11849. if test "$GCC" = yes; then
  11850. CFLAGS="-g -O2"
  11851. else
  11852. CFLAGS="-g"
  11853. fi
  11854. else
  11855. if test "$GCC" = yes; then
  11856. CFLAGS="-O2"
  11857. else
  11858. CFLAGS=
  11859. fi
  11860. fi
  11861. ac_prog_cc_stdc=no
  11862. if test x$ac_prog_cc_stdc = xno
  11863. then :
  11864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11865. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11866. if test ${ac_cv_prog_cc_c11+y}
  11867. then :
  11868. printf %s "(cached) " >&6
  11869. else $as_nop
  11870. ac_cv_prog_cc_c11=no
  11871. ac_save_CC=$CC
  11872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11873. /* end confdefs.h. */
  11874. $ac_c_conftest_c11_program
  11875. _ACEOF
  11876. for ac_arg in '' -std=gnu11
  11877. do
  11878. CC="$ac_save_CC $ac_arg"
  11879. if ac_fn_c_try_compile "$LINENO"
  11880. then :
  11881. ac_cv_prog_cc_c11=$ac_arg
  11882. fi
  11883. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11884. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11885. done
  11886. rm -f conftest.$ac_ext
  11887. CC=$ac_save_CC
  11888. fi
  11889. if test "x$ac_cv_prog_cc_c11" = xno
  11890. then :
  11891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11892. printf "%s\n" "unsupported" >&6; }
  11893. else $as_nop
  11894. if test "x$ac_cv_prog_cc_c11" = x
  11895. then :
  11896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11897. printf "%s\n" "none needed" >&6; }
  11898. else $as_nop
  11899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11900. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11901. CC="$CC $ac_cv_prog_cc_c11"
  11902. fi
  11903. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11904. ac_prog_cc_stdc=c11
  11905. fi
  11906. fi
  11907. if test x$ac_prog_cc_stdc = xno
  11908. then :
  11909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11910. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11911. if test ${ac_cv_prog_cc_c99+y}
  11912. then :
  11913. printf %s "(cached) " >&6
  11914. else $as_nop
  11915. ac_cv_prog_cc_c99=no
  11916. ac_save_CC=$CC
  11917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11918. /* end confdefs.h. */
  11919. $ac_c_conftest_c99_program
  11920. _ACEOF
  11921. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11922. do
  11923. CC="$ac_save_CC $ac_arg"
  11924. if ac_fn_c_try_compile "$LINENO"
  11925. then :
  11926. ac_cv_prog_cc_c99=$ac_arg
  11927. fi
  11928. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11929. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11930. done
  11931. rm -f conftest.$ac_ext
  11932. CC=$ac_save_CC
  11933. fi
  11934. if test "x$ac_cv_prog_cc_c99" = xno
  11935. then :
  11936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11937. printf "%s\n" "unsupported" >&6; }
  11938. else $as_nop
  11939. if test "x$ac_cv_prog_cc_c99" = x
  11940. then :
  11941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11942. printf "%s\n" "none needed" >&6; }
  11943. else $as_nop
  11944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11945. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11946. CC="$CC $ac_cv_prog_cc_c99"
  11947. fi
  11948. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11949. ac_prog_cc_stdc=c99
  11950. fi
  11951. fi
  11952. if test x$ac_prog_cc_stdc = xno
  11953. then :
  11954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11955. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11956. if test ${ac_cv_prog_cc_c89+y}
  11957. then :
  11958. printf %s "(cached) " >&6
  11959. else $as_nop
  11960. ac_cv_prog_cc_c89=no
  11961. ac_save_CC=$CC
  11962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11963. /* end confdefs.h. */
  11964. $ac_c_conftest_c89_program
  11965. _ACEOF
  11966. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11967. do
  11968. CC="$ac_save_CC $ac_arg"
  11969. if ac_fn_c_try_compile "$LINENO"
  11970. then :
  11971. ac_cv_prog_cc_c89=$ac_arg
  11972. fi
  11973. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11974. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11975. done
  11976. rm -f conftest.$ac_ext
  11977. CC=$ac_save_CC
  11978. fi
  11979. if test "x$ac_cv_prog_cc_c89" = xno
  11980. then :
  11981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11982. printf "%s\n" "unsupported" >&6; }
  11983. else $as_nop
  11984. if test "x$ac_cv_prog_cc_c89" = x
  11985. then :
  11986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11987. printf "%s\n" "none needed" >&6; }
  11988. else $as_nop
  11989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11990. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  11991. CC="$CC $ac_cv_prog_cc_c89"
  11992. fi
  11993. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  11994. ac_prog_cc_stdc=c89
  11995. fi
  11996. fi
  11997. ac_ext=c
  11998. ac_cpp='$CPP $CPPFLAGS'
  11999. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12000. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12001. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12002. ac_ext=cpp
  12003. ac_cpp='$CXXCPP $CPPFLAGS'
  12004. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12005. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12006. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12007. if test -z "$CXX"; then
  12008. if test -n "$CCC"; then
  12009. CXX=$CCC
  12010. else
  12011. if test -n "$ac_tool_prefix"; then
  12012. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12013. do
  12014. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12015. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12017. printf %s "checking for $ac_word... " >&6; }
  12018. if test ${ac_cv_prog_CXX+y}
  12019. then :
  12020. printf %s "(cached) " >&6
  12021. else $as_nop
  12022. if test -n "$CXX"; then
  12023. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12024. else
  12025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12026. for as_dir in $PATH
  12027. do
  12028. IFS=$as_save_IFS
  12029. case $as_dir in #(((
  12030. '') as_dir=./ ;;
  12031. */) ;;
  12032. *) as_dir=$as_dir/ ;;
  12033. esac
  12034. for ac_exec_ext in '' $ac_executable_extensions; do
  12035. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12036. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12037. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12038. break 2
  12039. fi
  12040. done
  12041. done
  12042. IFS=$as_save_IFS
  12043. fi
  12044. fi
  12045. CXX=$ac_cv_prog_CXX
  12046. if test -n "$CXX"; then
  12047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12048. printf "%s\n" "$CXX" >&6; }
  12049. else
  12050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12051. printf "%s\n" "no" >&6; }
  12052. fi
  12053. test -n "$CXX" && break
  12054. done
  12055. fi
  12056. if test -z "$CXX"; then
  12057. ac_ct_CXX=$CXX
  12058. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12059. do
  12060. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12061. set dummy $ac_prog; ac_word=$2
  12062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12063. printf %s "checking for $ac_word... " >&6; }
  12064. if test ${ac_cv_prog_ac_ct_CXX+y}
  12065. then :
  12066. printf %s "(cached) " >&6
  12067. else $as_nop
  12068. if test -n "$ac_ct_CXX"; then
  12069. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12070. else
  12071. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12072. for as_dir in $PATH
  12073. do
  12074. IFS=$as_save_IFS
  12075. case $as_dir in #(((
  12076. '') as_dir=./ ;;
  12077. */) ;;
  12078. *) as_dir=$as_dir/ ;;
  12079. esac
  12080. for ac_exec_ext in '' $ac_executable_extensions; do
  12081. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12082. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12083. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12084. break 2
  12085. fi
  12086. done
  12087. done
  12088. IFS=$as_save_IFS
  12089. fi
  12090. fi
  12091. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12092. if test -n "$ac_ct_CXX"; then
  12093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12094. printf "%s\n" "$ac_ct_CXX" >&6; }
  12095. else
  12096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12097. printf "%s\n" "no" >&6; }
  12098. fi
  12099. test -n "$ac_ct_CXX" && break
  12100. done
  12101. if test "x$ac_ct_CXX" = x; then
  12102. CXX="g++"
  12103. else
  12104. case $cross_compiling:$ac_tool_warned in
  12105. yes:)
  12106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12107. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12108. ac_tool_warned=yes ;;
  12109. esac
  12110. CXX=$ac_ct_CXX
  12111. fi
  12112. fi
  12113. fi
  12114. fi
  12115. # Provide some information about the compiler.
  12116. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12117. set X $ac_compile
  12118. ac_compiler=$2
  12119. for ac_option in --version -v -V -qversion; do
  12120. { { ac_try="$ac_compiler $ac_option >&5"
  12121. case "(($ac_try" in
  12122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12123. *) ac_try_echo=$ac_try;;
  12124. esac
  12125. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12126. printf "%s\n" "$ac_try_echo"; } >&5
  12127. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12128. ac_status=$?
  12129. if test -s conftest.err; then
  12130. sed '10a\
  12131. ... rest of stderr output deleted ...
  12132. 10q' conftest.err >conftest.er1
  12133. cat conftest.er1 >&5
  12134. fi
  12135. rm -f conftest.er1 conftest.err
  12136. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12137. test $ac_status = 0; }
  12138. done
  12139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12140. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12141. if test ${ac_cv_cxx_compiler_gnu+y}
  12142. then :
  12143. printf %s "(cached) " >&6
  12144. else $as_nop
  12145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12146. /* end confdefs.h. */
  12147. int
  12148. main (void)
  12149. {
  12150. #ifndef __GNUC__
  12151. choke me
  12152. #endif
  12153. ;
  12154. return 0;
  12155. }
  12156. _ACEOF
  12157. if ac_fn_cxx_try_compile "$LINENO"
  12158. then :
  12159. ac_compiler_gnu=yes
  12160. else $as_nop
  12161. ac_compiler_gnu=no
  12162. fi
  12163. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12164. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12165. fi
  12166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12167. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12168. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12169. if test $ac_compiler_gnu = yes; then
  12170. GXX=yes
  12171. else
  12172. GXX=
  12173. fi
  12174. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12175. ac_save_CXXFLAGS=$CXXFLAGS
  12176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12177. printf %s "checking whether $CXX accepts -g... " >&6; }
  12178. if test ${ac_cv_prog_cxx_g+y}
  12179. then :
  12180. printf %s "(cached) " >&6
  12181. else $as_nop
  12182. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12183. ac_cxx_werror_flag=yes
  12184. ac_cv_prog_cxx_g=no
  12185. CXXFLAGS="-g"
  12186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12187. /* end confdefs.h. */
  12188. int
  12189. main (void)
  12190. {
  12191. ;
  12192. return 0;
  12193. }
  12194. _ACEOF
  12195. if ac_fn_cxx_try_compile "$LINENO"
  12196. then :
  12197. ac_cv_prog_cxx_g=yes
  12198. else $as_nop
  12199. CXXFLAGS=""
  12200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12201. /* end confdefs.h. */
  12202. int
  12203. main (void)
  12204. {
  12205. ;
  12206. return 0;
  12207. }
  12208. _ACEOF
  12209. if ac_fn_cxx_try_compile "$LINENO"
  12210. then :
  12211. else $as_nop
  12212. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12213. CXXFLAGS="-g"
  12214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12215. /* end confdefs.h. */
  12216. int
  12217. main (void)
  12218. {
  12219. ;
  12220. return 0;
  12221. }
  12222. _ACEOF
  12223. if ac_fn_cxx_try_compile "$LINENO"
  12224. then :
  12225. ac_cv_prog_cxx_g=yes
  12226. fi
  12227. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12228. fi
  12229. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12230. fi
  12231. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12232. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12233. fi
  12234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12235. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12236. if test $ac_test_CXXFLAGS; then
  12237. CXXFLAGS=$ac_save_CXXFLAGS
  12238. elif test $ac_cv_prog_cxx_g = yes; then
  12239. if test "$GXX" = yes; then
  12240. CXXFLAGS="-g -O2"
  12241. else
  12242. CXXFLAGS="-g"
  12243. fi
  12244. else
  12245. if test "$GXX" = yes; then
  12246. CXXFLAGS="-O2"
  12247. else
  12248. CXXFLAGS=
  12249. fi
  12250. fi
  12251. ac_prog_cxx_stdcxx=no
  12252. if test x$ac_prog_cxx_stdcxx = xno
  12253. then :
  12254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12255. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12256. if test ${ac_cv_prog_cxx_11+y}
  12257. then :
  12258. printf %s "(cached) " >&6
  12259. else $as_nop
  12260. ac_cv_prog_cxx_11=no
  12261. ac_save_CXX=$CXX
  12262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12263. /* end confdefs.h. */
  12264. $ac_cxx_conftest_cxx11_program
  12265. _ACEOF
  12266. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12267. do
  12268. CXX="$ac_save_CXX $ac_arg"
  12269. if ac_fn_cxx_try_compile "$LINENO"
  12270. then :
  12271. ac_cv_prog_cxx_cxx11=$ac_arg
  12272. fi
  12273. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12274. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12275. done
  12276. rm -f conftest.$ac_ext
  12277. CXX=$ac_save_CXX
  12278. fi
  12279. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12280. then :
  12281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12282. printf "%s\n" "unsupported" >&6; }
  12283. else $as_nop
  12284. if test "x$ac_cv_prog_cxx_cxx11" = x
  12285. then :
  12286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12287. printf "%s\n" "none needed" >&6; }
  12288. else $as_nop
  12289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12290. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12291. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12292. fi
  12293. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12294. ac_prog_cxx_stdcxx=cxx11
  12295. fi
  12296. fi
  12297. if test x$ac_prog_cxx_stdcxx = xno
  12298. then :
  12299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12300. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12301. if test ${ac_cv_prog_cxx_98+y}
  12302. then :
  12303. printf %s "(cached) " >&6
  12304. else $as_nop
  12305. ac_cv_prog_cxx_98=no
  12306. ac_save_CXX=$CXX
  12307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12308. /* end confdefs.h. */
  12309. $ac_cxx_conftest_cxx98_program
  12310. _ACEOF
  12311. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12312. do
  12313. CXX="$ac_save_CXX $ac_arg"
  12314. if ac_fn_cxx_try_compile "$LINENO"
  12315. then :
  12316. ac_cv_prog_cxx_cxx98=$ac_arg
  12317. fi
  12318. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12319. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12320. done
  12321. rm -f conftest.$ac_ext
  12322. CXX=$ac_save_CXX
  12323. fi
  12324. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12325. then :
  12326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12327. printf "%s\n" "unsupported" >&6; }
  12328. else $as_nop
  12329. if test "x$ac_cv_prog_cxx_cxx98" = x
  12330. then :
  12331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12332. printf "%s\n" "none needed" >&6; }
  12333. else $as_nop
  12334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12335. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12336. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12337. fi
  12338. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12339. ac_prog_cxx_stdcxx=cxx98
  12340. fi
  12341. fi
  12342. ac_ext=c
  12343. ac_cpp='$CPP $CPPFLAGS'
  12344. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12345. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12346. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12347. func_stripname_cnf ()
  12348. {
  12349. case $2 in
  12350. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12351. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12352. esac
  12353. } # func_stripname_cnf
  12354. if test -n "$CXX" && ( test no != "$CXX" &&
  12355. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12356. (test g++ != "$CXX"))); then
  12357. ac_ext=cpp
  12358. ac_cpp='$CXXCPP $CPPFLAGS'
  12359. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12360. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12361. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12363. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12364. if test -z "$CXXCPP"; then
  12365. if test ${ac_cv_prog_CXXCPP+y}
  12366. then :
  12367. printf %s "(cached) " >&6
  12368. else $as_nop
  12369. # Double quotes because $CXX needs to be expanded
  12370. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12371. do
  12372. ac_preproc_ok=false
  12373. for ac_cxx_preproc_warn_flag in '' yes
  12374. do
  12375. # Use a header file that comes with gcc, so configuring glibc
  12376. # with a fresh cross-compiler works.
  12377. # On the NeXT, cc -E runs the code through the compiler's parser,
  12378. # not just through cpp. "Syntax error" is here to catch this case.
  12379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12380. /* end confdefs.h. */
  12381. #include <limits.h>
  12382. Syntax error
  12383. _ACEOF
  12384. if ac_fn_cxx_try_cpp "$LINENO"
  12385. then :
  12386. else $as_nop
  12387. # Broken: fails on valid input.
  12388. continue
  12389. fi
  12390. rm -f conftest.err conftest.i conftest.$ac_ext
  12391. # OK, works on sane cases. Now check whether nonexistent headers
  12392. # can be detected and how.
  12393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12394. /* end confdefs.h. */
  12395. #include <ac_nonexistent.h>
  12396. _ACEOF
  12397. if ac_fn_cxx_try_cpp "$LINENO"
  12398. then :
  12399. # Broken: success on invalid input.
  12400. continue
  12401. else $as_nop
  12402. # Passes both tests.
  12403. ac_preproc_ok=:
  12404. break
  12405. fi
  12406. rm -f conftest.err conftest.i conftest.$ac_ext
  12407. done
  12408. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12409. rm -f conftest.i conftest.err conftest.$ac_ext
  12410. if $ac_preproc_ok
  12411. then :
  12412. break
  12413. fi
  12414. done
  12415. ac_cv_prog_CXXCPP=$CXXCPP
  12416. fi
  12417. CXXCPP=$ac_cv_prog_CXXCPP
  12418. else
  12419. ac_cv_prog_CXXCPP=$CXXCPP
  12420. fi
  12421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12422. printf "%s\n" "$CXXCPP" >&6; }
  12423. ac_preproc_ok=false
  12424. for ac_cxx_preproc_warn_flag in '' yes
  12425. do
  12426. # Use a header file that comes with gcc, so configuring glibc
  12427. # with a fresh cross-compiler works.
  12428. # On the NeXT, cc -E runs the code through the compiler's parser,
  12429. # not just through cpp. "Syntax error" is here to catch this case.
  12430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12431. /* end confdefs.h. */
  12432. #include <limits.h>
  12433. Syntax error
  12434. _ACEOF
  12435. if ac_fn_cxx_try_cpp "$LINENO"
  12436. then :
  12437. else $as_nop
  12438. # Broken: fails on valid input.
  12439. continue
  12440. fi
  12441. rm -f conftest.err conftest.i conftest.$ac_ext
  12442. # OK, works on sane cases. Now check whether nonexistent headers
  12443. # can be detected and how.
  12444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12445. /* end confdefs.h. */
  12446. #include <ac_nonexistent.h>
  12447. _ACEOF
  12448. if ac_fn_cxx_try_cpp "$LINENO"
  12449. then :
  12450. # Broken: success on invalid input.
  12451. continue
  12452. else $as_nop
  12453. # Passes both tests.
  12454. ac_preproc_ok=:
  12455. break
  12456. fi
  12457. rm -f conftest.err conftest.i conftest.$ac_ext
  12458. done
  12459. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12460. rm -f conftest.i conftest.err conftest.$ac_ext
  12461. if $ac_preproc_ok
  12462. then :
  12463. else $as_nop
  12464. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12465. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12466. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12467. See \`config.log' for more details" "$LINENO" 5; }
  12468. fi
  12469. ac_ext=c
  12470. ac_cpp='$CPP $CPPFLAGS'
  12471. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12472. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12473. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12474. else
  12475. _lt_caught_CXX_error=yes
  12476. fi
  12477. ac_ext=cpp
  12478. ac_cpp='$CXXCPP $CPPFLAGS'
  12479. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12480. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12481. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12482. archive_cmds_need_lc_CXX=no
  12483. allow_undefined_flag_CXX=
  12484. always_export_symbols_CXX=no
  12485. archive_expsym_cmds_CXX=
  12486. compiler_needs_object_CXX=no
  12487. export_dynamic_flag_spec_CXX=
  12488. hardcode_direct_CXX=no
  12489. hardcode_direct_absolute_CXX=no
  12490. hardcode_libdir_flag_spec_CXX=
  12491. hardcode_libdir_separator_CXX=
  12492. hardcode_minus_L_CXX=no
  12493. hardcode_shlibpath_var_CXX=unsupported
  12494. hardcode_automatic_CXX=no
  12495. inherit_rpath_CXX=no
  12496. module_cmds_CXX=
  12497. module_expsym_cmds_CXX=
  12498. link_all_deplibs_CXX=unknown
  12499. old_archive_cmds_CXX=$old_archive_cmds
  12500. reload_flag_CXX=$reload_flag
  12501. reload_cmds_CXX=$reload_cmds
  12502. no_undefined_flag_CXX=
  12503. whole_archive_flag_spec_CXX=
  12504. enable_shared_with_static_runtimes_CXX=no
  12505. # Source file extension for C++ test sources.
  12506. ac_ext=cpp
  12507. # Object file extension for compiled C++ test sources.
  12508. objext=o
  12509. objext_CXX=$objext
  12510. # No sense in running all these tests if we already determined that
  12511. # the CXX compiler isn't working. Some variables (like enable_shared)
  12512. # are currently assumed to apply to all compilers on this platform,
  12513. # and will be corrupted by setting them based on a non-working compiler.
  12514. if test yes != "$_lt_caught_CXX_error"; then
  12515. # Code to be used in simple compile tests
  12516. lt_simple_compile_test_code="int some_variable = 0;"
  12517. # Code to be used in simple link tests
  12518. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12519. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12520. # If no C compiler was specified, use CC.
  12521. LTCC=${LTCC-"$CC"}
  12522. # If no C compiler flags were specified, use CFLAGS.
  12523. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12524. # Allow CC to be a program name with arguments.
  12525. compiler=$CC
  12526. # save warnings/boilerplate of simple test code
  12527. ac_outfile=conftest.$ac_objext
  12528. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12529. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12530. _lt_compiler_boilerplate=`cat conftest.err`
  12531. $RM conftest*
  12532. ac_outfile=conftest.$ac_objext
  12533. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12534. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12535. _lt_linker_boilerplate=`cat conftest.err`
  12536. $RM -r conftest*
  12537. # Allow CC to be a program name with arguments.
  12538. lt_save_CC=$CC
  12539. lt_save_CFLAGS=$CFLAGS
  12540. lt_save_LD=$LD
  12541. lt_save_GCC=$GCC
  12542. GCC=$GXX
  12543. lt_save_with_gnu_ld=$with_gnu_ld
  12544. lt_save_path_LD=$lt_cv_path_LD
  12545. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12546. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12547. else
  12548. $as_unset lt_cv_prog_gnu_ld
  12549. fi
  12550. if test -n "${lt_cv_path_LDCXX+set}"; then
  12551. lt_cv_path_LD=$lt_cv_path_LDCXX
  12552. else
  12553. $as_unset lt_cv_path_LD
  12554. fi
  12555. test -z "${LDCXX+set}" || LD=$LDCXX
  12556. CC=${CXX-"c++"}
  12557. CFLAGS=$CXXFLAGS
  12558. compiler=$CC
  12559. compiler_CXX=$CC
  12560. func_cc_basename $compiler
  12561. cc_basename=$func_cc_basename_result
  12562. if test -n "$compiler"; then
  12563. # We don't want -fno-exception when compiling C++ code, so set the
  12564. # no_builtin_flag separately
  12565. if test yes = "$GXX"; then
  12566. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12567. else
  12568. lt_prog_compiler_no_builtin_flag_CXX=
  12569. fi
  12570. if test yes = "$GXX"; then
  12571. # Set up default GNU C++ configuration
  12572. # Check whether --with-gnu-ld was given.
  12573. if test ${with_gnu_ld+y}
  12574. then :
  12575. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12576. else $as_nop
  12577. with_gnu_ld=no
  12578. fi
  12579. ac_prog=ld
  12580. if test yes = "$GCC"; then
  12581. # Check if gcc -print-prog-name=ld gives a path.
  12582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12583. printf %s "checking for ld used by $CC... " >&6; }
  12584. case $host in
  12585. *-*-mingw*)
  12586. # gcc leaves a trailing carriage return, which upsets mingw
  12587. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12588. *)
  12589. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12590. esac
  12591. case $ac_prog in
  12592. # Accept absolute paths.
  12593. [\\/]* | ?:[\\/]*)
  12594. re_direlt='/[^/][^/]*/\.\./'
  12595. # Canonicalize the pathname of ld
  12596. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12597. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12598. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12599. done
  12600. test -z "$LD" && LD=$ac_prog
  12601. ;;
  12602. "")
  12603. # If it fails, then pretend we aren't using GCC.
  12604. ac_prog=ld
  12605. ;;
  12606. *)
  12607. # If it is relative, then search for the first ld in PATH.
  12608. with_gnu_ld=unknown
  12609. ;;
  12610. esac
  12611. elif test yes = "$with_gnu_ld"; then
  12612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12613. printf %s "checking for GNU ld... " >&6; }
  12614. else
  12615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12616. printf %s "checking for non-GNU ld... " >&6; }
  12617. fi
  12618. if test ${lt_cv_path_LD+y}
  12619. then :
  12620. printf %s "(cached) " >&6
  12621. else $as_nop
  12622. if test -z "$LD"; then
  12623. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12624. for ac_dir in $PATH; do
  12625. IFS=$lt_save_ifs
  12626. test -z "$ac_dir" && ac_dir=.
  12627. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12628. lt_cv_path_LD=$ac_dir/$ac_prog
  12629. # Check to see if the program is GNU ld. I'd rather use --version,
  12630. # but apparently some variants of GNU ld only accept -v.
  12631. # Break only if it was the GNU/non-GNU ld that we prefer.
  12632. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12633. *GNU* | *'with BFD'*)
  12634. test no != "$with_gnu_ld" && break
  12635. ;;
  12636. *)
  12637. test yes != "$with_gnu_ld" && break
  12638. ;;
  12639. esac
  12640. fi
  12641. done
  12642. IFS=$lt_save_ifs
  12643. else
  12644. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12645. fi
  12646. fi
  12647. LD=$lt_cv_path_LD
  12648. if test -n "$LD"; then
  12649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12650. printf "%s\n" "$LD" >&6; }
  12651. else
  12652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12653. printf "%s\n" "no" >&6; }
  12654. fi
  12655. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12657. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12658. if test ${lt_cv_prog_gnu_ld+y}
  12659. then :
  12660. printf %s "(cached) " >&6
  12661. else $as_nop
  12662. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12663. case `$LD -v 2>&1 </dev/null` in
  12664. *GNU* | *'with BFD'*)
  12665. lt_cv_prog_gnu_ld=yes
  12666. ;;
  12667. *)
  12668. lt_cv_prog_gnu_ld=no
  12669. ;;
  12670. esac
  12671. fi
  12672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12673. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12674. with_gnu_ld=$lt_cv_prog_gnu_ld
  12675. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12676. # archiving commands below assume that GNU ld is being used.
  12677. if test yes = "$with_gnu_ld"; then
  12678. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12679. 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'
  12680. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12681. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12682. # If archive_cmds runs LD, not CC, wlarc should be empty
  12683. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12684. # investigate it a little bit more. (MM)
  12685. wlarc='$wl'
  12686. # ancient GNU ld didn't support --whole-archive et. al.
  12687. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12688. $GREP 'no-whole-archive' > /dev/null; then
  12689. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12690. else
  12691. whole_archive_flag_spec_CXX=
  12692. fi
  12693. else
  12694. with_gnu_ld=no
  12695. wlarc=
  12696. # A generic and very simple default shared library creation
  12697. # command for GNU C++ for the case where it uses the native
  12698. # linker, instead of GNU ld. If possible, this setting should
  12699. # overridden to take advantage of the native linker features on
  12700. # the platform it is being used on.
  12701. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12702. fi
  12703. # Commands to make compiler produce verbose output that lists
  12704. # what "hidden" libraries, object files and flags are used when
  12705. # linking a shared library.
  12706. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12707. else
  12708. GXX=no
  12709. with_gnu_ld=no
  12710. wlarc=
  12711. fi
  12712. # PORTME: fill in a description of your system's C++ link characteristics
  12713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12714. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12715. ld_shlibs_CXX=yes
  12716. case $host_os in
  12717. aix3*)
  12718. # FIXME: insert proper C++ library support
  12719. ld_shlibs_CXX=no
  12720. ;;
  12721. aix[4-9]*)
  12722. if test ia64 = "$host_cpu"; then
  12723. # On IA64, the linker does run time linking by default, so we don't
  12724. # have to do anything special.
  12725. aix_use_runtimelinking=no
  12726. exp_sym_flag='-Bexport'
  12727. no_entry_flag=
  12728. else
  12729. aix_use_runtimelinking=no
  12730. # Test if we are trying to use run time linking or normal
  12731. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12732. # have runtime linking enabled, and use it for executables.
  12733. # For shared libraries, we enable/disable runtime linking
  12734. # depending on the kind of the shared library created -
  12735. # when "with_aix_soname,aix_use_runtimelinking" is:
  12736. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12737. # "aix,yes" lib.so shared, rtl:yes, for executables
  12738. # lib.a static archive
  12739. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12740. # lib.a(lib.so.V) shared, rtl:no, for executables
  12741. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12742. # lib.a(lib.so.V) shared, rtl:no
  12743. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12744. # lib.a static archive
  12745. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12746. for ld_flag in $LDFLAGS; do
  12747. case $ld_flag in
  12748. *-brtl*)
  12749. aix_use_runtimelinking=yes
  12750. break
  12751. ;;
  12752. esac
  12753. done
  12754. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12755. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12756. # so we don't have lib.a shared libs to link our executables.
  12757. # We have to force runtime linking in this case.
  12758. aix_use_runtimelinking=yes
  12759. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12760. fi
  12761. ;;
  12762. esac
  12763. exp_sym_flag='-bexport'
  12764. no_entry_flag='-bnoentry'
  12765. fi
  12766. # When large executables or shared objects are built, AIX ld can
  12767. # have problems creating the table of contents. If linking a library
  12768. # or program results in "error TOC overflow" add -mminimal-toc to
  12769. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12770. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12771. archive_cmds_CXX=''
  12772. hardcode_direct_CXX=yes
  12773. hardcode_direct_absolute_CXX=yes
  12774. hardcode_libdir_separator_CXX=':'
  12775. link_all_deplibs_CXX=yes
  12776. file_list_spec_CXX='$wl-f,'
  12777. case $with_aix_soname,$aix_use_runtimelinking in
  12778. aix,*) ;; # no import file
  12779. svr4,* | *,yes) # use import file
  12780. # The Import File defines what to hardcode.
  12781. hardcode_direct_CXX=no
  12782. hardcode_direct_absolute_CXX=no
  12783. ;;
  12784. esac
  12785. if test yes = "$GXX"; then
  12786. case $host_os in aix4.[012]|aix4.[012].*)
  12787. # We only want to do this on AIX 4.2 and lower, the check
  12788. # below for broken collect2 doesn't work under 4.3+
  12789. collect2name=`$CC -print-prog-name=collect2`
  12790. if test -f "$collect2name" &&
  12791. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12792. then
  12793. # We have reworked collect2
  12794. :
  12795. else
  12796. # We have old collect2
  12797. hardcode_direct_CXX=unsupported
  12798. # It fails to find uninstalled libraries when the uninstalled
  12799. # path is not listed in the libpath. Setting hardcode_minus_L
  12800. # to unsupported forces relinking
  12801. hardcode_minus_L_CXX=yes
  12802. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12803. hardcode_libdir_separator_CXX=
  12804. fi
  12805. esac
  12806. shared_flag='-shared'
  12807. if test yes = "$aix_use_runtimelinking"; then
  12808. shared_flag=$shared_flag' $wl-G'
  12809. fi
  12810. # Need to ensure runtime linking is disabled for the traditional
  12811. # shared library, or the linker may eventually find shared libraries
  12812. # /with/ Import File - we do not want to mix them.
  12813. shared_flag_aix='-shared'
  12814. shared_flag_svr4='-shared $wl-G'
  12815. else
  12816. # not using gcc
  12817. if test ia64 = "$host_cpu"; then
  12818. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12819. # chokes on -Wl,-G. The following line is correct:
  12820. shared_flag='-G'
  12821. else
  12822. if test yes = "$aix_use_runtimelinking"; then
  12823. shared_flag='$wl-G'
  12824. else
  12825. shared_flag='$wl-bM:SRE'
  12826. fi
  12827. shared_flag_aix='$wl-bM:SRE'
  12828. shared_flag_svr4='$wl-G'
  12829. fi
  12830. fi
  12831. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12832. # It seems that -bexpall does not export symbols beginning with
  12833. # underscore (_), so it is better to generate a list of symbols to
  12834. # export.
  12835. always_export_symbols_CXX=yes
  12836. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12837. # Warning - without using the other runtime loading flags (-brtl),
  12838. # -berok will link without error, but may produce a broken library.
  12839. # The "-G" linker flag allows undefined symbols.
  12840. no_undefined_flag_CXX='-bernotok'
  12841. # Determine the default libpath from the value encoded in an empty
  12842. # executable.
  12843. if test set = "${lt_cv_aix_libpath+set}"; then
  12844. aix_libpath=$lt_cv_aix_libpath
  12845. else
  12846. if test ${lt_cv_aix_libpath__CXX+y}
  12847. then :
  12848. printf %s "(cached) " >&6
  12849. else $as_nop
  12850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12851. /* end confdefs.h. */
  12852. int
  12853. main (void)
  12854. {
  12855. ;
  12856. return 0;
  12857. }
  12858. _ACEOF
  12859. if ac_fn_cxx_try_link "$LINENO"
  12860. then :
  12861. lt_aix_libpath_sed='
  12862. /Import File Strings/,/^$/ {
  12863. /^0/ {
  12864. s/^0 *\([^ ]*\) *$/\1/
  12865. p
  12866. }
  12867. }'
  12868. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12869. # Check for a 64-bit object if we didn't find anything.
  12870. if test -z "$lt_cv_aix_libpath__CXX"; then
  12871. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12872. fi
  12873. fi
  12874. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12875. conftest$ac_exeext conftest.$ac_ext
  12876. if test -z "$lt_cv_aix_libpath__CXX"; then
  12877. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12878. fi
  12879. fi
  12880. aix_libpath=$lt_cv_aix_libpath__CXX
  12881. fi
  12882. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12883. 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
  12884. else
  12885. if test ia64 = "$host_cpu"; then
  12886. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12887. allow_undefined_flag_CXX="-z nodefs"
  12888. 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"
  12889. else
  12890. # Determine the default libpath from the value encoded in an
  12891. # empty executable.
  12892. if test set = "${lt_cv_aix_libpath+set}"; then
  12893. aix_libpath=$lt_cv_aix_libpath
  12894. else
  12895. if test ${lt_cv_aix_libpath__CXX+y}
  12896. then :
  12897. printf %s "(cached) " >&6
  12898. else $as_nop
  12899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12900. /* end confdefs.h. */
  12901. int
  12902. main (void)
  12903. {
  12904. ;
  12905. return 0;
  12906. }
  12907. _ACEOF
  12908. if ac_fn_cxx_try_link "$LINENO"
  12909. then :
  12910. lt_aix_libpath_sed='
  12911. /Import File Strings/,/^$/ {
  12912. /^0/ {
  12913. s/^0 *\([^ ]*\) *$/\1/
  12914. p
  12915. }
  12916. }'
  12917. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12918. # Check for a 64-bit object if we didn't find anything.
  12919. if test -z "$lt_cv_aix_libpath__CXX"; then
  12920. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12921. fi
  12922. fi
  12923. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12924. conftest$ac_exeext conftest.$ac_ext
  12925. if test -z "$lt_cv_aix_libpath__CXX"; then
  12926. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12927. fi
  12928. fi
  12929. aix_libpath=$lt_cv_aix_libpath__CXX
  12930. fi
  12931. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12932. # Warning - without using the other run time loading flags,
  12933. # -berok will link without error, but may produce a broken library.
  12934. no_undefined_flag_CXX=' $wl-bernotok'
  12935. allow_undefined_flag_CXX=' $wl-berok'
  12936. if test yes = "$with_gnu_ld"; then
  12937. # We only use this code for GNU lds that support --whole-archive.
  12938. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12939. else
  12940. # Exported symbols can be pulled into shared objects from archives
  12941. whole_archive_flag_spec_CXX='$convenience'
  12942. fi
  12943. archive_cmds_need_lc_CXX=yes
  12944. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12945. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12946. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12947. if test svr4 != "$with_aix_soname"; then
  12948. # This is similar to how AIX traditionally builds its shared
  12949. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12950. 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'
  12951. fi
  12952. if test aix != "$with_aix_soname"; then
  12953. 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'
  12954. else
  12955. # used by -dlpreopen to get the symbols
  12956. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12957. fi
  12958. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12959. fi
  12960. fi
  12961. ;;
  12962. beos*)
  12963. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12964. allow_undefined_flag_CXX=unsupported
  12965. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12966. # support --undefined. This deserves some investigation. FIXME
  12967. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12968. else
  12969. ld_shlibs_CXX=no
  12970. fi
  12971. ;;
  12972. chorus*)
  12973. case $cc_basename in
  12974. *)
  12975. # FIXME: insert proper C++ library support
  12976. ld_shlibs_CXX=no
  12977. ;;
  12978. esac
  12979. ;;
  12980. cygwin* | mingw* | pw32* | cegcc*)
  12981. case $GXX,$cc_basename in
  12982. ,cl* | no,cl*)
  12983. # Native MSVC
  12984. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12985. # no search path for DLLs.
  12986. hardcode_libdir_flag_spec_CXX=' '
  12987. allow_undefined_flag_CXX=unsupported
  12988. always_export_symbols_CXX=yes
  12989. file_list_spec_CXX='@'
  12990. # Tell ltmain to make .lib files, not .a files.
  12991. libext=lib
  12992. # Tell ltmain to make .dll files, not .so files.
  12993. shrext_cmds=.dll
  12994. # FIXME: Setting linknames here is a bad hack.
  12995. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12996. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12997. cp "$export_symbols" "$output_objdir/$soname.def";
  12998. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12999. else
  13000. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13001. fi~
  13002. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13003. linknames='
  13004. # The linker will not automatically build a static lib if we build a DLL.
  13005. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13006. enable_shared_with_static_runtimes_CXX=yes
  13007. # Don't use ranlib
  13008. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13009. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13010. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13011. case $lt_outputfile in
  13012. *.exe|*.EXE) ;;
  13013. *)
  13014. lt_outputfile=$lt_outputfile.exe
  13015. lt_tool_outputfile=$lt_tool_outputfile.exe
  13016. ;;
  13017. esac~
  13018. func_to_tool_file "$lt_outputfile"~
  13019. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13020. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13021. $RM "$lt_outputfile.manifest";
  13022. fi'
  13023. ;;
  13024. *)
  13025. # g++
  13026. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13027. # as there is no search path for DLLs.
  13028. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13029. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13030. allow_undefined_flag_CXX=unsupported
  13031. always_export_symbols_CXX=no
  13032. enable_shared_with_static_runtimes_CXX=yes
  13033. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13034. 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'
  13035. # If the export-symbols file already is a .def file, use it as
  13036. # is; otherwise, prepend EXPORTS...
  13037. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13038. cp $export_symbols $output_objdir/$soname.def;
  13039. else
  13040. echo EXPORTS > $output_objdir/$soname.def;
  13041. cat $export_symbols >> $output_objdir/$soname.def;
  13042. fi~
  13043. $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'
  13044. else
  13045. ld_shlibs_CXX=no
  13046. fi
  13047. ;;
  13048. esac
  13049. ;;
  13050. darwin* | rhapsody*)
  13051. archive_cmds_need_lc_CXX=no
  13052. hardcode_direct_CXX=no
  13053. hardcode_automatic_CXX=yes
  13054. hardcode_shlibpath_var_CXX=unsupported
  13055. if test yes = "$lt_cv_ld_force_load"; then
  13056. 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\"`'
  13057. else
  13058. whole_archive_flag_spec_CXX=''
  13059. fi
  13060. link_all_deplibs_CXX=yes
  13061. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13062. case $cc_basename in
  13063. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13064. *) _lt_dar_can_shared=$GCC ;;
  13065. esac
  13066. if test yes = "$_lt_dar_can_shared"; then
  13067. output_verbose_link_cmd=func_echo_all
  13068. 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"
  13069. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13070. 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"
  13071. 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"
  13072. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13073. 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"
  13074. 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"
  13075. fi
  13076. else
  13077. ld_shlibs_CXX=no
  13078. fi
  13079. ;;
  13080. os2*)
  13081. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13082. hardcode_minus_L_CXX=yes
  13083. allow_undefined_flag_CXX=unsupported
  13084. shrext_cmds=.dll
  13085. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13086. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13087. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13088. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13089. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13090. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13091. emximp -o $lib $output_objdir/$libname.def'
  13092. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13093. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13094. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13095. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13096. prefix_cmds="$SED"~
  13097. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13098. prefix_cmds="$prefix_cmds -e 1d";
  13099. fi~
  13100. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13101. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13102. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13103. emximp -o $lib $output_objdir/$libname.def'
  13104. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13105. enable_shared_with_static_runtimes_CXX=yes
  13106. file_list_spec_CXX='@'
  13107. ;;
  13108. dgux*)
  13109. case $cc_basename in
  13110. ec++*)
  13111. # FIXME: insert proper C++ library support
  13112. ld_shlibs_CXX=no
  13113. ;;
  13114. ghcx*)
  13115. # Green Hills C++ Compiler
  13116. # FIXME: insert proper C++ library support
  13117. ld_shlibs_CXX=no
  13118. ;;
  13119. *)
  13120. # FIXME: insert proper C++ library support
  13121. ld_shlibs_CXX=no
  13122. ;;
  13123. esac
  13124. ;;
  13125. freebsd2.*)
  13126. # C++ shared libraries reported to be fairly broken before
  13127. # switch to ELF
  13128. ld_shlibs_CXX=no
  13129. ;;
  13130. freebsd-elf*)
  13131. archive_cmds_need_lc_CXX=no
  13132. ;;
  13133. freebsd* | dragonfly* | midnightbsd*)
  13134. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13135. # conventions
  13136. ld_shlibs_CXX=yes
  13137. ;;
  13138. haiku*)
  13139. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13140. link_all_deplibs_CXX=yes
  13141. ;;
  13142. hpux9*)
  13143. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13144. hardcode_libdir_separator_CXX=:
  13145. export_dynamic_flag_spec_CXX='$wl-E'
  13146. hardcode_direct_CXX=yes
  13147. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13148. # but as the default
  13149. # location of the library.
  13150. case $cc_basename in
  13151. CC*)
  13152. # FIXME: insert proper C++ library support
  13153. ld_shlibs_CXX=no
  13154. ;;
  13155. aCC*)
  13156. 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'
  13157. # Commands to make compiler produce verbose output that lists
  13158. # what "hidden" libraries, object files and flags are used when
  13159. # linking a shared library.
  13160. #
  13161. # There doesn't appear to be a way to prevent this compiler from
  13162. # explicitly linking system object files so we need to strip them
  13163. # from the output so that they don't get included in the library
  13164. # dependencies.
  13165. 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"'
  13166. ;;
  13167. *)
  13168. if test yes = "$GXX"; then
  13169. 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'
  13170. else
  13171. # FIXME: insert proper C++ library support
  13172. ld_shlibs_CXX=no
  13173. fi
  13174. ;;
  13175. esac
  13176. ;;
  13177. hpux10*|hpux11*)
  13178. if test no = "$with_gnu_ld"; then
  13179. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13180. hardcode_libdir_separator_CXX=:
  13181. case $host_cpu in
  13182. hppa*64*|ia64*)
  13183. ;;
  13184. *)
  13185. export_dynamic_flag_spec_CXX='$wl-E'
  13186. ;;
  13187. esac
  13188. fi
  13189. case $host_cpu in
  13190. hppa*64*|ia64*)
  13191. hardcode_direct_CXX=no
  13192. hardcode_shlibpath_var_CXX=no
  13193. ;;
  13194. *)
  13195. hardcode_direct_CXX=yes
  13196. hardcode_direct_absolute_CXX=yes
  13197. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13198. # but as the default
  13199. # location of the library.
  13200. ;;
  13201. esac
  13202. case $cc_basename in
  13203. CC*)
  13204. # FIXME: insert proper C++ library support
  13205. ld_shlibs_CXX=no
  13206. ;;
  13207. aCC*)
  13208. case $host_cpu in
  13209. hppa*64*)
  13210. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13211. ;;
  13212. ia64*)
  13213. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13214. ;;
  13215. *)
  13216. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13217. ;;
  13218. esac
  13219. # Commands to make compiler produce verbose output that lists
  13220. # what "hidden" libraries, object files and flags are used when
  13221. # linking a shared library.
  13222. #
  13223. # There doesn't appear to be a way to prevent this compiler from
  13224. # explicitly linking system object files so we need to strip them
  13225. # from the output so that they don't get included in the library
  13226. # dependencies.
  13227. 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"'
  13228. ;;
  13229. *)
  13230. if test yes = "$GXX"; then
  13231. if test no = "$with_gnu_ld"; then
  13232. case $host_cpu in
  13233. hppa*64*)
  13234. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13235. ;;
  13236. ia64*)
  13237. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13238. ;;
  13239. *)
  13240. 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'
  13241. ;;
  13242. esac
  13243. fi
  13244. else
  13245. # FIXME: insert proper C++ library support
  13246. ld_shlibs_CXX=no
  13247. fi
  13248. ;;
  13249. esac
  13250. ;;
  13251. interix[3-9]*)
  13252. hardcode_direct_CXX=no
  13253. hardcode_shlibpath_var_CXX=no
  13254. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13255. export_dynamic_flag_spec_CXX='$wl-E'
  13256. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13257. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13258. # default) and relocated if they conflict, which is a slow very memory
  13259. # consuming and fragmenting process. To avoid this, we pick a random,
  13260. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13261. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13262. 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'
  13263. 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'
  13264. ;;
  13265. irix5* | irix6*)
  13266. case $cc_basename in
  13267. CC*)
  13268. # SGI C++
  13269. 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'
  13270. # Archives containing C++ object files must be created using
  13271. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13272. # necessary to make sure instantiated templates are included
  13273. # in the archive.
  13274. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13275. ;;
  13276. *)
  13277. if test yes = "$GXX"; then
  13278. if test no = "$with_gnu_ld"; then
  13279. 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'
  13280. else
  13281. 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'
  13282. fi
  13283. fi
  13284. link_all_deplibs_CXX=yes
  13285. ;;
  13286. esac
  13287. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13288. hardcode_libdir_separator_CXX=:
  13289. inherit_rpath_CXX=yes
  13290. ;;
  13291. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13292. case $cc_basename in
  13293. KCC*)
  13294. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13295. # KCC will only create a shared library if the output file
  13296. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13297. # to its proper name (with version) after linking.
  13298. 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'
  13299. 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'
  13300. # Commands to make compiler produce verbose output that lists
  13301. # what "hidden" libraries, object files and flags are used when
  13302. # linking a shared library.
  13303. #
  13304. # There doesn't appear to be a way to prevent this compiler from
  13305. # explicitly linking system object files so we need to strip them
  13306. # from the output so that they don't get included in the library
  13307. # dependencies.
  13308. 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"'
  13309. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13310. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13311. # Archives containing C++ object files must be created using
  13312. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13313. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13314. ;;
  13315. icpc* | ecpc* )
  13316. # Intel C++
  13317. with_gnu_ld=yes
  13318. # version 8.0 and above of icpc choke on multiply defined symbols
  13319. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13320. # earlier do not add the objects themselves.
  13321. case `$CC -V 2>&1` in
  13322. *"Version 7."*)
  13323. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13324. 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'
  13325. ;;
  13326. *) # Version 8.0 or newer
  13327. tmp_idyn=
  13328. case $host_cpu in
  13329. ia64*) tmp_idyn=' -i_dynamic';;
  13330. esac
  13331. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13332. 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'
  13333. ;;
  13334. esac
  13335. archive_cmds_need_lc_CXX=no
  13336. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13337. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13338. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13339. ;;
  13340. pgCC* | pgcpp*)
  13341. # Portland Group C++ compiler
  13342. case `$CC -V` in
  13343. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13344. prelink_cmds_CXX='tpldir=Template.dir~
  13345. rm -rf $tpldir~
  13346. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13347. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13348. old_archive_cmds_CXX='tpldir=Template.dir~
  13349. rm -rf $tpldir~
  13350. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13351. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13352. $RANLIB $oldlib'
  13353. archive_cmds_CXX='tpldir=Template.dir~
  13354. rm -rf $tpldir~
  13355. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13356. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13357. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13358. rm -rf $tpldir~
  13359. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13360. $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'
  13361. ;;
  13362. *) # Version 6 and above use weak symbols
  13363. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13364. 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'
  13365. ;;
  13366. esac
  13367. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13368. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13369. 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'
  13370. ;;
  13371. cxx*)
  13372. # Compaq C++
  13373. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13374. 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'
  13375. runpath_var=LD_RUN_PATH
  13376. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13377. hardcode_libdir_separator_CXX=:
  13378. # Commands to make compiler produce verbose output that lists
  13379. # what "hidden" libraries, object files and flags are used when
  13380. # linking a shared library.
  13381. #
  13382. # There doesn't appear to be a way to prevent this compiler from
  13383. # explicitly linking system object files so we need to strip them
  13384. # from the output so that they don't get included in the library
  13385. # dependencies.
  13386. 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'
  13387. ;;
  13388. xl* | mpixl* | bgxl*)
  13389. # IBM XL 8.0 on PPC, with GNU ld
  13390. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13391. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13392. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13393. if test yes = "$supports_anon_versioning"; then
  13394. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13395. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13396. echo "local: *; };" >> $output_objdir/$libname.ver~
  13397. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13398. fi
  13399. ;;
  13400. *)
  13401. case `$CC -V 2>&1 | sed 5q` in
  13402. *Sun\ C*)
  13403. # Sun C++ 5.9
  13404. no_undefined_flag_CXX=' -zdefs'
  13405. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13406. 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'
  13407. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13408. 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'
  13409. compiler_needs_object_CXX=yes
  13410. # Not sure whether something based on
  13411. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13412. # would be better.
  13413. output_verbose_link_cmd='func_echo_all'
  13414. # Archives containing C++ object files must be created using
  13415. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13416. # necessary to make sure instantiated templates are included
  13417. # in the archive.
  13418. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13419. ;;
  13420. esac
  13421. ;;
  13422. esac
  13423. ;;
  13424. lynxos*)
  13425. # FIXME: insert proper C++ library support
  13426. ld_shlibs_CXX=no
  13427. ;;
  13428. m88k*)
  13429. # FIXME: insert proper C++ library support
  13430. ld_shlibs_CXX=no
  13431. ;;
  13432. mvs*)
  13433. case $cc_basename in
  13434. cxx*)
  13435. # FIXME: insert proper C++ library support
  13436. ld_shlibs_CXX=no
  13437. ;;
  13438. *)
  13439. # FIXME: insert proper C++ library support
  13440. ld_shlibs_CXX=no
  13441. ;;
  13442. esac
  13443. ;;
  13444. netbsd*)
  13445. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13446. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13447. wlarc=
  13448. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13449. hardcode_direct_CXX=yes
  13450. hardcode_shlibpath_var_CXX=no
  13451. fi
  13452. # Workaround some broken pre-1.5 toolchains
  13453. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13454. ;;
  13455. *nto* | *qnx*)
  13456. ld_shlibs_CXX=yes
  13457. ;;
  13458. openbsd* | bitrig*)
  13459. if test -f /usr/libexec/ld.so; then
  13460. hardcode_direct_CXX=yes
  13461. hardcode_shlibpath_var_CXX=no
  13462. hardcode_direct_absolute_CXX=yes
  13463. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13464. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13465. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13466. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13467. export_dynamic_flag_spec_CXX='$wl-E'
  13468. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13469. fi
  13470. output_verbose_link_cmd=func_echo_all
  13471. else
  13472. ld_shlibs_CXX=no
  13473. fi
  13474. ;;
  13475. osf3* | osf4* | osf5*)
  13476. case $cc_basename in
  13477. KCC*)
  13478. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13479. # KCC will only create a shared library if the output file
  13480. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13481. # to its proper name (with version) after linking.
  13482. 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'
  13483. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13484. hardcode_libdir_separator_CXX=:
  13485. # Archives containing C++ object files must be created using
  13486. # the KAI C++ compiler.
  13487. case $host in
  13488. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13489. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13490. esac
  13491. ;;
  13492. RCC*)
  13493. # Rational C++ 2.4.1
  13494. # FIXME: insert proper C++ library support
  13495. ld_shlibs_CXX=no
  13496. ;;
  13497. cxx*)
  13498. case $host in
  13499. osf3*)
  13500. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13501. 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'
  13502. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13503. ;;
  13504. *)
  13505. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13506. 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'
  13507. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13508. echo "-hidden">> $lib.exp~
  13509. $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~
  13510. $RM $lib.exp'
  13511. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13512. ;;
  13513. esac
  13514. hardcode_libdir_separator_CXX=:
  13515. # Commands to make compiler produce verbose output that lists
  13516. # what "hidden" libraries, object files and flags are used when
  13517. # linking a shared library.
  13518. #
  13519. # There doesn't appear to be a way to prevent this compiler from
  13520. # explicitly linking system object files so we need to strip them
  13521. # from the output so that they don't get included in the library
  13522. # dependencies.
  13523. 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"'
  13524. ;;
  13525. *)
  13526. if test yes,no = "$GXX,$with_gnu_ld"; then
  13527. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13528. case $host in
  13529. osf3*)
  13530. 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'
  13531. ;;
  13532. *)
  13533. 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'
  13534. ;;
  13535. esac
  13536. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13537. hardcode_libdir_separator_CXX=:
  13538. # Commands to make compiler produce verbose output that lists
  13539. # what "hidden" libraries, object files and flags are used when
  13540. # linking a shared library.
  13541. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13542. else
  13543. # FIXME: insert proper C++ library support
  13544. ld_shlibs_CXX=no
  13545. fi
  13546. ;;
  13547. esac
  13548. ;;
  13549. psos*)
  13550. # FIXME: insert proper C++ library support
  13551. ld_shlibs_CXX=no
  13552. ;;
  13553. sunos4*)
  13554. case $cc_basename in
  13555. CC*)
  13556. # Sun C++ 4.x
  13557. # FIXME: insert proper C++ library support
  13558. ld_shlibs_CXX=no
  13559. ;;
  13560. lcc*)
  13561. # Lucid
  13562. # FIXME: insert proper C++ library support
  13563. ld_shlibs_CXX=no
  13564. ;;
  13565. *)
  13566. # FIXME: insert proper C++ library support
  13567. ld_shlibs_CXX=no
  13568. ;;
  13569. esac
  13570. ;;
  13571. solaris*)
  13572. case $cc_basename in
  13573. CC* | sunCC*)
  13574. # Sun C++ 4.2, 5.x and Centerline C++
  13575. archive_cmds_need_lc_CXX=yes
  13576. no_undefined_flag_CXX=' -zdefs'
  13577. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13578. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13579. $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'
  13580. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13581. hardcode_shlibpath_var_CXX=no
  13582. case $host_os in
  13583. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13584. *)
  13585. # The compiler driver will combine and reorder linker options,
  13586. # but understands '-z linker_flag'.
  13587. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13588. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13589. ;;
  13590. esac
  13591. link_all_deplibs_CXX=yes
  13592. output_verbose_link_cmd='func_echo_all'
  13593. # Archives containing C++ object files must be created using
  13594. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13595. # necessary to make sure instantiated templates are included
  13596. # in the archive.
  13597. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13598. ;;
  13599. gcx*)
  13600. # Green Hills C++ Compiler
  13601. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13602. # The C++ compiler must be used to create the archive.
  13603. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13604. ;;
  13605. *)
  13606. # GNU C++ compiler with Solaris linker
  13607. if test yes,no = "$GXX,$with_gnu_ld"; then
  13608. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13609. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13610. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13611. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13612. $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'
  13613. # Commands to make compiler produce verbose output that lists
  13614. # what "hidden" libraries, object files and flags are used when
  13615. # linking a shared library.
  13616. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13617. else
  13618. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13619. # platform.
  13620. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13621. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13622. $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'
  13623. # Commands to make compiler produce verbose output that lists
  13624. # what "hidden" libraries, object files and flags are used when
  13625. # linking a shared library.
  13626. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13627. fi
  13628. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13629. case $host_os in
  13630. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13631. *)
  13632. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13633. ;;
  13634. esac
  13635. fi
  13636. ;;
  13637. esac
  13638. ;;
  13639. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13640. no_undefined_flag_CXX='$wl-z,text'
  13641. archive_cmds_need_lc_CXX=no
  13642. hardcode_shlibpath_var_CXX=no
  13643. runpath_var='LD_RUN_PATH'
  13644. case $cc_basename in
  13645. CC*)
  13646. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13647. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13648. ;;
  13649. *)
  13650. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13651. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13652. ;;
  13653. esac
  13654. ;;
  13655. sysv5* | sco3.2v5* | sco5v6*)
  13656. # Note: We CANNOT use -z defs as we might desire, because we do not
  13657. # link with -lc, and that would cause any symbols used from libc to
  13658. # always be unresolved, which means just about no library would
  13659. # ever link correctly. If we're not using GNU ld we use -z text
  13660. # though, which does catch some bad symbols but isn't as heavy-handed
  13661. # as -z defs.
  13662. no_undefined_flag_CXX='$wl-z,text'
  13663. allow_undefined_flag_CXX='$wl-z,nodefs'
  13664. archive_cmds_need_lc_CXX=no
  13665. hardcode_shlibpath_var_CXX=no
  13666. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13667. hardcode_libdir_separator_CXX=':'
  13668. link_all_deplibs_CXX=yes
  13669. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13670. runpath_var='LD_RUN_PATH'
  13671. case $cc_basename in
  13672. CC*)
  13673. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13674. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13675. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13676. '"$old_archive_cmds_CXX"
  13677. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13678. '"$reload_cmds_CXX"
  13679. ;;
  13680. *)
  13681. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13682. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13683. ;;
  13684. esac
  13685. ;;
  13686. tandem*)
  13687. case $cc_basename in
  13688. NCC*)
  13689. # NonStop-UX NCC 3.20
  13690. # FIXME: insert proper C++ library support
  13691. ld_shlibs_CXX=no
  13692. ;;
  13693. *)
  13694. # FIXME: insert proper C++ library support
  13695. ld_shlibs_CXX=no
  13696. ;;
  13697. esac
  13698. ;;
  13699. vxworks*)
  13700. # FIXME: insert proper C++ library support
  13701. ld_shlibs_CXX=no
  13702. ;;
  13703. *)
  13704. # FIXME: insert proper C++ library support
  13705. ld_shlibs_CXX=no
  13706. ;;
  13707. esac
  13708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13709. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13710. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13711. GCC_CXX=$GXX
  13712. LD_CXX=$LD
  13713. ## CAVEAT EMPTOR:
  13714. ## There is no encapsulation within the following macros, do not change
  13715. ## the running order or otherwise move them around unless you know exactly
  13716. ## what you are doing...
  13717. # Dependencies to place before and after the object being linked:
  13718. predep_objects_CXX=
  13719. postdep_objects_CXX=
  13720. predeps_CXX=
  13721. postdeps_CXX=
  13722. compiler_lib_search_path_CXX=
  13723. cat > conftest.$ac_ext <<_LT_EOF
  13724. class Foo
  13725. {
  13726. public:
  13727. Foo (void) { a = 0; }
  13728. private:
  13729. int a;
  13730. };
  13731. _LT_EOF
  13732. _lt_libdeps_save_CFLAGS=$CFLAGS
  13733. case "$CC $CFLAGS " in #(
  13734. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13735. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13736. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13737. esac
  13738. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13739. (eval $ac_compile) 2>&5
  13740. ac_status=$?
  13741. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13742. test $ac_status = 0; }; then
  13743. # Parse the compiler output and extract the necessary
  13744. # objects, libraries and library flags.
  13745. # Sentinel used to keep track of whether or not we are before
  13746. # the conftest object file.
  13747. pre_test_object_deps_done=no
  13748. for p in `eval "$output_verbose_link_cmd"`; do
  13749. case $prev$p in
  13750. -L* | -R* | -l*)
  13751. # Some compilers place space between "-{L,R}" and the path.
  13752. # Remove the space.
  13753. if test x-L = "x$p" ||
  13754. test x-R = "x$p" ||
  13755. test x-l = "x$p"; then
  13756. prev=$p
  13757. continue
  13758. fi
  13759. # Expand the sysroot to ease extracting the directories later.
  13760. if test -z "$prev"; then
  13761. case $p in
  13762. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13763. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13764. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13765. esac
  13766. fi
  13767. case $p in
  13768. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13769. esac
  13770. if test no = "$pre_test_object_deps_done"; then
  13771. case $prev in
  13772. -L | -R)
  13773. # Internal compiler library paths should come after those
  13774. # provided the user. The postdeps already come after the
  13775. # user supplied libs so there is no need to process them.
  13776. if test -z "$compiler_lib_search_path_CXX"; then
  13777. compiler_lib_search_path_CXX=$prev$p
  13778. else
  13779. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13780. fi
  13781. ;;
  13782. # The "-l" case would never come before the object being
  13783. # linked, so don't bother handling this case.
  13784. esac
  13785. else
  13786. if test -z "$postdeps_CXX"; then
  13787. postdeps_CXX=$prev$p
  13788. else
  13789. postdeps_CXX="${postdeps_CXX} $prev$p"
  13790. fi
  13791. fi
  13792. prev=
  13793. ;;
  13794. *.lto.$objext) ;; # Ignore GCC LTO objects
  13795. *.$objext)
  13796. # This assumes that the test object file only shows up
  13797. # once in the compiler output.
  13798. if test "$p" = "conftest.$objext"; then
  13799. pre_test_object_deps_done=yes
  13800. continue
  13801. fi
  13802. if test no = "$pre_test_object_deps_done"; then
  13803. if test -z "$predep_objects_CXX"; then
  13804. predep_objects_CXX=$p
  13805. else
  13806. predep_objects_CXX="$predep_objects_CXX $p"
  13807. fi
  13808. else
  13809. if test -z "$postdep_objects_CXX"; then
  13810. postdep_objects_CXX=$p
  13811. else
  13812. postdep_objects_CXX="$postdep_objects_CXX $p"
  13813. fi
  13814. fi
  13815. ;;
  13816. *) ;; # Ignore the rest.
  13817. esac
  13818. done
  13819. # Clean up.
  13820. rm -f a.out a.exe
  13821. else
  13822. echo "libtool.m4: error: problem compiling CXX test program"
  13823. fi
  13824. $RM -f confest.$objext
  13825. CFLAGS=$_lt_libdeps_save_CFLAGS
  13826. # PORTME: override above test on systems where it is broken
  13827. case $host_os in
  13828. interix[3-9]*)
  13829. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13830. # hack all around it, let's just trust "g++" to DTRT.
  13831. predep_objects_CXX=
  13832. postdep_objects_CXX=
  13833. postdeps_CXX=
  13834. ;;
  13835. esac
  13836. case " $postdeps_CXX " in
  13837. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13838. esac
  13839. compiler_lib_search_dirs_CXX=
  13840. if test -n "${compiler_lib_search_path_CXX}"; then
  13841. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13842. fi
  13843. lt_prog_compiler_wl_CXX=
  13844. lt_prog_compiler_pic_CXX=
  13845. lt_prog_compiler_static_CXX=
  13846. # C++ specific cases for pic, static, wl, etc.
  13847. if test yes = "$GXX"; then
  13848. lt_prog_compiler_wl_CXX='-Wl,'
  13849. lt_prog_compiler_static_CXX='-static'
  13850. case $host_os in
  13851. aix*)
  13852. # All AIX code is PIC.
  13853. if test ia64 = "$host_cpu"; then
  13854. # AIX 5 now supports IA64 processor
  13855. lt_prog_compiler_static_CXX='-Bstatic'
  13856. fi
  13857. lt_prog_compiler_pic_CXX='-fPIC'
  13858. ;;
  13859. amigaos*)
  13860. case $host_cpu in
  13861. powerpc)
  13862. # see comment about AmigaOS4 .so support
  13863. lt_prog_compiler_pic_CXX='-fPIC'
  13864. ;;
  13865. m68k)
  13866. # FIXME: we need at least 68020 code to build shared libraries, but
  13867. # adding the '-m68020' flag to GCC prevents building anything better,
  13868. # like '-m68040'.
  13869. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13870. ;;
  13871. esac
  13872. ;;
  13873. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13874. # PIC is the default for these OSes.
  13875. ;;
  13876. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13877. # This hack is so that the source file can tell whether it is being
  13878. # built for inclusion in a dll (and should export symbols for example).
  13879. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13880. # (--disable-auto-import) libraries
  13881. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13882. case $host_os in
  13883. os2*)
  13884. lt_prog_compiler_static_CXX='$wl-static'
  13885. ;;
  13886. esac
  13887. ;;
  13888. darwin* | rhapsody*)
  13889. # PIC is the default on this platform
  13890. # Common symbols not allowed in MH_DYLIB files
  13891. lt_prog_compiler_pic_CXX='-fno-common'
  13892. ;;
  13893. *djgpp*)
  13894. # DJGPP does not support shared libraries at all
  13895. lt_prog_compiler_pic_CXX=
  13896. ;;
  13897. haiku*)
  13898. # PIC is the default for Haiku.
  13899. # The "-static" flag exists, but is broken.
  13900. lt_prog_compiler_static_CXX=
  13901. ;;
  13902. interix[3-9]*)
  13903. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13904. # Instead, we relocate shared libraries at runtime.
  13905. ;;
  13906. sysv4*MP*)
  13907. if test -d /usr/nec; then
  13908. lt_prog_compiler_pic_CXX=-Kconform_pic
  13909. fi
  13910. ;;
  13911. hpux*)
  13912. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13913. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13914. # sets the default TLS model and affects inlining.
  13915. case $host_cpu in
  13916. hppa*64*)
  13917. ;;
  13918. *)
  13919. lt_prog_compiler_pic_CXX='-fPIC'
  13920. ;;
  13921. esac
  13922. ;;
  13923. *qnx* | *nto*)
  13924. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13925. # it will coredump.
  13926. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13927. ;;
  13928. *)
  13929. lt_prog_compiler_pic_CXX='-fPIC'
  13930. ;;
  13931. esac
  13932. else
  13933. case $host_os in
  13934. aix[4-9]*)
  13935. # All AIX code is PIC.
  13936. if test ia64 = "$host_cpu"; then
  13937. # AIX 5 now supports IA64 processor
  13938. lt_prog_compiler_static_CXX='-Bstatic'
  13939. else
  13940. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13941. fi
  13942. ;;
  13943. chorus*)
  13944. case $cc_basename in
  13945. cxch68*)
  13946. # Green Hills C++ Compiler
  13947. # _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"
  13948. ;;
  13949. esac
  13950. ;;
  13951. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13952. # This hack is so that the source file can tell whether it is being
  13953. # built for inclusion in a dll (and should export symbols for example).
  13954. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13955. ;;
  13956. dgux*)
  13957. case $cc_basename in
  13958. ec++*)
  13959. lt_prog_compiler_pic_CXX='-KPIC'
  13960. ;;
  13961. ghcx*)
  13962. # Green Hills C++ Compiler
  13963. lt_prog_compiler_pic_CXX='-pic'
  13964. ;;
  13965. *)
  13966. ;;
  13967. esac
  13968. ;;
  13969. freebsd* | dragonfly* | midnightbsd*)
  13970. # FreeBSD uses GNU C++
  13971. ;;
  13972. hpux9* | hpux10* | hpux11*)
  13973. case $cc_basename in
  13974. CC*)
  13975. lt_prog_compiler_wl_CXX='-Wl,'
  13976. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13977. if test ia64 != "$host_cpu"; then
  13978. lt_prog_compiler_pic_CXX='+Z'
  13979. fi
  13980. ;;
  13981. aCC*)
  13982. lt_prog_compiler_wl_CXX='-Wl,'
  13983. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13984. case $host_cpu in
  13985. hppa*64*|ia64*)
  13986. # +Z the default
  13987. ;;
  13988. *)
  13989. lt_prog_compiler_pic_CXX='+Z'
  13990. ;;
  13991. esac
  13992. ;;
  13993. *)
  13994. ;;
  13995. esac
  13996. ;;
  13997. interix*)
  13998. # This is c89, which is MS Visual C++ (no shared libs)
  13999. # Anyone wants to do a port?
  14000. ;;
  14001. irix5* | irix6* | nonstopux*)
  14002. case $cc_basename in
  14003. CC*)
  14004. lt_prog_compiler_wl_CXX='-Wl,'
  14005. lt_prog_compiler_static_CXX='-non_shared'
  14006. # CC pic flag -KPIC is the default.
  14007. ;;
  14008. *)
  14009. ;;
  14010. esac
  14011. ;;
  14012. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14013. case $cc_basename in
  14014. KCC*)
  14015. # KAI C++ Compiler
  14016. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14017. lt_prog_compiler_pic_CXX='-fPIC'
  14018. ;;
  14019. ecpc* )
  14020. # old Intel C++ for x86_64, which still supported -KPIC.
  14021. lt_prog_compiler_wl_CXX='-Wl,'
  14022. lt_prog_compiler_pic_CXX='-KPIC'
  14023. lt_prog_compiler_static_CXX='-static'
  14024. ;;
  14025. icpc* )
  14026. # Intel C++, used to be incompatible with GCC.
  14027. # ICC 10 doesn't accept -KPIC any more.
  14028. lt_prog_compiler_wl_CXX='-Wl,'
  14029. lt_prog_compiler_pic_CXX='-fPIC'
  14030. lt_prog_compiler_static_CXX='-static'
  14031. ;;
  14032. pgCC* | pgcpp*)
  14033. # Portland Group C++ compiler
  14034. lt_prog_compiler_wl_CXX='-Wl,'
  14035. lt_prog_compiler_pic_CXX='-fpic'
  14036. lt_prog_compiler_static_CXX='-Bstatic'
  14037. ;;
  14038. cxx*)
  14039. # Compaq C++
  14040. # Make sure the PIC flag is empty. It appears that all Alpha
  14041. # Linux and Compaq Tru64 Unix objects are PIC.
  14042. lt_prog_compiler_pic_CXX=
  14043. lt_prog_compiler_static_CXX='-non_shared'
  14044. ;;
  14045. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14046. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14047. lt_prog_compiler_wl_CXX='-Wl,'
  14048. lt_prog_compiler_pic_CXX='-qpic'
  14049. lt_prog_compiler_static_CXX='-qstaticlink'
  14050. ;;
  14051. *)
  14052. case `$CC -V 2>&1 | sed 5q` in
  14053. *Sun\ C*)
  14054. # Sun C++ 5.9
  14055. lt_prog_compiler_pic_CXX='-KPIC'
  14056. lt_prog_compiler_static_CXX='-Bstatic'
  14057. lt_prog_compiler_wl_CXX='-Qoption ld '
  14058. ;;
  14059. esac
  14060. ;;
  14061. esac
  14062. ;;
  14063. lynxos*)
  14064. ;;
  14065. m88k*)
  14066. ;;
  14067. mvs*)
  14068. case $cc_basename in
  14069. cxx*)
  14070. lt_prog_compiler_pic_CXX='-W c,exportall'
  14071. ;;
  14072. *)
  14073. ;;
  14074. esac
  14075. ;;
  14076. netbsd*)
  14077. ;;
  14078. *qnx* | *nto*)
  14079. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14080. # it will coredump.
  14081. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14082. ;;
  14083. osf3* | osf4* | osf5*)
  14084. case $cc_basename in
  14085. KCC*)
  14086. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14087. ;;
  14088. RCC*)
  14089. # Rational C++ 2.4.1
  14090. lt_prog_compiler_pic_CXX='-pic'
  14091. ;;
  14092. cxx*)
  14093. # Digital/Compaq C++
  14094. lt_prog_compiler_wl_CXX='-Wl,'
  14095. # Make sure the PIC flag is empty. It appears that all Alpha
  14096. # Linux and Compaq Tru64 Unix objects are PIC.
  14097. lt_prog_compiler_pic_CXX=
  14098. lt_prog_compiler_static_CXX='-non_shared'
  14099. ;;
  14100. *)
  14101. ;;
  14102. esac
  14103. ;;
  14104. psos*)
  14105. ;;
  14106. solaris*)
  14107. case $cc_basename in
  14108. CC* | sunCC*)
  14109. # Sun C++ 4.2, 5.x and Centerline C++
  14110. lt_prog_compiler_pic_CXX='-KPIC'
  14111. lt_prog_compiler_static_CXX='-Bstatic'
  14112. lt_prog_compiler_wl_CXX='-Qoption ld '
  14113. ;;
  14114. gcx*)
  14115. # Green Hills C++ Compiler
  14116. lt_prog_compiler_pic_CXX='-PIC'
  14117. ;;
  14118. *)
  14119. ;;
  14120. esac
  14121. ;;
  14122. sunos4*)
  14123. case $cc_basename in
  14124. CC*)
  14125. # Sun C++ 4.x
  14126. lt_prog_compiler_pic_CXX='-pic'
  14127. lt_prog_compiler_static_CXX='-Bstatic'
  14128. ;;
  14129. lcc*)
  14130. # Lucid
  14131. lt_prog_compiler_pic_CXX='-pic'
  14132. ;;
  14133. *)
  14134. ;;
  14135. esac
  14136. ;;
  14137. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14138. case $cc_basename in
  14139. CC*)
  14140. lt_prog_compiler_wl_CXX='-Wl,'
  14141. lt_prog_compiler_pic_CXX='-KPIC'
  14142. lt_prog_compiler_static_CXX='-Bstatic'
  14143. ;;
  14144. esac
  14145. ;;
  14146. tandem*)
  14147. case $cc_basename in
  14148. NCC*)
  14149. # NonStop-UX NCC 3.20
  14150. lt_prog_compiler_pic_CXX='-KPIC'
  14151. ;;
  14152. *)
  14153. ;;
  14154. esac
  14155. ;;
  14156. vxworks*)
  14157. ;;
  14158. *)
  14159. lt_prog_compiler_can_build_shared_CXX=no
  14160. ;;
  14161. esac
  14162. fi
  14163. case $host_os in
  14164. # For platforms that do not support PIC, -DPIC is meaningless:
  14165. *djgpp*)
  14166. lt_prog_compiler_pic_CXX=
  14167. ;;
  14168. *)
  14169. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14170. ;;
  14171. esac
  14172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14173. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14174. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14175. then :
  14176. printf %s "(cached) " >&6
  14177. else $as_nop
  14178. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14179. fi
  14180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14181. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14182. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14183. #
  14184. # Check to make sure the PIC flag actually works.
  14185. #
  14186. if test -n "$lt_prog_compiler_pic_CXX"; then
  14187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14188. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14189. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14190. then :
  14191. printf %s "(cached) " >&6
  14192. else $as_nop
  14193. lt_cv_prog_compiler_pic_works_CXX=no
  14194. ac_outfile=conftest.$ac_objext
  14195. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14196. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14197. # Insert the option either (1) after the last *FLAGS variable, or
  14198. # (2) before a word containing "conftest.", or (3) at the end.
  14199. # Note that $ac_compile itself does not contain backslashes and begins
  14200. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14201. # The option is referenced via a variable to avoid confusing sed.
  14202. lt_compile=`echo "$ac_compile" | $SED \
  14203. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14204. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14205. -e 's:$: $lt_compiler_flag:'`
  14206. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14207. (eval "$lt_compile" 2>conftest.err)
  14208. ac_status=$?
  14209. cat conftest.err >&5
  14210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14211. if (exit $ac_status) && test -s "$ac_outfile"; then
  14212. # The compiler can only warn and ignore the option if not recognized
  14213. # So say no if there are warnings other than the usual output.
  14214. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14215. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14216. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14217. lt_cv_prog_compiler_pic_works_CXX=yes
  14218. fi
  14219. fi
  14220. $RM conftest*
  14221. fi
  14222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14223. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14224. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14225. case $lt_prog_compiler_pic_CXX in
  14226. "" | " "*) ;;
  14227. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14228. esac
  14229. else
  14230. lt_prog_compiler_pic_CXX=
  14231. lt_prog_compiler_can_build_shared_CXX=no
  14232. fi
  14233. fi
  14234. #
  14235. # Check to make sure the static flag actually works.
  14236. #
  14237. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14239. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14240. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14241. then :
  14242. printf %s "(cached) " >&6
  14243. else $as_nop
  14244. lt_cv_prog_compiler_static_works_CXX=no
  14245. save_LDFLAGS=$LDFLAGS
  14246. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14247. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14248. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14249. # The linker can only warn and ignore the option if not recognized
  14250. # So say no if there are warnings
  14251. if test -s conftest.err; then
  14252. # Append any errors to the config.log.
  14253. cat conftest.err 1>&5
  14254. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14255. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14256. if diff conftest.exp conftest.er2 >/dev/null; then
  14257. lt_cv_prog_compiler_static_works_CXX=yes
  14258. fi
  14259. else
  14260. lt_cv_prog_compiler_static_works_CXX=yes
  14261. fi
  14262. fi
  14263. $RM -r conftest*
  14264. LDFLAGS=$save_LDFLAGS
  14265. fi
  14266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14267. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14268. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14269. :
  14270. else
  14271. lt_prog_compiler_static_CXX=
  14272. fi
  14273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14274. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14275. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14276. then :
  14277. printf %s "(cached) " >&6
  14278. else $as_nop
  14279. lt_cv_prog_compiler_c_o_CXX=no
  14280. $RM -r conftest 2>/dev/null
  14281. mkdir conftest
  14282. cd conftest
  14283. mkdir out
  14284. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14285. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14286. # Insert the option either (1) after the last *FLAGS variable, or
  14287. # (2) before a word containing "conftest.", or (3) at the end.
  14288. # Note that $ac_compile itself does not contain backslashes and begins
  14289. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14290. lt_compile=`echo "$ac_compile" | $SED \
  14291. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14292. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14293. -e 's:$: $lt_compiler_flag:'`
  14294. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14295. (eval "$lt_compile" 2>out/conftest.err)
  14296. ac_status=$?
  14297. cat out/conftest.err >&5
  14298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14299. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14300. then
  14301. # The compiler can only warn and ignore the option if not recognized
  14302. # So say no if there are warnings
  14303. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14304. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14305. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14306. lt_cv_prog_compiler_c_o_CXX=yes
  14307. fi
  14308. fi
  14309. chmod u+w . 2>&5
  14310. $RM conftest*
  14311. # SGI C++ compiler will create directory out/ii_files/ for
  14312. # template instantiation
  14313. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14314. $RM out/* && rmdir out
  14315. cd ..
  14316. $RM -r conftest
  14317. $RM conftest*
  14318. fi
  14319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14320. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14322. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14323. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14324. then :
  14325. printf %s "(cached) " >&6
  14326. else $as_nop
  14327. lt_cv_prog_compiler_c_o_CXX=no
  14328. $RM -r conftest 2>/dev/null
  14329. mkdir conftest
  14330. cd conftest
  14331. mkdir out
  14332. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14333. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14334. # Insert the option either (1) after the last *FLAGS variable, or
  14335. # (2) before a word containing "conftest.", or (3) at the end.
  14336. # Note that $ac_compile itself does not contain backslashes and begins
  14337. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14338. lt_compile=`echo "$ac_compile" | $SED \
  14339. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14340. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14341. -e 's:$: $lt_compiler_flag:'`
  14342. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14343. (eval "$lt_compile" 2>out/conftest.err)
  14344. ac_status=$?
  14345. cat out/conftest.err >&5
  14346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14347. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14348. then
  14349. # The compiler can only warn and ignore the option if not recognized
  14350. # So say no if there are warnings
  14351. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14352. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14353. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14354. lt_cv_prog_compiler_c_o_CXX=yes
  14355. fi
  14356. fi
  14357. chmod u+w . 2>&5
  14358. $RM conftest*
  14359. # SGI C++ compiler will create directory out/ii_files/ for
  14360. # template instantiation
  14361. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14362. $RM out/* && rmdir out
  14363. cd ..
  14364. $RM -r conftest
  14365. $RM conftest*
  14366. fi
  14367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14368. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14369. hard_links=nottested
  14370. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14371. # do not overwrite the value of need_locks provided by the user
  14372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14373. printf %s "checking if we can lock with hard links... " >&6; }
  14374. hard_links=yes
  14375. $RM conftest*
  14376. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14377. touch conftest.a
  14378. ln conftest.a conftest.b 2>&5 || hard_links=no
  14379. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14381. printf "%s\n" "$hard_links" >&6; }
  14382. if test no = "$hard_links"; then
  14383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14384. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14385. need_locks=warn
  14386. fi
  14387. else
  14388. need_locks=no
  14389. fi
  14390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14391. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14392. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14393. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14394. case $host_os in
  14395. aix[4-9]*)
  14396. # If we're using GNU nm, then we don't want the "-C" option.
  14397. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14398. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14399. # weak defined symbols like other global defined symbols, whereas
  14400. # GNU nm marks them as "W".
  14401. # While the 'weak' keyword is ignored in the Export File, we need
  14402. # it in the Import File for the 'aix-soname' feature, so we have
  14403. # to replace the "-B" option with "-P" for AIX nm.
  14404. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14405. 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'
  14406. else
  14407. 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'
  14408. fi
  14409. ;;
  14410. pw32*)
  14411. export_symbols_cmds_CXX=$ltdll_cmds
  14412. ;;
  14413. cygwin* | mingw* | cegcc*)
  14414. case $cc_basename in
  14415. cl*)
  14416. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14417. ;;
  14418. *)
  14419. 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'
  14420. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14421. ;;
  14422. esac
  14423. ;;
  14424. *)
  14425. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14426. ;;
  14427. esac
  14428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14429. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14430. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14431. with_gnu_ld_CXX=$with_gnu_ld
  14432. #
  14433. # Do we need to explicitly link libc?
  14434. #
  14435. case "x$archive_cmds_need_lc_CXX" in
  14436. x|xyes)
  14437. # Assume -lc should be added
  14438. archive_cmds_need_lc_CXX=yes
  14439. if test yes,yes = "$GCC,$enable_shared"; then
  14440. case $archive_cmds_CXX in
  14441. *'~'*)
  14442. # FIXME: we may have to deal with multi-command sequences.
  14443. ;;
  14444. '$CC '*)
  14445. # Test whether the compiler implicitly links with -lc since on some
  14446. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14447. # to ld, don't add -lc before -lgcc.
  14448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14449. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14450. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14451. then :
  14452. printf %s "(cached) " >&6
  14453. else $as_nop
  14454. $RM conftest*
  14455. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14456. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14457. (eval $ac_compile) 2>&5
  14458. ac_status=$?
  14459. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14460. test $ac_status = 0; } 2>conftest.err; then
  14461. soname=conftest
  14462. lib=conftest
  14463. libobjs=conftest.$ac_objext
  14464. deplibs=
  14465. wl=$lt_prog_compiler_wl_CXX
  14466. pic_flag=$lt_prog_compiler_pic_CXX
  14467. compiler_flags=-v
  14468. linker_flags=-v
  14469. verstring=
  14470. output_objdir=.
  14471. libname=conftest
  14472. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14473. allow_undefined_flag_CXX=
  14474. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14475. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14476. ac_status=$?
  14477. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14478. test $ac_status = 0; }
  14479. then
  14480. lt_cv_archive_cmds_need_lc_CXX=no
  14481. else
  14482. lt_cv_archive_cmds_need_lc_CXX=yes
  14483. fi
  14484. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14485. else
  14486. cat conftest.err 1>&5
  14487. fi
  14488. $RM conftest*
  14489. fi
  14490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14491. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14492. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14493. ;;
  14494. esac
  14495. fi
  14496. ;;
  14497. esac
  14498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14499. printf %s "checking dynamic linker characteristics... " >&6; }
  14500. library_names_spec=
  14501. libname_spec='lib$name'
  14502. soname_spec=
  14503. shrext_cmds=.so
  14504. postinstall_cmds=
  14505. postuninstall_cmds=
  14506. finish_cmds=
  14507. finish_eval=
  14508. shlibpath_var=
  14509. shlibpath_overrides_runpath=unknown
  14510. version_type=none
  14511. dynamic_linker="$host_os ld.so"
  14512. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14513. need_lib_prefix=unknown
  14514. hardcode_into_libs=no
  14515. # when you set need_version to no, make sure it does not cause -set_version
  14516. # flags to be left without arguments
  14517. need_version=unknown
  14518. case $host_os in
  14519. aix3*)
  14520. version_type=linux # correct to gnu/linux during the next big refactor
  14521. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14522. shlibpath_var=LIBPATH
  14523. # AIX 3 has no versioning support, so we append a major version to the name.
  14524. soname_spec='$libname$release$shared_ext$major'
  14525. ;;
  14526. aix[4-9]*)
  14527. version_type=linux # correct to gnu/linux during the next big refactor
  14528. need_lib_prefix=no
  14529. need_version=no
  14530. hardcode_into_libs=yes
  14531. if test ia64 = "$host_cpu"; then
  14532. # AIX 5 supports IA64
  14533. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14534. shlibpath_var=LD_LIBRARY_PATH
  14535. else
  14536. # With GCC up to 2.95.x, collect2 would create an import file
  14537. # for dependence libraries. The import file would start with
  14538. # the line '#! .'. This would cause the generated library to
  14539. # depend on '.', always an invalid library. This was fixed in
  14540. # development snapshots of GCC prior to 3.0.
  14541. case $host_os in
  14542. aix4 | aix4.[01] | aix4.[01].*)
  14543. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14544. echo ' yes '
  14545. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14546. :
  14547. else
  14548. can_build_shared=no
  14549. fi
  14550. ;;
  14551. esac
  14552. # Using Import Files as archive members, it is possible to support
  14553. # filename-based versioning of shared library archives on AIX. While
  14554. # this would work for both with and without runtime linking, it will
  14555. # prevent static linking of such archives. So we do filename-based
  14556. # shared library versioning with .so extension only, which is used
  14557. # when both runtime linking and shared linking is enabled.
  14558. # Unfortunately, runtime linking may impact performance, so we do
  14559. # not want this to be the default eventually. Also, we use the
  14560. # versioned .so libs for executables only if there is the -brtl
  14561. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14562. # To allow for filename-based versioning support, we need to create
  14563. # libNAME.so.V as an archive file, containing:
  14564. # *) an Import File, referring to the versioned filename of the
  14565. # archive as well as the shared archive member, telling the
  14566. # bitwidth (32 or 64) of that shared object, and providing the
  14567. # list of exported symbols of that shared object, eventually
  14568. # decorated with the 'weak' keyword
  14569. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14570. # it being seen by the linker.
  14571. # At run time we better use the real file rather than another symlink,
  14572. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14573. case $with_aix_soname,$aix_use_runtimelinking in
  14574. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14575. # soname into executable. Probably we can add versioning support to
  14576. # collect2, so additional links can be useful in future.
  14577. aix,yes) # traditional libtool
  14578. dynamic_linker='AIX unversionable lib.so'
  14579. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14580. # instead of lib<name>.a to let people know that these are not
  14581. # typical AIX shared libraries.
  14582. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14583. ;;
  14584. aix,no) # traditional AIX only
  14585. dynamic_linker='AIX lib.a(lib.so.V)'
  14586. # We preserve .a as extension for shared libraries through AIX4.2
  14587. # and later when we are not doing run time linking.
  14588. library_names_spec='$libname$release.a $libname.a'
  14589. soname_spec='$libname$release$shared_ext$major'
  14590. ;;
  14591. svr4,*) # full svr4 only
  14592. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14593. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14594. # We do not specify a path in Import Files, so LIBPATH fires.
  14595. shlibpath_overrides_runpath=yes
  14596. ;;
  14597. *,yes) # both, prefer svr4
  14598. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14599. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14600. # unpreferred sharedlib libNAME.a needs extra handling
  14601. 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"'
  14602. 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"'
  14603. # We do not specify a path in Import Files, so LIBPATH fires.
  14604. shlibpath_overrides_runpath=yes
  14605. ;;
  14606. *,no) # both, prefer aix
  14607. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14608. library_names_spec='$libname$release.a $libname.a'
  14609. soname_spec='$libname$release$shared_ext$major'
  14610. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14611. 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)'
  14612. 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"'
  14613. ;;
  14614. esac
  14615. shlibpath_var=LIBPATH
  14616. fi
  14617. ;;
  14618. amigaos*)
  14619. case $host_cpu in
  14620. powerpc)
  14621. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14622. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14623. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14624. ;;
  14625. m68k)
  14626. library_names_spec='$libname.ixlibrary $libname.a'
  14627. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14628. 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'
  14629. ;;
  14630. esac
  14631. ;;
  14632. beos*)
  14633. library_names_spec='$libname$shared_ext'
  14634. dynamic_linker="$host_os ld.so"
  14635. shlibpath_var=LIBRARY_PATH
  14636. ;;
  14637. bsdi[45]*)
  14638. version_type=linux # correct to gnu/linux during the next big refactor
  14639. need_version=no
  14640. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14641. soname_spec='$libname$release$shared_ext$major'
  14642. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14643. shlibpath_var=LD_LIBRARY_PATH
  14644. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14645. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14646. # the default ld.so.conf also contains /usr/contrib/lib and
  14647. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14648. # libtool to hard-code these into programs
  14649. ;;
  14650. cygwin* | mingw* | pw32* | cegcc*)
  14651. version_type=windows
  14652. shrext_cmds=.dll
  14653. need_version=no
  14654. need_lib_prefix=no
  14655. case $GCC,$cc_basename in
  14656. yes,*)
  14657. # gcc
  14658. library_names_spec='$libname.dll.a'
  14659. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14660. postinstall_cmds='base_file=`basename \$file`~
  14661. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14662. dldir=$destdir/`dirname \$dlpath`~
  14663. test -d \$dldir || mkdir -p \$dldir~
  14664. $install_prog $dir/$dlname \$dldir/$dlname~
  14665. chmod a+x \$dldir/$dlname~
  14666. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14667. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14668. fi'
  14669. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14670. dlpath=$dir/\$dldll~
  14671. $RM \$dlpath'
  14672. shlibpath_overrides_runpath=yes
  14673. case $host_os in
  14674. cygwin*)
  14675. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14676. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14677. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14678. ;;
  14679. mingw* | cegcc*)
  14680. # MinGW DLLs use traditional 'lib' prefix
  14681. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14682. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14683. ;;
  14684. pw32*)
  14685. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14686. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14687. ;;
  14688. esac
  14689. dynamic_linker='Win32 ld.exe'
  14690. ;;
  14691. *,cl*)
  14692. # Native MSVC
  14693. libname_spec='$name'
  14694. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14695. library_names_spec='$libname.dll.lib'
  14696. case $build_os in
  14697. mingw*)
  14698. sys_lib_search_path_spec=
  14699. lt_save_ifs=$IFS
  14700. IFS=';'
  14701. for lt_path in $LIB
  14702. do
  14703. IFS=$lt_save_ifs
  14704. # Let DOS variable expansion print the short 8.3 style file name.
  14705. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14706. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14707. done
  14708. IFS=$lt_save_ifs
  14709. # Convert to MSYS style.
  14710. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14711. ;;
  14712. cygwin*)
  14713. # Convert to unix form, then to dos form, then back to unix form
  14714. # but this time dos style (no spaces!) so that the unix form looks
  14715. # like /cygdrive/c/PROGRA~1:/cygdr...
  14716. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14717. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14718. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14719. ;;
  14720. *)
  14721. sys_lib_search_path_spec=$LIB
  14722. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14723. # It is most probably a Windows format PATH.
  14724. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14725. else
  14726. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14727. fi
  14728. # FIXME: find the short name or the path components, as spaces are
  14729. # common. (e.g. "Program Files" -> "PROGRA~1")
  14730. ;;
  14731. esac
  14732. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14733. postinstall_cmds='base_file=`basename \$file`~
  14734. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14735. dldir=$destdir/`dirname \$dlpath`~
  14736. test -d \$dldir || mkdir -p \$dldir~
  14737. $install_prog $dir/$dlname \$dldir/$dlname'
  14738. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14739. dlpath=$dir/\$dldll~
  14740. $RM \$dlpath'
  14741. shlibpath_overrides_runpath=yes
  14742. dynamic_linker='Win32 link.exe'
  14743. ;;
  14744. *)
  14745. # Assume MSVC wrapper
  14746. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14747. dynamic_linker='Win32 ld.exe'
  14748. ;;
  14749. esac
  14750. # FIXME: first we should search . and the directory the executable is in
  14751. shlibpath_var=PATH
  14752. ;;
  14753. darwin* | rhapsody*)
  14754. dynamic_linker="$host_os dyld"
  14755. version_type=darwin
  14756. need_lib_prefix=no
  14757. need_version=no
  14758. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14759. soname_spec='$libname$release$major$shared_ext'
  14760. shlibpath_overrides_runpath=yes
  14761. shlibpath_var=DYLD_LIBRARY_PATH
  14762. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14763. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14764. ;;
  14765. dgux*)
  14766. version_type=linux # correct to gnu/linux during the next big refactor
  14767. need_lib_prefix=no
  14768. need_version=no
  14769. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14770. soname_spec='$libname$release$shared_ext$major'
  14771. shlibpath_var=LD_LIBRARY_PATH
  14772. ;;
  14773. freebsd* | dragonfly* | midnightbsd*)
  14774. # DragonFly does not have aout. When/if they implement a new
  14775. # versioning mechanism, adjust this.
  14776. if test -x /usr/bin/objformat; then
  14777. objformat=`/usr/bin/objformat`
  14778. else
  14779. case $host_os in
  14780. freebsd[23].*) objformat=aout ;;
  14781. *) objformat=elf ;;
  14782. esac
  14783. fi
  14784. version_type=freebsd-$objformat
  14785. case $version_type in
  14786. freebsd-elf*)
  14787. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14788. soname_spec='$libname$release$shared_ext$major'
  14789. need_version=no
  14790. need_lib_prefix=no
  14791. ;;
  14792. freebsd-*)
  14793. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14794. need_version=yes
  14795. ;;
  14796. esac
  14797. shlibpath_var=LD_LIBRARY_PATH
  14798. case $host_os in
  14799. freebsd2.*)
  14800. shlibpath_overrides_runpath=yes
  14801. ;;
  14802. freebsd3.[01]* | freebsdelf3.[01]*)
  14803. shlibpath_overrides_runpath=yes
  14804. hardcode_into_libs=yes
  14805. ;;
  14806. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14807. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14808. shlibpath_overrides_runpath=no
  14809. hardcode_into_libs=yes
  14810. ;;
  14811. *) # from 4.6 on, and DragonFly
  14812. shlibpath_overrides_runpath=yes
  14813. hardcode_into_libs=yes
  14814. ;;
  14815. esac
  14816. ;;
  14817. haiku*)
  14818. version_type=linux # correct to gnu/linux during the next big refactor
  14819. need_lib_prefix=no
  14820. need_version=no
  14821. dynamic_linker="$host_os runtime_loader"
  14822. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14823. soname_spec='$libname$release$shared_ext$major'
  14824. shlibpath_var=LIBRARY_PATH
  14825. shlibpath_overrides_runpath=no
  14826. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14827. hardcode_into_libs=yes
  14828. ;;
  14829. hpux9* | hpux10* | hpux11*)
  14830. # Give a soname corresponding to the major version so that dld.sl refuses to
  14831. # link against other versions.
  14832. version_type=sunos
  14833. need_lib_prefix=no
  14834. need_version=no
  14835. case $host_cpu in
  14836. ia64*)
  14837. shrext_cmds='.so'
  14838. hardcode_into_libs=yes
  14839. dynamic_linker="$host_os dld.so"
  14840. shlibpath_var=LD_LIBRARY_PATH
  14841. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14842. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14843. soname_spec='$libname$release$shared_ext$major'
  14844. if test 32 = "$HPUX_IA64_MODE"; then
  14845. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14846. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14847. else
  14848. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14849. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14850. fi
  14851. ;;
  14852. hppa*64*)
  14853. shrext_cmds='.sl'
  14854. hardcode_into_libs=yes
  14855. dynamic_linker="$host_os dld.sl"
  14856. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14857. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14858. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14859. soname_spec='$libname$release$shared_ext$major'
  14860. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14861. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14862. ;;
  14863. *)
  14864. shrext_cmds='.sl'
  14865. dynamic_linker="$host_os dld.sl"
  14866. shlibpath_var=SHLIB_PATH
  14867. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14868. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14869. soname_spec='$libname$release$shared_ext$major'
  14870. ;;
  14871. esac
  14872. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14873. postinstall_cmds='chmod 555 $lib'
  14874. # or fails outright, so override atomically:
  14875. install_override_mode=555
  14876. ;;
  14877. interix[3-9]*)
  14878. version_type=linux # correct to gnu/linux during the next big refactor
  14879. need_lib_prefix=no
  14880. need_version=no
  14881. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14882. soname_spec='$libname$release$shared_ext$major'
  14883. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14884. shlibpath_var=LD_LIBRARY_PATH
  14885. shlibpath_overrides_runpath=no
  14886. hardcode_into_libs=yes
  14887. ;;
  14888. irix5* | irix6* | nonstopux*)
  14889. case $host_os in
  14890. nonstopux*) version_type=nonstopux ;;
  14891. *)
  14892. if test yes = "$lt_cv_prog_gnu_ld"; then
  14893. version_type=linux # correct to gnu/linux during the next big refactor
  14894. else
  14895. version_type=irix
  14896. fi ;;
  14897. esac
  14898. need_lib_prefix=no
  14899. need_version=no
  14900. soname_spec='$libname$release$shared_ext$major'
  14901. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14902. case $host_os in
  14903. irix5* | nonstopux*)
  14904. libsuff= shlibsuff=
  14905. ;;
  14906. *)
  14907. case $LD in # libtool.m4 will add one of these switches to LD
  14908. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14909. libsuff= shlibsuff= libmagic=32-bit;;
  14910. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14911. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14912. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14913. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14914. *) libsuff= shlibsuff= libmagic=never-match;;
  14915. esac
  14916. ;;
  14917. esac
  14918. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14919. shlibpath_overrides_runpath=no
  14920. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14921. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14922. hardcode_into_libs=yes
  14923. ;;
  14924. # No shared lib support for Linux oldld, aout, or coff.
  14925. linux*oldld* | linux*aout* | linux*coff*)
  14926. dynamic_linker=no
  14927. ;;
  14928. linux*android*)
  14929. version_type=none # Android doesn't support versioned libraries.
  14930. need_lib_prefix=no
  14931. need_version=no
  14932. library_names_spec='$libname$release$shared_ext'
  14933. soname_spec='$libname$release$shared_ext'
  14934. finish_cmds=
  14935. shlibpath_var=LD_LIBRARY_PATH
  14936. shlibpath_overrides_runpath=yes
  14937. # This implies no fast_install, which is unacceptable.
  14938. # Some rework will be needed to allow for fast_install
  14939. # before this can be enabled.
  14940. hardcode_into_libs=yes
  14941. dynamic_linker='Android linker'
  14942. # Don't embed -rpath directories since the linker doesn't support them.
  14943. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14944. ;;
  14945. # This must be glibc/ELF.
  14946. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  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. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14953. shlibpath_var=LD_LIBRARY_PATH
  14954. shlibpath_overrides_runpath=no
  14955. # Some binutils ld are patched to set DT_RUNPATH
  14956. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14957. then :
  14958. printf %s "(cached) " >&6
  14959. else $as_nop
  14960. lt_cv_shlibpath_overrides_runpath=no
  14961. save_LDFLAGS=$LDFLAGS
  14962. save_libdir=$libdir
  14963. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14964. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14966. /* end confdefs.h. */
  14967. int
  14968. main (void)
  14969. {
  14970. ;
  14971. return 0;
  14972. }
  14973. _ACEOF
  14974. if ac_fn_cxx_try_link "$LINENO"
  14975. then :
  14976. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14977. then :
  14978. lt_cv_shlibpath_overrides_runpath=yes
  14979. fi
  14980. fi
  14981. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14982. conftest$ac_exeext conftest.$ac_ext
  14983. LDFLAGS=$save_LDFLAGS
  14984. libdir=$save_libdir
  14985. fi
  14986. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14987. # This implies no fast_install, which is unacceptable.
  14988. # Some rework will be needed to allow for fast_install
  14989. # before this can be enabled.
  14990. hardcode_into_libs=yes
  14991. # Add ABI-specific directories to the system library path.
  14992. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  14993. # Ideally, we could use ldconfig to report *all* directores which are
  14994. # searched for libraries, however this is still not possible. Aside from not
  14995. # being certain /sbin/ldconfig is available, command
  14996. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14997. # even though it is searched at run-time. Try to do the best guess by
  14998. # appending ld.so.conf contents (and includes) to the search path.
  14999. if test -f /etc/ld.so.conf; then
  15000. 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' ' '`
  15001. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15002. fi
  15003. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15004. # powerpc, because MkLinux only supported shared libraries with the
  15005. # GNU dynamic linker. Since this was broken with cross compilers,
  15006. # most powerpc-linux boxes support dynamic linking these days and
  15007. # people can always --disable-shared, the test was removed, and we
  15008. # assume the GNU/Linux dynamic linker is in use.
  15009. dynamic_linker='GNU/Linux ld.so'
  15010. ;;
  15011. netbsd*)
  15012. version_type=sunos
  15013. need_lib_prefix=no
  15014. need_version=no
  15015. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15016. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15017. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15018. dynamic_linker='NetBSD (a.out) ld.so'
  15019. else
  15020. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15021. soname_spec='$libname$release$shared_ext$major'
  15022. dynamic_linker='NetBSD ld.elf_so'
  15023. fi
  15024. shlibpath_var=LD_LIBRARY_PATH
  15025. shlibpath_overrides_runpath=yes
  15026. hardcode_into_libs=yes
  15027. ;;
  15028. newsos6)
  15029. version_type=linux # correct to gnu/linux during the next big refactor
  15030. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15031. shlibpath_var=LD_LIBRARY_PATH
  15032. shlibpath_overrides_runpath=yes
  15033. ;;
  15034. *nto* | *qnx*)
  15035. version_type=qnx
  15036. need_lib_prefix=no
  15037. need_version=no
  15038. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15039. soname_spec='$libname$release$shared_ext$major'
  15040. shlibpath_var=LD_LIBRARY_PATH
  15041. shlibpath_overrides_runpath=no
  15042. hardcode_into_libs=yes
  15043. dynamic_linker='ldqnx.so'
  15044. ;;
  15045. openbsd* | bitrig*)
  15046. version_type=sunos
  15047. sys_lib_dlsearch_path_spec=/usr/lib
  15048. need_lib_prefix=no
  15049. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15050. need_version=no
  15051. else
  15052. need_version=yes
  15053. fi
  15054. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15055. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15056. shlibpath_var=LD_LIBRARY_PATH
  15057. shlibpath_overrides_runpath=yes
  15058. ;;
  15059. os2*)
  15060. libname_spec='$name'
  15061. shrext_cmds=.dll
  15062. need_lib_prefix=no
  15063. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15064. # SDL customization: removed versioning support.
  15065. # version_type=windows
  15066. # need_version=no
  15067. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15068. # v=$($ECHO $release$versuffix | tr -d .-);
  15069. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15070. # $ECHO $n$v`$shared_ext'
  15071. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15072. library_names_spec='${libname}_dll.$libext'
  15073. dynamic_linker='OS/2 ld.exe'
  15074. shlibpath_var=BEGINLIBPATH
  15075. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15076. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15077. postinstall_cmds='base_file=`basename \$file`~
  15078. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15079. dldir=$destdir/`dirname \$dlpath`~
  15080. test -d \$dldir || mkdir -p \$dldir~
  15081. $install_prog $dir/$dlname \$dldir/$dlname~
  15082. chmod a+x \$dldir/$dlname~
  15083. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15084. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15085. fi'
  15086. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15087. dlpath=$dir/\$dldll~
  15088. $RM \$dlpath'
  15089. ;;
  15090. osf3* | osf4* | osf5*)
  15091. version_type=osf
  15092. need_lib_prefix=no
  15093. need_version=no
  15094. soname_spec='$libname$release$shared_ext$major'
  15095. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15096. shlibpath_var=LD_LIBRARY_PATH
  15097. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15098. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15099. ;;
  15100. rdos*)
  15101. dynamic_linker=no
  15102. ;;
  15103. solaris*)
  15104. version_type=linux # correct to gnu/linux during the next big refactor
  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=yes
  15111. hardcode_into_libs=yes
  15112. # ldd complains unless libraries are executable
  15113. postinstall_cmds='chmod +x $lib'
  15114. ;;
  15115. sunos4*)
  15116. version_type=sunos
  15117. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15118. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15119. shlibpath_var=LD_LIBRARY_PATH
  15120. shlibpath_overrides_runpath=yes
  15121. if test yes = "$with_gnu_ld"; then
  15122. need_lib_prefix=no
  15123. fi
  15124. need_version=yes
  15125. ;;
  15126. sysv4 | sysv4.3*)
  15127. version_type=linux # correct to gnu/linux during the next big refactor
  15128. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15129. soname_spec='$libname$release$shared_ext$major'
  15130. shlibpath_var=LD_LIBRARY_PATH
  15131. case $host_vendor in
  15132. sni)
  15133. shlibpath_overrides_runpath=no
  15134. need_lib_prefix=no
  15135. runpath_var=LD_RUN_PATH
  15136. ;;
  15137. siemens)
  15138. need_lib_prefix=no
  15139. ;;
  15140. motorola)
  15141. need_lib_prefix=no
  15142. need_version=no
  15143. shlibpath_overrides_runpath=no
  15144. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15145. ;;
  15146. esac
  15147. ;;
  15148. sysv4*MP*)
  15149. if test -d /usr/nec; then
  15150. version_type=linux # correct to gnu/linux during the next big refactor
  15151. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15152. soname_spec='$libname$shared_ext.$major'
  15153. shlibpath_var=LD_LIBRARY_PATH
  15154. fi
  15155. ;;
  15156. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15157. version_type=sco
  15158. need_lib_prefix=no
  15159. need_version=no
  15160. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15161. soname_spec='$libname$release$shared_ext$major'
  15162. shlibpath_var=LD_LIBRARY_PATH
  15163. shlibpath_overrides_runpath=yes
  15164. hardcode_into_libs=yes
  15165. if test yes = "$with_gnu_ld"; then
  15166. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15167. else
  15168. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15169. case $host_os in
  15170. sco3.2v5*)
  15171. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15172. ;;
  15173. esac
  15174. fi
  15175. sys_lib_dlsearch_path_spec='/usr/lib'
  15176. ;;
  15177. tpf*)
  15178. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15179. version_type=linux # correct to gnu/linux during the next big refactor
  15180. need_lib_prefix=no
  15181. need_version=no
  15182. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15183. shlibpath_var=LD_LIBRARY_PATH
  15184. shlibpath_overrides_runpath=no
  15185. hardcode_into_libs=yes
  15186. ;;
  15187. uts4*)
  15188. version_type=linux # correct to gnu/linux during the next big refactor
  15189. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15190. soname_spec='$libname$release$shared_ext$major'
  15191. shlibpath_var=LD_LIBRARY_PATH
  15192. ;;
  15193. *)
  15194. dynamic_linker=no
  15195. ;;
  15196. esac
  15197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15198. printf "%s\n" "$dynamic_linker" >&6; }
  15199. test no = "$dynamic_linker" && can_build_shared=no
  15200. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15201. if test yes = "$GCC"; then
  15202. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15203. fi
  15204. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15205. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15206. fi
  15207. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15208. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15209. fi
  15210. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15211. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15212. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15213. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15214. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15215. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15217. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15218. hardcode_action_CXX=
  15219. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15220. test -n "$runpath_var_CXX" ||
  15221. test yes = "$hardcode_automatic_CXX"; then
  15222. # We can hardcode non-existent directories.
  15223. if test no != "$hardcode_direct_CXX" &&
  15224. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15225. # have to relink, otherwise we might link with an installed library
  15226. # when we should be linking with a yet-to-be-installed one
  15227. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15228. test no != "$hardcode_minus_L_CXX"; then
  15229. # Linking always hardcodes the temporary library directory.
  15230. hardcode_action_CXX=relink
  15231. else
  15232. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15233. hardcode_action_CXX=immediate
  15234. fi
  15235. else
  15236. # We cannot hardcode anything, or else we can only hardcode existing
  15237. # directories.
  15238. hardcode_action_CXX=unsupported
  15239. fi
  15240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15241. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15242. if test relink = "$hardcode_action_CXX" ||
  15243. test yes = "$inherit_rpath_CXX"; then
  15244. # Fast installation is not supported
  15245. enable_fast_install=no
  15246. elif test yes = "$shlibpath_overrides_runpath" ||
  15247. test no = "$enable_shared"; then
  15248. # Fast installation is not necessary
  15249. enable_fast_install=needless
  15250. fi
  15251. fi # test -n "$compiler"
  15252. CC=$lt_save_CC
  15253. CFLAGS=$lt_save_CFLAGS
  15254. LDCXX=$LD
  15255. LD=$lt_save_LD
  15256. GCC=$lt_save_GCC
  15257. with_gnu_ld=$lt_save_with_gnu_ld
  15258. lt_cv_path_LDCXX=$lt_cv_path_LD
  15259. lt_cv_path_LD=$lt_save_path_LD
  15260. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15261. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15262. fi # test yes != "$_lt_caught_CXX_error"
  15263. ac_ext=c
  15264. ac_cpp='$CPP $CPPFLAGS'
  15265. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15266. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15267. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15269. printf %s "checking for egrep... " >&6; }
  15270. if test ${ac_cv_path_EGREP+y}
  15271. then :
  15272. printf %s "(cached) " >&6
  15273. else $as_nop
  15274. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15275. then ac_cv_path_EGREP="$GREP -E"
  15276. else
  15277. if test -z "$EGREP"; then
  15278. ac_path_EGREP_found=false
  15279. # Loop through the user's path and test for each of PROGNAME-LIST
  15280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15281. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15282. do
  15283. IFS=$as_save_IFS
  15284. case $as_dir in #(((
  15285. '') as_dir=./ ;;
  15286. */) ;;
  15287. *) as_dir=$as_dir/ ;;
  15288. esac
  15289. for ac_prog in egrep
  15290. do
  15291. for ac_exec_ext in '' $ac_executable_extensions; do
  15292. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15293. as_fn_executable_p "$ac_path_EGREP" || continue
  15294. # Check for GNU ac_path_EGREP and select it if it is found.
  15295. # Check for GNU $ac_path_EGREP
  15296. case `"$ac_path_EGREP" --version 2>&1` in
  15297. *GNU*)
  15298. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15299. *)
  15300. ac_count=0
  15301. printf %s 0123456789 >"conftest.in"
  15302. while :
  15303. do
  15304. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15305. mv "conftest.tmp" "conftest.in"
  15306. cp "conftest.in" "conftest.nl"
  15307. printf "%s\n" 'EGREP' >> "conftest.nl"
  15308. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15309. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15310. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15311. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15312. # Best one so far, save it but keep looking for a better one
  15313. ac_cv_path_EGREP="$ac_path_EGREP"
  15314. ac_path_EGREP_max=$ac_count
  15315. fi
  15316. # 10*(2^10) chars as input seems more than enough
  15317. test $ac_count -gt 10 && break
  15318. done
  15319. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15320. esac
  15321. $ac_path_EGREP_found && break 3
  15322. done
  15323. done
  15324. done
  15325. IFS=$as_save_IFS
  15326. if test -z "$ac_cv_path_EGREP"; then
  15327. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15328. fi
  15329. else
  15330. ac_cv_path_EGREP=$EGREP
  15331. fi
  15332. fi
  15333. fi
  15334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15335. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15336. EGREP="$ac_cv_path_EGREP"
  15337. # Find a good install program. We prefer a C program (faster),
  15338. # so one script is as good as another. But avoid the broken or
  15339. # incompatible versions:
  15340. # SysV /etc/install, /usr/sbin/install
  15341. # SunOS /usr/etc/install
  15342. # IRIX /sbin/install
  15343. # AIX /bin/install
  15344. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15345. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15346. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15347. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15348. # OS/2's system install, which has a completely different semantic
  15349. # ./install, which can be erroneously created by make from ./install.sh.
  15350. # Reject install programs that cannot install multiple files.
  15351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15352. printf %s "checking for a BSD-compatible install... " >&6; }
  15353. if test -z "$INSTALL"; then
  15354. if test ${ac_cv_path_install+y}
  15355. then :
  15356. printf %s "(cached) " >&6
  15357. else $as_nop
  15358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15359. for as_dir in $PATH
  15360. do
  15361. IFS=$as_save_IFS
  15362. case $as_dir in #(((
  15363. '') as_dir=./ ;;
  15364. */) ;;
  15365. *) as_dir=$as_dir/ ;;
  15366. esac
  15367. # Account for fact that we put trailing slashes in our PATH walk.
  15368. case $as_dir in #((
  15369. ./ | /[cC]/* | \
  15370. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15371. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15372. /usr/ucb/* ) ;;
  15373. *)
  15374. # OSF1 and SCO ODT 3.0 have their own names for install.
  15375. # Don't use installbsd from OSF since it installs stuff as root
  15376. # by default.
  15377. for ac_prog in ginstall scoinst install; do
  15378. for ac_exec_ext in '' $ac_executable_extensions; do
  15379. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15380. if test $ac_prog = install &&
  15381. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15382. # AIX install. It has an incompatible calling convention.
  15383. :
  15384. elif test $ac_prog = install &&
  15385. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15386. # program-specific install script used by HP pwplus--don't use.
  15387. :
  15388. else
  15389. rm -rf conftest.one conftest.two conftest.dir
  15390. echo one > conftest.one
  15391. echo two > conftest.two
  15392. mkdir conftest.dir
  15393. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15394. test -s conftest.one && test -s conftest.two &&
  15395. test -s conftest.dir/conftest.one &&
  15396. test -s conftest.dir/conftest.two
  15397. then
  15398. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15399. break 3
  15400. fi
  15401. fi
  15402. fi
  15403. done
  15404. done
  15405. ;;
  15406. esac
  15407. done
  15408. IFS=$as_save_IFS
  15409. rm -rf conftest.one conftest.two conftest.dir
  15410. fi
  15411. if test ${ac_cv_path_install+y}; then
  15412. INSTALL=$ac_cv_path_install
  15413. else
  15414. # As a last resort, use the slow shell script. Don't cache a
  15415. # value for INSTALL within a source directory, because that will
  15416. # break other packages using the cache if that directory is
  15417. # removed, or if the value is a relative name.
  15418. INSTALL=$ac_install_sh
  15419. fi
  15420. fi
  15421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15422. printf "%s\n" "$INSTALL" >&6; }
  15423. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15424. # It thinks the first close brace ends the variable substitution.
  15425. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15426. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15427. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15429. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15430. set x ${MAKE-make}
  15431. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15432. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15433. then :
  15434. printf %s "(cached) " >&6
  15435. else $as_nop
  15436. cat >conftest.make <<\_ACEOF
  15437. SHELL = /bin/sh
  15438. all:
  15439. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15440. _ACEOF
  15441. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15442. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15443. *@@@%%%=?*=@@@%%%*)
  15444. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15445. *)
  15446. eval ac_cv_prog_make_${ac_make}_set=no;;
  15447. esac
  15448. rm -f conftest.make
  15449. fi
  15450. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15452. printf "%s\n" "yes" >&6; }
  15453. SET_MAKE=
  15454. else
  15455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15456. printf "%s\n" "no" >&6; }
  15457. SET_MAKE="MAKE=${MAKE-make}"
  15458. fi
  15459. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15460. if test -n "$ac_tool_prefix"; then
  15461. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15462. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15464. printf %s "checking for $ac_word... " >&6; }
  15465. if test ${ac_cv_path_PKG_CONFIG+y}
  15466. then :
  15467. printf %s "(cached) " >&6
  15468. else $as_nop
  15469. case $PKG_CONFIG in
  15470. [\\/]* | ?:[\\/]*)
  15471. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15472. ;;
  15473. *)
  15474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15475. for as_dir in $PATH
  15476. do
  15477. IFS=$as_save_IFS
  15478. case $as_dir in #(((
  15479. '') as_dir=./ ;;
  15480. */) ;;
  15481. *) as_dir=$as_dir/ ;;
  15482. esac
  15483. for ac_exec_ext in '' $ac_executable_extensions; do
  15484. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15485. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15486. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15487. break 2
  15488. fi
  15489. done
  15490. done
  15491. IFS=$as_save_IFS
  15492. ;;
  15493. esac
  15494. fi
  15495. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15496. if test -n "$PKG_CONFIG"; then
  15497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15498. printf "%s\n" "$PKG_CONFIG" >&6; }
  15499. else
  15500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15501. printf "%s\n" "no" >&6; }
  15502. fi
  15503. fi
  15504. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15505. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15506. # Extract the first word of "pkg-config", so it can be a program name with args.
  15507. set dummy pkg-config; ac_word=$2
  15508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15509. printf %s "checking for $ac_word... " >&6; }
  15510. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15511. then :
  15512. printf %s "(cached) " >&6
  15513. else $as_nop
  15514. case $ac_pt_PKG_CONFIG in
  15515. [\\/]* | ?:[\\/]*)
  15516. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15517. ;;
  15518. *)
  15519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15520. for as_dir in $PATH
  15521. do
  15522. IFS=$as_save_IFS
  15523. case $as_dir in #(((
  15524. '') as_dir=./ ;;
  15525. */) ;;
  15526. *) as_dir=$as_dir/ ;;
  15527. esac
  15528. for ac_exec_ext in '' $ac_executable_extensions; do
  15529. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15530. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15531. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15532. break 2
  15533. fi
  15534. done
  15535. done
  15536. IFS=$as_save_IFS
  15537. ;;
  15538. esac
  15539. fi
  15540. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15541. if test -n "$ac_pt_PKG_CONFIG"; then
  15542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15543. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15544. else
  15545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15546. printf "%s\n" "no" >&6; }
  15547. fi
  15548. if test "x$ac_pt_PKG_CONFIG" = x; then
  15549. PKG_CONFIG=""
  15550. else
  15551. case $cross_compiling:$ac_tool_warned in
  15552. yes:)
  15553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15554. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15555. ac_tool_warned=yes ;;
  15556. esac
  15557. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15558. fi
  15559. else
  15560. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15561. fi
  15562. fi
  15563. if test -n "$PKG_CONFIG"; then
  15564. _pkg_min_version=0.9.0
  15565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15566. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15567. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15569. printf "%s\n" "yes" >&6; }
  15570. else
  15571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15572. printf "%s\n" "no" >&6; }
  15573. PKG_CONFIG=""
  15574. fi
  15575. fi
  15576. if test -z "$AWK" ; then
  15577. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15578. fi
  15579. # Check whether --enable-largefile was given.
  15580. if test ${enable_largefile+y}
  15581. then :
  15582. enableval=$enable_largefile;
  15583. fi
  15584. if test "$enable_largefile" != no; then
  15585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15586. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15587. if test ${ac_cv_sys_largefile_CC+y}
  15588. then :
  15589. printf %s "(cached) " >&6
  15590. else $as_nop
  15591. ac_cv_sys_largefile_CC=no
  15592. if test "$GCC" != yes; then
  15593. ac_save_CC=$CC
  15594. while :; do
  15595. # IRIX 6.2 and later do not support large files by default,
  15596. # so use the C compiler's -n32 option if that helps.
  15597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15598. /* end confdefs.h. */
  15599. #include <sys/types.h>
  15600. /* Check that off_t can represent 2**63 - 1 correctly.
  15601. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15602. since some C++ compilers masquerading as C compilers
  15603. incorrectly reject 9223372036854775807. */
  15604. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15605. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15606. && LARGE_OFF_T % 2147483647 == 1)
  15607. ? 1 : -1];
  15608. int
  15609. main (void)
  15610. {
  15611. ;
  15612. return 0;
  15613. }
  15614. _ACEOF
  15615. if ac_fn_c_try_compile "$LINENO"
  15616. then :
  15617. break
  15618. fi
  15619. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15620. CC="$CC -n32"
  15621. if ac_fn_c_try_compile "$LINENO"
  15622. then :
  15623. ac_cv_sys_largefile_CC=' -n32'; break
  15624. fi
  15625. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15626. break
  15627. done
  15628. CC=$ac_save_CC
  15629. rm -f conftest.$ac_ext
  15630. fi
  15631. fi
  15632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15633. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15634. if test "$ac_cv_sys_largefile_CC" != no; then
  15635. CC=$CC$ac_cv_sys_largefile_CC
  15636. fi
  15637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15638. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15639. if test ${ac_cv_sys_file_offset_bits+y}
  15640. then :
  15641. printf %s "(cached) " >&6
  15642. else $as_nop
  15643. while :; do
  15644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15645. /* end confdefs.h. */
  15646. #include <sys/types.h>
  15647. /* Check that off_t can represent 2**63 - 1 correctly.
  15648. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15649. since some C++ compilers masquerading as C compilers
  15650. incorrectly reject 9223372036854775807. */
  15651. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15652. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15653. && LARGE_OFF_T % 2147483647 == 1)
  15654. ? 1 : -1];
  15655. int
  15656. main (void)
  15657. {
  15658. ;
  15659. return 0;
  15660. }
  15661. _ACEOF
  15662. if ac_fn_c_try_compile "$LINENO"
  15663. then :
  15664. ac_cv_sys_file_offset_bits=no; break
  15665. fi
  15666. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15668. /* end confdefs.h. */
  15669. #define _FILE_OFFSET_BITS 64
  15670. #include <sys/types.h>
  15671. /* Check that off_t can represent 2**63 - 1 correctly.
  15672. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15673. since some C++ compilers masquerading as C compilers
  15674. incorrectly reject 9223372036854775807. */
  15675. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15676. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15677. && LARGE_OFF_T % 2147483647 == 1)
  15678. ? 1 : -1];
  15679. int
  15680. main (void)
  15681. {
  15682. ;
  15683. return 0;
  15684. }
  15685. _ACEOF
  15686. if ac_fn_c_try_compile "$LINENO"
  15687. then :
  15688. ac_cv_sys_file_offset_bits=64; break
  15689. fi
  15690. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15691. ac_cv_sys_file_offset_bits=unknown
  15692. break
  15693. done
  15694. fi
  15695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15696. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15697. case $ac_cv_sys_file_offset_bits in #(
  15698. no | unknown) ;;
  15699. *)
  15700. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15701. ;;
  15702. esac
  15703. rm -rf conftest*
  15704. if test $ac_cv_sys_file_offset_bits = unknown; then
  15705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15706. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15707. if test ${ac_cv_sys_large_files+y}
  15708. then :
  15709. printf %s "(cached) " >&6
  15710. else $as_nop
  15711. while :; do
  15712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15713. /* end confdefs.h. */
  15714. #include <sys/types.h>
  15715. /* Check that off_t can represent 2**63 - 1 correctly.
  15716. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15717. since some C++ compilers masquerading as C compilers
  15718. incorrectly reject 9223372036854775807. */
  15719. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15720. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15721. && LARGE_OFF_T % 2147483647 == 1)
  15722. ? 1 : -1];
  15723. int
  15724. main (void)
  15725. {
  15726. ;
  15727. return 0;
  15728. }
  15729. _ACEOF
  15730. if ac_fn_c_try_compile "$LINENO"
  15731. then :
  15732. ac_cv_sys_large_files=no; break
  15733. fi
  15734. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15736. /* end confdefs.h. */
  15737. #define _LARGE_FILES 1
  15738. #include <sys/types.h>
  15739. /* Check that off_t can represent 2**63 - 1 correctly.
  15740. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15741. since some C++ compilers masquerading as C compilers
  15742. incorrectly reject 9223372036854775807. */
  15743. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15744. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15745. && LARGE_OFF_T % 2147483647 == 1)
  15746. ? 1 : -1];
  15747. int
  15748. main (void)
  15749. {
  15750. ;
  15751. return 0;
  15752. }
  15753. _ACEOF
  15754. if ac_fn_c_try_compile "$LINENO"
  15755. then :
  15756. ac_cv_sys_large_files=1; break
  15757. fi
  15758. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15759. ac_cv_sys_large_files=unknown
  15760. break
  15761. done
  15762. fi
  15763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15764. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15765. case $ac_cv_sys_large_files in #(
  15766. no | unknown) ;;
  15767. *)
  15768. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15769. ;;
  15770. esac
  15771. rm -rf conftest*
  15772. fi
  15773. fi
  15774. case "$host" in
  15775. *-*-mingw*)
  15776. # Except on msys, where make can't handle full pathnames (bug 1972)
  15777. ;;
  15778. *)
  15779. srcdir=`cd $srcdir && pwd`
  15780. ;;
  15781. esac
  15782. INCLUDE="-I$srcdir/include"
  15783. case "$host" in
  15784. *-*-nto-qnx*)
  15785. ;;
  15786. *)
  15787. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15788. ;;
  15789. esac
  15790. case "$host" in
  15791. *-*-haiku*)
  15792. LINKER='$(CXX)'
  15793. LIBTOOLLINKERTAG='CXX'
  15794. ;;
  15795. *)
  15796. LINKER='$(CC)'
  15797. LIBTOOLLINKERTAG='CC'
  15798. ;;
  15799. esac
  15800. if test x$srcdir != x.; then
  15801. INCLUDE="-Iinclude $INCLUDE"
  15802. elif test -d .git; then
  15803. as_fn_error $? "
  15804. *** When building from a git clone you should configure and build in a
  15805. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15806. " "$LINENO" 5
  15807. fi
  15808. BASE_CFLAGS=""
  15809. BASE_LDFLAGS=""
  15810. case "$host" in
  15811. *-*-cygwin*)
  15812. # We build SDL on cygwin without the UNIX emulation layer
  15813. save_CFLAGS="$CFLAGS"
  15814. have_no_cygwin=no
  15815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15816. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15817. CFLAGS="$save_CFLAGS -mno-cygwin"
  15818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15819. /* end confdefs.h. */
  15820. int
  15821. main (void)
  15822. {
  15823. ;
  15824. return 0;
  15825. }
  15826. _ACEOF
  15827. if ac_fn_c_try_compile "$LINENO"
  15828. then :
  15829. have_no_cygwin=yes
  15830. fi
  15831. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15833. printf "%s\n" "$have_no_cygwin" >&6; }
  15834. CFLAGS="$save_CFLAGS"
  15835. if test x$have_no_cygwin = xyes; then
  15836. BASE_CFLAGS="-mno-cygwin"
  15837. BASE_LDFLAGS="-mno-cygwin"
  15838. fi
  15839. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15840. ;;
  15841. esac
  15842. # Uncomment the following line if you want to force SDL and applications
  15843. # built with it to be compiled for a particular architecture.
  15844. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15845. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15846. # The default optimization for SDL is -O3 (Bug #31)
  15847. if test "x$orig_CFLAGS" = x; then
  15848. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15849. fi
  15850. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15851. BUILD_LDFLAGS="$LDFLAGS"
  15852. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15853. ## These are common directories to find software packages
  15854. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15855. # if test -d $path/include; then
  15856. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15857. # fi
  15858. # if test -d $path/lib; then
  15859. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15860. # fi
  15861. #done
  15862. SDL_CFLAGS="$BASE_CFLAGS"
  15863. SDL_LIBS="-lSDL2"
  15864. if test "x$BASE_LDFLAGS" != x; then
  15865. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15866. fi
  15867. if test "x$EXTRA_CFLAGS" != x; then
  15868. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15869. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15870. fi
  15871. if test "x$EXTRA_LDFLAGS" != x; then
  15872. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15873. fi
  15874. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15875. find_lib()
  15876. {
  15877. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15878. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15879. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15880. if test "$cross_compiling" = yes; then
  15881. host_lib_path=""
  15882. else
  15883. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15884. fi
  15885. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15886. 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`
  15887. if test x$lib != x; then
  15888. echo $lib
  15889. return
  15890. fi
  15891. done
  15892. }
  15893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15894. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15895. if test ${ac_cv_c_const+y}
  15896. then :
  15897. printf %s "(cached) " >&6
  15898. else $as_nop
  15899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15900. /* end confdefs.h. */
  15901. int
  15902. main (void)
  15903. {
  15904. #ifndef __cplusplus
  15905. /* Ultrix mips cc rejects this sort of thing. */
  15906. typedef int charset[2];
  15907. const charset cs = { 0, 0 };
  15908. /* SunOS 4.1.1 cc rejects this. */
  15909. char const *const *pcpcc;
  15910. char **ppc;
  15911. /* NEC SVR4.0.2 mips cc rejects this. */
  15912. struct point {int x, y;};
  15913. static struct point const zero = {0,0};
  15914. /* IBM XL C 1.02.0.0 rejects this.
  15915. It does not let you subtract one const X* pointer from another in
  15916. an arm of an if-expression whose if-part is not a constant
  15917. expression */
  15918. const char *g = "string";
  15919. pcpcc = &g + (g ? g-g : 0);
  15920. /* HPUX 7.0 cc rejects these. */
  15921. ++pcpcc;
  15922. ppc = (char**) pcpcc;
  15923. pcpcc = (char const *const *) ppc;
  15924. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15925. char tx;
  15926. char *t = &tx;
  15927. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15928. *t++ = 0;
  15929. if (s) return 0;
  15930. }
  15931. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15932. int x[] = {25, 17};
  15933. const int *foo = &x[0];
  15934. ++foo;
  15935. }
  15936. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15937. typedef const int *iptr;
  15938. iptr p = 0;
  15939. ++p;
  15940. }
  15941. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  15942. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15943. struct s { int j; const int *ap[3]; } bx;
  15944. struct s *b = &bx; b->j = 5;
  15945. }
  15946. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15947. const int foo = 10;
  15948. if (!foo) return 0;
  15949. }
  15950. return !cs[0] && !zero.x;
  15951. #endif
  15952. ;
  15953. return 0;
  15954. }
  15955. _ACEOF
  15956. if ac_fn_c_try_compile "$LINENO"
  15957. then :
  15958. ac_cv_c_const=yes
  15959. else $as_nop
  15960. ac_cv_c_const=no
  15961. fi
  15962. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15963. fi
  15964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  15965. printf "%s\n" "$ac_cv_c_const" >&6; }
  15966. if test $ac_cv_c_const = no; then
  15967. printf "%s\n" "#define const /**/" >>confdefs.h
  15968. fi
  15969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  15970. printf %s "checking for inline... " >&6; }
  15971. if test ${ac_cv_c_inline+y}
  15972. then :
  15973. printf %s "(cached) " >&6
  15974. else $as_nop
  15975. ac_cv_c_inline=no
  15976. for ac_kw in inline __inline__ __inline; do
  15977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15978. /* end confdefs.h. */
  15979. #ifndef __cplusplus
  15980. typedef int foo_t;
  15981. static $ac_kw foo_t static_foo (void) {return 0; }
  15982. $ac_kw foo_t foo (void) {return 0; }
  15983. #endif
  15984. _ACEOF
  15985. if ac_fn_c_try_compile "$LINENO"
  15986. then :
  15987. ac_cv_c_inline=$ac_kw
  15988. fi
  15989. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15990. test "$ac_cv_c_inline" != no && break
  15991. done
  15992. fi
  15993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  15994. printf "%s\n" "$ac_cv_c_inline" >&6; }
  15995. case $ac_cv_c_inline in
  15996. inline | yes) ;;
  15997. *)
  15998. case $ac_cv_c_inline in
  15999. no) ac_val=;;
  16000. *) ac_val=$ac_cv_c_inline;;
  16001. esac
  16002. cat >>confdefs.h <<_ACEOF
  16003. #ifndef __cplusplus
  16004. #define inline $ac_val
  16005. #endif
  16006. _ACEOF
  16007. ;;
  16008. esac
  16009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16010. printf %s "checking for working volatile... " >&6; }
  16011. if test ${ac_cv_c_volatile+y}
  16012. then :
  16013. printf %s "(cached) " >&6
  16014. else $as_nop
  16015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16016. /* end confdefs.h. */
  16017. int
  16018. main (void)
  16019. {
  16020. volatile int x;
  16021. int * volatile y = (int *) 0;
  16022. return !x && !y;
  16023. ;
  16024. return 0;
  16025. }
  16026. _ACEOF
  16027. if ac_fn_c_try_compile "$LINENO"
  16028. then :
  16029. ac_cv_c_volatile=yes
  16030. else $as_nop
  16031. ac_cv_c_volatile=no
  16032. fi
  16033. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16034. fi
  16035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16036. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16037. if test $ac_cv_c_volatile = no; then
  16038. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16039. fi
  16040. # Check whether --enable-assertions was given.
  16041. if test ${enable_assertions+y}
  16042. then :
  16043. enableval=$enable_assertions;
  16044. else $as_nop
  16045. enable_assertions=auto
  16046. fi
  16047. case "$enable_assertions" in
  16048. auto) # Use optimization settings to determine assertion level
  16049. ;;
  16050. disabled)
  16051. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16052. ;;
  16053. release)
  16054. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16055. ;;
  16056. enabled)
  16057. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16058. ;;
  16059. paranoid)
  16060. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16061. ;;
  16062. *)
  16063. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16064. ;;
  16065. esac
  16066. 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"
  16067. # Check whether --enable-dependency-tracking was given.
  16068. if test ${enable_dependency_tracking+y}
  16069. then :
  16070. enableval=$enable_dependency_tracking;
  16071. else $as_nop
  16072. enable_dependency_tracking=yes
  16073. fi
  16074. if test x$enable_dependency_tracking = xyes; then
  16075. have_gcc_mmd_mt=no
  16076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16077. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16079. /* end confdefs.h. */
  16080. #if !defined(__GNUC__) || __GNUC__ < 3
  16081. #error Dependency tracking requires GCC 3.0 or newer
  16082. #endif
  16083. int
  16084. main (void)
  16085. {
  16086. ;
  16087. return 0;
  16088. }
  16089. _ACEOF
  16090. if ac_fn_c_try_compile "$LINENO"
  16091. then :
  16092. have_gcc_mmd_mt=yes
  16093. fi
  16094. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16096. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16097. if test x$have_gcc_mmd_mt = xyes; then
  16098. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16099. fi
  16100. fi
  16101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16102. printf %s "checking for linker option --no-undefined... " >&6; }
  16103. have_no_undefined=no
  16104. case "$host" in
  16105. *-*-openbsd*)
  16106. ;;
  16107. *)
  16108. save_LDFLAGS="$LDFLAGS"
  16109. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16111. /* end confdefs.h. */
  16112. int
  16113. main (void)
  16114. {
  16115. ;
  16116. return 0;
  16117. }
  16118. _ACEOF
  16119. if ac_fn_c_try_link "$LINENO"
  16120. then :
  16121. have_no_undefined=yes
  16122. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16123. fi
  16124. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16125. conftest$ac_exeext conftest.$ac_ext
  16126. LDFLAGS="$save_LDFLAGS"
  16127. ;;
  16128. esac
  16129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16130. printf "%s\n" "$have_no_undefined" >&6; }
  16131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16132. printf %s "checking for linker option --dynamicbase... " >&6; }
  16133. have_dynamicbase=no
  16134. case "$host" in
  16135. *)
  16136. save_LDFLAGS="$LDFLAGS"
  16137. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16139. /* end confdefs.h. */
  16140. int
  16141. main (void)
  16142. {
  16143. ;
  16144. return 0;
  16145. }
  16146. _ACEOF
  16147. if ac_fn_c_try_link "$LINENO"
  16148. then :
  16149. have_dynamicbase=yes
  16150. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16151. fi
  16152. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16153. conftest$ac_exeext conftest.$ac_ext
  16154. LDFLAGS="$save_LDFLAGS"
  16155. ;;
  16156. esac
  16157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16158. printf "%s\n" "$have_dynamicbase" >&6; }
  16159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16160. printf %s "checking for linker option --nxcompat... " >&6; }
  16161. have_nxcompat=no
  16162. case "$host" in
  16163. *)
  16164. save_LDFLAGS="$LDFLAGS"
  16165. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16167. /* end confdefs.h. */
  16168. int
  16169. main (void)
  16170. {
  16171. ;
  16172. return 0;
  16173. }
  16174. _ACEOF
  16175. if ac_fn_c_try_link "$LINENO"
  16176. then :
  16177. have_nxcompat=yes
  16178. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16179. fi
  16180. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16181. conftest$ac_exeext conftest.$ac_ext
  16182. LDFLAGS="$save_LDFLAGS"
  16183. ;;
  16184. esac
  16185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16186. printf "%s\n" "$have_nxcompat" >&6; }
  16187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16188. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16189. have_high_entropy_va=no
  16190. case "$host" in
  16191. *)
  16192. save_LDFLAGS="$LDFLAGS"
  16193. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16195. /* end confdefs.h. */
  16196. int
  16197. main (void)
  16198. {
  16199. ;
  16200. return 0;
  16201. }
  16202. _ACEOF
  16203. if ac_fn_c_try_link "$LINENO"
  16204. then :
  16205. have_high_entropy_va=yes
  16206. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16207. fi
  16208. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16209. conftest$ac_exeext conftest.$ac_ext
  16210. LDFLAGS="$save_LDFLAGS"
  16211. ;;
  16212. esac
  16213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16214. printf "%s\n" "$have_high_entropy_va" >&6; }
  16215. # Check whether --enable-libc was given.
  16216. if test ${enable_libc+y}
  16217. then :
  16218. enableval=$enable_libc;
  16219. else $as_nop
  16220. enable_libc=yes
  16221. fi
  16222. if test x$enable_libc = xyes; then
  16223. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16224. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16225. if test "x$ac_cv_header_sys_types_h" = xyes
  16226. then :
  16227. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16228. fi
  16229. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16230. if test "x$ac_cv_header_stdio_h" = xyes
  16231. then :
  16232. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16233. fi
  16234. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16235. if test "x$ac_cv_header_stdlib_h" = xyes
  16236. then :
  16237. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16238. fi
  16239. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16240. if test "x$ac_cv_header_stddef_h" = xyes
  16241. then :
  16242. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16243. fi
  16244. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16245. if test "x$ac_cv_header_stdarg_h" = xyes
  16246. then :
  16247. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16248. fi
  16249. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16250. if test "x$ac_cv_header_malloc_h" = xyes
  16251. then :
  16252. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16253. fi
  16254. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16255. if test "x$ac_cv_header_memory_h" = xyes
  16256. then :
  16257. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16258. fi
  16259. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16260. if test "x$ac_cv_header_string_h" = xyes
  16261. then :
  16262. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16263. fi
  16264. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16265. if test "x$ac_cv_header_strings_h" = xyes
  16266. then :
  16267. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16268. fi
  16269. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16270. if test "x$ac_cv_header_wchar_h" = xyes
  16271. then :
  16272. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16273. fi
  16274. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16275. if test "x$ac_cv_header_inttypes_h" = xyes
  16276. then :
  16277. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16278. fi
  16279. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16280. if test "x$ac_cv_header_stdint_h" = xyes
  16281. then :
  16282. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16283. fi
  16284. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16285. if test "x$ac_cv_header_limits_h" = xyes
  16286. then :
  16287. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16288. fi
  16289. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16290. if test "x$ac_cv_header_ctype_h" = xyes
  16291. then :
  16292. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16293. fi
  16294. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16295. if test "x$ac_cv_header_math_h" = xyes
  16296. then :
  16297. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16298. fi
  16299. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16300. if test "x$ac_cv_header_float_h" = xyes
  16301. then :
  16302. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16303. fi
  16304. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16305. if test "x$ac_cv_header_iconv_h" = xyes
  16306. then :
  16307. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16308. fi
  16309. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16310. if test "x$ac_cv_header_signal_h" = xyes
  16311. then :
  16312. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16313. fi
  16314. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16315. if test "x$ac_cv_type_size_t" = xyes
  16316. then :
  16317. else $as_nop
  16318. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16319. fi
  16320. ac_ext=c
  16321. ac_cpp='$CPP $CPPFLAGS'
  16322. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16323. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16324. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16326. printf %s "checking how to run the C preprocessor... " >&6; }
  16327. # On Suns, sometimes $CPP names a directory.
  16328. if test -n "$CPP" && test -d "$CPP"; then
  16329. CPP=
  16330. fi
  16331. if test -z "$CPP"; then
  16332. if test ${ac_cv_prog_CPP+y}
  16333. then :
  16334. printf %s "(cached) " >&6
  16335. else $as_nop
  16336. # Double quotes because $CC needs to be expanded
  16337. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16338. do
  16339. ac_preproc_ok=false
  16340. for ac_c_preproc_warn_flag in '' yes
  16341. do
  16342. # Use a header file that comes with gcc, so configuring glibc
  16343. # with a fresh cross-compiler works.
  16344. # On the NeXT, cc -E runs the code through the compiler's parser,
  16345. # not just through cpp. "Syntax error" is here to catch this case.
  16346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16347. /* end confdefs.h. */
  16348. #include <limits.h>
  16349. Syntax error
  16350. _ACEOF
  16351. if ac_fn_c_try_cpp "$LINENO"
  16352. then :
  16353. else $as_nop
  16354. # Broken: fails on valid input.
  16355. continue
  16356. fi
  16357. rm -f conftest.err conftest.i conftest.$ac_ext
  16358. # OK, works on sane cases. Now check whether nonexistent headers
  16359. # can be detected and how.
  16360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16361. /* end confdefs.h. */
  16362. #include <ac_nonexistent.h>
  16363. _ACEOF
  16364. if ac_fn_c_try_cpp "$LINENO"
  16365. then :
  16366. # Broken: success on invalid input.
  16367. continue
  16368. else $as_nop
  16369. # Passes both tests.
  16370. ac_preproc_ok=:
  16371. break
  16372. fi
  16373. rm -f conftest.err conftest.i conftest.$ac_ext
  16374. done
  16375. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16376. rm -f conftest.i conftest.err conftest.$ac_ext
  16377. if $ac_preproc_ok
  16378. then :
  16379. break
  16380. fi
  16381. done
  16382. ac_cv_prog_CPP=$CPP
  16383. fi
  16384. CPP=$ac_cv_prog_CPP
  16385. else
  16386. ac_cv_prog_CPP=$CPP
  16387. fi
  16388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16389. printf "%s\n" "$CPP" >&6; }
  16390. ac_preproc_ok=false
  16391. for ac_c_preproc_warn_flag in '' yes
  16392. do
  16393. # Use a header file that comes with gcc, so configuring glibc
  16394. # with a fresh cross-compiler works.
  16395. # On the NeXT, cc -E runs the code through the compiler's parser,
  16396. # not just through cpp. "Syntax error" is here to catch this case.
  16397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16398. /* end confdefs.h. */
  16399. #include <limits.h>
  16400. Syntax error
  16401. _ACEOF
  16402. if ac_fn_c_try_cpp "$LINENO"
  16403. then :
  16404. else $as_nop
  16405. # Broken: fails on valid input.
  16406. continue
  16407. fi
  16408. rm -f conftest.err conftest.i conftest.$ac_ext
  16409. # OK, works on sane cases. Now check whether nonexistent headers
  16410. # can be detected and how.
  16411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16412. /* end confdefs.h. */
  16413. #include <ac_nonexistent.h>
  16414. _ACEOF
  16415. if ac_fn_c_try_cpp "$LINENO"
  16416. then :
  16417. # Broken: success on invalid input.
  16418. continue
  16419. else $as_nop
  16420. # Passes both tests.
  16421. ac_preproc_ok=:
  16422. break
  16423. fi
  16424. rm -f conftest.err conftest.i conftest.$ac_ext
  16425. done
  16426. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16427. rm -f conftest.i conftest.err conftest.$ac_ext
  16428. if $ac_preproc_ok
  16429. then :
  16430. else $as_nop
  16431. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16432. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16433. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16434. See \`config.log' for more details" "$LINENO" 5; }
  16435. fi
  16436. ac_ext=c
  16437. ac_cpp='$CPP $CPPFLAGS'
  16438. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16439. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16440. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16442. printf %s "checking for M_PI in math.h... " >&6; }
  16443. if test ${ac_cv_define_M_PI+y}
  16444. then :
  16445. printf %s "(cached) " >&6
  16446. else $as_nop
  16447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16448. /* end confdefs.h. */
  16449. #include <math.h>
  16450. #ifdef M_PI
  16451. YES_IS_DEFINED
  16452. #endif
  16453. _ACEOF
  16454. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16455. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16456. then :
  16457. ac_cv_define_M_PI=yes
  16458. else $as_nop
  16459. ac_cv_define_M_PI=no
  16460. fi
  16461. rm -rf conftest*
  16462. fi
  16463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16464. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16465. if test "$ac_cv_define_M_PI" = "yes" ; then
  16466. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16467. fi
  16468. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16469. # for constant arguments. Useless!
  16470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16471. printf %s "checking for working alloca.h... " >&6; }
  16472. if test ${ac_cv_working_alloca_h+y}
  16473. then :
  16474. printf %s "(cached) " >&6
  16475. else $as_nop
  16476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16477. /* end confdefs.h. */
  16478. #include <alloca.h>
  16479. int
  16480. main (void)
  16481. {
  16482. char *p = (char *) alloca (2 * sizeof (int));
  16483. if (p) return 0;
  16484. ;
  16485. return 0;
  16486. }
  16487. _ACEOF
  16488. if ac_fn_c_try_link "$LINENO"
  16489. then :
  16490. ac_cv_working_alloca_h=yes
  16491. else $as_nop
  16492. ac_cv_working_alloca_h=no
  16493. fi
  16494. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16495. conftest$ac_exeext conftest.$ac_ext
  16496. fi
  16497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16498. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16499. if test $ac_cv_working_alloca_h = yes; then
  16500. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16501. fi
  16502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16503. printf %s "checking for alloca... " >&6; }
  16504. if test ${ac_cv_func_alloca_works+y}
  16505. then :
  16506. printf %s "(cached) " >&6
  16507. else $as_nop
  16508. if test $ac_cv_working_alloca_h = yes; then
  16509. ac_cv_func_alloca_works=yes
  16510. else
  16511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16512. /* end confdefs.h. */
  16513. #include <stdlib.h>
  16514. #include <stddef.h>
  16515. #ifndef alloca
  16516. # ifdef __GNUC__
  16517. # define alloca __builtin_alloca
  16518. # elif defined _MSC_VER
  16519. # include <malloc.h>
  16520. # define alloca _alloca
  16521. # else
  16522. # ifdef __cplusplus
  16523. extern "C"
  16524. # endif
  16525. void *alloca (size_t);
  16526. # endif
  16527. #endif
  16528. int
  16529. main (void)
  16530. {
  16531. char *p = (char *) alloca (1);
  16532. if (p) return 0;
  16533. ;
  16534. return 0;
  16535. }
  16536. _ACEOF
  16537. if ac_fn_c_try_link "$LINENO"
  16538. then :
  16539. ac_cv_func_alloca_works=yes
  16540. else $as_nop
  16541. ac_cv_func_alloca_works=no
  16542. fi
  16543. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16544. conftest$ac_exeext conftest.$ac_ext
  16545. fi
  16546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16547. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16548. fi
  16549. if test $ac_cv_func_alloca_works = yes; then
  16550. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16551. else
  16552. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16553. # that cause trouble. Some versions do not even contain alloca or
  16554. # contain a buggy version. If you still want to use their alloca,
  16555. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16556. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16557. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16559. printf %s "checking stack direction for C alloca... " >&6; }
  16560. if test ${ac_cv_c_stack_direction+y}
  16561. then :
  16562. printf %s "(cached) " >&6
  16563. else $as_nop
  16564. if test "$cross_compiling" = yes
  16565. then :
  16566. ac_cv_c_stack_direction=0
  16567. else $as_nop
  16568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16569. /* end confdefs.h. */
  16570. $ac_includes_default
  16571. int
  16572. find_stack_direction (int *addr, int depth)
  16573. {
  16574. int dir, dummy = 0;
  16575. if (! addr)
  16576. addr = &dummy;
  16577. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16578. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16579. return dir + dummy;
  16580. }
  16581. int
  16582. main (int argc, char **argv)
  16583. {
  16584. return find_stack_direction (0, argc + !argv + 20) < 0;
  16585. }
  16586. _ACEOF
  16587. if ac_fn_c_try_run "$LINENO"
  16588. then :
  16589. ac_cv_c_stack_direction=1
  16590. else $as_nop
  16591. ac_cv_c_stack_direction=-1
  16592. fi
  16593. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16594. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16595. fi
  16596. fi
  16597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16598. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16599. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16600. fi
  16601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  16602. printf %s "checking for working memcmp... " >&6; }
  16603. if test ${ac_cv_func_memcmp_working+y}
  16604. then :
  16605. printf %s "(cached) " >&6
  16606. else $as_nop
  16607. if test "$cross_compiling" = yes
  16608. then :
  16609. ac_cv_func_memcmp_working=no
  16610. else $as_nop
  16611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16612. /* end confdefs.h. */
  16613. $ac_includes_default
  16614. int
  16615. main (void)
  16616. {
  16617. /* Some versions of memcmp are not 8-bit clean. */
  16618. char c0 = '\100', c1 = '\200', c2 = '\201';
  16619. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16620. return 1;
  16621. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16622. or more and with at least one buffer not starting on a 4-byte boundary.
  16623. William Lewis provided this test program. */
  16624. {
  16625. char foo[21];
  16626. char bar[21];
  16627. int i;
  16628. for (i = 0; i < 4; i++)
  16629. {
  16630. char *a = foo + i;
  16631. char *b = bar + i;
  16632. strcpy (a, "--------01111111");
  16633. strcpy (b, "--------10000000");
  16634. if (memcmp (a, b, 16) >= 0)
  16635. return 1;
  16636. }
  16637. return 0;
  16638. }
  16639. ;
  16640. return 0;
  16641. }
  16642. _ACEOF
  16643. if ac_fn_c_try_run "$LINENO"
  16644. then :
  16645. ac_cv_func_memcmp_working=yes
  16646. else $as_nop
  16647. ac_cv_func_memcmp_working=no
  16648. fi
  16649. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16650. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16651. fi
  16652. fi
  16653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  16654. printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
  16655. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16656. *" memcmp.$ac_objext "* ) ;;
  16657. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16658. ;;
  16659. esac
  16660. if test x$ac_cv_func_memcmp_working = xyes; then
  16661. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16662. fi
  16663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  16664. printf %s "checking for working strtod... " >&6; }
  16665. if test ${ac_cv_func_strtod+y}
  16666. then :
  16667. printf %s "(cached) " >&6
  16668. else $as_nop
  16669. if test "$cross_compiling" = yes
  16670. then :
  16671. ac_cv_func_strtod=no
  16672. else $as_nop
  16673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16674. /* end confdefs.h. */
  16675. $ac_includes_default
  16676. #ifndef strtod
  16677. double strtod ();
  16678. #endif
  16679. int
  16680. main (void)
  16681. {
  16682. {
  16683. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  16684. char *string = " +69";
  16685. char *term;
  16686. double value;
  16687. value = strtod (string, &term);
  16688. if (value != 69 || term != (string + 4))
  16689. return 1;
  16690. }
  16691. {
  16692. /* Under Solaris 2.4, strtod returns the wrong value for the
  16693. terminating character under some conditions. */
  16694. char *string = "NaN";
  16695. char *term;
  16696. strtod (string, &term);
  16697. if (term != string && *(term - 1) == 0)
  16698. return 1;
  16699. }
  16700. return 0;
  16701. }
  16702. _ACEOF
  16703. if ac_fn_c_try_run "$LINENO"
  16704. then :
  16705. ac_cv_func_strtod=yes
  16706. else $as_nop
  16707. ac_cv_func_strtod=no
  16708. fi
  16709. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16710. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16711. fi
  16712. fi
  16713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  16714. printf "%s\n" "$ac_cv_func_strtod" >&6; }
  16715. if test $ac_cv_func_strtod = no; then
  16716. case " $LIBOBJS " in
  16717. *" strtod.$ac_objext "* ) ;;
  16718. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  16719. ;;
  16720. esac
  16721. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  16722. if test "x$ac_cv_func_pow" = xyes
  16723. then :
  16724. fi
  16725. if test $ac_cv_func_pow = no; then
  16726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  16727. printf %s "checking for pow in -lm... " >&6; }
  16728. if test ${ac_cv_lib_m_pow+y}
  16729. then :
  16730. printf %s "(cached) " >&6
  16731. else $as_nop
  16732. ac_check_lib_save_LIBS=$LIBS
  16733. LIBS="-lm $LIBS"
  16734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16735. /* end confdefs.h. */
  16736. /* Override any GCC internal prototype to avoid an error.
  16737. Use char because int might match the return type of a GCC
  16738. builtin and then its argument prototype would still apply. */
  16739. char pow ();
  16740. int
  16741. main (void)
  16742. {
  16743. return pow ();
  16744. ;
  16745. return 0;
  16746. }
  16747. _ACEOF
  16748. if ac_fn_c_try_link "$LINENO"
  16749. then :
  16750. ac_cv_lib_m_pow=yes
  16751. else $as_nop
  16752. ac_cv_lib_m_pow=no
  16753. fi
  16754. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16755. conftest$ac_exeext conftest.$ac_ext
  16756. LIBS=$ac_check_lib_save_LIBS
  16757. fi
  16758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  16759. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  16760. if test "x$ac_cv_lib_m_pow" = xyes
  16761. then :
  16762. POW_LIB=-lm
  16763. else $as_nop
  16764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  16765. printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  16766. fi
  16767. fi
  16768. fi
  16769. if test x$ac_cv_func_strtod = xyes; then
  16770. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16771. fi
  16772. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16773. if test "x$ac_cv_func_mprotect" = xyes
  16774. then :
  16775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16776. /* end confdefs.h. */
  16777. #include <sys/types.h>
  16778. #include <sys/mman.h>
  16779. int
  16780. main (void)
  16781. {
  16782. ;
  16783. return 0;
  16784. }
  16785. _ACEOF
  16786. if ac_fn_c_try_compile "$LINENO"
  16787. then :
  16788. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16789. fi
  16790. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16791. fi
  16792. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16793. if test "x$ac_cv_func_malloc" = xyes
  16794. then :
  16795. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16796. fi
  16797. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16798. if test "x$ac_cv_func_calloc" = xyes
  16799. then :
  16800. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16801. fi
  16802. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16803. if test "x$ac_cv_func_realloc" = xyes
  16804. then :
  16805. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16806. fi
  16807. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16808. if test "x$ac_cv_func_free" = xyes
  16809. then :
  16810. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16811. fi
  16812. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16813. if test "x$ac_cv_func_getenv" = xyes
  16814. then :
  16815. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16816. fi
  16817. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16818. if test "x$ac_cv_func_setenv" = xyes
  16819. then :
  16820. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16821. fi
  16822. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16823. if test "x$ac_cv_func_putenv" = xyes
  16824. then :
  16825. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16826. fi
  16827. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16828. if test "x$ac_cv_func_unsetenv" = xyes
  16829. then :
  16830. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16831. fi
  16832. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16833. if test "x$ac_cv_func_bsearch" = xyes
  16834. then :
  16835. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16836. fi
  16837. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16838. if test "x$ac_cv_func_qsort" = xyes
  16839. then :
  16840. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16841. fi
  16842. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16843. if test "x$ac_cv_func_abs" = xyes
  16844. then :
  16845. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16846. fi
  16847. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16848. if test "x$ac_cv_func_bcopy" = xyes
  16849. then :
  16850. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16851. fi
  16852. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16853. if test "x$ac_cv_func_memset" = xyes
  16854. then :
  16855. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16856. fi
  16857. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16858. if test "x$ac_cv_func_memcpy" = xyes
  16859. then :
  16860. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16861. fi
  16862. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16863. if test "x$ac_cv_func_memmove" = xyes
  16864. then :
  16865. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16866. fi
  16867. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16868. if test "x$ac_cv_func_wcslen" = xyes
  16869. then :
  16870. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16871. fi
  16872. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16873. if test "x$ac_cv_func_wcslcpy" = xyes
  16874. then :
  16875. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16876. fi
  16877. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16878. if test "x$ac_cv_func_wcslcat" = xyes
  16879. then :
  16880. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16881. fi
  16882. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16883. if test "x$ac_cv_func__wcsdup" = xyes
  16884. then :
  16885. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16886. fi
  16887. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16888. if test "x$ac_cv_func_wcsdup" = xyes
  16889. then :
  16890. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16891. fi
  16892. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16893. if test "x$ac_cv_func_wcsstr" = xyes
  16894. then :
  16895. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16896. fi
  16897. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16898. if test "x$ac_cv_func_wcscmp" = xyes
  16899. then :
  16900. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16901. fi
  16902. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16903. if test "x$ac_cv_func_wcsncmp" = xyes
  16904. then :
  16905. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16906. fi
  16907. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16908. if test "x$ac_cv_func_wcscasecmp" = xyes
  16909. then :
  16910. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16911. fi
  16912. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16913. if test "x$ac_cv_func__wcsicmp" = xyes
  16914. then :
  16915. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16916. fi
  16917. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16918. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16919. then :
  16920. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16921. fi
  16922. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16923. if test "x$ac_cv_func__wcsnicmp" = xyes
  16924. then :
  16925. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16926. fi
  16927. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16928. if test "x$ac_cv_func_strlen" = xyes
  16929. then :
  16930. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16931. fi
  16932. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16933. if test "x$ac_cv_func_strlcpy" = xyes
  16934. then :
  16935. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16936. fi
  16937. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16938. if test "x$ac_cv_func_strlcat" = xyes
  16939. then :
  16940. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16941. fi
  16942. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16943. if test "x$ac_cv_func__strrev" = xyes
  16944. then :
  16945. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16946. fi
  16947. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16948. if test "x$ac_cv_func__strupr" = xyes
  16949. then :
  16950. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16951. fi
  16952. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16953. if test "x$ac_cv_func__strlwr" = xyes
  16954. then :
  16955. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16956. fi
  16957. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16958. if test "x$ac_cv_func_index" = xyes
  16959. then :
  16960. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16961. fi
  16962. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16963. if test "x$ac_cv_func_rindex" = xyes
  16964. then :
  16965. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16966. fi
  16967. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16968. if test "x$ac_cv_func_strchr" = xyes
  16969. then :
  16970. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16971. fi
  16972. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16973. if test "x$ac_cv_func_strrchr" = xyes
  16974. then :
  16975. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16976. fi
  16977. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16978. if test "x$ac_cv_func_strstr" = xyes
  16979. then :
  16980. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16981. fi
  16982. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16983. if test "x$ac_cv_func_strtok_r" = xyes
  16984. then :
  16985. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16986. fi
  16987. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16988. if test "x$ac_cv_func_itoa" = xyes
  16989. then :
  16990. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16991. fi
  16992. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16993. if test "x$ac_cv_func__ltoa" = xyes
  16994. then :
  16995. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16996. fi
  16997. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16998. if test "x$ac_cv_func__uitoa" = xyes
  16999. then :
  17000. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  17001. fi
  17002. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  17003. if test "x$ac_cv_func__ultoa" = xyes
  17004. then :
  17005. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  17006. fi
  17007. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  17008. if test "x$ac_cv_func_strtol" = xyes
  17009. then :
  17010. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  17011. fi
  17012. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  17013. if test "x$ac_cv_func_strtoul" = xyes
  17014. then :
  17015. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  17016. fi
  17017. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  17018. if test "x$ac_cv_func__i64toa" = xyes
  17019. then :
  17020. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  17021. fi
  17022. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  17023. if test "x$ac_cv_func__ui64toa" = xyes
  17024. then :
  17025. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  17026. fi
  17027. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  17028. if test "x$ac_cv_func_strtoll" = xyes
  17029. then :
  17030. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  17031. fi
  17032. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  17033. if test "x$ac_cv_func_strtoull" = xyes
  17034. then :
  17035. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  17036. fi
  17037. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  17038. if test "x$ac_cv_func_atoi" = xyes
  17039. then :
  17040. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  17041. fi
  17042. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  17043. if test "x$ac_cv_func_atof" = xyes
  17044. then :
  17045. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  17046. fi
  17047. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  17048. if test "x$ac_cv_func_strcmp" = xyes
  17049. then :
  17050. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  17051. fi
  17052. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  17053. if test "x$ac_cv_func_strncmp" = xyes
  17054. then :
  17055. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  17056. fi
  17057. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  17058. if test "x$ac_cv_func__stricmp" = xyes
  17059. then :
  17060. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  17061. fi
  17062. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  17063. if test "x$ac_cv_func_strcasecmp" = xyes
  17064. then :
  17065. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  17066. fi
  17067. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  17068. if test "x$ac_cv_func__strnicmp" = xyes
  17069. then :
  17070. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  17071. fi
  17072. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17073. if test "x$ac_cv_func_strncasecmp" = xyes
  17074. then :
  17075. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17076. fi
  17077. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17078. if test "x$ac_cv_func_vsscanf" = xyes
  17079. then :
  17080. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17081. fi
  17082. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17083. if test "x$ac_cv_func_vsnprintf" = xyes
  17084. then :
  17085. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17086. fi
  17087. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17088. if test "x$ac_cv_func_fopen64" = xyes
  17089. then :
  17090. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17091. fi
  17092. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17093. if test "x$ac_cv_func_fseeko" = xyes
  17094. then :
  17095. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17096. fi
  17097. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17098. if test "x$ac_cv_func_fseeko64" = xyes
  17099. then :
  17100. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17101. fi
  17102. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17103. if test "x$ac_cv_func_sigaction" = xyes
  17104. then :
  17105. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17106. fi
  17107. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17108. if test "x$ac_cv_func_setjmp" = xyes
  17109. then :
  17110. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17111. fi
  17112. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17113. if test "x$ac_cv_func_nanosleep" = xyes
  17114. then :
  17115. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17116. fi
  17117. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17118. if test "x$ac_cv_func_sysconf" = xyes
  17119. then :
  17120. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17121. fi
  17122. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17123. if test "x$ac_cv_func_sysctlbyname" = xyes
  17124. then :
  17125. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17126. fi
  17127. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17128. if test "x$ac_cv_func_getauxval" = xyes
  17129. then :
  17130. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17131. fi
  17132. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17133. if test "x$ac_cv_func_elf_aux_info" = xyes
  17134. then :
  17135. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17136. fi
  17137. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17138. if test "x$ac_cv_func_poll" = xyes
  17139. then :
  17140. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17141. fi
  17142. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17143. if test "x$ac_cv_func__Exit" = xyes
  17144. then :
  17145. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17146. fi
  17147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17148. printf %s "checking for pow in -lm... " >&6; }
  17149. if test ${ac_cv_lib_m_pow+y}
  17150. then :
  17151. printf %s "(cached) " >&6
  17152. else $as_nop
  17153. ac_check_lib_save_LIBS=$LIBS
  17154. LIBS="-lm $LIBS"
  17155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17156. /* end confdefs.h. */
  17157. /* Override any GCC internal prototype to avoid an error.
  17158. Use char because int might match the return type of a GCC
  17159. builtin and then its argument prototype would still apply. */
  17160. char pow ();
  17161. int
  17162. main (void)
  17163. {
  17164. return pow ();
  17165. ;
  17166. return 0;
  17167. }
  17168. _ACEOF
  17169. if ac_fn_c_try_link "$LINENO"
  17170. then :
  17171. ac_cv_lib_m_pow=yes
  17172. else $as_nop
  17173. ac_cv_lib_m_pow=no
  17174. fi
  17175. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17176. conftest$ac_exeext conftest.$ac_ext
  17177. LIBS=$ac_check_lib_save_LIBS
  17178. fi
  17179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17180. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17181. if test "x$ac_cv_lib_m_pow" = xyes
  17182. then :
  17183. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17184. fi
  17185. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17186. if test "x$ac_cv_func_acos" = xyes
  17187. then :
  17188. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17189. fi
  17190. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17191. if test "x$ac_cv_func_acosf" = xyes
  17192. then :
  17193. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17194. fi
  17195. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17196. if test "x$ac_cv_func_asin" = xyes
  17197. then :
  17198. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17199. fi
  17200. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17201. if test "x$ac_cv_func_asinf" = xyes
  17202. then :
  17203. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17204. fi
  17205. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17206. if test "x$ac_cv_func_atan" = xyes
  17207. then :
  17208. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17209. fi
  17210. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17211. if test "x$ac_cv_func_atanf" = xyes
  17212. then :
  17213. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17214. fi
  17215. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17216. if test "x$ac_cv_func_atan2" = xyes
  17217. then :
  17218. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17219. fi
  17220. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17221. if test "x$ac_cv_func_atan2f" = xyes
  17222. then :
  17223. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17224. fi
  17225. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17226. if test "x$ac_cv_func_ceil" = xyes
  17227. then :
  17228. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17229. fi
  17230. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17231. if test "x$ac_cv_func_ceilf" = xyes
  17232. then :
  17233. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17234. fi
  17235. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17236. if test "x$ac_cv_func_copysign" = xyes
  17237. then :
  17238. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17239. fi
  17240. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17241. if test "x$ac_cv_func_copysignf" = xyes
  17242. then :
  17243. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17244. fi
  17245. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17246. if test "x$ac_cv_func_cos" = xyes
  17247. then :
  17248. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17249. fi
  17250. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17251. if test "x$ac_cv_func_cosf" = xyes
  17252. then :
  17253. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17254. fi
  17255. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17256. if test "x$ac_cv_func_exp" = xyes
  17257. then :
  17258. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17259. fi
  17260. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17261. if test "x$ac_cv_func_expf" = xyes
  17262. then :
  17263. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17264. fi
  17265. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17266. if test "x$ac_cv_func_fabs" = xyes
  17267. then :
  17268. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17269. fi
  17270. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17271. if test "x$ac_cv_func_fabsf" = xyes
  17272. then :
  17273. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17274. fi
  17275. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17276. if test "x$ac_cv_func_floor" = xyes
  17277. then :
  17278. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17279. fi
  17280. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17281. if test "x$ac_cv_func_floorf" = xyes
  17282. then :
  17283. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17284. fi
  17285. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17286. if test "x$ac_cv_func_trunc" = xyes
  17287. then :
  17288. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17289. fi
  17290. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17291. if test "x$ac_cv_func_truncf" = xyes
  17292. then :
  17293. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17294. fi
  17295. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17296. if test "x$ac_cv_func_fmod" = xyes
  17297. then :
  17298. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17299. fi
  17300. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17301. if test "x$ac_cv_func_fmodf" = xyes
  17302. then :
  17303. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17304. fi
  17305. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17306. if test "x$ac_cv_func_log" = xyes
  17307. then :
  17308. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17309. fi
  17310. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17311. if test "x$ac_cv_func_logf" = xyes
  17312. then :
  17313. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17314. fi
  17315. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17316. if test "x$ac_cv_func_log10" = xyes
  17317. then :
  17318. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17319. fi
  17320. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17321. if test "x$ac_cv_func_log10f" = xyes
  17322. then :
  17323. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17324. fi
  17325. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17326. if test "x$ac_cv_func_lround" = xyes
  17327. then :
  17328. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17329. fi
  17330. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17331. if test "x$ac_cv_func_lroundf" = xyes
  17332. then :
  17333. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17334. fi
  17335. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17336. if test "x$ac_cv_func_pow" = xyes
  17337. then :
  17338. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17339. fi
  17340. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17341. if test "x$ac_cv_func_powf" = xyes
  17342. then :
  17343. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17344. fi
  17345. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17346. if test "x$ac_cv_func_round" = xyes
  17347. then :
  17348. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17349. fi
  17350. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17351. if test "x$ac_cv_func_roundf" = xyes
  17352. then :
  17353. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17354. fi
  17355. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17356. if test "x$ac_cv_func_scalbn" = xyes
  17357. then :
  17358. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17359. fi
  17360. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17361. if test "x$ac_cv_func_scalbnf" = xyes
  17362. then :
  17363. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17364. fi
  17365. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17366. if test "x$ac_cv_func_sin" = xyes
  17367. then :
  17368. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17369. fi
  17370. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17371. if test "x$ac_cv_func_sinf" = xyes
  17372. then :
  17373. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17374. fi
  17375. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17376. if test "x$ac_cv_func_sqrt" = xyes
  17377. then :
  17378. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17379. fi
  17380. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17381. if test "x$ac_cv_func_sqrtf" = xyes
  17382. then :
  17383. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17384. fi
  17385. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17386. if test "x$ac_cv_func_tan" = xyes
  17387. then :
  17388. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17389. fi
  17390. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17391. if test "x$ac_cv_func_tanf" = xyes
  17392. then :
  17393. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17394. fi
  17395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17396. printf %s "checking for iconv_open in -liconv... " >&6; }
  17397. if test ${ac_cv_lib_iconv_iconv_open+y}
  17398. then :
  17399. printf %s "(cached) " >&6
  17400. else $as_nop
  17401. ac_check_lib_save_LIBS=$LIBS
  17402. LIBS="-liconv $LIBS"
  17403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17404. /* end confdefs.h. */
  17405. /* Override any GCC internal prototype to avoid an error.
  17406. Use char because int might match the return type of a GCC
  17407. builtin and then its argument prototype would still apply. */
  17408. char iconv_open ();
  17409. int
  17410. main (void)
  17411. {
  17412. return iconv_open ();
  17413. ;
  17414. return 0;
  17415. }
  17416. _ACEOF
  17417. if ac_fn_c_try_link "$LINENO"
  17418. then :
  17419. ac_cv_lib_iconv_iconv_open=yes
  17420. else $as_nop
  17421. ac_cv_lib_iconv_iconv_open=no
  17422. fi
  17423. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17424. conftest$ac_exeext conftest.$ac_ext
  17425. LIBS=$ac_check_lib_save_LIBS
  17426. fi
  17427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17428. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17429. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17430. then :
  17431. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17432. fi
  17433. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17434. if test "x$ac_cv_func_iconv" = xyes
  17435. then :
  17436. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17437. fi
  17438. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17439. "
  17440. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17441. then :
  17442. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17443. fi
  17444. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17445. if test "x$ac_cv_header_libunwind_h" = xyes
  17446. then :
  17447. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17448. fi
  17449. fi
  17450. # Check whether --enable-gcc-atomics was given.
  17451. if test ${enable_gcc_atomics+y}
  17452. then :
  17453. enableval=$enable_gcc_atomics;
  17454. else $as_nop
  17455. enable_gcc_atomics=yes
  17456. fi
  17457. if test x$enable_gcc_atomics = xyes; then
  17458. have_gcc_atomics=no
  17459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17460. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17462. /* end confdefs.h. */
  17463. int
  17464. main (void)
  17465. {
  17466. int a;
  17467. void *x, *y, *z;
  17468. __sync_lock_test_and_set(&a, 4);
  17469. __sync_lock_test_and_set(&x, y);
  17470. __sync_fetch_and_add(&a, 1);
  17471. __sync_bool_compare_and_swap(&a, 5, 10);
  17472. __sync_bool_compare_and_swap(&x, y, z);
  17473. ;
  17474. return 0;
  17475. }
  17476. _ACEOF
  17477. if ac_fn_c_try_link "$LINENO"
  17478. then :
  17479. have_gcc_atomics=yes
  17480. fi
  17481. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17482. conftest$ac_exeext conftest.$ac_ext
  17483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17484. printf "%s\n" "$have_gcc_atomics" >&6; }
  17485. if test x$have_gcc_atomics = xyes; then
  17486. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17487. else
  17488. # See if we have the minimum operation needed for GCC atomics
  17489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17490. /* end confdefs.h. */
  17491. int
  17492. main (void)
  17493. {
  17494. int a;
  17495. __sync_lock_test_and_set(&a, 1);
  17496. __sync_lock_release(&a);
  17497. ;
  17498. return 0;
  17499. }
  17500. _ACEOF
  17501. if ac_fn_c_try_link "$LINENO"
  17502. then :
  17503. have_gcc_sync_lock_test_and_set=yes
  17504. fi
  17505. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17506. conftest$ac_exeext conftest.$ac_ext
  17507. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17508. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17509. fi
  17510. fi
  17511. fi
  17512. # Standard C sources
  17513. SOURCES="$SOURCES $srcdir/src/*.c"
  17514. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17515. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17516. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17517. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17518. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17519. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17520. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17521. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17522. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17523. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17524. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17525. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17526. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17527. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17528. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17529. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17530. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17531. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17532. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17533. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17534. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17535. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17536. case "$host" in
  17537. *-*-emscripten*)
  17538. default_atomic=no
  17539. ;;
  17540. *)
  17541. default_atomic=yes
  17542. ;;
  17543. esac
  17544. # Check whether --enable-atomic was given.
  17545. if test ${enable_atomic+y}
  17546. then :
  17547. enableval=$enable_atomic;
  17548. else $as_nop
  17549. enable_atomic=$default_atomic
  17550. fi
  17551. if test x$enable_atomic != xyes; then
  17552. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17553. else
  17554. SUMMARY_modules="${SUMMARY_modules} atomic"
  17555. fi
  17556. # Check whether --enable-audio was given.
  17557. if test ${enable_audio+y}
  17558. then :
  17559. enableval=$enable_audio;
  17560. else $as_nop
  17561. enable_audio=yes
  17562. fi
  17563. if test x$enable_audio != xyes; then
  17564. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17565. else
  17566. SUMMARY_modules="${SUMMARY_modules} audio"
  17567. fi
  17568. # Check whether --enable-video was given.
  17569. if test ${enable_video+y}
  17570. then :
  17571. enableval=$enable_video;
  17572. else $as_nop
  17573. enable_video=yes
  17574. fi
  17575. if test x$enable_video != xyes; then
  17576. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17577. else
  17578. SUMMARY_modules="${SUMMARY_modules} video"
  17579. fi
  17580. # Check whether --enable-render was given.
  17581. if test ${enable_render+y}
  17582. then :
  17583. enableval=$enable_render;
  17584. else $as_nop
  17585. enable_render=yes
  17586. fi
  17587. if test x$enable_render != xyes; then
  17588. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17589. else
  17590. SUMMARY_modules="${SUMMARY_modules} render"
  17591. fi
  17592. # Check whether --enable-events was given.
  17593. if test ${enable_events+y}
  17594. then :
  17595. enableval=$enable_events;
  17596. else $as_nop
  17597. enable_events=yes
  17598. fi
  17599. if test x$enable_events != xyes; then
  17600. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17601. else
  17602. SUMMARY_modules="${SUMMARY_modules} events"
  17603. fi
  17604. # Check whether --enable-joystick was given.
  17605. if test ${enable_joystick+y}
  17606. then :
  17607. enableval=$enable_joystick;
  17608. else $as_nop
  17609. enable_joystick=yes
  17610. fi
  17611. if test x$enable_joystick != xyes; then
  17612. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17613. else
  17614. SUMMARY_modules="${SUMMARY_modules} joystick"
  17615. fi
  17616. # Check whether --enable-haptic was given.
  17617. if test ${enable_haptic+y}
  17618. then :
  17619. enableval=$enable_haptic;
  17620. else $as_nop
  17621. enable_haptic=yes
  17622. fi
  17623. if test x$enable_haptic != xyes; then
  17624. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17625. else
  17626. SUMMARY_modules="${SUMMARY_modules} haptic"
  17627. fi
  17628. # Check whether --enable-hidapi was given.
  17629. if test ${enable_hidapi+y}
  17630. then :
  17631. enableval=$enable_hidapi;
  17632. else $as_nop
  17633. enable_hidapi=yes
  17634. fi
  17635. if test x$enable_hidapi != xyes; then
  17636. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17637. else
  17638. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17639. fi
  17640. # Check whether --enable-sensor was given.
  17641. if test ${enable_sensor+y}
  17642. then :
  17643. enableval=$enable_sensor;
  17644. else $as_nop
  17645. enable_sensor=yes
  17646. fi
  17647. if test x$enable_sensor != xyes; then
  17648. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17649. else
  17650. SUMMARY_modules="${SUMMARY_modules} sensor"
  17651. fi
  17652. # Check whether --enable-power was given.
  17653. if test ${enable_power+y}
  17654. then :
  17655. enableval=$enable_power;
  17656. else $as_nop
  17657. enable_power=yes
  17658. fi
  17659. if test x$enable_power != xyes; then
  17660. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17661. else
  17662. SUMMARY_modules="${SUMMARY_modules} power"
  17663. fi
  17664. # Check whether --enable-filesystem was given.
  17665. if test ${enable_filesystem+y}
  17666. then :
  17667. enableval=$enable_filesystem;
  17668. else $as_nop
  17669. enable_filesystem=yes
  17670. fi
  17671. if test x$enable_filesystem != xyes; then
  17672. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17673. else
  17674. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17675. fi
  17676. # Check whether --enable-threads was given.
  17677. if test ${enable_threads+y}
  17678. then :
  17679. enableval=$enable_threads;
  17680. else $as_nop
  17681. enable_threads=yes
  17682. fi
  17683. if test x$enable_threads != xyes; then
  17684. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17685. else
  17686. SUMMARY_modules="${SUMMARY_modules} threads"
  17687. fi
  17688. # Check whether --enable-timers was given.
  17689. if test ${enable_timers+y}
  17690. then :
  17691. enableval=$enable_timers;
  17692. else $as_nop
  17693. enable_timers=yes
  17694. fi
  17695. if test x$enable_timers != xyes; then
  17696. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17697. else
  17698. SUMMARY_modules="${SUMMARY_modules} timers"
  17699. fi
  17700. # Check whether --enable-file was given.
  17701. if test ${enable_file+y}
  17702. then :
  17703. enableval=$enable_file;
  17704. else $as_nop
  17705. enable_file=yes
  17706. fi
  17707. if test x$enable_file != xyes; then
  17708. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17709. else
  17710. SUMMARY_modules="${SUMMARY_modules} file"
  17711. fi
  17712. # Check whether --enable-misc was given.
  17713. if test ${enable_misc+y}
  17714. then :
  17715. enableval=$enable_misc;
  17716. else $as_nop
  17717. enable_misc=yes
  17718. fi
  17719. if test x$enable_misc != xyes; then
  17720. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17721. else
  17722. SUMMARY_modules="${SUMMARY_modules} misc"
  17723. fi
  17724. # Check whether --enable-locale was given.
  17725. if test ${enable_locale+y}
  17726. then :
  17727. enableval=$enable_locale;
  17728. else $as_nop
  17729. enable_locale=yes
  17730. fi
  17731. if test x$enable_locale != xyes; then
  17732. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17733. else
  17734. SUMMARY_modules="${SUMMARY_modules} locale"
  17735. fi
  17736. # Check whether --enable-loadso was given.
  17737. if test ${enable_loadso+y}
  17738. then :
  17739. enableval=$enable_loadso;
  17740. else $as_nop
  17741. enable_loadso=yes
  17742. fi
  17743. if test x$enable_loadso != xyes; then
  17744. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17745. else
  17746. SUMMARY_modules="${SUMMARY_modules} loadso"
  17747. fi
  17748. # Check whether --enable-cpuinfo was given.
  17749. if test ${enable_cpuinfo+y}
  17750. then :
  17751. enableval=$enable_cpuinfo;
  17752. else $as_nop
  17753. enable_cpuinfo=yes
  17754. fi
  17755. if test x$enable_cpuinfo != xyes; then
  17756. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17757. else
  17758. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17759. fi
  17760. # Check whether --enable-assembly was given.
  17761. if test ${enable_assembly+y}
  17762. then :
  17763. enableval=$enable_assembly;
  17764. else $as_nop
  17765. enable_assembly=yes
  17766. fi
  17767. if test x$enable_assembly = xyes; then
  17768. SUMMARY_modules="${SUMMARY_modules} assembly"
  17769. # Make sure that we don't generate floating point code that would
  17770. # cause illegal instruction exceptions on older processors
  17771. case "$host" in
  17772. *-*-darwin*)
  17773. # Don't need to worry about Apple hardware, it's all SSE capable
  17774. default_ssemath=yes
  17775. ;;
  17776. *64-*-*)
  17777. # x86 64-bit architectures all have SSE instructions
  17778. default_ssemath=yes
  17779. ;;
  17780. *)
  17781. default_ssemath=no
  17782. ;;
  17783. esac
  17784. # Check whether --enable-ssemath was given.
  17785. if test ${enable_ssemath+y}
  17786. then :
  17787. enableval=$enable_ssemath;
  17788. else $as_nop
  17789. enable_ssemath=$default_ssemath
  17790. fi
  17791. if test x$enable_ssemath = xno; then
  17792. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17793. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17794. fi
  17795. fi
  17796. # Check whether --enable-mmx was given.
  17797. if test ${enable_mmx+y}
  17798. then :
  17799. enableval=$enable_mmx;
  17800. else $as_nop
  17801. enable_mmx=yes
  17802. fi
  17803. if test x$enable_mmx = xyes; then
  17804. save_CFLAGS="$CFLAGS"
  17805. have_gcc_mmx=no
  17806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17807. printf %s "checking for GCC -mmmx option... " >&6; }
  17808. mmx_CFLAGS="-mmmx"
  17809. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17811. /* end confdefs.h. */
  17812. #ifdef __MINGW32__
  17813. #include <_mingw.h>
  17814. #ifdef __MINGW64_VERSION_MAJOR
  17815. #include <intrin.h>
  17816. #else
  17817. #include <mmintrin.h>
  17818. #endif
  17819. #else
  17820. #include <mmintrin.h>
  17821. #endif
  17822. #ifndef __MMX__
  17823. #error Assembler CPP flag not enabled
  17824. #endif
  17825. int
  17826. main (void)
  17827. {
  17828. ;
  17829. return 0;
  17830. }
  17831. _ACEOF
  17832. if ac_fn_c_try_compile "$LINENO"
  17833. then :
  17834. have_gcc_mmx=yes
  17835. fi
  17836. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17838. printf "%s\n" "$have_gcc_mmx" >&6; }
  17839. CFLAGS="$save_CFLAGS"
  17840. if test x$have_gcc_mmx = xyes; then
  17841. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17842. SUMMARY_math="${SUMMARY_math} mmx"
  17843. fi
  17844. fi
  17845. # Check whether --enable-3dnow was given.
  17846. if test ${enable_3dnow+y}
  17847. then :
  17848. enableval=$enable_3dnow;
  17849. else $as_nop
  17850. enable_3dnow=yes
  17851. fi
  17852. if test x$enable_3dnow = xyes; then
  17853. save_CFLAGS="$CFLAGS"
  17854. have_gcc_3dnow=no
  17855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17856. printf %s "checking for GCC -m3dnow option... " >&6; }
  17857. amd3dnow_CFLAGS="-m3dnow"
  17858. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17860. /* end confdefs.h. */
  17861. #include <mm3dnow.h>
  17862. #ifndef __3dNOW__
  17863. #error Assembler CPP flag not enabled
  17864. #endif
  17865. int
  17866. main (void)
  17867. {
  17868. void *p = 0;
  17869. _m_prefetch(p);
  17870. ;
  17871. return 0;
  17872. }
  17873. _ACEOF
  17874. if ac_fn_c_try_link "$LINENO"
  17875. then :
  17876. have_gcc_3dnow=yes
  17877. fi
  17878. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17879. conftest$ac_exeext conftest.$ac_ext
  17880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17881. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17882. CFLAGS="$save_CFLAGS"
  17883. if test x$have_gcc_3dnow = xyes; then
  17884. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17885. SUMMARY_math="${SUMMARY_math} 3dnow"
  17886. fi
  17887. fi
  17888. # Check whether --enable-sse was given.
  17889. if test ${enable_sse+y}
  17890. then :
  17891. enableval=$enable_sse;
  17892. else $as_nop
  17893. enable_sse=yes
  17894. fi
  17895. if test x$enable_sse = xyes; then
  17896. save_CFLAGS="$CFLAGS"
  17897. have_gcc_sse=no
  17898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17899. printf %s "checking for GCC -msse option... " >&6; }
  17900. sse_CFLAGS="-msse"
  17901. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17903. /* end confdefs.h. */
  17904. #ifdef __MINGW32__
  17905. #include <_mingw.h>
  17906. #ifdef __MINGW64_VERSION_MAJOR
  17907. #include <intrin.h>
  17908. #else
  17909. #include <xmmintrin.h>
  17910. #endif
  17911. #else
  17912. #include <xmmintrin.h>
  17913. #endif
  17914. #ifndef __SSE__
  17915. #error Assembler CPP flag not enabled
  17916. #endif
  17917. int
  17918. main (void)
  17919. {
  17920. ;
  17921. return 0;
  17922. }
  17923. _ACEOF
  17924. if ac_fn_c_try_compile "$LINENO"
  17925. then :
  17926. have_gcc_sse=yes
  17927. fi
  17928. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17930. printf "%s\n" "$have_gcc_sse" >&6; }
  17931. CFLAGS="$save_CFLAGS"
  17932. if test x$have_gcc_sse = xyes; then
  17933. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17934. SUMMARY_math="${SUMMARY_math} sse"
  17935. fi
  17936. fi
  17937. # Check whether --enable-sse2 was given.
  17938. if test ${enable_sse2+y}
  17939. then :
  17940. enableval=$enable_sse2;
  17941. else $as_nop
  17942. enable_sse2=$default_ssemath
  17943. fi
  17944. if test x$enable_sse2 = xyes; then
  17945. save_CFLAGS="$CFLAGS"
  17946. have_gcc_sse2=no
  17947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17948. printf %s "checking for GCC -msse2 option... " >&6; }
  17949. sse2_CFLAGS="-msse2"
  17950. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17952. /* end confdefs.h. */
  17953. #ifdef __MINGW32__
  17954. #include <_mingw.h>
  17955. #ifdef __MINGW64_VERSION_MAJOR
  17956. #include <intrin.h>
  17957. #else
  17958. #include <emmintrin.h>
  17959. #endif
  17960. #else
  17961. #include <emmintrin.h>
  17962. #endif
  17963. #ifndef __SSE2__
  17964. #error Assembler CPP flag not enabled
  17965. #endif
  17966. int
  17967. main (void)
  17968. {
  17969. ;
  17970. return 0;
  17971. }
  17972. _ACEOF
  17973. if ac_fn_c_try_compile "$LINENO"
  17974. then :
  17975. have_gcc_sse2=yes
  17976. fi
  17977. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17979. printf "%s\n" "$have_gcc_sse2" >&6; }
  17980. CFLAGS="$save_CFLAGS"
  17981. if test x$have_gcc_sse2 = xyes; then
  17982. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17983. SUMMARY_math="${SUMMARY_math} sse2"
  17984. fi
  17985. fi
  17986. # Check whether --enable-sse3 was given.
  17987. if test ${enable_sse3+y}
  17988. then :
  17989. enableval=$enable_sse3;
  17990. else $as_nop
  17991. enable_sse3=$default_ssemath
  17992. fi
  17993. if test x$enable_sse3 = xyes; then
  17994. save_CFLAGS="$CFLAGS"
  17995. have_gcc_sse3=no
  17996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17997. printf %s "checking for GCC -msse3 option... " >&6; }
  17998. sse3_CFLAGS="-msse3"
  17999. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  18000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18001. /* end confdefs.h. */
  18002. #ifdef __MINGW32__
  18003. #include <_mingw.h>
  18004. #ifdef __MINGW64_VERSION_MAJOR
  18005. #include <intrin.h>
  18006. #else
  18007. #include <pmmintrin.h>
  18008. #endif
  18009. #else
  18010. #include <pmmintrin.h>
  18011. #endif
  18012. #ifndef __SSE2__
  18013. #error Assembler CPP flag not enabled
  18014. #endif
  18015. int
  18016. main (void)
  18017. {
  18018. ;
  18019. return 0;
  18020. }
  18021. _ACEOF
  18022. if ac_fn_c_try_compile "$LINENO"
  18023. then :
  18024. have_gcc_sse3=yes
  18025. fi
  18026. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  18028. printf "%s\n" "$have_gcc_sse3" >&6; }
  18029. CFLAGS="$save_CFLAGS"
  18030. if test x$have_gcc_sse3 = xyes; then
  18031. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  18032. SUMMARY_math="${SUMMARY_math} sse3"
  18033. fi
  18034. fi
  18035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  18036. printf %s "checking for immintrin.h... " >&6; }
  18037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18038. /* end confdefs.h. */
  18039. #include <immintrin.h>
  18040. int
  18041. main (void)
  18042. {
  18043. ;
  18044. return 0;
  18045. }
  18046. _ACEOF
  18047. if ac_fn_c_try_compile "$LINENO"
  18048. then :
  18049. have_immintrin_h_hdr=yes
  18050. else $as_nop
  18051. have_immintrin_h_hdr=no
  18052. fi
  18053. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  18055. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  18056. if test x$have_immintrin_h_hdr = xyes; then
  18057. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  18058. fi
  18059. # Check whether --enable-altivec was given.
  18060. if test ${enable_altivec+y}
  18061. then :
  18062. enableval=$enable_altivec;
  18063. else $as_nop
  18064. enable_altivec=yes
  18065. fi
  18066. if test x$enable_altivec = xyes; then
  18067. save_CFLAGS="$CFLAGS"
  18068. have_gcc_altivec=no
  18069. have_altivec_h_hdr=no
  18070. altivec_CFLAGS="-maltivec"
  18071. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18073. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18075. /* end confdefs.h. */
  18076. #include <altivec.h>
  18077. vector unsigned int vzero() {
  18078. return vec_splat_u32(0);
  18079. }
  18080. int
  18081. main (void)
  18082. {
  18083. ;
  18084. return 0;
  18085. }
  18086. _ACEOF
  18087. if ac_fn_c_try_compile "$LINENO"
  18088. then :
  18089. have_gcc_altivec=yes
  18090. have_altivec_h_hdr=yes
  18091. fi
  18092. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18094. printf "%s\n" "$have_gcc_altivec" >&6; }
  18095. if test x$have_gcc_altivec = xno; then
  18096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18097. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18099. /* end confdefs.h. */
  18100. vector unsigned int vzero() {
  18101. return vec_splat_u32(0);
  18102. }
  18103. int
  18104. main (void)
  18105. {
  18106. ;
  18107. return 0;
  18108. }
  18109. _ACEOF
  18110. if ac_fn_c_try_compile "$LINENO"
  18111. then :
  18112. have_gcc_altivec=yes
  18113. fi
  18114. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18116. printf "%s\n" "$have_gcc_altivec" >&6; }
  18117. fi
  18118. if test x$have_gcc_altivec = xno; then
  18119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18120. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18121. altivec_CFLAGS="-faltivec"
  18122. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18124. /* end confdefs.h. */
  18125. #include <altivec.h>
  18126. vector unsigned int vzero() {
  18127. return vec_splat_u32(0);
  18128. }
  18129. int
  18130. main (void)
  18131. {
  18132. ;
  18133. return 0;
  18134. }
  18135. _ACEOF
  18136. if ac_fn_c_try_compile "$LINENO"
  18137. then :
  18138. have_gcc_altivec=yes
  18139. have_altivec_h_hdr=yes
  18140. fi
  18141. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18143. printf "%s\n" "$have_gcc_altivec" >&6; }
  18144. fi
  18145. if test x$have_gcc_altivec = xno; then
  18146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18147. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18149. /* end confdefs.h. */
  18150. vector unsigned int vzero() {
  18151. return vec_splat_u32(0);
  18152. }
  18153. int
  18154. main (void)
  18155. {
  18156. ;
  18157. return 0;
  18158. }
  18159. _ACEOF
  18160. if ac_fn_c_try_compile "$LINENO"
  18161. then :
  18162. have_gcc_altivec=yes
  18163. fi
  18164. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18166. printf "%s\n" "$have_gcc_altivec" >&6; }
  18167. fi
  18168. CFLAGS="$save_CFLAGS"
  18169. if test x$have_gcc_altivec = xyes; then
  18170. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18171. if test x$have_altivec_h_hdr = xyes; then
  18172. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18173. fi
  18174. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18175. SUMMARY_math="${SUMMARY_math} altivec"
  18176. fi
  18177. fi
  18178. fi
  18179. # Check whether --enable-lsx was given.
  18180. if test ${enable_lsx+y}
  18181. then :
  18182. enableval=$enable_lsx;
  18183. else $as_nop
  18184. enable_lsx=yes
  18185. fi
  18186. if test x$enable_lsx = xyes; then
  18187. save_CFLAGS="$CFLAGS"
  18188. have_gcc_lsx=no
  18189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18190. printf %s "checking for GCC -mlsx option... " >&6; }
  18191. lsx_CFLAGS="-mlsx"
  18192. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18194. /* end confdefs.h. */
  18195. #ifndef __loongarch_sx
  18196. #error Assembler CPP flag not enabled
  18197. #endif
  18198. int
  18199. main (void)
  18200. {
  18201. ;
  18202. return 0;
  18203. }
  18204. _ACEOF
  18205. if ac_fn_c_try_compile "$LINENO"
  18206. then :
  18207. have_gcc_lsx=yes
  18208. fi
  18209. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18211. printf "%s\n" "$have_gcc_lsx" >&6; }
  18212. CFLAGS="$save_CFLAGS"
  18213. if test x$have_gcc_lsx = xyes; then
  18214. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18215. SUMMARY_math="${SUMMARY_math} lsx"
  18216. fi
  18217. fi
  18218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18219. printf %s "checking for lsxintrin.h... " >&6; }
  18220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18221. /* end confdefs.h. */
  18222. #include <lsxintrin.h>
  18223. int
  18224. main (void)
  18225. {
  18226. ;
  18227. return 0;
  18228. }
  18229. _ACEOF
  18230. if ac_fn_c_try_compile "$LINENO"
  18231. then :
  18232. have_lsxintrin_h_hdr=yes
  18233. else $as_nop
  18234. have_lsxintrin_h_hdr=no
  18235. fi
  18236. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18238. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18239. if test x$have_lsxintrin_h_hdr = xyes; then
  18240. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18241. fi
  18242. # Check whether --enable-lasx was given.
  18243. if test ${enable_lasx+y}
  18244. then :
  18245. enableval=$enable_lasx;
  18246. else $as_nop
  18247. enable_LASX=yes
  18248. fi
  18249. if test x$enable_LASX = xyes; then
  18250. save_CFLAGS="$CFLAGS"
  18251. have_gcc_lasx=no
  18252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18253. printf %s "checking for GCC -mlasx option... " >&6; }
  18254. lasx_CFLAGS="-mlasx"
  18255. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18257. /* end confdefs.h. */
  18258. #ifndef __loongarch_asx
  18259. #error Assembler CPP flag not enabled
  18260. #endif
  18261. int
  18262. main (void)
  18263. {
  18264. ;
  18265. return 0;
  18266. }
  18267. _ACEOF
  18268. if ac_fn_c_try_compile "$LINENO"
  18269. then :
  18270. have_gcc_lasx=yes
  18271. fi
  18272. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18274. printf "%s\n" "$have_gcc_lasx" >&6; }
  18275. CFLAGS="$save_CFLAGS"
  18276. if test x$have_gcc_lasx = xyes; then
  18277. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18278. SUMMARY_math="${SUMMARY_math} lasx"
  18279. fi
  18280. fi
  18281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18282. printf %s "checking for lasxintrin.h... " >&6; }
  18283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18284. /* end confdefs.h. */
  18285. #include <lasxintrin.h>
  18286. int
  18287. main (void)
  18288. {
  18289. ;
  18290. return 0;
  18291. }
  18292. _ACEOF
  18293. if ac_fn_c_try_compile "$LINENO"
  18294. then :
  18295. have_lasxintrin_h_hdr=yes
  18296. else $as_nop
  18297. have_lasxintrin_h_hdr=no
  18298. fi
  18299. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18301. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18302. if test x$have_lasxintrin_h_hdr = xyes; then
  18303. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18304. fi
  18305. CheckOSS()
  18306. {
  18307. # Check whether --enable-oss was given.
  18308. if test ${enable_oss+y}
  18309. then :
  18310. enableval=$enable_oss;
  18311. else $as_nop
  18312. enable_oss=maybe
  18313. fi
  18314. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  18315. # use sndio instead. So on there, we default to disabled. You can force
  18316. # it on if you really want, though.
  18317. if test x$enable_oss = xmaybe; then
  18318. enable_oss=yes
  18319. case "$host" in
  18320. *-*-openbsd*)
  18321. enable_oss=no;;
  18322. esac
  18323. fi
  18324. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18326. printf %s "checking for OSS audio support... " >&6; }
  18327. have_oss=no
  18328. if test x$have_oss != xyes; then
  18329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18330. /* end confdefs.h. */
  18331. #include <sys/soundcard.h>
  18332. int
  18333. main (void)
  18334. {
  18335. int arg = SNDCTL_DSP_SETFRAGMENT;
  18336. ;
  18337. return 0;
  18338. }
  18339. _ACEOF
  18340. if ac_fn_c_try_compile "$LINENO"
  18341. then :
  18342. have_oss=yes
  18343. fi
  18344. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18345. fi
  18346. if test x$have_oss != xyes; then
  18347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18348. /* end confdefs.h. */
  18349. #include <soundcard.h>
  18350. int
  18351. main (void)
  18352. {
  18353. int arg = SNDCTL_DSP_SETFRAGMENT;
  18354. ;
  18355. return 0;
  18356. }
  18357. _ACEOF
  18358. if ac_fn_c_try_compile "$LINENO"
  18359. then :
  18360. have_oss=yes
  18361. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  18362. fi
  18363. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18364. fi
  18365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18366. printf "%s\n" "$have_oss" >&6; }
  18367. if test x$have_oss = xyes; then
  18368. SUMMARY_audio="${SUMMARY_audio} oss"
  18369. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18370. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18371. have_audio=yes
  18372. # We may need to link with ossaudio emulation library
  18373. case "$host" in
  18374. *-*-openbsd*|*-*-netbsd*)
  18375. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18376. esac
  18377. fi
  18378. fi
  18379. }
  18380. CheckALSA()
  18381. {
  18382. # Check whether --enable-alsa was given.
  18383. if test ${enable_alsa+y}
  18384. then :
  18385. enableval=$enable_alsa;
  18386. else $as_nop
  18387. enable_alsa=yes
  18388. fi
  18389. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18390. alsa_save_CFLAGS="$CFLAGS"
  18391. alsa_save_LDFLAGS="$LDFLAGS"
  18392. alsa_save_LIBS="$LIBS"
  18393. alsa_found=yes
  18394. # Check whether --with-alsa-prefix was given.
  18395. if test ${with_alsa_prefix+y}
  18396. then :
  18397. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18398. else $as_nop
  18399. alsa_prefix=""
  18400. fi
  18401. # Check whether --with-alsa-inc-prefix was given.
  18402. if test ${with_alsa_inc_prefix+y}
  18403. then :
  18404. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18405. else $as_nop
  18406. alsa_inc_prefix=""
  18407. fi
  18408. # Check whether --enable-alsatest was given.
  18409. if test ${enable_alsatest+y}
  18410. then :
  18411. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18412. else $as_nop
  18413. enable_alsatest=yes
  18414. fi
  18415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18416. printf %s "checking for ALSA CFLAGS... " >&6; }
  18417. if test "$alsa_inc_prefix" != "" ; then
  18418. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18419. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18420. fi
  18421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18422. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18424. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18425. if test "$alsa_prefix" != "" ; then
  18426. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18427. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18428. fi
  18429. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18430. LIBS=`echo $LIBS | sed 's/-lm//'`
  18431. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18432. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18433. LIBS=`echo $LIBS | sed 's/ //'`
  18434. LIBS="$ALSA_LIBS $LIBS"
  18435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18436. printf "%s\n" "$ALSA_LIBS" >&6; }
  18437. min_alsa_version=1.0.11
  18438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18439. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18440. no_alsa=""
  18441. alsa_min_major_version=`echo $min_alsa_version | \
  18442. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18443. alsa_min_minor_version=`echo $min_alsa_version | \
  18444. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18445. alsa_min_micro_version=`echo $min_alsa_version | \
  18446. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18447. ac_ext=c
  18448. ac_cpp='$CPP $CPPFLAGS'
  18449. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18450. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18451. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18453. /* end confdefs.h. */
  18454. #include <alsa/asoundlib.h>
  18455. int
  18456. main (void)
  18457. {
  18458. /* ensure backward compatibility */
  18459. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18460. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18461. #endif
  18462. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18463. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18464. #endif
  18465. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18466. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18467. #endif
  18468. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18469. exit(0);
  18470. # else
  18471. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18472. # error not present
  18473. # endif
  18474. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18475. exit(0);
  18476. # else
  18477. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18478. # error not present
  18479. # endif
  18480. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18481. # error not present
  18482. # endif
  18483. # endif
  18484. # endif
  18485. exit(0);
  18486. ;
  18487. return 0;
  18488. }
  18489. _ACEOF
  18490. if ac_fn_c_try_compile "$LINENO"
  18491. then :
  18492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18493. printf "%s\n" "found." >&6; }
  18494. else $as_nop
  18495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18496. printf "%s\n" "not present." >&6; }
  18497. alsa_found=no
  18498. fi
  18499. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18500. ac_ext=c
  18501. ac_cpp='$CPP $CPPFLAGS'
  18502. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18503. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18504. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18505. if test "x$enable_alsatest" = "xyes"; then
  18506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18507. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18508. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18509. then :
  18510. printf %s "(cached) " >&6
  18511. else $as_nop
  18512. ac_check_lib_save_LIBS=$LIBS
  18513. LIBS="-lasound $LIBS"
  18514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18515. /* end confdefs.h. */
  18516. /* Override any GCC internal prototype to avoid an error.
  18517. Use char because int might match the return type of a GCC
  18518. builtin and then its argument prototype would still apply. */
  18519. char snd_ctl_open ();
  18520. int
  18521. main (void)
  18522. {
  18523. return snd_ctl_open ();
  18524. ;
  18525. return 0;
  18526. }
  18527. _ACEOF
  18528. if ac_fn_c_try_link "$LINENO"
  18529. then :
  18530. ac_cv_lib_asound_snd_ctl_open=yes
  18531. else $as_nop
  18532. ac_cv_lib_asound_snd_ctl_open=no
  18533. fi
  18534. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18535. conftest$ac_exeext conftest.$ac_ext
  18536. LIBS=$ac_check_lib_save_LIBS
  18537. fi
  18538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18539. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18540. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18541. then :
  18542. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18543. LIBS="-lasound $LIBS"
  18544. else $as_nop
  18545. alsa_found=no
  18546. fi
  18547. fi
  18548. if test "x$alsa_found" = "xyes" ; then
  18549. have_alsa=yes
  18550. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18551. LIBS=`echo $LIBS | sed 's/ //'`
  18552. LIBS="-lasound $LIBS"
  18553. fi
  18554. if test "x$alsa_found" = "xno" ; then
  18555. have_alsa=no
  18556. CFLAGS="$alsa_save_CFLAGS"
  18557. LDFLAGS="$alsa_save_LDFLAGS"
  18558. LIBS="$alsa_save_LIBS"
  18559. ALSA_CFLAGS=""
  18560. ALSA_LIBS=""
  18561. fi
  18562. # Restore all flags from before the ALSA detection runs
  18563. CFLAGS="$alsa_save_CFLAGS"
  18564. LDFLAGS="$alsa_save_LDFLAGS"
  18565. LIBS="$alsa_save_LIBS"
  18566. if test x$have_alsa = xyes; then
  18567. # Check whether --enable-alsa-shared was given.
  18568. if test ${enable_alsa_shared+y}
  18569. then :
  18570. enableval=$enable_alsa_shared;
  18571. else $as_nop
  18572. enable_alsa_shared=yes
  18573. fi
  18574. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18575. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18576. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18577. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18578. if test x$have_loadso != xyes && \
  18579. test x$enable_alsa_shared = xyes; then
  18580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18581. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18582. fi
  18583. if test x$have_loadso = xyes && \
  18584. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18585. echo "-- dynamic libasound -> $alsa_lib"
  18586. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18587. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18588. else
  18589. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18590. SUMMARY_audio="${SUMMARY_audio} alsa"
  18591. fi
  18592. have_audio=yes
  18593. fi
  18594. fi
  18595. }
  18596. CheckJACK()
  18597. {
  18598. # Check whether --enable-jack was given.
  18599. if test ${enable_jack+y}
  18600. then :
  18601. enableval=$enable_jack;
  18602. else $as_nop
  18603. enable_jack=yes
  18604. fi
  18605. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18606. pkg_failed=no
  18607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18608. printf %s "checking for jack >= 0.125... " >&6; }
  18609. if test -n "$JACK_CFLAGS"; then
  18610. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18611. elif test -n "$PKG_CONFIG"; then
  18612. if test -n "$PKG_CONFIG" && \
  18613. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18614. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18615. ac_status=$?
  18616. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18617. test $ac_status = 0; }; then
  18618. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18619. test "x$?" != "x0" && pkg_failed=yes
  18620. else
  18621. pkg_failed=yes
  18622. fi
  18623. else
  18624. pkg_failed=untried
  18625. fi
  18626. if test -n "$JACK_LIBS"; then
  18627. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18628. elif test -n "$PKG_CONFIG"; then
  18629. if test -n "$PKG_CONFIG" && \
  18630. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18631. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18632. ac_status=$?
  18633. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18634. test $ac_status = 0; }; then
  18635. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18636. test "x$?" != "x0" && pkg_failed=yes
  18637. else
  18638. pkg_failed=yes
  18639. fi
  18640. else
  18641. pkg_failed=untried
  18642. fi
  18643. if test $pkg_failed = yes; then
  18644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18645. printf "%s\n" "no" >&6; }
  18646. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18647. _pkg_short_errors_supported=yes
  18648. else
  18649. _pkg_short_errors_supported=no
  18650. fi
  18651. if test $_pkg_short_errors_supported = yes; then
  18652. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18653. else
  18654. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18655. fi
  18656. # Put the nasty error message in config.log where it belongs
  18657. echo "$JACK_PKG_ERRORS" >&5
  18658. audio_jack=no
  18659. elif test $pkg_failed = untried; then
  18660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18661. printf "%s\n" "no" >&6; }
  18662. audio_jack=no
  18663. else
  18664. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18665. JACK_LIBS=$pkg_cv_JACK_LIBS
  18666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18667. printf "%s\n" "yes" >&6; }
  18668. audio_jack=yes
  18669. fi
  18670. if test x$audio_jack = xyes; then
  18671. # Check whether --enable-jack-shared was given.
  18672. if test ${enable_jack_shared+y}
  18673. then :
  18674. enableval=$enable_jack_shared;
  18675. else $as_nop
  18676. enable_jack_shared=yes
  18677. fi
  18678. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18679. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18680. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18681. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18682. if test x$have_loadso != xyes && \
  18683. test x$enable_jack_shared = xyes; then
  18684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18685. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18686. fi
  18687. if test x$have_loadso = xyes && \
  18688. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18689. echo "-- dynamic libjack -> $jack_lib"
  18690. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18691. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18692. case "$host" in
  18693. # On Solaris, jack must be linked deferred explicitly
  18694. # to prevent undefined symbol failures.
  18695. *-*-solaris*)
  18696. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18697. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18698. esac
  18699. else
  18700. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18701. SUMMARY_audio="${SUMMARY_audio} jack"
  18702. fi
  18703. have_audio=yes
  18704. fi
  18705. fi
  18706. }
  18707. CheckESD()
  18708. {
  18709. # Check whether --enable-esd was given.
  18710. if test ${enable_esd+y}
  18711. then :
  18712. enableval=$enable_esd;
  18713. else $as_nop
  18714. enable_esd=yes
  18715. fi
  18716. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18717. # Check whether --with-esd-prefix was given.
  18718. if test ${with_esd_prefix+y}
  18719. then :
  18720. withval=$with_esd_prefix; esd_prefix="$withval"
  18721. else $as_nop
  18722. esd_prefix=""
  18723. fi
  18724. # Check whether --with-esd-exec-prefix was given.
  18725. if test ${with_esd_exec_prefix+y}
  18726. then :
  18727. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18728. else $as_nop
  18729. esd_exec_prefix=""
  18730. fi
  18731. # Check whether --enable-esdtest was given.
  18732. if test ${enable_esdtest+y}
  18733. then :
  18734. enableval=$enable_esdtest;
  18735. else $as_nop
  18736. enable_esdtest=yes
  18737. fi
  18738. if test x$esd_exec_prefix != x ; then
  18739. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18740. if test x${ESD_CONFIG+set} != xset ; then
  18741. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18742. fi
  18743. fi
  18744. if test x$esd_prefix != x ; then
  18745. esd_args="$esd_args --prefix=$esd_prefix"
  18746. if test x${ESD_CONFIG+set} != xset ; then
  18747. ESD_CONFIG=$esd_prefix/bin/esd-config
  18748. fi
  18749. fi
  18750. # Extract the first word of "esd-config", so it can be a program name with args.
  18751. set dummy esd-config; ac_word=$2
  18752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18753. printf %s "checking for $ac_word... " >&6; }
  18754. if test ${ac_cv_path_ESD_CONFIG+y}
  18755. then :
  18756. printf %s "(cached) " >&6
  18757. else $as_nop
  18758. case $ESD_CONFIG in
  18759. [\\/]* | ?:[\\/]*)
  18760. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18761. ;;
  18762. *)
  18763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18764. for as_dir in $PATH
  18765. do
  18766. IFS=$as_save_IFS
  18767. case $as_dir in #(((
  18768. '') as_dir=./ ;;
  18769. */) ;;
  18770. *) as_dir=$as_dir/ ;;
  18771. esac
  18772. for ac_exec_ext in '' $ac_executable_extensions; do
  18773. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18774. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18775. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18776. break 2
  18777. fi
  18778. done
  18779. done
  18780. IFS=$as_save_IFS
  18781. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18782. ;;
  18783. esac
  18784. fi
  18785. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18786. if test -n "$ESD_CONFIG"; then
  18787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18788. printf "%s\n" "$ESD_CONFIG" >&6; }
  18789. else
  18790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18791. printf "%s\n" "no" >&6; }
  18792. fi
  18793. min_esd_version=0.2.8
  18794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18795. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18796. no_esd=""
  18797. if test "$ESD_CONFIG" = "no" ; then
  18798. no_esd=yes
  18799. else
  18800. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18801. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18802. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18803. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18804. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18805. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18806. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18807. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18808. if test "x$enable_esdtest" = "xyes" ; then
  18809. ac_ext=c
  18810. ac_cpp='$CPP $CPPFLAGS'
  18811. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18812. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18813. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18814. ac_save_CFLAGS="$CFLAGS"
  18815. ac_save_LIBS="$LIBS"
  18816. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18817. LIBS="$LIBS $ESD_LIBS"
  18818. rm -f conf.esdtest
  18819. if test "$cross_compiling" = yes
  18820. then :
  18821. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18822. else $as_nop
  18823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18824. /* end confdefs.h. */
  18825. #include <stdio.h>
  18826. #include <stdlib.h>
  18827. #include <esd.h>
  18828. int main (void)
  18829. {
  18830. int major, minor, micro;
  18831. FILE *fp = fopen("conf.esdtest", "w");
  18832. if (fp) fclose(fp);
  18833. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18834. printf("%s, bad version string\n", "$min_esd_version");
  18835. exit(1);
  18836. }
  18837. if (($esd_major_version > major) ||
  18838. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18839. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18840. {
  18841. return 0;
  18842. }
  18843. else
  18844. {
  18845. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18846. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18847. printf("*** best to upgrade to the required version.\n");
  18848. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18849. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18850. printf("*** config.cache before re-running configure\n");
  18851. return 1;
  18852. }
  18853. }
  18854. _ACEOF
  18855. if ac_fn_c_try_run "$LINENO"
  18856. then :
  18857. else $as_nop
  18858. no_esd=yes
  18859. fi
  18860. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18861. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18862. fi
  18863. CFLAGS="$ac_save_CFLAGS"
  18864. LIBS="$ac_save_LIBS"
  18865. ac_ext=c
  18866. ac_cpp='$CPP $CPPFLAGS'
  18867. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18868. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18869. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18870. fi
  18871. fi
  18872. if test "x$no_esd" = x ; then
  18873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18874. printf "%s\n" "yes" >&6; }
  18875. have_esd=yes
  18876. else
  18877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18878. printf "%s\n" "no" >&6; }
  18879. if test "$ESD_CONFIG" = "no" ; then
  18880. echo "*** The esd-config script installed by ESD could not be found"
  18881. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  18882. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  18883. echo "*** full path to esd-config."
  18884. else
  18885. if test -f conf.esdtest ; then
  18886. :
  18887. else
  18888. echo "*** Could not run ESD test program, checking why..."
  18889. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18890. LIBS="$LIBS $ESD_LIBS"
  18891. ac_ext=c
  18892. ac_cpp='$CPP $CPPFLAGS'
  18893. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18894. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18895. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18897. /* end confdefs.h. */
  18898. #include <stdio.h>
  18899. #include <esd.h>
  18900. int
  18901. main (void)
  18902. {
  18903. return 0;
  18904. ;
  18905. return 0;
  18906. }
  18907. _ACEOF
  18908. if ac_fn_c_try_link "$LINENO"
  18909. then :
  18910. echo "*** The test program compiled, but did not run. This usually means"
  18911. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18912. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18913. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18914. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18915. echo "*** is required on your system"
  18916. echo "***"
  18917. echo "*** If you have an old version installed, it is best to remove it, although"
  18918. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18919. else $as_nop
  18920. echo "*** The test program failed to compile or link. See the file config.log for the"
  18921. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18922. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18923. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18924. fi
  18925. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18926. conftest$ac_exeext conftest.$ac_ext
  18927. CFLAGS="$ac_save_CFLAGS"
  18928. LIBS="$ac_save_LIBS"
  18929. ac_ext=c
  18930. ac_cpp='$CPP $CPPFLAGS'
  18931. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18932. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18933. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18934. fi
  18935. fi
  18936. ESD_CFLAGS=""
  18937. ESD_LIBS=""
  18938. have_esd=no
  18939. fi
  18940. rm -f conf.esdtest
  18941. if test x$have_esd = xyes; then
  18942. # Check whether --enable-esd-shared was given.
  18943. if test ${enable_esd_shared+y}
  18944. then :
  18945. enableval=$enable_esd_shared;
  18946. else $as_nop
  18947. enable_esd_shared=yes
  18948. fi
  18949. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18950. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18951. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18952. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18953. if test x$have_loadso != xyes && \
  18954. test x$enable_esd_shared = xyes; then
  18955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  18956. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  18957. fi
  18958. if test x$have_loadso = xyes && \
  18959. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  18960. echo "-- dynamic libesd -> $esd_lib"
  18961. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  18962. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  18963. else
  18964. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  18965. SUMMARY_audio="${SUMMARY_audio} esd"
  18966. fi
  18967. have_audio=yes
  18968. fi
  18969. fi
  18970. }
  18971. CheckPipewire()
  18972. {
  18973. # Check whether --enable-pipewire was given.
  18974. if test ${enable_pipewire+y}
  18975. then :
  18976. enableval=$enable_pipewire;
  18977. else $as_nop
  18978. enable_pipewire=yes
  18979. fi
  18980. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18981. pkg_failed=no
  18982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18983. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18984. if test -n "$PIPEWIRE_CFLAGS"; then
  18985. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18986. elif test -n "$PKG_CONFIG"; then
  18987. if test -n "$PKG_CONFIG" && \
  18988. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18989. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18990. ac_status=$?
  18991. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18992. test $ac_status = 0; }; then
  18993. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18994. test "x$?" != "x0" && pkg_failed=yes
  18995. else
  18996. pkg_failed=yes
  18997. fi
  18998. else
  18999. pkg_failed=untried
  19000. fi
  19001. if test -n "$PIPEWIRE_LIBS"; then
  19002. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  19003. elif test -n "$PKG_CONFIG"; then
  19004. if test -n "$PKG_CONFIG" && \
  19005. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19006. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19007. ac_status=$?
  19008. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19009. test $ac_status = 0; }; then
  19010. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19011. test "x$?" != "x0" && pkg_failed=yes
  19012. else
  19013. pkg_failed=yes
  19014. fi
  19015. else
  19016. pkg_failed=untried
  19017. fi
  19018. if test $pkg_failed = yes; then
  19019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19020. printf "%s\n" "no" >&6; }
  19021. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19022. _pkg_short_errors_supported=yes
  19023. else
  19024. _pkg_short_errors_supported=no
  19025. fi
  19026. if test $_pkg_short_errors_supported = yes; then
  19027. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19028. else
  19029. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19030. fi
  19031. # Put the nasty error message in config.log where it belongs
  19032. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19033. audio_pipewire=no
  19034. elif test $pkg_failed = untried; then
  19035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19036. printf "%s\n" "no" >&6; }
  19037. audio_pipewire=no
  19038. else
  19039. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19040. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19042. printf "%s\n" "yes" >&6; }
  19043. audio_pipewire=yes
  19044. fi
  19045. if test x$audio_pipewire = xyes; then
  19046. # Check whether --enable-pipewire-shared was given.
  19047. if test ${enable_pipewire_shared+y}
  19048. then :
  19049. enableval=$enable_pipewire_shared;
  19050. else $as_nop
  19051. enable_pipewire_shared=yes
  19052. fi
  19053. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19054. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19055. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19056. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19057. if test x$have_loadso != xyes && \
  19058. test x$enable_pipewire_shared = xyes; then
  19059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19060. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19061. fi
  19062. if test x$have_loadso = xyes && \
  19063. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19064. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19065. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19066. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19067. else
  19068. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19069. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19070. fi
  19071. have_audio=yes
  19072. fi
  19073. fi
  19074. }
  19075. CheckPulseAudio()
  19076. {
  19077. # Check whether --enable-pulseaudio was given.
  19078. if test ${enable_pulseaudio+y}
  19079. then :
  19080. enableval=$enable_pulseaudio;
  19081. else $as_nop
  19082. enable_pulseaudio=yes
  19083. fi
  19084. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19085. pkg_failed=no
  19086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  19087. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  19088. if test -n "$PULSEAUDIO_CFLAGS"; then
  19089. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19090. elif test -n "$PKG_CONFIG"; then
  19091. if test -n "$PKG_CONFIG" && \
  19092. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19093. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19094. ac_status=$?
  19095. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19096. test $ac_status = 0; }; then
  19097. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  19098. test "x$?" != "x0" && pkg_failed=yes
  19099. else
  19100. pkg_failed=yes
  19101. fi
  19102. else
  19103. pkg_failed=untried
  19104. fi
  19105. if test -n "$PULSEAUDIO_LIBS"; then
  19106. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19107. elif test -n "$PKG_CONFIG"; then
  19108. if test -n "$PKG_CONFIG" && \
  19109. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19110. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19111. ac_status=$?
  19112. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19113. test $ac_status = 0; }; then
  19114. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  19115. test "x$?" != "x0" && pkg_failed=yes
  19116. else
  19117. pkg_failed=yes
  19118. fi
  19119. else
  19120. pkg_failed=untried
  19121. fi
  19122. if test $pkg_failed = yes; then
  19123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19124. printf "%s\n" "no" >&6; }
  19125. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19126. _pkg_short_errors_supported=yes
  19127. else
  19128. _pkg_short_errors_supported=no
  19129. fi
  19130. if test $_pkg_short_errors_supported = yes; then
  19131. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19132. else
  19133. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19134. fi
  19135. # Put the nasty error message in config.log where it belongs
  19136. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19137. audio_pulseaudio=no
  19138. elif test $pkg_failed = untried; then
  19139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19140. printf "%s\n" "no" >&6; }
  19141. audio_pulseaudio=no
  19142. else
  19143. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19144. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19146. printf "%s\n" "yes" >&6; }
  19147. audio_pulseaudio=yes
  19148. fi
  19149. if test x$audio_pulseaudio = xyes; then
  19150. # Check whether --enable-pulseaudio-shared was given.
  19151. if test ${enable_pulseaudio_shared+y}
  19152. then :
  19153. enableval=$enable_pulseaudio_shared;
  19154. else $as_nop
  19155. enable_pulseaudio_shared=yes
  19156. fi
  19157. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19158. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19159. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19160. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19161. if test x$have_loadso != xyes && \
  19162. test x$enable_pulseaudio_shared = xyes; then
  19163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19164. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19165. fi
  19166. if test x$have_loadso = xyes && \
  19167. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19168. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19169. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19170. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19171. case "$host" in
  19172. # On Solaris, pulseaudio must be linked deferred explicitly
  19173. # to prevent undefined symbol failures.
  19174. *-*-solaris*)
  19175. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19176. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19177. esac
  19178. else
  19179. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19180. SUMMARY_audio="${SUMMARY_audio} pulse"
  19181. fi
  19182. have_audio=yes
  19183. fi
  19184. fi
  19185. }
  19186. CheckARTSC()
  19187. {
  19188. # Check whether --enable-arts was given.
  19189. if test ${enable_arts+y}
  19190. then :
  19191. enableval=$enable_arts;
  19192. else $as_nop
  19193. enable_arts=yes
  19194. fi
  19195. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19196. # Extract the first word of "artsc-config", so it can be a program name with args.
  19197. set dummy artsc-config; ac_word=$2
  19198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19199. printf %s "checking for $ac_word... " >&6; }
  19200. if test ${ac_cv_path_ARTSCONFIG+y}
  19201. then :
  19202. printf %s "(cached) " >&6
  19203. else $as_nop
  19204. case $ARTSCONFIG in
  19205. [\\/]* | ?:[\\/]*)
  19206. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19207. ;;
  19208. *)
  19209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19210. for as_dir in $PATH
  19211. do
  19212. IFS=$as_save_IFS
  19213. case $as_dir in #(((
  19214. '') as_dir=./ ;;
  19215. */) ;;
  19216. *) as_dir=$as_dir/ ;;
  19217. esac
  19218. for ac_exec_ext in '' $ac_executable_extensions; do
  19219. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19220. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19221. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19222. break 2
  19223. fi
  19224. done
  19225. done
  19226. IFS=$as_save_IFS
  19227. ;;
  19228. esac
  19229. fi
  19230. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19231. if test -n "$ARTSCONFIG"; then
  19232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19233. printf "%s\n" "$ARTSCONFIG" >&6; }
  19234. else
  19235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19236. printf "%s\n" "no" >&6; }
  19237. fi
  19238. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19239. : # arts isn't installed
  19240. else
  19241. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19242. ARTS_LIBS=`$ARTSCONFIG --libs`
  19243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19244. printf %s "checking for aRts development environment... " >&6; }
  19245. audio_arts=no
  19246. save_CFLAGS="$CFLAGS"
  19247. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19249. /* end confdefs.h. */
  19250. #include <artsc.h>
  19251. int
  19252. main (void)
  19253. {
  19254. arts_stream_t stream;
  19255. ;
  19256. return 0;
  19257. }
  19258. _ACEOF
  19259. if ac_fn_c_try_compile "$LINENO"
  19260. then :
  19261. audio_arts=yes
  19262. fi
  19263. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19264. CFLAGS="$save_CFLAGS"
  19265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19266. printf "%s\n" "$audio_arts" >&6; }
  19267. if test x$audio_arts = xyes; then
  19268. # Check whether --enable-arts-shared was given.
  19269. if test ${enable_arts_shared+y}
  19270. then :
  19271. enableval=$enable_arts_shared;
  19272. else $as_nop
  19273. enable_arts_shared=yes
  19274. fi
  19275. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19276. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19277. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19278. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19279. if test x$have_loadso != xyes && \
  19280. test x$enable_arts_shared = xyes; then
  19281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19282. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19283. fi
  19284. if test x$have_loadso = xyes && \
  19285. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19286. echo "-- dynamic libartsc -> $arts_lib"
  19287. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19288. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19289. else
  19290. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19291. SUMMARY_audio="${SUMMARY_audio} arts"
  19292. fi
  19293. have_audio=yes
  19294. fi
  19295. fi
  19296. fi
  19297. }
  19298. CheckNAS()
  19299. {
  19300. # Check whether --enable-nas was given.
  19301. if test ${enable_nas+y}
  19302. then :
  19303. enableval=$enable_nas;
  19304. else $as_nop
  19305. enable_nas=yes
  19306. fi
  19307. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19308. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19309. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19310. then :
  19311. have_nas_hdr=yes
  19312. fi
  19313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19314. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19315. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19316. then :
  19317. printf %s "(cached) " >&6
  19318. else $as_nop
  19319. ac_check_lib_save_LIBS=$LIBS
  19320. LIBS="-laudio $LIBS"
  19321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19322. /* end confdefs.h. */
  19323. /* Override any GCC internal prototype to avoid an error.
  19324. Use char because int might match the return type of a GCC
  19325. builtin and then its argument prototype would still apply. */
  19326. char AuOpenServer ();
  19327. int
  19328. main (void)
  19329. {
  19330. return AuOpenServer ();
  19331. ;
  19332. return 0;
  19333. }
  19334. _ACEOF
  19335. if ac_fn_c_try_link "$LINENO"
  19336. then :
  19337. ac_cv_lib_audio_AuOpenServer=yes
  19338. else $as_nop
  19339. ac_cv_lib_audio_AuOpenServer=no
  19340. fi
  19341. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19342. conftest$ac_exeext conftest.$ac_ext
  19343. LIBS=$ac_check_lib_save_LIBS
  19344. fi
  19345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19346. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19347. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19348. then :
  19349. have_nas_lib=yes
  19350. fi
  19351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19352. printf %s "checking for NAS audio support... " >&6; }
  19353. have_nas=no
  19354. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19355. have_nas=yes
  19356. NAS_LIBS="-laudio"
  19357. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19358. have_nas=yes
  19359. NAS_CFLAGS="-I/usr/X11R6/include/"
  19360. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19361. fi
  19362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19363. printf "%s\n" "$have_nas" >&6; }
  19364. if test x$have_nas = xyes; then
  19365. # Check whether --enable-nas-shared was given.
  19366. if test ${enable_nas_shared+y}
  19367. then :
  19368. enableval=$enable_nas_shared;
  19369. else $as_nop
  19370. enable_nas_shared=yes
  19371. fi
  19372. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19373. if test x$have_loadso != xyes && \
  19374. test x$enable_nas_shared = xyes; then
  19375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19376. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19377. fi
  19378. if test x$have_loadso = xyes && \
  19379. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19380. echo "-- dynamic libaudio -> $nas_lib"
  19381. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19382. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19383. else
  19384. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19385. SUMMARY_audio="${SUMMARY_audio} nas"
  19386. fi
  19387. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19388. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19389. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19390. have_audio=yes
  19391. fi
  19392. fi
  19393. }
  19394. CheckSNDIO()
  19395. {
  19396. # Check whether --enable-sndio was given.
  19397. if test ${enable_sndio+y}
  19398. then :
  19399. enableval=$enable_sndio;
  19400. else $as_nop
  19401. enable_sndio=yes
  19402. fi
  19403. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19404. ac_fn_c_check_header_compile "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  19405. if test "x$ac_cv_header_sndio_h" = xyes
  19406. then :
  19407. have_sndio_hdr=yes
  19408. fi
  19409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  19410. printf %s "checking for sio_open in -lsndio... " >&6; }
  19411. if test ${ac_cv_lib_sndio_sio_open+y}
  19412. then :
  19413. printf %s "(cached) " >&6
  19414. else $as_nop
  19415. ac_check_lib_save_LIBS=$LIBS
  19416. LIBS="-lsndio $LIBS"
  19417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19418. /* end confdefs.h. */
  19419. /* Override any GCC internal prototype to avoid an error.
  19420. Use char because int might match the return type of a GCC
  19421. builtin and then its argument prototype would still apply. */
  19422. char sio_open ();
  19423. int
  19424. main (void)
  19425. {
  19426. return sio_open ();
  19427. ;
  19428. return 0;
  19429. }
  19430. _ACEOF
  19431. if ac_fn_c_try_link "$LINENO"
  19432. then :
  19433. ac_cv_lib_sndio_sio_open=yes
  19434. else $as_nop
  19435. ac_cv_lib_sndio_sio_open=no
  19436. fi
  19437. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19438. conftest$ac_exeext conftest.$ac_ext
  19439. LIBS=$ac_check_lib_save_LIBS
  19440. fi
  19441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  19442. printf "%s\n" "$ac_cv_lib_sndio_sio_open" >&6; }
  19443. if test "x$ac_cv_lib_sndio_sio_open" = xyes
  19444. then :
  19445. have_sndio_lib=yes
  19446. fi
  19447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  19448. printf %s "checking for sndio audio support... " >&6; }
  19449. have_sndio=no
  19450. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  19451. have_sndio=yes
  19452. SNDIO_LIBS="-lsndio"
  19453. fi
  19454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  19455. printf "%s\n" "$have_sndio" >&6; }
  19456. if test x$have_sndio = xyes; then
  19457. # Check whether --enable-sndio-shared was given.
  19458. if test ${enable_sndio_shared+y}
  19459. then :
  19460. enableval=$enable_sndio_shared;
  19461. else $as_nop
  19462. enable_sndio_shared=yes
  19463. fi
  19464. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19465. if test x$have_loadso != xyes && \
  19466. test x$enable_sndio_shared = xyes; then
  19467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19468. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19469. fi
  19470. if test x$have_loadso = xyes && \
  19471. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19472. echo "-- dynamic libsndio -> $sndio_lib"
  19473. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19474. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19475. else
  19476. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19477. SUMMARY_audio="${SUMMARY_audio} sndio"
  19478. fi
  19479. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19480. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19481. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19482. have_audio=yes
  19483. fi
  19484. fi
  19485. }
  19486. CheckFusionSound()
  19487. {
  19488. # Check whether --enable-fusionsound was given.
  19489. if test ${enable_fusionsound+y}
  19490. then :
  19491. enableval=$enable_fusionsound;
  19492. else $as_nop
  19493. enable_fusionsound=no
  19494. fi
  19495. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19496. pkg_failed=no
  19497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19498. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19499. if test -n "$FUSIONSOUND_CFLAGS"; then
  19500. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19501. elif test -n "$PKG_CONFIG"; then
  19502. if test -n "$PKG_CONFIG" && \
  19503. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19504. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19505. ac_status=$?
  19506. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19507. test $ac_status = 0; }; then
  19508. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19509. test "x$?" != "x0" && pkg_failed=yes
  19510. else
  19511. pkg_failed=yes
  19512. fi
  19513. else
  19514. pkg_failed=untried
  19515. fi
  19516. if test -n "$FUSIONSOUND_LIBS"; then
  19517. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19518. elif test -n "$PKG_CONFIG"; then
  19519. if test -n "$PKG_CONFIG" && \
  19520. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19521. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19522. ac_status=$?
  19523. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19524. test $ac_status = 0; }; then
  19525. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19526. test "x$?" != "x0" && pkg_failed=yes
  19527. else
  19528. pkg_failed=yes
  19529. fi
  19530. else
  19531. pkg_failed=untried
  19532. fi
  19533. if test $pkg_failed = yes; then
  19534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19535. printf "%s\n" "no" >&6; }
  19536. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19537. _pkg_short_errors_supported=yes
  19538. else
  19539. _pkg_short_errors_supported=no
  19540. fi
  19541. if test $_pkg_short_errors_supported = yes; then
  19542. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19543. else
  19544. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19545. fi
  19546. # Put the nasty error message in config.log where it belongs
  19547. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19548. fusionsound=no
  19549. elif test $pkg_failed = untried; then
  19550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19551. printf "%s\n" "no" >&6; }
  19552. fusionsound=no
  19553. else
  19554. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19555. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19557. printf "%s\n" "yes" >&6; }
  19558. fusionsound=yes
  19559. fi
  19560. if test x$fusionsound = xyes; then
  19561. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19562. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19563. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19564. # Check whether --enable-fusionsound-shared was given.
  19565. if test ${enable_fusionsound_shared+y}
  19566. then :
  19567. enableval=$enable_fusionsound_shared;
  19568. else $as_nop
  19569. enable_fusionsound_shared=yes
  19570. fi
  19571. fusionsound_shared=no
  19572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19573. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19574. if test x$have_loadso != xyes && \
  19575. test x$enable_fusionsound_shared = xyes; then
  19576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19577. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19578. fi
  19579. if test x$have_loadso = xyes && \
  19580. test x$enable_fusionsound_shared = xyes; then
  19581. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19582. fusionsound_shared=yes
  19583. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19584. else
  19585. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19586. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19587. fi
  19588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19589. printf "%s\n" "$fusionsound_shared" >&6; }
  19590. have_audio=yes
  19591. fi
  19592. fi
  19593. }
  19594. CheckDiskAudio()
  19595. {
  19596. # Check whether --enable-diskaudio was given.
  19597. if test ${enable_diskaudio+y}
  19598. then :
  19599. enableval=$enable_diskaudio;
  19600. else $as_nop
  19601. enable_diskaudio=yes
  19602. fi
  19603. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19604. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19605. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19606. SUMMARY_audio="${SUMMARY_audio} disk"
  19607. have_audio=yes
  19608. fi
  19609. }
  19610. CheckDummyAudio()
  19611. {
  19612. # Check whether --enable-dummyaudio was given.
  19613. if test ${enable_dummyaudio+y}
  19614. then :
  19615. enableval=$enable_dummyaudio;
  19616. else $as_nop
  19617. enable_dummyaudio=yes
  19618. fi
  19619. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19620. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19621. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19622. SUMMARY_audio="${SUMMARY_audio} dummy"
  19623. have_audio=yes
  19624. fi
  19625. }
  19626. CheckLibSampleRate()
  19627. {
  19628. # Check whether --enable-libsamplerate was given.
  19629. if test ${enable_libsamplerate+y}
  19630. then :
  19631. enableval=$enable_libsamplerate;
  19632. else $as_nop
  19633. enable_libsamplerate=yes
  19634. fi
  19635. if test x$enable_libsamplerate = xyes; then
  19636. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19637. if test "x$ac_cv_header_samplerate_h" = xyes
  19638. then :
  19639. have_samplerate_h_hdr=yes
  19640. else $as_nop
  19641. have_samplerate_h_hdr=no
  19642. fi
  19643. if test x$have_samplerate_h_hdr = xyes; then
  19644. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19645. # Check whether --enable-libsamplerate-shared was given.
  19646. if test ${enable_libsamplerate_shared+y}
  19647. then :
  19648. enableval=$enable_libsamplerate_shared;
  19649. else $as_nop
  19650. enable_libsamplerate_shared=yes
  19651. fi
  19652. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19653. if test x$have_loadso != xyes && \
  19654. test x$enable_libsamplerate_shared = xyes; then
  19655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19656. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19657. fi
  19658. if test x$have_loadso = xyes && \
  19659. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19660. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19661. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19662. else
  19663. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19664. fi
  19665. fi
  19666. fi
  19667. }
  19668. CheckARM()
  19669. {
  19670. # Check whether --enable-arm-simd was given.
  19671. if test ${enable_arm_simd+y}
  19672. then :
  19673. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19674. else $as_nop
  19675. enable_arm_simd=no
  19676. fi
  19677. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19678. save_CFLAGS="$CFLAGS"
  19679. have_arm_simd=no
  19680. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19682. printf %s "checking for ARM SIMD... " >&6; }
  19683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19684. /* end confdefs.h. */
  19685. .text
  19686. .arch armv6
  19687. .object_arch armv4
  19688. .arm
  19689. .altmacro
  19690. #ifndef __ARM_EABI__
  19691. #error EABI is required (to be sure that calling conventions are compatible)
  19692. #endif
  19693. pld [r0]
  19694. uqadd8 r0, r0, r0
  19695. _ACEOF
  19696. if ac_fn_c_try_compile "$LINENO"
  19697. then :
  19698. have_arm_simd=yes
  19699. fi
  19700. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19702. printf "%s\n" "$have_arm_simd" >&6; }
  19703. CFLAGS="$save_CFLAGS"
  19704. if test x$have_arm_simd = xyes; then
  19705. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19706. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19707. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19708. fi
  19709. fi
  19710. }
  19711. CheckNEON()
  19712. {
  19713. # Check whether --enable-arm-neon was given.
  19714. if test ${enable_arm_neon+y}
  19715. then :
  19716. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19717. else $as_nop
  19718. enable_arm_neon=no
  19719. fi
  19720. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19721. save_CFLAGS="$CFLAGS"
  19722. have_arm_neon=no
  19723. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19725. printf %s "checking for ARM NEON... " >&6; }
  19726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19727. /* end confdefs.h. */
  19728. .text
  19729. .fpu neon
  19730. .arch armv7a
  19731. .object_arch armv4
  19732. .eabi_attribute 10, 0
  19733. .arm
  19734. .altmacro
  19735. #ifndef __ARM_EABI__
  19736. #error EABI is required (to be sure that calling conventions are compatible)
  19737. #endif
  19738. pld [r0]
  19739. vmovn.u16 d0, q0
  19740. _ACEOF
  19741. if ac_fn_c_try_compile "$LINENO"
  19742. then :
  19743. have_arm_neon=yes
  19744. fi
  19745. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19747. printf "%s\n" "$have_arm_neon" >&6; }
  19748. CFLAGS="$save_CFLAGS"
  19749. if test x$have_arm_neon = xyes; then
  19750. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19751. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19752. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19753. fi
  19754. fi
  19755. }
  19756. CheckObjectiveCARC()
  19757. {
  19758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19759. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19760. have_clang_objc_arc=no
  19761. save_CFLAGS="$CFLAGS"
  19762. CFLAGS="$save_CFLAGS -fobjc-arc"
  19763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19764. /* end confdefs.h. */
  19765. int x = 0;
  19766. int
  19767. main (void)
  19768. {
  19769. ;
  19770. return 0;
  19771. }
  19772. _ACEOF
  19773. if ac_fn_c_try_compile "$LINENO"
  19774. then :
  19775. have_clang_objc_arc=yes
  19776. fi
  19777. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19779. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19780. CFLAGS="$save_CFLAGS"
  19781. if test x$have_clang_objc_arc = xyes; then
  19782. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19783. fi
  19784. }
  19785. CheckVisibilityHidden()
  19786. {
  19787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19788. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19789. have_gcc_fvisibility=no
  19790. visibility_CFLAGS="-fvisibility=hidden"
  19791. save_CFLAGS="$CFLAGS"
  19792. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19794. /* end confdefs.h. */
  19795. #if !defined(__GNUC__) || __GNUC__ < 4
  19796. #error SDL only uses visibility attributes in GCC 4 or newer
  19797. #endif
  19798. int
  19799. main (void)
  19800. {
  19801. ;
  19802. return 0;
  19803. }
  19804. _ACEOF
  19805. if ac_fn_c_try_compile "$LINENO"
  19806. then :
  19807. have_gcc_fvisibility=yes
  19808. fi
  19809. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19811. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19812. CFLAGS="$save_CFLAGS"
  19813. if test x$have_gcc_fvisibility = xyes; then
  19814. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19815. fi
  19816. }
  19817. CheckNoStrictAliasing()
  19818. {
  19819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19820. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19821. have_gcc_no_strict_aliasing=no
  19822. save_CFLAGS="$CFLAGS"
  19823. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19825. /* end confdefs.h. */
  19826. int x = 0;
  19827. int
  19828. main (void)
  19829. {
  19830. ;
  19831. return 0;
  19832. }
  19833. _ACEOF
  19834. if ac_fn_c_try_compile "$LINENO"
  19835. then :
  19836. have_gcc_no_strict_aliasing=yes
  19837. fi
  19838. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19840. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19841. CFLAGS="$save_CFLAGS"
  19842. if test x$have_gcc_no_strict_aliasing = xyes; then
  19843. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19844. fi
  19845. }
  19846. CheckStackBoundary()
  19847. {
  19848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19849. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19850. have_gcc_preferred_stack_boundary=no
  19851. save_CFLAGS="$CFLAGS"
  19852. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19854. /* end confdefs.h. */
  19855. int x = 0;
  19856. int
  19857. main (void)
  19858. {
  19859. ;
  19860. return 0;
  19861. }
  19862. _ACEOF
  19863. if ac_fn_c_try_compile "$LINENO"
  19864. then :
  19865. have_gcc_preferred_stack_boundary=yes
  19866. fi
  19867. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19869. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19870. CFLAGS="$save_CFLAGS"
  19871. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19872. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19873. fi
  19874. }
  19875. CheckDeclarationAfterStatement()
  19876. {
  19877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19878. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19879. have_gcc_declaration_after_statement=no
  19880. save_CFLAGS="$CFLAGS"
  19881. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19883. /* end confdefs.h. */
  19884. int x = 0;
  19885. int
  19886. main (void)
  19887. {
  19888. ;
  19889. return 0;
  19890. }
  19891. _ACEOF
  19892. if ac_fn_c_try_compile "$LINENO"
  19893. then :
  19894. have_gcc_declaration_after_statement=yes
  19895. fi
  19896. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19898. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19899. CFLAGS="$save_CFLAGS"
  19900. if test x$have_gcc_declaration_after_statement = xyes; then
  19901. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19902. fi
  19903. }
  19904. CheckWarnAll()
  19905. {
  19906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19907. printf %s "checking for GCC -Wall option... " >&6; }
  19908. have_gcc_Wall=no
  19909. save_CFLAGS="$CFLAGS"
  19910. CFLAGS="$save_CFLAGS -Wall"
  19911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19912. /* end confdefs.h. */
  19913. int x = 0;
  19914. int
  19915. main (void)
  19916. {
  19917. ;
  19918. return 0;
  19919. }
  19920. _ACEOF
  19921. if ac_fn_c_try_compile "$LINENO"
  19922. then :
  19923. have_gcc_Wall=yes
  19924. fi
  19925. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19927. printf "%s\n" "$have_gcc_Wall" >&6; }
  19928. CFLAGS="$save_CFLAGS"
  19929. if test x$have_gcc_Wall = xyes; then
  19930. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19932. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19933. need_gcc_Wno_multichar=no
  19934. case "$host" in
  19935. *-*-haiku*)
  19936. need_gcc_Wno_multichar=yes
  19937. ;;
  19938. esac
  19939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19940. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19941. if test x$need_gcc_Wno_multichar = xyes; then
  19942. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19943. fi
  19944. fi
  19945. }
  19946. CheckWayland()
  19947. {
  19948. # Check whether --enable-video-wayland was given.
  19949. if test ${enable_video_wayland+y}
  19950. then :
  19951. enableval=$enable_video_wayland;
  19952. else $as_nop
  19953. enable_video_wayland=yes
  19954. fi
  19955. # Check whether --enable-video-wayland-qt-touch was given.
  19956. if test ${enable_video_wayland_qt_touch+y}
  19957. then :
  19958. enableval=$enable_video_wayland_qt_touch;
  19959. else $as_nop
  19960. enable_video_wayland_qt_touch=yes
  19961. fi
  19962. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  19963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  19964. printf %s "checking for Wayland support... " >&6; }
  19965. video_wayland=no
  19966. if test x$video_opengl_egl = xyes && \
  19967. test x$video_opengles_v2 = xyes; then
  19968. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  19969. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  19970. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  19971. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  19972. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  19973. then :
  19974. WAYLAND_SCANNER_CODE_MODE=private-code
  19975. else $as_nop
  19976. WAYLAND_SCANNER_CODE_MODE=code
  19977. fi
  19978. video_wayland=yes
  19979. fi
  19980. fi
  19981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  19982. printf "%s\n" "$video_wayland" >&6; }
  19983. if test x$video_wayland = xyes; then
  19984. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  19985. if test x$enable_video_wayland_qt_touch = xyes; then
  19986. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  19987. fi
  19988. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  19989. SOURCES="$SOURCES $WAYLAND_SOURCES"
  19990. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  19991. # Check whether --enable-wayland-shared was given.
  19992. if test ${enable_wayland_shared+y}
  19993. then :
  19994. enableval=$enable_wayland_shared;
  19995. else $as_nop
  19996. enable_wayland_shared=maybe
  19997. fi
  19998. case "$host" in
  19999. *)
  20000. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20001. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20002. if test x$wayland_egl_lib = x; then
  20003. # This works in Ubuntu 13.10, maybe others
  20004. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20005. fi
  20006. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20007. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20008. ;;
  20009. esac
  20010. if test x$enable_wayland_shared = xmaybe; then
  20011. enable_wayland_shared=yes
  20012. fi
  20013. if test x$have_loadso != xyes && \
  20014. test x$enable_wayland_shared = xyes; then
  20015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20016. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20017. enable_wayland_shared=no
  20018. fi
  20019. if test x$have_loadso = xyes && \
  20020. test x$enable_wayland_shared = xyes && \
  20021. test x$wayland_client_lib != x && \
  20022. test x$wayland_egl_lib != x && \
  20023. test x$wayland_cursor_lib != x && \
  20024. test x$xkbcommon_lib != x; then
  20025. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20026. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20027. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20028. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20029. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20030. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20031. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20032. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20033. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20034. else
  20035. enable_wayland_shared=no
  20036. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20037. SUMMARY_video="${SUMMARY_video} wayland"
  20038. fi
  20039. have_video=yes
  20040. # Check whether --enable-libdecor was given.
  20041. if test ${enable_libdecor+y}
  20042. then :
  20043. enableval=$enable_libdecor;
  20044. else $as_nop
  20045. enable_libdecor=yes
  20046. fi
  20047. if test x$enable_libdecor = xyes; then
  20048. pkg_failed=no
  20049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20050. printf %s "checking for libdecor-0... " >&6; }
  20051. if test -n "$DECOR_CFLAGS"; then
  20052. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20053. elif test -n "$PKG_CONFIG"; then
  20054. if test -n "$PKG_CONFIG" && \
  20055. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20056. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20057. ac_status=$?
  20058. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20059. test $ac_status = 0; }; then
  20060. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20061. test "x$?" != "x0" && pkg_failed=yes
  20062. else
  20063. pkg_failed=yes
  20064. fi
  20065. else
  20066. pkg_failed=untried
  20067. fi
  20068. if test -n "$DECOR_LIBS"; then
  20069. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20070. elif test -n "$PKG_CONFIG"; then
  20071. if test -n "$PKG_CONFIG" && \
  20072. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20073. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20074. ac_status=$?
  20075. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20076. test $ac_status = 0; }; then
  20077. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20078. test "x$?" != "x0" && pkg_failed=yes
  20079. else
  20080. pkg_failed=yes
  20081. fi
  20082. else
  20083. pkg_failed=untried
  20084. fi
  20085. if test $pkg_failed = yes; then
  20086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20087. printf "%s\n" "no" >&6; }
  20088. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20089. _pkg_short_errors_supported=yes
  20090. else
  20091. _pkg_short_errors_supported=no
  20092. fi
  20093. if test $_pkg_short_errors_supported = yes; then
  20094. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20095. else
  20096. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20097. fi
  20098. # Put the nasty error message in config.log where it belongs
  20099. echo "$DECOR_PKG_ERRORS" >&5
  20100. video_libdecor=no
  20101. elif test $pkg_failed = untried; then
  20102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20103. printf "%s\n" "no" >&6; }
  20104. video_libdecor=no
  20105. else
  20106. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20107. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20109. printf "%s\n" "yes" >&6; }
  20110. video_libdecor=yes
  20111. fi
  20112. if test x$video_libdecor = xyes; then
  20113. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20114. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20115. # Check whether --enable-libdecor-shared was given.
  20116. if test ${enable_libdecor_shared+y}
  20117. then :
  20118. enableval=$enable_libdecor_shared;
  20119. else $as_nop
  20120. enable_libdecor_shared=yes
  20121. fi
  20122. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20123. if test x$enable_wayland_shared != xyes; then
  20124. enable_libdecor_shared=no
  20125. fi
  20126. if test x$have_loadso != xyes && \
  20127. test x$enable_libdecor_shared = xyes; then
  20128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20129. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20130. fi
  20131. if test x$have_loadso = xyes && \
  20132. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20133. echo "-- dynamic libdecor -> $decor_lib"
  20134. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20135. else
  20136. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20137. fi
  20138. fi
  20139. fi
  20140. fi
  20141. fi
  20142. }
  20143. CheckNativeClient()
  20144. {
  20145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20146. /* end confdefs.h. */
  20147. #if !defined(__native_client__)
  20148. #error "NO NACL"
  20149. #endif
  20150. int
  20151. main (void)
  20152. {
  20153. ;
  20154. return 0;
  20155. }
  20156. _ACEOF
  20157. if ac_fn_c_try_compile "$LINENO"
  20158. then :
  20159. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20160. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20161. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20162. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20163. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20164. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20165. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20166. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20167. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20168. SUMMARY_audio="${SUMMARY_audio} nacl"
  20169. have_audio=yes
  20170. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20171. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20172. have_video=yes
  20173. fi
  20174. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20175. }
  20176. CheckRPI()
  20177. {
  20178. # Check whether --enable-video-rpi was given.
  20179. if test ${enable_video_rpi+y}
  20180. then :
  20181. enableval=$enable_video_rpi;
  20182. else $as_nop
  20183. enable_video_rpi=yes
  20184. fi
  20185. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20186. pkg_failed=no
  20187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20188. printf %s "checking for bcm_host brcmegl... " >&6; }
  20189. if test -n "$RPI_CFLAGS"; then
  20190. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20191. elif test -n "$PKG_CONFIG"; then
  20192. if test -n "$PKG_CONFIG" && \
  20193. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20194. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20195. ac_status=$?
  20196. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20197. test $ac_status = 0; }; then
  20198. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20199. test "x$?" != "x0" && pkg_failed=yes
  20200. else
  20201. pkg_failed=yes
  20202. fi
  20203. else
  20204. pkg_failed=untried
  20205. fi
  20206. if test -n "$RPI_LIBS"; then
  20207. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20208. elif test -n "$PKG_CONFIG"; then
  20209. if test -n "$PKG_CONFIG" && \
  20210. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20211. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20212. ac_status=$?
  20213. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20214. test $ac_status = 0; }; then
  20215. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20216. test "x$?" != "x0" && pkg_failed=yes
  20217. else
  20218. pkg_failed=yes
  20219. fi
  20220. else
  20221. pkg_failed=untried
  20222. fi
  20223. if test $pkg_failed = yes; then
  20224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20225. printf "%s\n" "no" >&6; }
  20226. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20227. _pkg_short_errors_supported=yes
  20228. else
  20229. _pkg_short_errors_supported=no
  20230. fi
  20231. if test $_pkg_short_errors_supported = yes; then
  20232. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20233. else
  20234. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20235. fi
  20236. # Put the nasty error message in config.log where it belongs
  20237. echo "$RPI_PKG_ERRORS" >&5
  20238. video_rpi=no
  20239. elif test $pkg_failed = untried; then
  20240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20241. printf "%s\n" "no" >&6; }
  20242. video_rpi=no
  20243. else
  20244. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20245. RPI_LIBS=$pkg_cv_RPI_LIBS
  20246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20247. printf "%s\n" "yes" >&6; }
  20248. video_rpi=yes
  20249. fi
  20250. if test x$video_rpi = xno; then
  20251. if test x$ARCH = xnetbsd; then
  20252. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20253. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20254. else
  20255. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20256. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20257. fi
  20258. fi
  20259. # Save the original compiler flags and libraries
  20260. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20261. # Add the Raspberry Pi compiler flags and libraries
  20262. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20264. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20265. have_video_rpi=no
  20266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20267. /* end confdefs.h. */
  20268. #include <bcm_host.h>
  20269. #include <EGL/eglplatform.h>
  20270. int
  20271. main (void)
  20272. {
  20273. EGL_DISPMANX_WINDOW_T window;
  20274. bcm_host_init();
  20275. ;
  20276. return 0;
  20277. }
  20278. _ACEOF
  20279. if ac_fn_c_try_link "$LINENO"
  20280. then :
  20281. have_video_rpi=yes
  20282. fi
  20283. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20284. conftest$ac_exeext conftest.$ac_ext
  20285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20286. printf "%s\n" "$have_video_rpi" >&6; }
  20287. # Restore the compiler flags and libraries
  20288. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20289. if test x$have_video_rpi = xyes; then
  20290. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20291. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20292. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20293. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20294. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20295. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20296. SUMMARY_video="${SUMMARY_video} rpi"
  20297. have_video=yes
  20298. fi
  20299. fi
  20300. }
  20301. CheckX11()
  20302. {
  20303. # Check whether --enable-video-x11 was given.
  20304. if test ${enable_video_x11+y}
  20305. then :
  20306. enableval=$enable_video_x11;
  20307. else $as_nop
  20308. enable_video_x11=yes
  20309. fi
  20310. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20311. case "$host" in
  20312. *-*-darwin*)
  20313. # This isn't necessary for X11, but fixes GLX detection
  20314. if test "x$x_includes" = xNONE && \
  20315. test "x$x_libraries" = xNONE && \
  20316. test -d /opt/X11/include && \
  20317. test -d /opt/X11/lib; then
  20318. x_includes="/opt/X11/include"
  20319. x_libraries="/opt/X11/lib"
  20320. fi
  20321. ;;
  20322. esac
  20323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20324. printf %s "checking for X... " >&6; }
  20325. # Check whether --with-x was given.
  20326. if test ${with_x+y}
  20327. then :
  20328. withval=$with_x;
  20329. fi
  20330. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20331. if test "x$with_x" = xno; then
  20332. # The user explicitly disabled X.
  20333. have_x=disabled
  20334. else
  20335. case $x_includes,$x_libraries in #(
  20336. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20337. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20338. then :
  20339. printf %s "(cached) " >&6
  20340. else $as_nop
  20341. # One or both of the vars are not set, and there is no cached value.
  20342. ac_x_includes=no
  20343. ac_x_libraries=no
  20344. # Do we need to do anything special at all?
  20345. ac_save_LIBS=$LIBS
  20346. LIBS="-lX11 $LIBS"
  20347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20348. /* end confdefs.h. */
  20349. #include <X11/Xlib.h>
  20350. int
  20351. main (void)
  20352. {
  20353. XrmInitialize ()
  20354. ;
  20355. return 0;
  20356. }
  20357. _ACEOF
  20358. if ac_fn_c_try_link "$LINENO"
  20359. then :
  20360. # We can compile and link X programs with no special options.
  20361. ac_x_includes=
  20362. ac_x_libraries=
  20363. fi
  20364. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20365. conftest$ac_exeext conftest.$ac_ext
  20366. LIBS="$ac_save_LIBS"
  20367. # If that didn't work, only try xmkmf and file system searches
  20368. # for native compilation.
  20369. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20370. then :
  20371. rm -f -r conftest.dir
  20372. if mkdir conftest.dir; then
  20373. cd conftest.dir
  20374. cat >Imakefile <<'_ACEOF'
  20375. incroot:
  20376. @echo incroot='${INCROOT}'
  20377. usrlibdir:
  20378. @echo usrlibdir='${USRLIBDIR}'
  20379. libdir:
  20380. @echo libdir='${LIBDIR}'
  20381. _ACEOF
  20382. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20383. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20384. for ac_var in incroot usrlibdir libdir; do
  20385. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20386. done
  20387. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20388. for ac_extension in a so sl dylib la dll; do
  20389. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20390. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20391. ac_im_usrlibdir=$ac_im_libdir; break
  20392. fi
  20393. done
  20394. # Screen out bogus values from the imake configuration. They are
  20395. # bogus both because they are the default anyway, and because
  20396. # using them would break gcc on systems where it needs fixed includes.
  20397. case $ac_im_incroot in
  20398. /usr/include) ac_x_includes= ;;
  20399. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20400. esac
  20401. case $ac_im_usrlibdir in
  20402. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20403. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20404. esac
  20405. fi
  20406. cd ..
  20407. rm -f -r conftest.dir
  20408. fi
  20409. # Standard set of common directories for X headers.
  20410. # Check X11 before X11Rn because it is often a symlink to the current release.
  20411. ac_x_header_dirs='
  20412. /usr/X11/include
  20413. /usr/X11R7/include
  20414. /usr/X11R6/include
  20415. /usr/X11R5/include
  20416. /usr/X11R4/include
  20417. /usr/include/X11
  20418. /usr/include/X11R7
  20419. /usr/include/X11R6
  20420. /usr/include/X11R5
  20421. /usr/include/X11R4
  20422. /usr/local/X11/include
  20423. /usr/local/X11R7/include
  20424. /usr/local/X11R6/include
  20425. /usr/local/X11R5/include
  20426. /usr/local/X11R4/include
  20427. /usr/local/include/X11
  20428. /usr/local/include/X11R7
  20429. /usr/local/include/X11R6
  20430. /usr/local/include/X11R5
  20431. /usr/local/include/X11R4
  20432. /opt/X11/include
  20433. /usr/X386/include
  20434. /usr/x386/include
  20435. /usr/XFree86/include/X11
  20436. /usr/include
  20437. /usr/local/include
  20438. /usr/unsupported/include
  20439. /usr/athena/include
  20440. /usr/local/x11r5/include
  20441. /usr/lpp/Xamples/include
  20442. /usr/openwin/include
  20443. /usr/openwin/share/include'
  20444. if test "$ac_x_includes" = no; then
  20445. # Guess where to find include files, by looking for Xlib.h.
  20446. # First, try using that file with no special directory specified.
  20447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20448. /* end confdefs.h. */
  20449. #include <X11/Xlib.h>
  20450. _ACEOF
  20451. if ac_fn_c_try_cpp "$LINENO"
  20452. then :
  20453. # We can compile using X headers with no special include directory.
  20454. ac_x_includes=
  20455. else $as_nop
  20456. for ac_dir in $ac_x_header_dirs; do
  20457. if test -r "$ac_dir/X11/Xlib.h"; then
  20458. ac_x_includes=$ac_dir
  20459. break
  20460. fi
  20461. done
  20462. fi
  20463. rm -f conftest.err conftest.i conftest.$ac_ext
  20464. fi # $ac_x_includes = no
  20465. if test "$ac_x_libraries" = no; then
  20466. # Check for the libraries.
  20467. # See if we find them without any special options.
  20468. # Don't add to $LIBS permanently.
  20469. ac_save_LIBS=$LIBS
  20470. LIBS="-lX11 $LIBS"
  20471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20472. /* end confdefs.h. */
  20473. #include <X11/Xlib.h>
  20474. int
  20475. main (void)
  20476. {
  20477. XrmInitialize ()
  20478. ;
  20479. return 0;
  20480. }
  20481. _ACEOF
  20482. if ac_fn_c_try_link "$LINENO"
  20483. then :
  20484. LIBS=$ac_save_LIBS
  20485. # We can link X programs with no special library path.
  20486. ac_x_libraries=
  20487. else $as_nop
  20488. LIBS=$ac_save_LIBS
  20489. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20490. do
  20491. # Don't even attempt the hair of trying to link an X program!
  20492. for ac_extension in a so sl dylib la dll; do
  20493. if test -r "$ac_dir/libX11.$ac_extension"; then
  20494. ac_x_libraries=$ac_dir
  20495. break 2
  20496. fi
  20497. done
  20498. done
  20499. fi
  20500. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20501. conftest$ac_exeext conftest.$ac_ext
  20502. fi # $ac_x_libraries = no
  20503. fi
  20504. # Record the results.
  20505. case $ac_x_includes,$ac_x_libraries in #(
  20506. no,* | *,no | *\'*) :
  20507. # Didn't find X, or a directory has "'" in its name.
  20508. ac_cv_have_x="have_x=no" ;; #(
  20509. *) :
  20510. # Record where we found X for the cache.
  20511. ac_cv_have_x="have_x=yes\
  20512. ac_x_includes='$ac_x_includes'\
  20513. ac_x_libraries='$ac_x_libraries'" ;;
  20514. esac
  20515. fi
  20516. ;; #(
  20517. *) have_x=yes;;
  20518. esac
  20519. eval "$ac_cv_have_x"
  20520. fi # $with_x != no
  20521. if test "$have_x" != yes; then
  20522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20523. printf "%s\n" "$have_x" >&6; }
  20524. no_x=yes
  20525. else
  20526. # If each of the values was on the command line, it overrides each guess.
  20527. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20528. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20529. # Update the cache value to reflect the command line values.
  20530. ac_cv_have_x="have_x=yes\
  20531. ac_x_includes='$x_includes'\
  20532. ac_x_libraries='$x_libraries'"
  20533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20534. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20535. fi
  20536. if test "$no_x" = yes; then
  20537. # Not all programs may use this symbol, but it does not hurt to define it.
  20538. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20539. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20540. else
  20541. if test -n "$x_includes"; then
  20542. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20543. fi
  20544. # It would also be nice to do this for all -L options, not just this one.
  20545. if test -n "$x_libraries"; then
  20546. X_LIBS="$X_LIBS -L$x_libraries"
  20547. # For Solaris; some versions of Sun CC require a space after -R and
  20548. # others require no space. Words are not sufficient . . . .
  20549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20550. printf %s "checking whether -R must be followed by a space... " >&6; }
  20551. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20552. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20553. ac_c_werror_flag=yes
  20554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20555. /* end confdefs.h. */
  20556. int
  20557. main (void)
  20558. {
  20559. ;
  20560. return 0;
  20561. }
  20562. _ACEOF
  20563. if ac_fn_c_try_link "$LINENO"
  20564. then :
  20565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20566. printf "%s\n" "no" >&6; }
  20567. X_LIBS="$X_LIBS -R$x_libraries"
  20568. else $as_nop
  20569. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20571. /* end confdefs.h. */
  20572. int
  20573. main (void)
  20574. {
  20575. ;
  20576. return 0;
  20577. }
  20578. _ACEOF
  20579. if ac_fn_c_try_link "$LINENO"
  20580. then :
  20581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20582. printf "%s\n" "yes" >&6; }
  20583. X_LIBS="$X_LIBS -R $x_libraries"
  20584. else $as_nop
  20585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20586. printf "%s\n" "neither works" >&6; }
  20587. fi
  20588. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20589. conftest$ac_exeext conftest.$ac_ext
  20590. fi
  20591. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20592. conftest$ac_exeext conftest.$ac_ext
  20593. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20594. LIBS=$ac_xsave_LIBS
  20595. fi
  20596. # Check for system-dependent libraries X programs must link with.
  20597. # Do this before checking for the system-independent R6 libraries
  20598. # (-lICE), since we may need -lsocket or whatever for X linking.
  20599. if test "$ISC" = yes; then
  20600. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20601. else
  20602. # Martyn Johnson says this is needed for Ultrix, if the X
  20603. # libraries were built with DECnet support. And Karl Berry says
  20604. # the Alpha needs dnet_stub (dnet does not exist).
  20605. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20607. /* end confdefs.h. */
  20608. /* Override any GCC internal prototype to avoid an error.
  20609. Use char because int might match the return type of a GCC
  20610. builtin and then its argument prototype would still apply. */
  20611. char XOpenDisplay ();
  20612. int
  20613. main (void)
  20614. {
  20615. return XOpenDisplay ();
  20616. ;
  20617. return 0;
  20618. }
  20619. _ACEOF
  20620. if ac_fn_c_try_link "$LINENO"
  20621. then :
  20622. else $as_nop
  20623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20624. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20625. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20626. then :
  20627. printf %s "(cached) " >&6
  20628. else $as_nop
  20629. ac_check_lib_save_LIBS=$LIBS
  20630. LIBS="-ldnet $LIBS"
  20631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20632. /* end confdefs.h. */
  20633. /* Override any GCC internal prototype to avoid an error.
  20634. Use char because int might match the return type of a GCC
  20635. builtin and then its argument prototype would still apply. */
  20636. char dnet_ntoa ();
  20637. int
  20638. main (void)
  20639. {
  20640. return dnet_ntoa ();
  20641. ;
  20642. return 0;
  20643. }
  20644. _ACEOF
  20645. if ac_fn_c_try_link "$LINENO"
  20646. then :
  20647. ac_cv_lib_dnet_dnet_ntoa=yes
  20648. else $as_nop
  20649. ac_cv_lib_dnet_dnet_ntoa=no
  20650. fi
  20651. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20652. conftest$ac_exeext conftest.$ac_ext
  20653. LIBS=$ac_check_lib_save_LIBS
  20654. fi
  20655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20656. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20657. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20658. then :
  20659. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20660. fi
  20661. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20663. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20664. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20665. then :
  20666. printf %s "(cached) " >&6
  20667. else $as_nop
  20668. ac_check_lib_save_LIBS=$LIBS
  20669. LIBS="-ldnet_stub $LIBS"
  20670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20671. /* end confdefs.h. */
  20672. /* Override any GCC internal prototype to avoid an error.
  20673. Use char because int might match the return type of a GCC
  20674. builtin and then its argument prototype would still apply. */
  20675. char dnet_ntoa ();
  20676. int
  20677. main (void)
  20678. {
  20679. return dnet_ntoa ();
  20680. ;
  20681. return 0;
  20682. }
  20683. _ACEOF
  20684. if ac_fn_c_try_link "$LINENO"
  20685. then :
  20686. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20687. else $as_nop
  20688. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20689. fi
  20690. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20691. conftest$ac_exeext conftest.$ac_ext
  20692. LIBS=$ac_check_lib_save_LIBS
  20693. fi
  20694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20695. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20696. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20697. then :
  20698. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20699. fi
  20700. fi
  20701. fi
  20702. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20703. conftest$ac_exeext conftest.$ac_ext
  20704. LIBS="$ac_xsave_LIBS"
  20705. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20706. # to get the SysV transport functions.
  20707. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20708. # needs -lnsl.
  20709. # The nsl library prevents programs from opening the X display
  20710. # on Irix 5.2, according to T.E. Dickey.
  20711. # The functions gethostbyname, getservbyname, and inet_addr are
  20712. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20713. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20714. if test "x$ac_cv_func_gethostbyname" = xyes
  20715. then :
  20716. fi
  20717. if test $ac_cv_func_gethostbyname = no; then
  20718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20719. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20720. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20721. then :
  20722. printf %s "(cached) " >&6
  20723. else $as_nop
  20724. ac_check_lib_save_LIBS=$LIBS
  20725. LIBS="-lnsl $LIBS"
  20726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20727. /* end confdefs.h. */
  20728. /* Override any GCC internal prototype to avoid an error.
  20729. Use char because int might match the return type of a GCC
  20730. builtin and then its argument prototype would still apply. */
  20731. char gethostbyname ();
  20732. int
  20733. main (void)
  20734. {
  20735. return gethostbyname ();
  20736. ;
  20737. return 0;
  20738. }
  20739. _ACEOF
  20740. if ac_fn_c_try_link "$LINENO"
  20741. then :
  20742. ac_cv_lib_nsl_gethostbyname=yes
  20743. else $as_nop
  20744. ac_cv_lib_nsl_gethostbyname=no
  20745. fi
  20746. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20747. conftest$ac_exeext conftest.$ac_ext
  20748. LIBS=$ac_check_lib_save_LIBS
  20749. fi
  20750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20751. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20752. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20753. then :
  20754. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20755. fi
  20756. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20758. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20759. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20760. then :
  20761. printf %s "(cached) " >&6
  20762. else $as_nop
  20763. ac_check_lib_save_LIBS=$LIBS
  20764. LIBS="-lbsd $LIBS"
  20765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20766. /* end confdefs.h. */
  20767. /* Override any GCC internal prototype to avoid an error.
  20768. Use char because int might match the return type of a GCC
  20769. builtin and then its argument prototype would still apply. */
  20770. char gethostbyname ();
  20771. int
  20772. main (void)
  20773. {
  20774. return gethostbyname ();
  20775. ;
  20776. return 0;
  20777. }
  20778. _ACEOF
  20779. if ac_fn_c_try_link "$LINENO"
  20780. then :
  20781. ac_cv_lib_bsd_gethostbyname=yes
  20782. else $as_nop
  20783. ac_cv_lib_bsd_gethostbyname=no
  20784. fi
  20785. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20786. conftest$ac_exeext conftest.$ac_ext
  20787. LIBS=$ac_check_lib_save_LIBS
  20788. fi
  20789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20790. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20791. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20792. then :
  20793. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20794. fi
  20795. fi
  20796. fi
  20797. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20798. # socket/setsockopt and other routines are undefined under SCO ODT
  20799. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20800. # on later versions), says Simon Leinen: it contains gethostby*
  20801. # variants that don't use the name server (or something). -lsocket
  20802. # must be given before -lnsl if both are needed. We assume that
  20803. # if connect needs -lnsl, so does gethostbyname.
  20804. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20805. if test "x$ac_cv_func_connect" = xyes
  20806. then :
  20807. fi
  20808. if test $ac_cv_func_connect = no; then
  20809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20810. printf %s "checking for connect in -lsocket... " >&6; }
  20811. if test ${ac_cv_lib_socket_connect+y}
  20812. then :
  20813. printf %s "(cached) " >&6
  20814. else $as_nop
  20815. ac_check_lib_save_LIBS=$LIBS
  20816. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20818. /* end confdefs.h. */
  20819. /* Override any GCC internal prototype to avoid an error.
  20820. Use char because int might match the return type of a GCC
  20821. builtin and then its argument prototype would still apply. */
  20822. char connect ();
  20823. int
  20824. main (void)
  20825. {
  20826. return connect ();
  20827. ;
  20828. return 0;
  20829. }
  20830. _ACEOF
  20831. if ac_fn_c_try_link "$LINENO"
  20832. then :
  20833. ac_cv_lib_socket_connect=yes
  20834. else $as_nop
  20835. ac_cv_lib_socket_connect=no
  20836. fi
  20837. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20838. conftest$ac_exeext conftest.$ac_ext
  20839. LIBS=$ac_check_lib_save_LIBS
  20840. fi
  20841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20842. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20843. if test "x$ac_cv_lib_socket_connect" = xyes
  20844. then :
  20845. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20846. fi
  20847. fi
  20848. # Guillermo Gomez says -lposix is necessary on A/UX.
  20849. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20850. if test "x$ac_cv_func_remove" = xyes
  20851. then :
  20852. fi
  20853. if test $ac_cv_func_remove = no; then
  20854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20855. printf %s "checking for remove in -lposix... " >&6; }
  20856. if test ${ac_cv_lib_posix_remove+y}
  20857. then :
  20858. printf %s "(cached) " >&6
  20859. else $as_nop
  20860. ac_check_lib_save_LIBS=$LIBS
  20861. LIBS="-lposix $LIBS"
  20862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20863. /* end confdefs.h. */
  20864. /* Override any GCC internal prototype to avoid an error.
  20865. Use char because int might match the return type of a GCC
  20866. builtin and then its argument prototype would still apply. */
  20867. char remove ();
  20868. int
  20869. main (void)
  20870. {
  20871. return remove ();
  20872. ;
  20873. return 0;
  20874. }
  20875. _ACEOF
  20876. if ac_fn_c_try_link "$LINENO"
  20877. then :
  20878. ac_cv_lib_posix_remove=yes
  20879. else $as_nop
  20880. ac_cv_lib_posix_remove=no
  20881. fi
  20882. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20883. conftest$ac_exeext conftest.$ac_ext
  20884. LIBS=$ac_check_lib_save_LIBS
  20885. fi
  20886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20887. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20888. if test "x$ac_cv_lib_posix_remove" = xyes
  20889. then :
  20890. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20891. fi
  20892. fi
  20893. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20894. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20895. if test "x$ac_cv_func_shmat" = xyes
  20896. then :
  20897. fi
  20898. if test $ac_cv_func_shmat = no; then
  20899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20900. printf %s "checking for shmat in -lipc... " >&6; }
  20901. if test ${ac_cv_lib_ipc_shmat+y}
  20902. then :
  20903. printf %s "(cached) " >&6
  20904. else $as_nop
  20905. ac_check_lib_save_LIBS=$LIBS
  20906. LIBS="-lipc $LIBS"
  20907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20908. /* end confdefs.h. */
  20909. /* Override any GCC internal prototype to avoid an error.
  20910. Use char because int might match the return type of a GCC
  20911. builtin and then its argument prototype would still apply. */
  20912. char shmat ();
  20913. int
  20914. main (void)
  20915. {
  20916. return shmat ();
  20917. ;
  20918. return 0;
  20919. }
  20920. _ACEOF
  20921. if ac_fn_c_try_link "$LINENO"
  20922. then :
  20923. ac_cv_lib_ipc_shmat=yes
  20924. else $as_nop
  20925. ac_cv_lib_ipc_shmat=no
  20926. fi
  20927. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20928. conftest$ac_exeext conftest.$ac_ext
  20929. LIBS=$ac_check_lib_save_LIBS
  20930. fi
  20931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20932. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20933. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20934. then :
  20935. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20936. fi
  20937. fi
  20938. fi
  20939. # Check for libraries that X11R6 Xt/Xaw programs need.
  20940. ac_save_LDFLAGS=$LDFLAGS
  20941. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20942. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20943. # check for ICE first), but we must link in the order -lSM -lICE or
  20944. # we get undefined symbols. So assume we have SM if we have ICE.
  20945. # These have to be linked with before -lX11, unlike the other
  20946. # libraries we check for below, so use a different variable.
  20947. # John Interrante, Karl Berry
  20948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20949. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20950. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20951. then :
  20952. printf %s "(cached) " >&6
  20953. else $as_nop
  20954. ac_check_lib_save_LIBS=$LIBS
  20955. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20957. /* end confdefs.h. */
  20958. /* Override any GCC internal prototype to avoid an error.
  20959. Use char because int might match the return type of a GCC
  20960. builtin and then its argument prototype would still apply. */
  20961. char IceConnectionNumber ();
  20962. int
  20963. main (void)
  20964. {
  20965. return IceConnectionNumber ();
  20966. ;
  20967. return 0;
  20968. }
  20969. _ACEOF
  20970. if ac_fn_c_try_link "$LINENO"
  20971. then :
  20972. ac_cv_lib_ICE_IceConnectionNumber=yes
  20973. else $as_nop
  20974. ac_cv_lib_ICE_IceConnectionNumber=no
  20975. fi
  20976. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20977. conftest$ac_exeext conftest.$ac_ext
  20978. LIBS=$ac_check_lib_save_LIBS
  20979. fi
  20980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20981. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20982. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  20983. then :
  20984. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  20985. fi
  20986. LDFLAGS=$ac_save_LDFLAGS
  20987. fi
  20988. if test x$have_x = xyes; then
  20989. # Check whether --enable-x11-shared was given.
  20990. if test ${enable_x11_shared+y}
  20991. then :
  20992. enableval=$enable_x11_shared;
  20993. else $as_nop
  20994. enable_x11_shared=maybe
  20995. fi
  20996. case "$host" in
  20997. *-*-darwin*)
  20998. # Apple now puts this in /opt/X11
  20999. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21000. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21001. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21002. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21003. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21004. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21005. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21006. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21007. ;;
  21008. *-*-openbsd*)
  21009. x11_lib='libX11.so'
  21010. x11ext_lib='libXext.so'
  21011. xcursor_lib='libXcursor.so'
  21012. xinput_lib='libXi.so'
  21013. xfixes_lib='libXfixes.so'
  21014. xrandr_lib='libXrandr.so'
  21015. xrender_lib='libXrender.so'
  21016. xss_lib='libXss.so'
  21017. ;;
  21018. *)
  21019. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21020. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21021. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21022. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21023. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21024. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21025. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21026. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21027. ;;
  21028. esac
  21029. if test x$ac_cv_func_shmat != xyes; then
  21030. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21031. fi
  21032. CFLAGS="$CFLAGS $X_CFLAGS"
  21033. LDFLAGS="$LDFLAGS $X_LIBS"
  21034. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21035. #include <X11/Xproto.h>
  21036. "
  21037. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21038. then :
  21039. have_xext_h_hdr=yes
  21040. else $as_nop
  21041. have_xext_h_hdr=no
  21042. fi
  21043. if test x$have_xext_h_hdr != xyes; then
  21044. as_fn_error $? "
  21045. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21046. " "$LINENO" 5
  21047. fi
  21048. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21049. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21050. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21051. # Needed so SDL applications can include SDL_syswm.h
  21052. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21053. if test x$enable_x11_shared = xmaybe; then
  21054. enable_x11_shared=yes
  21055. fi
  21056. if test x$have_loadso != xyes && \
  21057. test x$enable_x11_shared = xyes; then
  21058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21059. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21060. enable_x11_shared=no
  21061. fi
  21062. if test x$have_loadso = xyes && \
  21063. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21064. echo "-- dynamic libX11 -> $x11_lib"
  21065. echo "-- dynamic libX11ext -> $x11ext_lib"
  21066. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21067. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21068. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21069. else
  21070. enable_x11_shared=no
  21071. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21072. SUMMARY_video="${SUMMARY_video} x11"
  21073. fi
  21074. have_video=yes
  21075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21076. printf %s "checking for XGenericEvent... " >&6; }
  21077. have_XGenericEvent=no
  21078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21079. /* end confdefs.h. */
  21080. #include <X11/Xlib.h>
  21081. int
  21082. main (void)
  21083. {
  21084. Display *display;
  21085. XEvent event;
  21086. XGenericEventCookie *cookie = &event.xcookie;
  21087. XNextEvent(display, &event);
  21088. XGetEventData(display, cookie);
  21089. XFreeEventData(display, cookie);
  21090. ;
  21091. return 0;
  21092. }
  21093. _ACEOF
  21094. if ac_fn_c_try_compile "$LINENO"
  21095. then :
  21096. have_XGenericEvent=yes
  21097. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21098. fi
  21099. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21101. printf "%s\n" "$have_XGenericEvent" >&6; }
  21102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21103. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21104. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21105. then :
  21106. printf %s "(cached) " >&6
  21107. else $as_nop
  21108. ac_check_lib_save_LIBS=$LIBS
  21109. LIBS="-lX11 $LIBS"
  21110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21111. /* end confdefs.h. */
  21112. /* Override any GCC internal prototype to avoid an error.
  21113. Use char because int might match the return type of a GCC
  21114. builtin and then its argument prototype would still apply. */
  21115. char XkbKeycodeToKeysym ();
  21116. int
  21117. main (void)
  21118. {
  21119. return XkbKeycodeToKeysym ();
  21120. ;
  21121. return 0;
  21122. }
  21123. _ACEOF
  21124. if ac_fn_c_try_link "$LINENO"
  21125. then :
  21126. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21127. else $as_nop
  21128. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21129. fi
  21130. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21131. conftest$ac_exeext conftest.$ac_ext
  21132. LIBS=$ac_check_lib_save_LIBS
  21133. fi
  21134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21135. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21136. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21137. then :
  21138. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21139. fi
  21140. # Check whether --enable-video-x11-xcursor was given.
  21141. if test ${enable_video_x11_xcursor+y}
  21142. then :
  21143. enableval=$enable_video_x11_xcursor;
  21144. else $as_nop
  21145. enable_video_x11_xcursor=yes
  21146. fi
  21147. if test x$enable_video_x11_xcursor = xyes; then
  21148. definitely_enable_video_x11_xcursor=no
  21149. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21150. "
  21151. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21152. then :
  21153. have_xcursor_h_hdr=yes
  21154. else $as_nop
  21155. have_xcursor_h_hdr=no
  21156. fi
  21157. if test x$have_xcursor_h_hdr = xyes; then
  21158. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21159. echo "-- dynamic libXcursor -> $xcursor_lib"
  21160. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21161. definitely_enable_video_x11_xcursor=yes
  21162. else
  21163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21164. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21165. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21166. then :
  21167. printf %s "(cached) " >&6
  21168. else $as_nop
  21169. ac_check_lib_save_LIBS=$LIBS
  21170. LIBS="-lXcursor $LIBS"
  21171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21172. /* end confdefs.h. */
  21173. /* Override any GCC internal prototype to avoid an error.
  21174. Use char because int might match the return type of a GCC
  21175. builtin and then its argument prototype would still apply. */
  21176. char XcursorImageCreate ();
  21177. int
  21178. main (void)
  21179. {
  21180. return XcursorImageCreate ();
  21181. ;
  21182. return 0;
  21183. }
  21184. _ACEOF
  21185. if ac_fn_c_try_link "$LINENO"
  21186. then :
  21187. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21188. else $as_nop
  21189. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21190. fi
  21191. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21192. conftest$ac_exeext conftest.$ac_ext
  21193. LIBS=$ac_check_lib_save_LIBS
  21194. fi
  21195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21196. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21197. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21198. then :
  21199. have_xcursor_lib=yes
  21200. fi
  21201. if test x$have_xcursor_lib = xyes ; then
  21202. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21203. definitely_enable_video_x11_xcursor=yes
  21204. fi
  21205. fi
  21206. fi
  21207. fi
  21208. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21209. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21210. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21211. fi
  21212. # Check whether --enable-video-x11-xdbe was given.
  21213. if test ${enable_video_x11_xdbe+y}
  21214. then :
  21215. enableval=$enable_video_x11_xdbe;
  21216. else $as_nop
  21217. enable_video_x11_xdbe=yes
  21218. fi
  21219. if test x$enable_video_x11_xdbe = xyes; then
  21220. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21221. "
  21222. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21223. then :
  21224. have_dbe_h_hdr=yes
  21225. else $as_nop
  21226. have_dbe_h_hdr=no
  21227. fi
  21228. if test x$have_dbe_h_hdr = xyes; then
  21229. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21230. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21231. fi
  21232. fi
  21233. # Check whether --enable-video-x11-xinput was given.
  21234. if test ${enable_video_x11_xinput+y}
  21235. then :
  21236. enableval=$enable_video_x11_xinput;
  21237. else $as_nop
  21238. enable_video_x11_xinput=yes
  21239. fi
  21240. if test x$enable_video_x11_xinput = xyes; then
  21241. definitely_enable_video_x11_xinput=no
  21242. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21243. "
  21244. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21245. then :
  21246. have_xinput_h_hdr=yes
  21247. else $as_nop
  21248. have_xinput_h_hdr=no
  21249. fi
  21250. if test x$have_xinput_h_hdr = xyes; then
  21251. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21252. echo "-- dynamic libXi -> $xinput_lib"
  21253. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21254. definitely_enable_video_x11_xinput=yes
  21255. else
  21256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21257. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21258. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21259. then :
  21260. printf %s "(cached) " >&6
  21261. else $as_nop
  21262. ac_check_lib_save_LIBS=$LIBS
  21263. LIBS="-lXi $LIBS"
  21264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21265. /* end confdefs.h. */
  21266. /* Override any GCC internal prototype to avoid an error.
  21267. Use char because int might match the return type of a GCC
  21268. builtin and then its argument prototype would still apply. */
  21269. char XOpenDevice ();
  21270. int
  21271. main (void)
  21272. {
  21273. return XOpenDevice ();
  21274. ;
  21275. return 0;
  21276. }
  21277. _ACEOF
  21278. if ac_fn_c_try_link "$LINENO"
  21279. then :
  21280. ac_cv_lib_Xi_XOpenDevice=yes
  21281. else $as_nop
  21282. ac_cv_lib_Xi_XOpenDevice=no
  21283. fi
  21284. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21285. conftest$ac_exeext conftest.$ac_ext
  21286. LIBS=$ac_check_lib_save_LIBS
  21287. fi
  21288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21289. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21290. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21291. then :
  21292. have_xinput_lib=yes
  21293. fi
  21294. if test x$have_xinput_lib = xyes ; then
  21295. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21296. definitely_enable_video_x11_xinput=yes
  21297. fi
  21298. fi
  21299. fi
  21300. fi
  21301. if test x$definitely_enable_video_x11_xinput = xyes; then
  21302. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21303. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21305. printf %s "checking for xinput2 multitouch... " >&6; }
  21306. have_xinput2_multitouch=no
  21307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21308. /* end confdefs.h. */
  21309. #include <X11/Xlib.h>
  21310. #include <X11/Xproto.h>
  21311. #include <X11/extensions/XInput2.h>
  21312. int
  21313. main (void)
  21314. {
  21315. int event_type = XI_TouchBegin;
  21316. XITouchClassInfo *t;
  21317. ;
  21318. return 0;
  21319. }
  21320. _ACEOF
  21321. if ac_fn_c_try_compile "$LINENO"
  21322. then :
  21323. have_xinput2_multitouch=yes
  21324. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21325. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21326. fi
  21327. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21329. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21330. fi
  21331. # Check whether --enable-video-x11-xfixes was given.
  21332. if test ${enable_video_x11_xfixes+y}
  21333. then :
  21334. enableval=$enable_video_x11_xfixes;
  21335. else $as_nop
  21336. enable_video_x11_xfixes=yes
  21337. fi
  21338. if test x$enable_video_x11_xfixes = xyes; then
  21339. definitely_enable_video_x11_xfixes=no
  21340. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21342. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21344. /* end confdefs.h. */
  21345. #include <X11/Xlib.h>
  21346. #include <X11/Xproto.h>
  21347. #include <X11/extensions/XInput2.h>
  21348. #include <X11/extensions/Xfixes.h>
  21349. int
  21350. main (void)
  21351. {
  21352. BarrierEventID b;
  21353. ;
  21354. return 0;
  21355. }
  21356. _ACEOF
  21357. if ac_fn_c_try_compile "$LINENO"
  21358. then :
  21359. have_xfixes_h_hdr=yes
  21360. else $as_nop
  21361. have_xfixes_h_hdr=no
  21362. fi
  21363. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21365. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21366. if test x$have_xfixes_h_hdr = xyes; then
  21367. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21368. echo "-- dynamic libXfixes -> $xfixes_lib"
  21369. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21370. definitely_enable_video_x11_xfixes=yes
  21371. else
  21372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21373. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21374. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21375. then :
  21376. printf %s "(cached) " >&6
  21377. else $as_nop
  21378. ac_check_lib_save_LIBS=$LIBS
  21379. LIBS="-lXfixes $LIBS"
  21380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21381. /* end confdefs.h. */
  21382. /* Override any GCC internal prototype to avoid an error.
  21383. Use char because int might match the return type of a GCC
  21384. builtin and then its argument prototype would still apply. */
  21385. char XFixesCreatePointerBarrier ();
  21386. int
  21387. main (void)
  21388. {
  21389. return XFixesCreatePointerBarrier ();
  21390. ;
  21391. return 0;
  21392. }
  21393. _ACEOF
  21394. if ac_fn_c_try_link "$LINENO"
  21395. then :
  21396. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21397. else $as_nop
  21398. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21399. fi
  21400. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21401. conftest$ac_exeext conftest.$ac_ext
  21402. LIBS=$ac_check_lib_save_LIBS
  21403. fi
  21404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21405. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21406. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21407. then :
  21408. have_xfixes_lib=yes
  21409. fi
  21410. if test x$have_xfixes_lib = xyes ; then
  21411. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21412. definitely_enable_video_x11_xfixes=yes
  21413. fi
  21414. fi
  21415. fi
  21416. fi
  21417. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21418. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21419. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21420. fi
  21421. # Check whether --enable-video-x11-xrandr was given.
  21422. if test ${enable_video_x11_xrandr+y}
  21423. then :
  21424. enableval=$enable_video_x11_xrandr;
  21425. else $as_nop
  21426. enable_video_x11_xrandr=yes
  21427. fi
  21428. if test x$enable_video_x11_xrandr = xyes; then
  21429. definitely_enable_video_x11_xrandr=no
  21430. have_xrandr_h_hdr=no
  21431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21432. /* end confdefs.h. */
  21433. #include <X11/Xlib.h>
  21434. #include <X11/extensions/Xrandr.h>
  21435. int
  21436. main (void)
  21437. {
  21438. XRRScreenResources *res = NULL;
  21439. ;
  21440. return 0;
  21441. }
  21442. _ACEOF
  21443. if ac_fn_c_try_compile "$LINENO"
  21444. then :
  21445. have_xrandr_h_hdr=yes
  21446. fi
  21447. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21448. if test x$have_xrandr_h_hdr = xyes; then
  21449. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21450. echo "-- dynamic libXrandr -> $xrandr_lib"
  21451. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21452. definitely_enable_video_x11_xrandr=yes
  21453. else
  21454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21455. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21456. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21457. then :
  21458. printf %s "(cached) " >&6
  21459. else $as_nop
  21460. ac_check_lib_save_LIBS=$LIBS
  21461. LIBS="-lXrandr $LIBS"
  21462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21463. /* end confdefs.h. */
  21464. /* Override any GCC internal prototype to avoid an error.
  21465. Use char because int might match the return type of a GCC
  21466. builtin and then its argument prototype would still apply. */
  21467. char XRRQueryExtension ();
  21468. int
  21469. main (void)
  21470. {
  21471. return XRRQueryExtension ();
  21472. ;
  21473. return 0;
  21474. }
  21475. _ACEOF
  21476. if ac_fn_c_try_link "$LINENO"
  21477. then :
  21478. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21479. else $as_nop
  21480. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21481. fi
  21482. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21483. conftest$ac_exeext conftest.$ac_ext
  21484. LIBS=$ac_check_lib_save_LIBS
  21485. fi
  21486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21487. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21488. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21489. then :
  21490. have_xrandr_lib=yes
  21491. fi
  21492. if test x$have_xrandr_lib = xyes ; then
  21493. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21494. definitely_enable_video_x11_xrandr=yes
  21495. fi
  21496. fi
  21497. fi
  21498. fi
  21499. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21500. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21501. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21502. fi
  21503. # Check whether --enable-video-x11-scrnsaver was given.
  21504. if test ${enable_video_x11_scrnsaver+y}
  21505. then :
  21506. enableval=$enable_video_x11_scrnsaver;
  21507. else $as_nop
  21508. enable_video_x11_scrnsaver=yes
  21509. fi
  21510. if test x$enable_video_x11_scrnsaver = xyes; then
  21511. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21512. "
  21513. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21514. then :
  21515. have_scrnsaver_h_hdr=yes
  21516. else $as_nop
  21517. have_scrnsaver_h_hdr=no
  21518. fi
  21519. if test x$have_scrnsaver_h_hdr = xyes; then
  21520. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21521. echo "-- dynamic libXss -> $xss_lib"
  21522. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21523. definitely_enable_video_x11_scrnsaver=yes
  21524. else
  21525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21526. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21527. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21528. then :
  21529. printf %s "(cached) " >&6
  21530. else $as_nop
  21531. ac_check_lib_save_LIBS=$LIBS
  21532. LIBS="-lXss $LIBS"
  21533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21534. /* end confdefs.h. */
  21535. /* Override any GCC internal prototype to avoid an error.
  21536. Use char because int might match the return type of a GCC
  21537. builtin and then its argument prototype would still apply. */
  21538. char XScreenSaverSuspend ();
  21539. int
  21540. main (void)
  21541. {
  21542. return XScreenSaverSuspend ();
  21543. ;
  21544. return 0;
  21545. }
  21546. _ACEOF
  21547. if ac_fn_c_try_link "$LINENO"
  21548. then :
  21549. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21550. else $as_nop
  21551. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21552. fi
  21553. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21554. conftest$ac_exeext conftest.$ac_ext
  21555. LIBS=$ac_check_lib_save_LIBS
  21556. fi
  21557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21558. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21559. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21560. then :
  21561. have_xss_lib=yes
  21562. fi
  21563. if test x$have_xss_lib = xyes ; then
  21564. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21565. definitely_enable_video_x11_scrnsaver=yes
  21566. fi
  21567. fi
  21568. fi
  21569. fi
  21570. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21571. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21572. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21573. fi
  21574. # Check whether --enable-video-x11-xshape was given.
  21575. if test ${enable_video_x11_xshape+y}
  21576. then :
  21577. enableval=$enable_video_x11_xshape;
  21578. else $as_nop
  21579. enable_video_x11_xshape=yes
  21580. fi
  21581. if test x$enable_video_x11_xshape = xyes; then
  21582. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21583. "
  21584. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21585. then :
  21586. have_shape_h_hdr=yes
  21587. else $as_nop
  21588. have_shape_h_hdr=no
  21589. fi
  21590. if test x$have_shape_h_hdr = xyes; then
  21591. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21592. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21593. fi
  21594. fi
  21595. fi
  21596. fi
  21597. if test x$have_x != xyes; then
  21598. # Prevent Mesa from including X11 headers
  21599. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21600. fi
  21601. }
  21602. CheckVivanteVideo()
  21603. {
  21604. # Check whether --enable-video-vivante was given.
  21605. if test ${enable_video_vivante+y}
  21606. then :
  21607. enableval=$enable_video_vivante;
  21608. else $as_nop
  21609. enable_video_vivante=yes
  21610. fi
  21611. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21613. printf %s "checking for Vivante VDK API... " >&6; }
  21614. have_vivante_vdk=no
  21615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21616. /* end confdefs.h. */
  21617. #define LINUX
  21618. #define EGL_API_FB
  21619. #include <gc_vdk.h>
  21620. int
  21621. main (void)
  21622. {
  21623. ;
  21624. return 0;
  21625. }
  21626. _ACEOF
  21627. if ac_fn_c_try_compile "$LINENO"
  21628. then :
  21629. have_vivante_vdk=yes
  21630. fi
  21631. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21633. printf "%s\n" "$have_vivante_vdk" >&6; }
  21634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21635. printf %s "checking for Vivante FB API... " >&6; }
  21636. have_vivante_egl=no
  21637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21638. /* end confdefs.h. */
  21639. #define LINUX
  21640. #define EGL_API_FB
  21641. #include <EGL/eglvivante.h>
  21642. int
  21643. main (void)
  21644. {
  21645. ;
  21646. return 0;
  21647. }
  21648. _ACEOF
  21649. if ac_fn_c_try_compile "$LINENO"
  21650. then :
  21651. have_vivante_egl=yes
  21652. fi
  21653. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21655. printf "%s\n" "$have_vivante_egl" >&6; }
  21656. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21657. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21658. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21659. if test x$have_vivante_vdk = xyes; then
  21660. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21661. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21662. fi
  21663. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21664. SUMMARY_video="${SUMMARY_video} vivante"
  21665. have_video=yes
  21666. fi
  21667. fi
  21668. }
  21669. CheckHaikuVideo()
  21670. {
  21671. if test x$enable_video = xyes; then
  21672. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21673. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21674. have_video=yes
  21675. SUMMARY_video="${SUMMARY_video} haiku"
  21676. fi
  21677. }
  21678. CheckCOCOA()
  21679. {
  21680. # Check whether --enable-video-cocoa was given.
  21681. if test ${enable_video_cocoa+y}
  21682. then :
  21683. enableval=$enable_video_cocoa;
  21684. else $as_nop
  21685. enable_video_cocoa=yes
  21686. fi
  21687. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21688. save_CFLAGS="$CFLAGS"
  21689. CFLAGS="$CFLAGS -x objective-c"
  21690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21691. printf %s "checking for Cocoa framework... " >&6; }
  21692. have_cocoa=no
  21693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21694. /* end confdefs.h. */
  21695. #import <Cocoa/Cocoa.h>
  21696. int
  21697. main (void)
  21698. {
  21699. ;
  21700. return 0;
  21701. }
  21702. _ACEOF
  21703. if ac_fn_c_try_compile "$LINENO"
  21704. then :
  21705. have_cocoa=yes
  21706. fi
  21707. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21709. printf "%s\n" "$have_cocoa" >&6; }
  21710. CFLAGS="$save_CFLAGS"
  21711. if test x$have_cocoa = xyes; then
  21712. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21713. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21714. SUMMARY_video="${SUMMARY_video} cocoa"
  21715. have_video=yes
  21716. fi
  21717. fi
  21718. }
  21719. CheckMETAL()
  21720. {
  21721. # Check whether --enable-video-metal was given.
  21722. if test ${enable_video_metal+y}
  21723. then :
  21724. enableval=$enable_video_metal;
  21725. else $as_nop
  21726. enable_video_metal=yes
  21727. fi
  21728. # Check whether --enable-render-metal was given.
  21729. if test ${enable_render_metal+y}
  21730. then :
  21731. enableval=$enable_render_metal;
  21732. else $as_nop
  21733. enable_render_metal=yes
  21734. fi
  21735. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21736. save_CFLAGS="$CFLAGS"
  21737. CFLAGS="$CFLAGS -x objective-c"
  21738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21739. printf %s "checking for Metal framework... " >&6; }
  21740. have_metal=no
  21741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21742. /* end confdefs.h. */
  21743. #import <Cocoa/Cocoa.h>
  21744. #import <Metal/Metal.h>
  21745. #import <QuartzCore/CAMetalLayer.h>
  21746. #if TARGET_CPU_X86
  21747. #error Metal doesn't work on this configuration
  21748. #endif
  21749. int
  21750. main (void)
  21751. {
  21752. ;
  21753. return 0;
  21754. }
  21755. _ACEOF
  21756. if ac_fn_c_try_compile "$LINENO"
  21757. then :
  21758. have_metal=yes
  21759. fi
  21760. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21761. CFLAGS="$save_CFLAGS"
  21762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21763. printf "%s\n" "$have_metal" >&6; }
  21764. if test x$have_metal = xyes; then
  21765. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21766. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21767. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21768. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21769. fi
  21770. SUMMARY_video="${SUMMARY_video} metal"
  21771. else
  21772. enable_video_metal=no
  21773. enable_render_metal=no
  21774. fi
  21775. fi
  21776. }
  21777. CheckDirectFB()
  21778. {
  21779. # Check whether --enable-video-directfb was given.
  21780. if test ${enable_video_directfb+y}
  21781. then :
  21782. enableval=$enable_video_directfb;
  21783. else $as_nop
  21784. enable_video_directfb=no
  21785. fi
  21786. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  21787. pkg_failed=no
  21788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  21789. printf %s "checking for directfb >= 1.0.0... " >&6; }
  21790. if test -n "$DIRECTFB_CFLAGS"; then
  21791. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  21792. elif test -n "$PKG_CONFIG"; then
  21793. if test -n "$PKG_CONFIG" && \
  21794. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21795. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21796. ac_status=$?
  21797. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21798. test $ac_status = 0; }; then
  21799. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  21800. test "x$?" != "x0" && pkg_failed=yes
  21801. else
  21802. pkg_failed=yes
  21803. fi
  21804. else
  21805. pkg_failed=untried
  21806. fi
  21807. if test -n "$DIRECTFB_LIBS"; then
  21808. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  21809. elif test -n "$PKG_CONFIG"; then
  21810. if test -n "$PKG_CONFIG" && \
  21811. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21812. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21813. ac_status=$?
  21814. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21815. test $ac_status = 0; }; then
  21816. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  21817. test "x$?" != "x0" && pkg_failed=yes
  21818. else
  21819. pkg_failed=yes
  21820. fi
  21821. else
  21822. pkg_failed=untried
  21823. fi
  21824. if test $pkg_failed = yes; then
  21825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21826. printf "%s\n" "no" >&6; }
  21827. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21828. _pkg_short_errors_supported=yes
  21829. else
  21830. _pkg_short_errors_supported=no
  21831. fi
  21832. if test $_pkg_short_errors_supported = yes; then
  21833. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21834. else
  21835. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21836. fi
  21837. # Put the nasty error message in config.log where it belongs
  21838. echo "$DIRECTFB_PKG_ERRORS" >&5
  21839. video_directfb=no
  21840. elif test $pkg_failed = untried; then
  21841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21842. printf "%s\n" "no" >&6; }
  21843. video_directfb=no
  21844. else
  21845. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  21846. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21848. printf "%s\n" "yes" >&6; }
  21849. video_directfb=yes
  21850. fi
  21851. if test x$video_directfb = xyes; then
  21852. # SuSE 11.1 installs directfb-config without directfb-devel
  21853. save_CPPFLAGS="$CPPFLAGS"
  21854. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21855. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21856. if test "x$ac_cv_header_directfb_h" = xyes
  21857. then :
  21858. have_directfb_hdr=yes
  21859. else $as_nop
  21860. have_directfb_hdr=no
  21861. fi
  21862. CPPFLAGS="$save_CPPFLAGS"
  21863. video_directfb=$have_directfb_hdr
  21864. fi
  21865. if test x$video_directfb = xyes; then
  21866. # Check whether --enable-directfb-shared was given.
  21867. if test ${enable_directfb_shared+y}
  21868. then :
  21869. enableval=$enable_directfb_shared;
  21870. else $as_nop
  21871. enable_directfb_shared=yes
  21872. fi
  21873. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  21874. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  21875. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  21876. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  21877. directfb_shared=no
  21878. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  21879. if test x$have_loadso != xyes && \
  21880. test x$enable_directfb_shared = xyes; then
  21881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  21882. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  21883. fi
  21884. if test x$have_loadso = xyes && \
  21885. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  21886. directfb_shared=yes
  21887. echo "-- dynamic libdirectfb -> $directfb_lib"
  21888. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  21889. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  21890. else
  21891. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  21892. SUMMARY_video="${SUMMARY_video} directfb"
  21893. fi
  21894. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  21895. have_video=yes
  21896. fi
  21897. fi
  21898. }
  21899. CheckKMSDRM()
  21900. {
  21901. # Check whether --enable-video-kmsdrm was given.
  21902. if test ${enable_video_kmsdrm+y}
  21903. then :
  21904. enableval=$enable_video_kmsdrm;
  21905. else $as_nop
  21906. enable_video_kmsdrm=yes
  21907. fi
  21908. if test x$enable_video = xyes && \
  21909. test x$enable_video_kmsdrm = xyes && \
  21910. test x$video_opengl_egl = xyes; then
  21911. video_kmsdrm=no
  21912. pkg_failed=no
  21913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21914. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21915. if test -n "$LIBDRM_CFLAGS"; then
  21916. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21917. elif test -n "$PKG_CONFIG"; then
  21918. if test -n "$PKG_CONFIG" && \
  21919. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21920. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21921. ac_status=$?
  21922. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21923. test $ac_status = 0; }; then
  21924. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21925. test "x$?" != "x0" && pkg_failed=yes
  21926. else
  21927. pkg_failed=yes
  21928. fi
  21929. else
  21930. pkg_failed=untried
  21931. fi
  21932. if test -n "$LIBDRM_LIBS"; then
  21933. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21934. elif test -n "$PKG_CONFIG"; then
  21935. if test -n "$PKG_CONFIG" && \
  21936. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21937. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21938. ac_status=$?
  21939. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21940. test $ac_status = 0; }; then
  21941. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  21942. test "x$?" != "x0" && pkg_failed=yes
  21943. else
  21944. pkg_failed=yes
  21945. fi
  21946. else
  21947. pkg_failed=untried
  21948. fi
  21949. if test $pkg_failed = yes; then
  21950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21951. printf "%s\n" "no" >&6; }
  21952. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21953. _pkg_short_errors_supported=yes
  21954. else
  21955. _pkg_short_errors_supported=no
  21956. fi
  21957. if test $_pkg_short_errors_supported = yes; then
  21958. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21959. else
  21960. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21961. fi
  21962. # Put the nasty error message in config.log where it belongs
  21963. echo "$LIBDRM_PKG_ERRORS" >&5
  21964. libdrm_avail=no
  21965. elif test $pkg_failed = untried; then
  21966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21967. printf "%s\n" "no" >&6; }
  21968. libdrm_avail=no
  21969. else
  21970. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  21971. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  21972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21973. printf "%s\n" "yes" >&6; }
  21974. libdrm_avail=yes
  21975. fi
  21976. pkg_failed=no
  21977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  21978. printf %s "checking for gbm >= 11.1.0... " >&6; }
  21979. if test -n "$LIBGBM_CFLAGS"; then
  21980. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  21981. elif test -n "$PKG_CONFIG"; then
  21982. if test -n "$PKG_CONFIG" && \
  21983. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21984. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21985. ac_status=$?
  21986. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21987. test $ac_status = 0; }; then
  21988. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  21989. test "x$?" != "x0" && pkg_failed=yes
  21990. else
  21991. pkg_failed=yes
  21992. fi
  21993. else
  21994. pkg_failed=untried
  21995. fi
  21996. if test -n "$LIBGBM_LIBS"; then
  21997. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  21998. elif test -n "$PKG_CONFIG"; then
  21999. if test -n "$PKG_CONFIG" && \
  22000. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22001. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22002. ac_status=$?
  22003. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22004. test $ac_status = 0; }; then
  22005. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22006. test "x$?" != "x0" && pkg_failed=yes
  22007. else
  22008. pkg_failed=yes
  22009. fi
  22010. else
  22011. pkg_failed=untried
  22012. fi
  22013. if test $pkg_failed = yes; then
  22014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22015. printf "%s\n" "no" >&6; }
  22016. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22017. _pkg_short_errors_supported=yes
  22018. else
  22019. _pkg_short_errors_supported=no
  22020. fi
  22021. if test $_pkg_short_errors_supported = yes; then
  22022. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22023. else
  22024. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22025. fi
  22026. # Put the nasty error message in config.log where it belongs
  22027. echo "$LIBGBM_PKG_ERRORS" >&5
  22028. libgbm_avail=no
  22029. elif test $pkg_failed = untried; then
  22030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22031. printf "%s\n" "no" >&6; }
  22032. libgbm_avail=no
  22033. else
  22034. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22035. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22037. printf "%s\n" "yes" >&6; }
  22038. libgbm_avail=yes
  22039. fi
  22040. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22041. video_kmsdrm=yes
  22042. fi
  22043. if test x$video_kmsdrm = xyes; then
  22044. # Check whether --enable-kmsdrm-shared was given.
  22045. if test ${enable_kmsdrm_shared+y}
  22046. then :
  22047. enableval=$enable_kmsdrm_shared;
  22048. else $as_nop
  22049. enable_kmsdrm_shared=yes
  22050. fi
  22051. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22052. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22053. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22055. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22056. kmsdrm_shared=no
  22057. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22058. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22059. if test x$have_loadso != xyes && \
  22060. test x$enable_kmsdrm_shared = xyes; then
  22061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22062. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22063. fi
  22064. if test x$have_loadso = xyes && \
  22065. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22066. kmsdrm_shared=yes
  22067. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22068. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22069. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22070. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22071. else
  22072. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22073. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22074. fi
  22075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22076. printf "%s\n" "$kmsdrm_shared" >&6; }
  22077. if test x$kmsdrm_shared = xyes; then
  22078. echo "-- dynamic libdrm -> $drm_lib"
  22079. echo "-- dynamic libgbm -> $gbm_lib"
  22080. fi
  22081. have_video=yes
  22082. fi
  22083. fi
  22084. }
  22085. CheckDummyVideo()
  22086. {
  22087. # Check whether --enable-video-dummy was given.
  22088. if test ${enable_video_dummy+y}
  22089. then :
  22090. enableval=$enable_video_dummy;
  22091. else $as_nop
  22092. enable_video_dummy=yes
  22093. fi
  22094. if test x$enable_video_dummy = xyes; then
  22095. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22096. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22097. have_video=yes
  22098. SUMMARY_video="${SUMMARY_video} dummy"
  22099. fi
  22100. }
  22101. CheckOffscreenVideo()
  22102. {
  22103. # Check whether --enable-video-offscreen was given.
  22104. if test ${enable_video_offscreen+y}
  22105. then :
  22106. enableval=$enable_video_offscreen;
  22107. else $as_nop
  22108. enable_video_offscreen=no
  22109. fi
  22110. if test x$enable_video_offscreen = xyes; then
  22111. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22112. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22113. have_video=yes
  22114. SUMMARY_video="${SUMMARY_video} offscreen"
  22115. fi
  22116. }
  22117. CheckQNXVideo()
  22118. {
  22119. if test x$enable_video = xyes; then
  22120. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22121. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22122. have_video=yes
  22123. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22124. SUMMARY_video="${SUMMARY_video} qnx"
  22125. fi
  22126. }
  22127. CheckQNXAudio()
  22128. {
  22129. if test x$enable_audio = xyes; then
  22130. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22131. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22132. have_audio=yes
  22133. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22134. SUMMARY_audio="${SUMMARY_audio} qsa"
  22135. fi
  22136. }
  22137. # Check whether --enable-video-opengl was given.
  22138. if test ${enable_video_opengl+y}
  22139. then :
  22140. enableval=$enable_video_opengl;
  22141. else $as_nop
  22142. enable_video_opengl=yes
  22143. fi
  22144. CheckGLX()
  22145. {
  22146. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22148. printf %s "checking for GLX support... " >&6; }
  22149. video_opengl_glx=no
  22150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22151. /* end confdefs.h. */
  22152. #include <GL/glx.h>
  22153. int
  22154. main (void)
  22155. {
  22156. ;
  22157. return 0;
  22158. }
  22159. _ACEOF
  22160. if ac_fn_c_try_compile "$LINENO"
  22161. then :
  22162. video_opengl_glx=yes
  22163. fi
  22164. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22166. printf "%s\n" "$video_opengl_glx" >&6; }
  22167. if test x$video_opengl_glx = xyes; then
  22168. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22169. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22170. fi
  22171. fi
  22172. }
  22173. # Check whether --enable-video-opengles was given.
  22174. if test ${enable_video_opengles+y}
  22175. then :
  22176. enableval=$enable_video_opengles;
  22177. else $as_nop
  22178. enable_video_opengles=yes
  22179. fi
  22180. # Check whether --enable-video-opengles1 was given.
  22181. if test ${enable_video_opengles1+y}
  22182. then :
  22183. enableval=$enable_video_opengles1;
  22184. else $as_nop
  22185. enable_video_opengles1=yes
  22186. fi
  22187. # Check whether --enable-video-opengles2 was given.
  22188. if test ${enable_video_opengles2+y}
  22189. then :
  22190. enableval=$enable_video_opengles2;
  22191. else $as_nop
  22192. enable_video_opengles2=yes
  22193. fi
  22194. CheckEGL()
  22195. {
  22196. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22198. printf %s "checking for EGL support... " >&6; }
  22199. video_opengl_egl=no
  22200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22201. /* end confdefs.h. */
  22202. #define LINUX
  22203. #define EGL_API_FB
  22204. #define MESA_EGL_NO_X11_HEADERS
  22205. #define EGL_NO_X11
  22206. #include <EGL/egl.h>
  22207. #include <EGL/eglext.h>
  22208. int
  22209. main (void)
  22210. {
  22211. ;
  22212. return 0;
  22213. }
  22214. _ACEOF
  22215. if ac_fn_c_try_compile "$LINENO"
  22216. then :
  22217. video_opengl_egl=yes
  22218. fi
  22219. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22221. printf "%s\n" "$video_opengl_egl" >&6; }
  22222. if test x$video_opengl_egl = xyes; then
  22223. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22224. fi
  22225. fi
  22226. }
  22227. CheckOpenGL()
  22228. {
  22229. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22231. printf %s "checking for OpenGL headers... " >&6; }
  22232. video_opengl=no
  22233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22234. /* end confdefs.h. */
  22235. #include <GL/gl.h>
  22236. #include <GL/glext.h>
  22237. int
  22238. main (void)
  22239. {
  22240. ;
  22241. return 0;
  22242. }
  22243. _ACEOF
  22244. if ac_fn_c_try_compile "$LINENO"
  22245. then :
  22246. video_opengl=yes
  22247. fi
  22248. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22250. printf "%s\n" "$video_opengl" >&6; }
  22251. if test x$video_opengl = xyes; then
  22252. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22253. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22254. SUMMARY_video="${SUMMARY_video} opengl"
  22255. fi
  22256. fi
  22257. }
  22258. CheckOpenGLES()
  22259. {
  22260. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22261. if test x$enable_video_opengles1 = xyes; then
  22262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22263. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22264. video_opengles_v1=no
  22265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22266. /* end confdefs.h. */
  22267. #include <GLES/gl.h>
  22268. #include <GLES/glext.h>
  22269. int
  22270. main (void)
  22271. {
  22272. ;
  22273. return 0;
  22274. }
  22275. _ACEOF
  22276. if ac_fn_c_try_compile "$LINENO"
  22277. then :
  22278. video_opengles_v1=yes
  22279. fi
  22280. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22282. printf "%s\n" "$video_opengles_v1" >&6; }
  22283. if test x$video_opengles_v1 = xyes; then
  22284. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22285. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22286. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22287. fi
  22288. fi
  22289. if test x$enable_video_opengles2 = xyes; then
  22290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22291. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22292. video_opengles_v2=no
  22293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22294. /* end confdefs.h. */
  22295. #include <GLES2/gl2.h>
  22296. #include <GLES2/gl2ext.h>
  22297. int
  22298. main (void)
  22299. {
  22300. ;
  22301. return 0;
  22302. }
  22303. _ACEOF
  22304. if ac_fn_c_try_compile "$LINENO"
  22305. then :
  22306. video_opengles_v2=yes
  22307. fi
  22308. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22310. printf "%s\n" "$video_opengles_v2" >&6; }
  22311. if test x$video_opengles_v2 = xyes; then
  22312. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22313. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22314. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22315. fi
  22316. fi
  22317. fi
  22318. }
  22319. CheckWINDOWSGL()
  22320. {
  22321. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22322. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22323. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22324. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22325. SUMMARY_video="${SUMMARY_video} opengl"
  22326. fi
  22327. }
  22328. CheckWINDOWSGLES()
  22329. {
  22330. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22332. printf %s "checking for EGL support... " >&6; }
  22333. video_opengl_egl=no
  22334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22335. /* end confdefs.h. */
  22336. #include <EGL/egl.h>
  22337. int
  22338. main (void)
  22339. {
  22340. ;
  22341. return 0;
  22342. }
  22343. _ACEOF
  22344. if ac_fn_c_try_compile "$LINENO"
  22345. then :
  22346. video_opengl_egl=yes
  22347. fi
  22348. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22350. printf "%s\n" "$video_opengl_egl" >&6; }
  22351. if test x$video_opengl_egl = xyes; then
  22352. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22353. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22354. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22355. fi
  22356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22357. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22358. video_opengles_v2=no
  22359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22360. /* end confdefs.h. */
  22361. #include <GLES2/gl2.h>
  22362. #include <GLES2/gl2ext.h>
  22363. int
  22364. main (void)
  22365. {
  22366. ;
  22367. return 0;
  22368. }
  22369. _ACEOF
  22370. if ac_fn_c_try_compile "$LINENO"
  22371. then :
  22372. video_opengles_v2=yes
  22373. fi
  22374. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22376. printf "%s\n" "$video_opengles_v2" >&6; }
  22377. if test x$video_opengles_v2 = xyes; then
  22378. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22379. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22380. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22381. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22382. fi
  22383. fi
  22384. }
  22385. CheckHaikuGL()
  22386. {
  22387. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22388. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22389. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22390. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22391. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22392. SUMMARY_video="${SUMMARY_video} opengl"
  22393. fi
  22394. }
  22395. CheckMacGL()
  22396. {
  22397. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22398. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22399. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22400. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22401. SUMMARY_video="${SUMMARY_video} opengl"
  22402. fi
  22403. }
  22404. CheckMacGLES()
  22405. {
  22406. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22407. video_opengl_egl=yes
  22408. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22409. video_opengles_v2=yes
  22410. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22411. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22412. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22413. fi
  22414. }
  22415. CheckEmscriptenGLES()
  22416. {
  22417. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22419. printf %s "checking for EGL support... " >&6; }
  22420. video_opengl_egl=no
  22421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22422. /* end confdefs.h. */
  22423. #include <EGL/egl.h>
  22424. int
  22425. main (void)
  22426. {
  22427. ;
  22428. return 0;
  22429. }
  22430. _ACEOF
  22431. if ac_fn_c_try_compile "$LINENO"
  22432. then :
  22433. video_opengl_egl=yes
  22434. fi
  22435. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22437. printf "%s\n" "$video_opengl_egl" >&6; }
  22438. if test x$video_opengl_egl = xyes; then
  22439. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22440. fi
  22441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22442. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22443. video_opengles_v2=no
  22444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22445. /* end confdefs.h. */
  22446. #include <GLES2/gl2.h>
  22447. #include <GLES2/gl2ext.h>
  22448. int
  22449. main (void)
  22450. {
  22451. ;
  22452. return 0;
  22453. }
  22454. _ACEOF
  22455. if ac_fn_c_try_compile "$LINENO"
  22456. then :
  22457. video_opengles_v2=yes
  22458. fi
  22459. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22461. printf "%s\n" "$video_opengles_v2" >&6; }
  22462. if test x$video_opengles_v2 = xyes; then
  22463. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22464. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22465. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22466. fi
  22467. fi
  22468. }
  22469. # Check whether --enable-video-vulkan was given.
  22470. if test ${enable_video_vulkan+y}
  22471. then :
  22472. enableval=$enable_video_vulkan;
  22473. else $as_nop
  22474. enable_video_vulkan=yes
  22475. fi
  22476. CheckVulkan()
  22477. {
  22478. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22479. case "$host" in
  22480. *-*-android*)
  22481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22482. /* end confdefs.h. */
  22483. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22484. #error Vulkan doesn't work on this configuration
  22485. #endif
  22486. int
  22487. main (void)
  22488. {
  22489. ;
  22490. return 0;
  22491. }
  22492. _ACEOF
  22493. if ac_fn_c_try_compile "$LINENO"
  22494. then :
  22495. else $as_nop
  22496. enable_video_vulkan=no
  22497. fi
  22498. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22499. ;;
  22500. *-*-darwin*)
  22501. save_CFLAGS="$CFLAGS"
  22502. CFLAGS="$CFLAGS -x objective-c"
  22503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22504. /* end confdefs.h. */
  22505. #include <Cocoa/Cocoa.h>
  22506. #include <Metal/Metal.h>
  22507. #include <QuartzCore/CAMetalLayer.h>
  22508. #if TARGET_CPU_X86
  22509. #error Vulkan doesn't work on this configuration
  22510. #endif
  22511. int
  22512. main (void)
  22513. {
  22514. ;
  22515. return 0;
  22516. }
  22517. _ACEOF
  22518. if ac_fn_c_try_compile "$LINENO"
  22519. then :
  22520. else $as_nop
  22521. enable_video_vulkan=no
  22522. fi
  22523. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22524. CFLAGS="$save_CFLAGS"
  22525. ;;
  22526. *)
  22527. ;;
  22528. esac
  22529. if test x$enable_video_vulkan = xno; then
  22530. # For reasons I am totally unable to see, I get an undefined macro error if
  22531. # I put this in the AC_TRY_COMPILE.
  22532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22533. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22534. fi
  22535. fi
  22536. if test x$have_loadso != xyes; then
  22537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22538. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22539. enable_video_vulkan=no
  22540. fi
  22541. if test x$enable_video_vulkan = xyes; then
  22542. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22543. SUMMARY_video="${SUMMARY_video} vulkan"
  22544. fi
  22545. }
  22546. CheckInputEvents()
  22547. {
  22548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22549. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22550. use_input_events=no
  22551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22552. /* end confdefs.h. */
  22553. #include <linux/input.h>
  22554. int
  22555. main (void)
  22556. {
  22557. #ifndef EVIOCGNAME
  22558. #error EVIOCGNAME() ioctl not available
  22559. #endif
  22560. ;
  22561. return 0;
  22562. }
  22563. _ACEOF
  22564. if ac_fn_c_try_compile "$LINENO"
  22565. then :
  22566. use_input_events=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: $use_input_events" >&5
  22570. printf "%s\n" "$use_input_events" >&6; }
  22571. if test x$use_input_events = xyes; then
  22572. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22573. SUMMARY_input="${SUMMARY_input} linuxev"
  22574. fi
  22575. }
  22576. CheckInputKD()
  22577. {
  22578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22579. printf %s "checking for Linux kd.h... " >&6; }
  22580. use_input_kd=no
  22581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22582. /* end confdefs.h. */
  22583. #include <linux/kd.h>
  22584. #include <linux/keyboard.h>
  22585. int
  22586. main (void)
  22587. {
  22588. struct kbentry kbe;
  22589. kbe.kb_table = KG_CTRL;
  22590. ioctl(0, KDGKBENT, &kbe);
  22591. ;
  22592. return 0;
  22593. }
  22594. _ACEOF
  22595. if ac_fn_c_try_compile "$LINENO"
  22596. then :
  22597. use_input_kd=yes
  22598. fi
  22599. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22601. printf "%s\n" "$use_input_kd" >&6; }
  22602. if test x$use_input_kd = xyes; then
  22603. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22604. SUMMARY_input="${SUMMARY_input} linuxkd"
  22605. fi
  22606. }
  22607. CheckInputKBIO()
  22608. {
  22609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22610. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22611. use_input_kbio=no
  22612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22613. /* end confdefs.h. */
  22614. #include <sys/kbio.h>
  22615. #include <sys/ioctl.h>
  22616. int
  22617. main (void)
  22618. {
  22619. accentmap_t accTable;
  22620. ioctl(0, KDENABIO, 1);
  22621. ;
  22622. return 0;
  22623. }
  22624. _ACEOF
  22625. if ac_fn_c_try_compile "$LINENO"
  22626. then :
  22627. use_input_kbio=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: $use_input_kbio" >&5
  22631. printf "%s\n" "$use_input_kbio" >&6; }
  22632. if test x$use_input_kbio = xyes; then
  22633. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22634. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22635. fi
  22636. }
  22637. CheckInputWSCONS()
  22638. {
  22639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22640. printf %s "checking for OpenBSD wscons... " >&6; }
  22641. use_input_wscons=no
  22642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22643. /* end confdefs.h. */
  22644. #include <sys/time.h>
  22645. #include <dev/wscons/wsconsio.h>
  22646. #include <dev/wscons/wsksymdef.h>
  22647. #include <dev/wscons/wsksymvar.h>
  22648. #include <sys/ioctl.h>
  22649. int
  22650. main (void)
  22651. {
  22652. struct wskbd_map_data data;
  22653. ioctl(0, WSKBDIO_GETMAP, &data);
  22654. ;
  22655. return 0;
  22656. }
  22657. _ACEOF
  22658. if ac_fn_c_try_compile "$LINENO"
  22659. then :
  22660. use_input_wscons=yes
  22661. fi
  22662. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22664. printf "%s\n" "$use_input_wscons" >&6; }
  22665. if test x$use_input_wscons = xyes; then
  22666. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22667. SUMMARY_input="${SUMMARY_input} wscons"
  22668. fi
  22669. }
  22670. CheckLibUDev()
  22671. {
  22672. # Check whether --enable-libudev was given.
  22673. if test ${enable_libudev+y}
  22674. then :
  22675. enableval=$enable_libudev;
  22676. else $as_nop
  22677. enable_libudev=yes
  22678. fi
  22679. if test x$enable_libudev = xyes; then
  22680. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22681. if test "x$ac_cv_header_libudev_h" = xyes
  22682. then :
  22683. have_libudev_h_hdr=yes
  22684. else $as_nop
  22685. have_libudev_h_hdr=no
  22686. fi
  22687. if test x$have_libudev_h_hdr = xyes; then
  22688. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22689. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22690. if test x$udev_lib != x; then
  22691. echo "-- dynamic udev -> $udev_lib"
  22692. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22693. fi
  22694. fi
  22695. fi
  22696. }
  22697. CheckDBus()
  22698. {
  22699. # Check whether --enable-dbus was given.
  22700. if test ${enable_dbus+y}
  22701. then :
  22702. enableval=$enable_dbus;
  22703. else $as_nop
  22704. enable_dbus=yes
  22705. fi
  22706. if test x$enable_dbus = xyes; then
  22707. pkg_failed=no
  22708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22709. printf %s "checking for dbus-1... " >&6; }
  22710. if test -n "$DBUS_CFLAGS"; then
  22711. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22712. elif test -n "$PKG_CONFIG"; then
  22713. if test -n "$PKG_CONFIG" && \
  22714. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22715. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22716. ac_status=$?
  22717. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22718. test $ac_status = 0; }; then
  22719. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22720. test "x$?" != "x0" && pkg_failed=yes
  22721. else
  22722. pkg_failed=yes
  22723. fi
  22724. else
  22725. pkg_failed=untried
  22726. fi
  22727. if test -n "$DBUS_LIBS"; then
  22728. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  22729. elif test -n "$PKG_CONFIG"; then
  22730. if test -n "$PKG_CONFIG" && \
  22731. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22732. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22733. ac_status=$?
  22734. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22735. test $ac_status = 0; }; then
  22736. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  22737. test "x$?" != "x0" && pkg_failed=yes
  22738. else
  22739. pkg_failed=yes
  22740. fi
  22741. else
  22742. pkg_failed=untried
  22743. fi
  22744. if test $pkg_failed = yes; then
  22745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22746. printf "%s\n" "no" >&6; }
  22747. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22748. _pkg_short_errors_supported=yes
  22749. else
  22750. _pkg_short_errors_supported=no
  22751. fi
  22752. if test $_pkg_short_errors_supported = yes; then
  22753. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22754. else
  22755. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22756. fi
  22757. # Put the nasty error message in config.log where it belongs
  22758. echo "$DBUS_PKG_ERRORS" >&5
  22759. have_dbus=no
  22760. elif test $pkg_failed = untried; then
  22761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22762. printf "%s\n" "no" >&6; }
  22763. have_dbus=no
  22764. else
  22765. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22766. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22768. printf "%s\n" "yes" >&6; }
  22769. have_dbus=yes
  22770. fi
  22771. save_CPPFLAGS="$CPPFLAGS"
  22772. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22773. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22774. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22775. then :
  22776. have_dbus_dbus_h_hdr=yes
  22777. else $as_nop
  22778. have_dbus_dbus_h_hdr=no
  22779. fi
  22780. CPPFLAGS="$save_CPPFLAGS"
  22781. if test x$have_dbus_dbus_h_hdr = xyes; then
  22782. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22783. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22784. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22785. fi
  22786. fi
  22787. }
  22788. CheckIME()
  22789. {
  22790. # Check whether --enable-ime was given.
  22791. if test ${enable_ime+y}
  22792. then :
  22793. enableval=$enable_ime;
  22794. else $as_nop
  22795. enable_ime=yes
  22796. fi
  22797. if test x$enable_ime = xyes; then
  22798. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22799. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22800. fi
  22801. }
  22802. CheckInotify()
  22803. {
  22804. save_LIBS="$LIBS"
  22805. case "$host" in
  22806. *-*-freebsd*) LIBS="$LIBS -linotify"
  22807. ;;
  22808. esac
  22809. for ac_header in sys/inotify.h
  22810. do :
  22811. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22812. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22813. then :
  22814. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22815. have_inotify_inotify_h_hdr=yes
  22816. fi
  22817. done
  22818. for ac_func in inotify_init
  22819. do :
  22820. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22821. if test "x$ac_cv_func_inotify_init" = xyes
  22822. then :
  22823. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22824. have_inotify=yes
  22825. fi
  22826. done
  22827. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22828. if test "x$ac_cv_func_inotify_init1" = xyes
  22829. then :
  22830. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22831. fi
  22832. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22833. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22834. case "$host" in
  22835. *-*-freebsd*)
  22836. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22837. ;;
  22838. esac
  22839. fi
  22840. LIBS="$save_LIBS"
  22841. }
  22842. CheckIBus()
  22843. {
  22844. # Check whether --enable-ibus was given.
  22845. if test ${enable_ibus+y}
  22846. then :
  22847. enableval=$enable_ibus;
  22848. else $as_nop
  22849. enable_ibus=yes
  22850. fi
  22851. if test x$enable_ibus = xyes; then
  22852. pkg_failed=no
  22853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22854. printf %s "checking for ibus-1.0... " >&6; }
  22855. if test -n "$IBUS_CFLAGS"; then
  22856. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22857. elif test -n "$PKG_CONFIG"; then
  22858. if test -n "$PKG_CONFIG" && \
  22859. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22860. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22861. ac_status=$?
  22862. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22863. test $ac_status = 0; }; then
  22864. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22865. test "x$?" != "x0" && pkg_failed=yes
  22866. else
  22867. pkg_failed=yes
  22868. fi
  22869. else
  22870. pkg_failed=untried
  22871. fi
  22872. if test -n "$IBUS_LIBS"; then
  22873. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  22874. elif test -n "$PKG_CONFIG"; then
  22875. if test -n "$PKG_CONFIG" && \
  22876. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22877. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22878. ac_status=$?
  22879. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22880. test $ac_status = 0; }; then
  22881. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  22882. test "x$?" != "x0" && pkg_failed=yes
  22883. else
  22884. pkg_failed=yes
  22885. fi
  22886. else
  22887. pkg_failed=untried
  22888. fi
  22889. if test $pkg_failed = yes; then
  22890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22891. printf "%s\n" "no" >&6; }
  22892. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22893. _pkg_short_errors_supported=yes
  22894. else
  22895. _pkg_short_errors_supported=no
  22896. fi
  22897. if test $_pkg_short_errors_supported = yes; then
  22898. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22899. else
  22900. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22901. fi
  22902. # Put the nasty error message in config.log where it belongs
  22903. echo "$IBUS_PKG_ERRORS" >&5
  22904. have_ibus=no
  22905. elif test $pkg_failed = untried; then
  22906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22907. printf "%s\n" "no" >&6; }
  22908. have_ibus=no
  22909. else
  22910. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22911. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22913. printf "%s\n" "yes" >&6; }
  22914. have_ibus=yes
  22915. fi
  22916. save_CPPFLAGS="$CPPFLAGS"
  22917. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22918. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22919. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22920. then :
  22921. have_ibus_ibus_h_hdr=yes
  22922. else $as_nop
  22923. have_ibus_ibus_h_hdr=no
  22924. fi
  22925. CPPFLAGS="$save_CPPFLAGS"
  22926. if test x$have_ibus_ibus_h_hdr = xyes; then
  22927. if test x$enable_ime != xyes; then
  22928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22929. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22930. have_ibus_ibus_h_hdr=no
  22931. elif test x$enable_dbus != xyes; then
  22932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  22933. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  22934. have_ibus_ibus_h_hdr=no
  22935. elif test x$have_inotify_inotify_h_hdr != xyes; then
  22936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  22937. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  22938. have_ibus_ibus_h_hdr=no
  22939. else
  22940. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  22941. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  22942. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  22943. fi
  22944. fi
  22945. fi
  22946. }
  22947. CheckFcitx()
  22948. {
  22949. # Check whether --enable-fcitx was given.
  22950. if test ${enable_fcitx+y}
  22951. then :
  22952. enableval=$enable_fcitx;
  22953. else $as_nop
  22954. enable_fcitx=yes
  22955. fi
  22956. if test x$enable_fcitx = xyes; then
  22957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  22958. printf %s "checking for fcitx support... " >&6; }
  22959. have_fcitx=no
  22960. if test x$enable_ime != xyes; then
  22961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  22962. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  22963. elif test x$have_dbus_dbus_h_hdr != xyes; then
  22964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  22965. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  22966. else
  22967. have_fcitx=yes
  22968. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  22969. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  22970. fi
  22971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  22972. printf "%s\n" "$have_fcitx" >&6; }
  22973. fi
  22974. }
  22975. CheckJoystickMFI()
  22976. {
  22977. # Check whether --enable-joystick-mfi was given.
  22978. if test ${enable_joystick_mfi+y}
  22979. then :
  22980. enableval=$enable_joystick_mfi;
  22981. else $as_nop
  22982. enable_joystick_mfi=yes
  22983. fi
  22984. if test x$enable_joystick_mfi = xyes; then
  22985. save_CFLAGS="$CFLAGS"
  22986. save_LDFLAGS="$LDFLAGS"
  22987. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  22988. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  22990. printf %s "checking for GameController framework... " >&6; }
  22991. enable_joystick_mfi=no
  22992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22993. /* end confdefs.h. */
  22994. #include <AvailabilityMacros.h>
  22995. #include <TargetConditionals.h>
  22996. #import <GameController/GameController.h>
  22997. int
  22998. main (void)
  22999. {
  23000. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23001. #error GameController framework doesn't work on this configuration
  23002. #endif
  23003. #if TARGET_CPU_X86
  23004. #error GameController framework doesn't work on this configuration
  23005. #endif
  23006. ;
  23007. return 0;
  23008. }
  23009. _ACEOF
  23010. if ac_fn_c_try_link "$LINENO"
  23011. then :
  23012. enable_joystick_mfi=yes
  23013. fi
  23014. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23015. conftest$ac_exeext conftest.$ac_ext
  23016. CFLAGS="$save_CFLAGS"
  23017. LDFLAGS="$save_LDFLAGS"
  23018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23019. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23020. if test x$enable_joystick_mfi = xyes; then
  23021. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23022. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23023. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23024. fi
  23025. fi
  23026. }
  23027. CheckPTHREAD()
  23028. {
  23029. case "$host" in
  23030. *-*-emscripten*)
  23031. enable_pthreads_default=no
  23032. ;;
  23033. *)
  23034. enable_pthreads_default=yes
  23035. ;;
  23036. esac
  23037. # Check whether --enable-pthreads was given.
  23038. if test ${enable_pthreads+y}
  23039. then :
  23040. enableval=$enable_pthreads;
  23041. else $as_nop
  23042. enable_pthreads=maybe
  23043. fi
  23044. # Check whether --enable-pthread-sem was given.
  23045. if test ${enable_pthread_sem+y}
  23046. then :
  23047. enableval=$enable_pthread_sem;
  23048. else $as_nop
  23049. enable_pthread_sem=maybe
  23050. fi
  23051. if test x$enable_pthreads = xmaybe; then
  23052. enable_pthreads=$enable_pthreads_default
  23053. fi
  23054. if test x$enable_pthread_sem = xmaybe; then
  23055. enable_pthread_sem=$enable_pthreads
  23056. fi
  23057. case "$host" in
  23058. *-*-android*)
  23059. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23060. pthread_lib=""
  23061. ;;
  23062. *-*-linux*|*-*-uclinux*)
  23063. pthread_cflags="-D_REENTRANT"
  23064. pthread_lib="-lpthread"
  23065. ;;
  23066. *-*-bsdi*)
  23067. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23068. pthread_lib=""
  23069. ;;
  23070. *-*-darwin*)
  23071. pthread_cflags="-D_THREAD_SAFE"
  23072. # causes Carbon.p complaints?
  23073. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23074. ;;
  23075. *-*-freebsd*|*-*-dragonfly*)
  23076. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23077. pthread_lib="-pthread"
  23078. ;;
  23079. *-*-netbsd*)
  23080. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23081. pthread_lib="-lpthread"
  23082. ;;
  23083. *-*-openbsd*)
  23084. pthread_cflags="-D_REENTRANT"
  23085. pthread_lib="-pthread"
  23086. ;;
  23087. *-*-solaris2.9)
  23088. # From Solaris 9+, posix4's preferred name is rt.
  23089. pthread_cflags="-D_REENTRANT"
  23090. pthread_lib="-lpthread -lrt"
  23091. ;;
  23092. *-*-solaris2.10)
  23093. # Solaris 10+ merged pthread into libc.
  23094. pthread_cflags="-D_REENTRANT"
  23095. pthread_lib="-lrt"
  23096. ;;
  23097. *-*-solaris*)
  23098. # Solaris 11+ merged rt into libc.
  23099. pthread_cflags="-D_REENTRANT"
  23100. pthread_lib=""
  23101. ;;
  23102. *-*-sysv5*)
  23103. pthread_cflags="-D_REENTRANT -Kthread"
  23104. pthread_lib=""
  23105. ;;
  23106. *-*-aix*)
  23107. pthread_cflags="-D_REENTRANT -mthreads"
  23108. pthread_lib="-lpthread"
  23109. ;;
  23110. *-*-hpux11*)
  23111. pthread_cflags="-D_REENTRANT"
  23112. pthread_lib="-L/usr/lib -lpthread"
  23113. ;;
  23114. *-*-haiku*)
  23115. pthread_cflags="-D_REENTRANT"
  23116. pthread_lib=""
  23117. ;;
  23118. *-*-nto*)
  23119. pthread_cflags="-D_REENTRANT"
  23120. pthread_lib=""
  23121. ;;
  23122. *-*-emscripten*)
  23123. pthread_cflags="-D_REENTRANT -pthread"
  23124. pthread_lib="-pthread"
  23125. ;;
  23126. *)
  23127. pthread_cflags="-D_REENTRANT"
  23128. pthread_lib="-lpthread"
  23129. ;;
  23130. esac
  23131. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23132. # Save the original compiler flags and libraries
  23133. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23134. # Add the pthread compiler flags and libraries
  23135. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23136. # Check to see if we have pthread support on this system
  23137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23138. printf %s "checking for pthreads... " >&6; }
  23139. use_pthreads=no
  23140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23141. /* end confdefs.h. */
  23142. #include <pthread.h>
  23143. int
  23144. main (void)
  23145. {
  23146. pthread_attr_t type;
  23147. pthread_attr_init(&type);
  23148. ;
  23149. return 0;
  23150. }
  23151. _ACEOF
  23152. if ac_fn_c_try_link "$LINENO"
  23153. then :
  23154. use_pthreads=yes
  23155. fi
  23156. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23157. conftest$ac_exeext conftest.$ac_ext
  23158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23159. printf "%s\n" "$use_pthreads" >&6; }
  23160. # Restore the compiler flags and libraries
  23161. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23162. # Do futher testing if we have pthread support...
  23163. if test x$use_pthreads = xyes; then
  23164. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23165. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23166. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23167. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23168. # Save the original compiler flags and libraries
  23169. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23170. # Add the pthread compiler flags and libraries
  23171. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23172. # Check to see if recursive mutexes are available
  23173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23174. printf %s "checking for recursive mutexes... " >&6; }
  23175. has_recursive_mutexes=no
  23176. if test x$has_recursive_mutexes = xno; then
  23177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23178. /* end confdefs.h. */
  23179. #define _GNU_SOURCE 1
  23180. #include <pthread.h>
  23181. int
  23182. main (void)
  23183. {
  23184. pthread_mutexattr_t attr;
  23185. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23186. ;
  23187. return 0;
  23188. }
  23189. _ACEOF
  23190. if ac_fn_c_try_link "$LINENO"
  23191. then :
  23192. has_recursive_mutexes=yes
  23193. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23194. fi
  23195. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23196. conftest$ac_exeext conftest.$ac_ext
  23197. fi
  23198. if test x$has_recursive_mutexes = xno; then
  23199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23200. /* end confdefs.h. */
  23201. #define _GNU_SOURCE 1
  23202. #include <pthread.h>
  23203. int
  23204. main (void)
  23205. {
  23206. pthread_mutexattr_t attr;
  23207. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23208. ;
  23209. return 0;
  23210. }
  23211. _ACEOF
  23212. if ac_fn_c_try_link "$LINENO"
  23213. then :
  23214. has_recursive_mutexes=yes
  23215. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23216. fi
  23217. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23218. conftest$ac_exeext conftest.$ac_ext
  23219. fi
  23220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23221. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23222. # Check to see if pthread semaphore support is missing
  23223. if test x$enable_pthread_sem = xyes; then
  23224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23225. printf %s "checking for pthread semaphores... " >&6; }
  23226. have_pthread_sem=no
  23227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23228. /* end confdefs.h. */
  23229. #include <pthread.h>
  23230. #include <semaphore.h>
  23231. int
  23232. main (void)
  23233. {
  23234. ;
  23235. return 0;
  23236. }
  23237. _ACEOF
  23238. if ac_fn_c_try_compile "$LINENO"
  23239. then :
  23240. have_pthread_sem=yes
  23241. fi
  23242. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23244. printf "%s\n" "$have_pthread_sem" >&6; }
  23245. fi
  23246. if test x$have_pthread_sem = xyes; then
  23247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23248. printf %s "checking for sem_timedwait... " >&6; }
  23249. have_sem_timedwait=no
  23250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23251. /* end confdefs.h. */
  23252. #include <pthread.h>
  23253. #include <semaphore.h>
  23254. int
  23255. main (void)
  23256. {
  23257. sem_timedwait(NULL, NULL);
  23258. ;
  23259. return 0;
  23260. }
  23261. _ACEOF
  23262. if ac_fn_c_try_link "$LINENO"
  23263. then :
  23264. have_sem_timedwait=yes
  23265. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23266. fi
  23267. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23268. conftest$ac_exeext conftest.$ac_ext
  23269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23270. printf "%s\n" "$have_sem_timedwait" >&6; }
  23271. fi
  23272. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23273. "
  23274. if test "x$ac_cv_header_pthread_np_h" = xyes
  23275. then :
  23276. have_pthread_np_h=yes
  23277. else $as_nop
  23278. have_pthread_np_h=no
  23279. fi
  23280. if test x$have_pthread_np_h = xyes; then
  23281. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23282. fi
  23283. # Check to see if pthread naming is available
  23284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23285. printf %s "checking for pthread_setname_np... " >&6; }
  23286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23287. /* end confdefs.h. */
  23288. /* Override any GCC internal prototype to avoid an error.
  23289. Use char because int might match the return type of a GCC
  23290. builtin and then its argument prototype would still apply. */
  23291. char pthread_setname_np ();
  23292. int
  23293. main (void)
  23294. {
  23295. return pthread_setname_np ();
  23296. ;
  23297. return 0;
  23298. }
  23299. _ACEOF
  23300. if ac_fn_c_try_link "$LINENO"
  23301. then :
  23302. has_pthread_setname_np=yes
  23303. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23304. else $as_nop
  23305. has_pthread_setname_np=no
  23306. fi
  23307. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23308. conftest$ac_exeext conftest.$ac_ext
  23309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23310. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23312. printf %s "checking for pthread_set_name_np... " >&6; }
  23313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23314. /* end confdefs.h. */
  23315. /* Override any GCC internal prototype to avoid an error.
  23316. Use char because int might match the return type of a GCC
  23317. builtin and then its argument prototype would still apply. */
  23318. char pthread_set_name_np ();
  23319. int
  23320. main (void)
  23321. {
  23322. return pthread_set_name_np ();
  23323. ;
  23324. return 0;
  23325. }
  23326. _ACEOF
  23327. if ac_fn_c_try_link "$LINENO"
  23328. then :
  23329. has_pthread_set_name_np=yes
  23330. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23331. else $as_nop
  23332. has_pthread_set_name_np=no
  23333. fi
  23334. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23335. conftest$ac_exeext conftest.$ac_ext
  23336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23337. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23338. # Restore the compiler flags and libraries
  23339. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23340. # Basic thread creation functions
  23341. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23342. # Semaphores
  23343. # We can fake these with mutexes and condition variables if necessary
  23344. if test x$have_pthread_sem = xyes; then
  23345. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23346. else
  23347. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23348. fi
  23349. # Mutexes
  23350. # We can fake these with semaphores if necessary
  23351. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23352. # Condition variables
  23353. # We can fake these with semaphores and mutexes if necessary
  23354. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23355. # Thread local storage
  23356. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23357. have_threads=yes
  23358. fi
  23359. fi
  23360. }
  23361. CheckWINDOWS()
  23362. {
  23363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23364. printf %s "checking Windows compiler... " >&6; }
  23365. have_win32_gcc=no
  23366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23367. /* end confdefs.h. */
  23368. #include <windows.h>
  23369. int
  23370. main (void)
  23371. {
  23372. ;
  23373. return 0;
  23374. }
  23375. _ACEOF
  23376. if ac_fn_c_try_compile "$LINENO"
  23377. then :
  23378. have_win32_gcc=yes
  23379. fi
  23380. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23382. printf "%s\n" "$have_win32_gcc" >&6; }
  23383. if test x$have_win32_gcc != xyes; then
  23384. as_fn_error $? "
  23385. *** Your compiler ($CC) does not produce Windows executables!
  23386. " "$LINENO" 5
  23387. fi
  23388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23389. printf %s "checking Windows CE... " >&6; }
  23390. have_wince=no
  23391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23392. /* end confdefs.h. */
  23393. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23394. #error This is not Windows CE
  23395. #endif
  23396. int
  23397. main (void)
  23398. {
  23399. ;
  23400. return 0;
  23401. }
  23402. _ACEOF
  23403. if ac_fn_c_try_compile "$LINENO"
  23404. then :
  23405. have_wince=yes
  23406. as_fn_error $? "
  23407. *** Sorry, Windows CE is no longer supported.
  23408. " "$LINENO" 5
  23409. fi
  23410. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23412. printf "%s\n" "$have_wince" >&6; }
  23413. # This fixes Windows stack alignment with newer GCC
  23414. CheckStackBoundary
  23415. # headers needed elsewhere
  23416. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23417. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23418. then :
  23419. have_tpcshrd_h=yes
  23420. fi
  23421. if test x$have_tpcshrd_h = xyes; then
  23422. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23423. fi
  23424. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23425. if test "x$ac_cv_header_roapi_h" = xyes
  23426. then :
  23427. have_roapi_h=yes
  23428. fi
  23429. if test x$have_roapi_h = xyes; then
  23430. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23431. fi
  23432. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23433. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23434. then :
  23435. have_shellscalingapi_h=yes
  23436. fi
  23437. if test x$shellscalingapi_h = xyes; then
  23438. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23439. fi
  23440. }
  23441. CheckOS2()
  23442. {
  23443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23444. printf %s "checking OS/2 compiler... " >&6; }
  23445. have_os2_gcc=no
  23446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23447. /* end confdefs.h. */
  23448. #include <os2.h>
  23449. int
  23450. main (void)
  23451. {
  23452. ;
  23453. return 0;
  23454. }
  23455. _ACEOF
  23456. if ac_fn_c_try_compile "$LINENO"
  23457. then :
  23458. have_os2_gcc=yes
  23459. fi
  23460. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23462. printf "%s\n" "$have_os2_gcc" >&6; }
  23463. if test x$have_os2_gcc != xyes; then
  23464. as_fn_error $? "
  23465. *** Your compiler ($CC) does not produce OS/2 executables!
  23466. " "$LINENO" 5
  23467. fi
  23468. }
  23469. CheckDIRECTX()
  23470. {
  23471. # Check whether --enable-directx was given.
  23472. if test ${enable_directx+y}
  23473. then :
  23474. enableval=$enable_directx;
  23475. else $as_nop
  23476. enable_directx=yes
  23477. fi
  23478. if test x$enable_directx = xyes; then
  23479. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23480. if test "x$ac_cv_header_d3d9_h" = xyes
  23481. then :
  23482. have_d3d=yes
  23483. fi
  23484. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23485. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23486. then :
  23487. have_d3d11=yes
  23488. fi
  23489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23490. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23492. /* end confdefs.h. */
  23493. #include <winsdkver.h>
  23494. #include <sdkddkver.h>
  23495. #include <d3d12.h>
  23496. ID3D12Device1 *device;
  23497. #if WDK_NTDDI_VERSION <= 0x0A000008
  23498. asdf
  23499. #endif
  23500. int
  23501. main (void)
  23502. {
  23503. ;
  23504. return 0;
  23505. }
  23506. _ACEOF
  23507. if ac_fn_c_try_compile "$LINENO"
  23508. then :
  23509. have_d3d12=yes
  23510. else $as_nop
  23511. have_d3d12=no
  23512. fi
  23513. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23515. printf "%s\n" "$have_d3d12" >&6; }
  23516. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23517. if test "x$ac_cv_header_ddraw_h" = xyes
  23518. then :
  23519. have_ddraw=yes
  23520. fi
  23521. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23522. if test "x$ac_cv_header_dsound_h" = xyes
  23523. then :
  23524. have_dsound=yes
  23525. fi
  23526. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23527. if test "x$ac_cv_header_dinput_h" = xyes
  23528. then :
  23529. have_dinput=yes
  23530. fi
  23531. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23532. if test "x$ac_cv_header_dxgi_h" = xyes
  23533. then :
  23534. have_dxgi=yes
  23535. fi
  23536. if test x$have_ddraw = xyes; then
  23537. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23538. fi
  23539. if test x$have_dinput = xyes; then
  23540. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23541. fi
  23542. if test x$have_dsound = xyes; then
  23543. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23544. fi
  23545. if test x$have_dxgi = xyes; then
  23546. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23547. fi
  23548. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23549. # FIXME: ...so force it off for now.
  23550. case "$host" in
  23551. *-*-cygwin*)
  23552. have_dinput=false
  23553. ;;
  23554. esac
  23555. fi
  23556. # Check whether --enable-xinput was given.
  23557. if test ${enable_xinput+y}
  23558. then :
  23559. enableval=$enable_xinput;
  23560. else $as_nop
  23561. enable_xinput=yes
  23562. fi
  23563. if test x$enable_xinput = xyes; then
  23564. have_xinput_gamepadex=no
  23565. have_xinput_stateex=no
  23566. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23567. if test "x$ac_cv_header_xinput_h" = xyes
  23568. then :
  23569. have_xinput=yes
  23570. fi
  23571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23572. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23574. /* end confdefs.h. */
  23575. #include <windows.h>
  23576. #include <xinput.h>
  23577. XINPUT_GAMEPAD_EX x1;
  23578. int
  23579. main (void)
  23580. {
  23581. ;
  23582. return 0;
  23583. }
  23584. _ACEOF
  23585. if ac_fn_c_try_compile "$LINENO"
  23586. then :
  23587. have_xinput_gamepadex=yes
  23588. fi
  23589. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23591. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23593. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23595. /* end confdefs.h. */
  23596. #include <windows.h>
  23597. #include <xinput.h>
  23598. XINPUT_STATE_EX s1;
  23599. int
  23600. main (void)
  23601. {
  23602. ;
  23603. return 0;
  23604. }
  23605. _ACEOF
  23606. if ac_fn_c_try_compile "$LINENO"
  23607. then :
  23608. have_xinput_stateex=yes
  23609. fi
  23610. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23612. printf "%s\n" "$have_xinput_stateex" >&6; }
  23613. if test x$have_xinput = xyes; then
  23614. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23615. fi
  23616. if test x$have_xinput_gamepadex = xyes; then
  23617. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23618. fi
  23619. if test x$have_xinput_stateex = xyes; then
  23620. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23621. fi
  23622. fi
  23623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23624. printf %s "checking for windows.gaming.input.h... " >&6; }
  23625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23626. /* end confdefs.h. */
  23627. #define COBJMACROS
  23628. #include <windows.gaming.input.h>
  23629. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23630. int
  23631. main (void)
  23632. {
  23633. ;
  23634. return 0;
  23635. }
  23636. _ACEOF
  23637. if ac_fn_c_try_compile "$LINENO"
  23638. then :
  23639. have_wgi=yes
  23640. else $as_nop
  23641. have_wgi=no
  23642. fi
  23643. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23645. printf "%s\n" "$have_wgi" >&6; }
  23646. if test x$have_wgi = xyes; then
  23647. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23648. fi
  23649. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23650. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23651. then :
  23652. have_wasapi=yes
  23653. fi
  23654. if test x$have_wasapi = xyes; then
  23655. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23656. fi
  23657. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23658. if test "x$ac_cv_header_audioclient_h" = xyes
  23659. then :
  23660. else $as_nop
  23661. have_wasapi=no
  23662. fi
  23663. if test x$have_wasapi = xyes; then
  23664. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23665. fi
  23666. # Check whether --enable-wasapi was given.
  23667. if test ${enable_wasapi+y}
  23668. then :
  23669. enableval=$enable_wasapi;
  23670. else $as_nop
  23671. enable_wasapi=yes
  23672. fi
  23673. }
  23674. CheckDLOPEN()
  23675. {
  23676. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23677. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23678. if test "x$ac_cv_header_dlfcn_h" = xyes
  23679. then :
  23680. have_dlfcn_h=yes
  23681. else $as_nop
  23682. have_dlfcn_h=no
  23683. fi
  23684. have_dlopen=no
  23685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23686. printf %s "checking for dlopen in -lc... " >&6; }
  23687. if test ${ac_cv_lib_c_dlopen+y}
  23688. then :
  23689. printf %s "(cached) " >&6
  23690. else $as_nop
  23691. ac_check_lib_save_LIBS=$LIBS
  23692. LIBS="-lc $LIBS"
  23693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23694. /* end confdefs.h. */
  23695. /* Override any GCC internal prototype to avoid an error.
  23696. Use char because int might match the return type of a GCC
  23697. builtin and then its argument prototype would still apply. */
  23698. char dlopen ();
  23699. int
  23700. main (void)
  23701. {
  23702. return dlopen ();
  23703. ;
  23704. return 0;
  23705. }
  23706. _ACEOF
  23707. if ac_fn_c_try_link "$LINENO"
  23708. then :
  23709. ac_cv_lib_c_dlopen=yes
  23710. else $as_nop
  23711. ac_cv_lib_c_dlopen=no
  23712. fi
  23713. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23714. conftest$ac_exeext conftest.$ac_ext
  23715. LIBS=$ac_check_lib_save_LIBS
  23716. fi
  23717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23718. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23719. if test "x$ac_cv_lib_c_dlopen" = xyes
  23720. then :
  23721. have_dlopen=yes
  23722. else $as_nop
  23723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23724. printf %s "checking for dlopen in -ldl... " >&6; }
  23725. if test ${ac_cv_lib_dl_dlopen+y}
  23726. then :
  23727. printf %s "(cached) " >&6
  23728. else $as_nop
  23729. ac_check_lib_save_LIBS=$LIBS
  23730. LIBS="-ldl $LIBS"
  23731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23732. /* end confdefs.h. */
  23733. /* Override any GCC internal prototype to avoid an error.
  23734. Use char because int might match the return type of a GCC
  23735. builtin and then its argument prototype would still apply. */
  23736. char dlopen ();
  23737. int
  23738. main (void)
  23739. {
  23740. return dlopen ();
  23741. ;
  23742. return 0;
  23743. }
  23744. _ACEOF
  23745. if ac_fn_c_try_link "$LINENO"
  23746. then :
  23747. ac_cv_lib_dl_dlopen=yes
  23748. else $as_nop
  23749. ac_cv_lib_dl_dlopen=no
  23750. fi
  23751. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23752. conftest$ac_exeext conftest.$ac_ext
  23753. LIBS=$ac_check_lib_save_LIBS
  23754. fi
  23755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23756. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23757. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23758. then :
  23759. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23760. fi
  23761. fi
  23762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23763. printf %s "checking for dlopen... " >&6; }
  23764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23765. printf "%s\n" "$have_dlopen" >&6; }
  23766. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23767. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23768. if test x$enable_loadso = xyes; then
  23769. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23770. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23771. have_loadso=yes
  23772. fi
  23773. fi
  23774. }
  23775. CheckO_CLOEXEC()
  23776. {
  23777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23778. printf %s "checking for O_CLOEXEC... " >&6; }
  23779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23780. /* end confdefs.h. */
  23781. #include <fcntl.h>
  23782. int flag = O_CLOEXEC;
  23783. int
  23784. main (void)
  23785. {
  23786. ;
  23787. return 0;
  23788. }
  23789. _ACEOF
  23790. if ac_fn_c_try_compile "$LINENO"
  23791. then :
  23792. have_o_cloexec=yes
  23793. else $as_nop
  23794. have_o_cloexec=no
  23795. fi
  23796. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  23798. printf "%s\n" "$have_o_cloexec" >&6; }
  23799. if test $have_o_cloexec = yes; then
  23800. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23801. fi
  23802. }
  23803. CheckUSBHID()
  23804. {
  23805. case "$host" in
  23806. *-*-*bsd*|*-*-dragonfly*)
  23807. if test x$enable_joystick = xyes; then
  23808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23809. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23810. if test ${ac_cv_lib_usbhid_hid_init+y}
  23811. then :
  23812. printf %s "(cached) " >&6
  23813. else $as_nop
  23814. ac_check_lib_save_LIBS=$LIBS
  23815. LIBS="-lusbhid $LIBS"
  23816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23817. /* end confdefs.h. */
  23818. /* Override any GCC internal prototype to avoid an error.
  23819. Use char because int might match the return type of a GCC
  23820. builtin and then its argument prototype would still apply. */
  23821. char hid_init ();
  23822. int
  23823. main (void)
  23824. {
  23825. return hid_init ();
  23826. ;
  23827. return 0;
  23828. }
  23829. _ACEOF
  23830. if ac_fn_c_try_link "$LINENO"
  23831. then :
  23832. ac_cv_lib_usbhid_hid_init=yes
  23833. else $as_nop
  23834. ac_cv_lib_usbhid_hid_init=no
  23835. fi
  23836. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23837. conftest$ac_exeext conftest.$ac_ext
  23838. LIBS=$ac_check_lib_save_LIBS
  23839. fi
  23840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23841. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23842. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23843. then :
  23844. have_libusbhid=yes
  23845. fi
  23846. if test x$have_libusbhid = xyes; then
  23847. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23848. if test "x$ac_cv_header_usbhid_h" = xyes
  23849. then :
  23850. USB_CFLAGS="-DHAVE_USBHID_H"
  23851. fi
  23852. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23853. if test "x$ac_cv_header_libusbhid_h" = xyes
  23854. then :
  23855. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23856. fi
  23857. USB_LIBS="$USB_LIBS -lusbhid"
  23858. else
  23859. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23860. if test "x$ac_cv_header_usb_h" = xyes
  23861. then :
  23862. USB_CFLAGS="-DHAVE_USB_H"
  23863. fi
  23864. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23865. if test "x$ac_cv_header_libusb_h" = xyes
  23866. then :
  23867. USB_CFLAGS="-DHAVE_LIBUSB_H"
  23868. fi
  23869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  23870. printf %s "checking for hid_init in -lusb... " >&6; }
  23871. if test ${ac_cv_lib_usb_hid_init+y}
  23872. then :
  23873. printf %s "(cached) " >&6
  23874. else $as_nop
  23875. ac_check_lib_save_LIBS=$LIBS
  23876. LIBS="-lusb $LIBS"
  23877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23878. /* end confdefs.h. */
  23879. /* Override any GCC internal prototype to avoid an error.
  23880. Use char because int might match the return type of a GCC
  23881. builtin and then its argument prototype would still apply. */
  23882. char hid_init ();
  23883. int
  23884. main (void)
  23885. {
  23886. return hid_init ();
  23887. ;
  23888. return 0;
  23889. }
  23890. _ACEOF
  23891. if ac_fn_c_try_link "$LINENO"
  23892. then :
  23893. ac_cv_lib_usb_hid_init=yes
  23894. else $as_nop
  23895. ac_cv_lib_usb_hid_init=no
  23896. fi
  23897. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23898. conftest$ac_exeext conftest.$ac_ext
  23899. LIBS=$ac_check_lib_save_LIBS
  23900. fi
  23901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23902. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23903. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23904. then :
  23905. USB_LIBS="$USB_LIBS -lusb"
  23906. fi
  23907. fi
  23908. save_CFLAGS="$CFLAGS"
  23909. CFLAGS="$CFLAGS $USB_CFLAGS"
  23910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23911. printf %s "checking for usbhid... " >&6; }
  23912. have_usbhid=no
  23913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23914. /* end confdefs.h. */
  23915. #include <sys/types.h>
  23916. #if defined(HAVE_USB_H)
  23917. #include <usb.h>
  23918. #endif
  23919. #ifdef __DragonFly__
  23920. # include <bus/u4b/usb.h>
  23921. # include <bus/u4b/usbhid.h>
  23922. #else
  23923. # include <dev/usb/usb.h>
  23924. # include <dev/usb/usbhid.h>
  23925. #endif
  23926. #if defined(HAVE_USBHID_H)
  23927. #include <usbhid.h>
  23928. #elif defined(HAVE_LIBUSB_H)
  23929. #include <libusb.h>
  23930. #elif defined(HAVE_LIBUSBHID_H)
  23931. #include <libusbhid.h>
  23932. #endif
  23933. int
  23934. main (void)
  23935. {
  23936. struct report_desc *repdesc;
  23937. struct usb_ctl_report *repbuf;
  23938. hid_kind_t hidkind;
  23939. ;
  23940. return 0;
  23941. }
  23942. _ACEOF
  23943. if ac_fn_c_try_compile "$LINENO"
  23944. then :
  23945. have_usbhid=yes
  23946. fi
  23947. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  23949. printf "%s\n" "$have_usbhid" >&6; }
  23950. if test x$have_usbhid = xyes; then
  23951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  23952. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  23953. have_usbhid_ucr_data=no
  23954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23955. /* end confdefs.h. */
  23956. #include <sys/types.h>
  23957. #if defined(HAVE_USB_H)
  23958. #include <usb.h>
  23959. #endif
  23960. #ifdef __DragonFly__
  23961. # include <bus/u4b/usb.h>
  23962. # include <bus/u4b/usbhid.h>
  23963. #else
  23964. # include <dev/usb/usb.h>
  23965. # include <dev/usb/usbhid.h>
  23966. #endif
  23967. #if defined(HAVE_USBHID_H)
  23968. #include <usbhid.h>
  23969. #elif defined(HAVE_LIBUSB_H)
  23970. #include <libusb.h>
  23971. #elif defined(HAVE_LIBUSBHID_H)
  23972. #include <libusbhid.h>
  23973. #endif
  23974. int
  23975. main (void)
  23976. {
  23977. struct usb_ctl_report buf;
  23978. if (buf.ucr_data) { }
  23979. ;
  23980. return 0;
  23981. }
  23982. _ACEOF
  23983. if ac_fn_c_try_compile "$LINENO"
  23984. then :
  23985. have_usbhid_ucr_data=yes
  23986. fi
  23987. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23988. if test x$have_usbhid_ucr_data = xyes; then
  23989. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  23990. fi
  23991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  23992. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  23993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  23994. printf %s "checking for new usbhid API... " >&6; }
  23995. have_usbhid_new=no
  23996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23997. /* end confdefs.h. */
  23998. #include <sys/types.h>
  23999. #if defined(HAVE_USB_H)
  24000. #include <usb.h>
  24001. #endif
  24002. #ifdef __DragonFly__
  24003. #include <bus/u4b/usb.h>
  24004. #include <bus/u4b/usbhid.h>
  24005. #else
  24006. #include <dev/usb/usb.h>
  24007. #include <dev/usb/usbhid.h>
  24008. #endif
  24009. #if defined(HAVE_USBHID_H)
  24010. #include <usbhid.h>
  24011. #elif defined(HAVE_LIBUSB_H)
  24012. #include <libusb.h>
  24013. #elif defined(HAVE_LIBUSBHID_H)
  24014. #include <libusbhid.h>
  24015. #endif
  24016. int
  24017. main (void)
  24018. {
  24019. report_desc_t d;
  24020. hid_start_parse(d, 1, 1);
  24021. ;
  24022. return 0;
  24023. }
  24024. _ACEOF
  24025. if ac_fn_c_try_compile "$LINENO"
  24026. then :
  24027. have_usbhid_new=yes
  24028. fi
  24029. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24030. if test x$have_usbhid_new = xyes; then
  24031. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24032. fi
  24033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24034. printf "%s\n" "$have_usbhid_new" >&6; }
  24035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24036. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24037. have_machine_joystick=no
  24038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24039. /* end confdefs.h. */
  24040. #include <machine/joystick.h>
  24041. int
  24042. main (void)
  24043. {
  24044. struct joystick t;
  24045. ;
  24046. return 0;
  24047. }
  24048. _ACEOF
  24049. if ac_fn_c_try_compile "$LINENO"
  24050. then :
  24051. have_machine_joystick=yes
  24052. fi
  24053. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24054. if test x$have_machine_joystick = xyes; then
  24055. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24056. fi
  24057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24058. printf "%s\n" "$have_machine_joystick" >&6; }
  24059. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24060. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24061. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24062. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24063. have_joystick=yes
  24064. fi
  24065. CFLAGS="$save_CFLAGS"
  24066. fi
  24067. ;;
  24068. esac
  24069. }
  24070. CheckHIDAPI()
  24071. {
  24072. # Check whether --enable-hidapi-joystick was given.
  24073. if test ${enable_hidapi_joystick+y}
  24074. then :
  24075. enableval=$enable_hidapi_joystick;
  24076. else $as_nop
  24077. enable_hidapi_joystick=yes
  24078. fi
  24079. # Check whether --enable-hidapi-libusb was given.
  24080. if test ${enable_hidapi_libusb+y}
  24081. then :
  24082. enableval=$enable_hidapi_libusb;
  24083. else $as_nop
  24084. enable_hidapi_libusb=maybe
  24085. fi
  24086. if test x$enable_hidapi = xyes; then
  24087. case "$host" in
  24088. # libusb does not support iOS
  24089. *-ios-* )
  24090. enable_hidapi_libusb=no
  24091. ;;
  24092. # On the other hand, *BSD specifically uses libusb only
  24093. *-*-*bsd* )
  24094. enable_hidapi_libusb=yes
  24095. require_hidapi_libusb=yes
  24096. ;;
  24097. *-*-os2* )
  24098. enable_hidapi_libusb=yes
  24099. ;;
  24100. esac
  24101. hidapi_support=yes
  24102. if test x$enable_hidapi_libusb = xyes; then
  24103. pkg_failed=no
  24104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24105. printf %s "checking for libusb-1.0... " >&6; }
  24106. if test -n "$LIBUSB_CFLAGS"; then
  24107. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24108. elif test -n "$PKG_CONFIG"; then
  24109. if test -n "$PKG_CONFIG" && \
  24110. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24111. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24112. ac_status=$?
  24113. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24114. test $ac_status = 0; }; then
  24115. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24116. test "x$?" != "x0" && pkg_failed=yes
  24117. else
  24118. pkg_failed=yes
  24119. fi
  24120. else
  24121. pkg_failed=untried
  24122. fi
  24123. if test -n "$LIBUSB_LIBS"; then
  24124. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24125. elif test -n "$PKG_CONFIG"; then
  24126. if test -n "$PKG_CONFIG" && \
  24127. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24128. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24129. ac_status=$?
  24130. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24131. test $ac_status = 0; }; then
  24132. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24133. test "x$?" != "x0" && pkg_failed=yes
  24134. else
  24135. pkg_failed=yes
  24136. fi
  24137. else
  24138. pkg_failed=untried
  24139. fi
  24140. if test $pkg_failed = yes; then
  24141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24142. printf "%s\n" "no" >&6; }
  24143. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24144. _pkg_short_errors_supported=yes
  24145. else
  24146. _pkg_short_errors_supported=no
  24147. fi
  24148. if test $_pkg_short_errors_supported = yes; then
  24149. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24150. else
  24151. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24152. fi
  24153. # Put the nasty error message in config.log where it belongs
  24154. echo "$LIBUSB_PKG_ERRORS" >&5
  24155. have_libusb=no
  24156. elif test $pkg_failed = untried; then
  24157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24158. printf "%s\n" "no" >&6; }
  24159. have_libusb=no
  24160. else
  24161. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24162. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24164. printf "%s\n" "yes" >&6; }
  24165. have_libusb=yes
  24166. fi
  24167. save_CPPFLAGS="$CPPFLAGS"
  24168. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24169. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24170. if test "x$ac_cv_header_libusb_h" = xyes
  24171. then :
  24172. have_libusb_h=yes
  24173. else $as_nop
  24174. have_libusb_h=no
  24175. fi
  24176. CPPFLAGS="$save_CPPFLAGS"
  24177. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24178. hidapi_support=no
  24179. fi
  24180. fi
  24181. if test x$hidapi_support = xyes; then
  24182. if test x$have_libusb_h = xyes; then
  24183. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24184. if test x$require_hidapi_libusb = xyes; then
  24185. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24186. else
  24187. if test x$have_loadso != xyes; then
  24188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24189. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24190. fi
  24191. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24192. libusb_lib=""
  24193. case "$host" in
  24194. *-*-darwin* )
  24195. libusb_lib="libusb-1.0.0.dylib"
  24196. ;;
  24197. *-*-cygwin* | *-*-mingw* )
  24198. libusb_lib="libusb-1.0.dll"
  24199. ;;
  24200. *-*-os2* )
  24201. libusb_lib="usb100.dll"
  24202. ;;
  24203. esac
  24204. if test x$libusb_lib = x; then
  24205. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24206. fi
  24207. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24208. fi
  24209. fi
  24210. fi
  24211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24212. printf %s "checking for hidapi joystick support... " >&6; }
  24213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24214. printf "%s\n" "$hidapi_support" >&6; }
  24215. fi
  24216. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24217. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24218. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24219. fi
  24220. }
  24221. CheckClockGettime()
  24222. {
  24223. # Check whether --enable-clock_gettime was given.
  24224. if test ${enable_clock_gettime+y}
  24225. then :
  24226. enableval=$enable_clock_gettime;
  24227. else $as_nop
  24228. enable_clock_gettime=yes
  24229. fi
  24230. if test x$enable_clock_gettime = xyes; then
  24231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24232. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24233. if test ${ac_cv_lib_rt_clock_gettime+y}
  24234. then :
  24235. printf %s "(cached) " >&6
  24236. else $as_nop
  24237. ac_check_lib_save_LIBS=$LIBS
  24238. LIBS="-lrt $LIBS"
  24239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24240. /* end confdefs.h. */
  24241. /* Override any GCC internal prototype to avoid an error.
  24242. Use char because int might match the return type of a GCC
  24243. builtin and then its argument prototype would still apply. */
  24244. char clock_gettime ();
  24245. int
  24246. main (void)
  24247. {
  24248. return clock_gettime ();
  24249. ;
  24250. return 0;
  24251. }
  24252. _ACEOF
  24253. if ac_fn_c_try_link "$LINENO"
  24254. then :
  24255. ac_cv_lib_rt_clock_gettime=yes
  24256. else $as_nop
  24257. ac_cv_lib_rt_clock_gettime=no
  24258. fi
  24259. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24260. conftest$ac_exeext conftest.$ac_ext
  24261. LIBS=$ac_check_lib_save_LIBS
  24262. fi
  24263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24264. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24265. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24266. then :
  24267. have_clock_gettime=yes
  24268. fi
  24269. if test x$have_clock_gettime = xyes; then
  24270. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24271. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24272. else
  24273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24274. printf %s "checking for clock_gettime in -lc... " >&6; }
  24275. if test ${ac_cv_lib_c_clock_gettime+y}
  24276. then :
  24277. printf %s "(cached) " >&6
  24278. else $as_nop
  24279. ac_check_lib_save_LIBS=$LIBS
  24280. LIBS="-lc $LIBS"
  24281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24282. /* end confdefs.h. */
  24283. /* Override any GCC internal prototype to avoid an error.
  24284. Use char because int might match the return type of a GCC
  24285. builtin and then its argument prototype would still apply. */
  24286. char clock_gettime ();
  24287. int
  24288. main (void)
  24289. {
  24290. return clock_gettime ();
  24291. ;
  24292. return 0;
  24293. }
  24294. _ACEOF
  24295. if ac_fn_c_try_link "$LINENO"
  24296. then :
  24297. ac_cv_lib_c_clock_gettime=yes
  24298. else $as_nop
  24299. ac_cv_lib_c_clock_gettime=no
  24300. fi
  24301. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24302. conftest$ac_exeext conftest.$ac_ext
  24303. LIBS=$ac_check_lib_save_LIBS
  24304. fi
  24305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24306. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24307. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24308. then :
  24309. have_clock_gettime=yes
  24310. fi
  24311. if test x$have_clock_gettime = xyes; then
  24312. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24313. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  24314. fi
  24315. fi
  24316. fi
  24317. }
  24318. CheckLinuxVersion()
  24319. {
  24320. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24321. if test "x$ac_cv_header_linux_version_h" = xyes
  24322. then :
  24323. have_linux_version_h=yes
  24324. fi
  24325. if test x$have_linux_version_h = xyes; then
  24326. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24327. fi
  24328. }
  24329. CheckRPATH()
  24330. {
  24331. # Check whether --enable-rpath was given.
  24332. if test ${enable_rpath+y}
  24333. then :
  24334. enableval=$enable_rpath;
  24335. else $as_nop
  24336. enable_rpath=yes
  24337. fi
  24338. }
  24339. CheckEventSignals()
  24340. {
  24341. # Check whether --enable-backgrounding-signal was given.
  24342. if test ${enable_backgrounding_signal+y}
  24343. then :
  24344. enableval=$enable_backgrounding_signal;
  24345. else $as_nop
  24346. enable_backgrounding_signal=no
  24347. fi
  24348. if test x$enable_backgrounding_signal != xno; then
  24349. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24350. fi
  24351. # Check whether --enable-foregrounding-signal was given.
  24352. if test ${enable_foregrounding_signal+y}
  24353. then :
  24354. enableval=$enable_foregrounding_signal;
  24355. else $as_nop
  24356. enable_foregrounding_signal=no
  24357. fi
  24358. if test x$enable_foregrounding_signal != xno; then
  24359. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24360. fi
  24361. }
  24362. CheckVirtualJoystick()
  24363. {
  24364. # Check whether --enable-joystick-virtual was given.
  24365. if test ${enable_joystick_virtual+y}
  24366. then :
  24367. enableval=$enable_joystick_virtual;
  24368. else $as_nop
  24369. enable_joystick_virtual=yes
  24370. fi
  24371. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24372. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24373. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24374. have_joystick_virtual=yes
  24375. fi
  24376. }
  24377. CheckWarnAll
  24378. CheckNoStrictAliasing
  24379. CheckEventSignals
  24380. have_locale=no
  24381. case "$host" in
  24382. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24383. case "$host" in
  24384. *-*-android*)
  24385. # Android
  24386. ARCH=android
  24387. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24388. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24389. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24390. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24391. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24392. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24393. if test x$enable_video = xyes; then
  24394. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24395. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24396. SUMMARY_video="${SUMMARY_video} android"
  24397. have_video=yes
  24398. fi
  24399. ;;
  24400. *-*-linux*) ARCH=linux ;;
  24401. *-*-uclinux*) ARCH=linux ;;
  24402. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24403. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24404. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24405. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24406. *-*-bsdi*) ARCH=bsdi ;;
  24407. *-*-freebsd*) ARCH=freebsd ;;
  24408. *-*-dragonfly*) ARCH=freebsd ;;
  24409. *-*-netbsd*) ARCH=netbsd ;;
  24410. *-*-openbsd*) ARCH=openbsd ;;
  24411. *-*-sysv5*) ARCH=sysv5 ;;
  24412. *-*-solaris*) ARCH=solaris ;;
  24413. *-*-hpux*) ARCH=hpux ;;
  24414. *-*-aix*) ARCH=aix ;;
  24415. *-*-minix*) ARCH=minix ;;
  24416. *-*-nto*) ARCH=nto
  24417. CheckQNXVideo
  24418. ;;
  24419. esac
  24420. CheckVisibilityHidden
  24421. CheckDeclarationAfterStatement
  24422. CheckDummyVideo
  24423. CheckOffscreenVideo
  24424. CheckDiskAudio
  24425. CheckDummyAudio
  24426. CheckDLOPEN
  24427. CheckARM
  24428. CheckNEON
  24429. CheckO_CLOEXEC
  24430. CheckOSS
  24431. CheckALSA
  24432. CheckPipewire
  24433. CheckPulseAudio
  24434. CheckJACK
  24435. CheckARTSC
  24436. CheckESD
  24437. CheckNAS
  24438. CheckSNDIO
  24439. CheckFusionSound
  24440. CheckLibSampleRate
  24441. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24442. CheckRPI
  24443. CheckX11
  24444. CheckDirectFB
  24445. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24446. CheckEGL
  24447. CheckKMSDRM
  24448. CheckGLX
  24449. CheckOpenGL
  24450. CheckOpenGLES
  24451. CheckVulkan
  24452. CheckWayland
  24453. CheckInputEvents
  24454. CheckLibUDev
  24455. CheckDBus
  24456. CheckIME
  24457. CheckInotify
  24458. CheckIBus
  24459. CheckFcitx
  24460. case $ARCH in
  24461. linux)
  24462. CheckInputKD
  24463. ;;
  24464. freebsd)
  24465. CheckInputKBIO
  24466. ;;
  24467. openbsd|netbsd)
  24468. CheckInputWSCONS
  24469. ;;
  24470. esac
  24471. CheckUSBHID
  24472. CheckHIDAPI
  24473. CheckPTHREAD
  24474. CheckClockGettime
  24475. CheckLinuxVersion
  24476. CheckRPATH
  24477. CheckVivanteVideo
  24478. # Set up files for the misc library
  24479. if test x$enable_misc = xyes; then
  24480. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24481. have_misc=yes
  24482. fi
  24483. # Set up files for the locale library
  24484. if test x$enable_locale = xyes; then
  24485. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24486. have_locale=yes
  24487. fi
  24488. # Set up files for the audio library
  24489. if test x$enable_audio = xyes; then
  24490. case $ARCH in
  24491. sysv5|solaris|hpux)
  24492. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24493. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24494. SUMMARY_audio="${SUMMARY_audio} sun"
  24495. have_audio=yes
  24496. ;;
  24497. netbsd) # Don't use this on OpenBSD, it's busted.
  24498. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24499. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24500. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24501. have_audio=yes
  24502. ;;
  24503. aix)
  24504. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24505. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24506. SUMMARY_audio="${SUMMARY_audio} paudio"
  24507. have_audio=yes
  24508. ;;
  24509. android)
  24510. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24511. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24512. SUMMARY_audio="${SUMMARY_audio} android"
  24513. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24514. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24515. SUMMARY_audio="${SUMMARY_audio} openslES"
  24516. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24517. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24518. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24519. have_audio=yes
  24520. ;;
  24521. nto)
  24522. CheckQNXAudio
  24523. ;;
  24524. esac
  24525. fi
  24526. # Set up files for the joystick library
  24527. if test x$enable_joystick = xyes; then
  24528. case $ARCH in
  24529. linux)
  24530. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24531. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24532. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24533. have_joystick=yes
  24534. ;;
  24535. freebsd)
  24536. if test x$use_input_events = xyes; then
  24537. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24538. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24539. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24540. have_joystick=yes
  24541. fi
  24542. ;;
  24543. android)
  24544. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24545. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24546. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24547. have_joystick=yes
  24548. ;;
  24549. esac
  24550. fi
  24551. # Set up files for the haptic library
  24552. if test x$enable_haptic = xyes; then
  24553. case $ARCH in
  24554. linux|freebsd)
  24555. if test x$use_input_events = xyes; then
  24556. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24557. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24558. have_haptic=yes
  24559. fi
  24560. ;;
  24561. android)
  24562. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24563. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24564. have_haptic=yes
  24565. ;;
  24566. esac
  24567. fi
  24568. # Set up files for the sensor library
  24569. if test x$enable_sensor = xyes; then
  24570. case $ARCH in
  24571. android)
  24572. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24573. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24574. have_sensor=yes
  24575. ;;
  24576. esac
  24577. fi
  24578. # Set up files for the power library
  24579. if test x$enable_power = xyes; then
  24580. case $ARCH in
  24581. linux)
  24582. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24583. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24584. have_power=yes
  24585. ;;
  24586. android)
  24587. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24588. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24589. have_power=yes
  24590. ;;
  24591. esac
  24592. fi
  24593. # Set up files for the filesystem library
  24594. if test x$enable_filesystem = xyes; then
  24595. case $ARCH in
  24596. android)
  24597. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24598. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24599. have_filesystem=yes
  24600. ;;
  24601. *)
  24602. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24603. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24604. have_filesystem=yes
  24605. ;;
  24606. esac
  24607. fi
  24608. # Set up files for the timer library
  24609. if test x$enable_timers = xyes; then
  24610. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24611. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24612. have_timers=yes
  24613. fi
  24614. # Set up files for udev hotplugging support
  24615. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24616. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24617. fi
  24618. # Set up files for evdev input
  24619. if test x$use_input_events = xyes; then
  24620. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24621. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24622. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24623. fi
  24624. # Set up files for wscons input
  24625. if test x$use_input_wscons = xyes; then
  24626. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24627. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24628. fi
  24629. # Set up other core UNIX files
  24630. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24631. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24632. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24633. ;;
  24634. *-*-cygwin* | *-*-mingw*)
  24635. ARCH=win32
  24636. if test "$build" != "$host"; then # cross-compiling
  24637. # Default cross-compile location
  24638. ac_default_prefix=/usr/local/cross-tools/$host
  24639. else
  24640. # Look for the location of the tools and install there
  24641. if test "$BUILD_PREFIX" != ""; then
  24642. ac_default_prefix=$BUILD_PREFIX
  24643. fi
  24644. fi
  24645. if test x$enable_loadso = xyes; then
  24646. have_loadso=yes
  24647. fi
  24648. CheckDeclarationAfterStatement
  24649. CheckDummyVideo
  24650. CheckOffscreenVideo
  24651. CheckDiskAudio
  24652. CheckDummyAudio
  24653. CheckWINDOWS
  24654. CheckWINDOWSGL
  24655. CheckWINDOWSGLES
  24656. CheckVulkan
  24657. CheckDIRECTX
  24658. CheckHIDAPI
  24659. # Set up the core platform files
  24660. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24661. # Set up files for the misc library
  24662. if test x$enable_misc = xyes; then
  24663. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24664. have_misc=yes
  24665. fi
  24666. # Use the Windows locale APIs.
  24667. if test x$enable_locale = xyes; then
  24668. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24669. have_locale=yes
  24670. fi
  24671. # Set up files for the video library
  24672. if test x$enable_video = xyes; then
  24673. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24674. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24675. have_video=yes
  24676. # Check whether --enable-render-d3d was given.
  24677. if test ${enable_render_d3d+y}
  24678. then :
  24679. enableval=$enable_render_d3d;
  24680. else $as_nop
  24681. enable_render_d3d=yes
  24682. fi
  24683. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24684. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24685. SUMMARY_video="${SUMMARY_video} d3d9"
  24686. fi
  24687. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24688. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24689. SUMMARY_video="${SUMMARY_video} d3d11"
  24690. fi
  24691. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24692. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24693. SUMMARY_video="${SUMMARY_video} d3d12"
  24694. fi
  24695. fi
  24696. # Set up files for the audio library
  24697. if test x$enable_audio = xyes; then
  24698. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24699. SUMMARY_audio="${SUMMARY_audio} winmm"
  24700. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24701. if test x$have_dsound = xyes; then
  24702. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24703. SUMMARY_audio="${SUMMARY_audio} directsound"
  24704. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24705. fi
  24706. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24707. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24708. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24709. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24710. fi
  24711. have_audio=yes
  24712. fi
  24713. # Set up files for the joystick library
  24714. if test x$enable_joystick = xyes; then
  24715. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24716. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24717. if test x$have_xinput = xyes; then
  24718. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24719. fi
  24720. if test x$have_wgi = xyes; then
  24721. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24722. fi
  24723. if test x$have_dinput = xyes; then
  24724. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24725. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24726. fi
  24727. fi
  24728. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24729. have_joystick=yes
  24730. fi
  24731. if test x$enable_haptic = xyes; then
  24732. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24733. if test x$have_xinput = xyes; then
  24734. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24735. fi
  24736. if test x$have_dinput = xyes; then
  24737. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24738. fi
  24739. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24740. have_haptic=yes
  24741. fi
  24742. fi
  24743. # Set up files for the sensor library
  24744. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24745. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24746. then :
  24747. have_winsensors=yes
  24748. else $as_nop
  24749. have_winsensors=no
  24750. fi
  24751. if test x$have_winsensors = xyes; then
  24752. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24753. fi
  24754. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24755. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24756. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24757. have_sensor=yes
  24758. fi
  24759. # Set up files for the power library
  24760. if test x$enable_power = xyes; then
  24761. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24762. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24763. have_power=yes
  24764. fi
  24765. # Set up files for the filesystem library
  24766. if test x$enable_filesystem = xyes; then
  24767. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24768. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24769. have_filesystem=yes
  24770. fi
  24771. # Set up files for the thread library
  24772. if test x$enable_threads = xyes; then
  24773. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  24774. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  24775. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  24776. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  24777. have_threads=yes
  24778. fi
  24779. # Set up files for the timer library
  24780. if test x$enable_timers = xyes; then
  24781. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  24782. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  24783. have_timers=yes
  24784. fi
  24785. # Set up files for the shared object loading library
  24786. if test x$enable_loadso = xyes; then
  24787. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24788. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24789. fi
  24790. # Set up the system libraries we need
  24791. if test -f /lib/w32api/libuuid.a; then
  24792. LIBUUID=/lib/w32api/libuuid.a
  24793. else
  24794. LIBUUID=-luuid
  24795. fi
  24796. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24797. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24798. # The Windows platform requires special setup
  24799. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24800. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24801. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24802. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  24803. # Check to see if this is a mingw or cygwin build
  24804. have_mingw32=
  24805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24806. printf %s "checking for main in -lmingw32... " >&6; }
  24807. if test ${ac_cv_lib_mingw32_main+y}
  24808. then :
  24809. printf %s "(cached) " >&6
  24810. else $as_nop
  24811. ac_check_lib_save_LIBS=$LIBS
  24812. LIBS="-lmingw32 $LIBS"
  24813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24814. /* end confdefs.h. */
  24815. int
  24816. main (void)
  24817. {
  24818. return main ();
  24819. ;
  24820. return 0;
  24821. }
  24822. _ACEOF
  24823. if ac_fn_c_try_link "$LINENO"
  24824. then :
  24825. ac_cv_lib_mingw32_main=yes
  24826. else $as_nop
  24827. ac_cv_lib_mingw32_main=no
  24828. fi
  24829. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24830. conftest$ac_exeext conftest.$ac_ext
  24831. LIBS=$ac_check_lib_save_LIBS
  24832. fi
  24833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24834. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24835. if test "x$ac_cv_lib_mingw32_main" = xyes
  24836. then :
  24837. have_mingw32=yes
  24838. fi
  24839. if test x$have_mingw32 = xyes; then
  24840. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24841. else
  24842. SDL_LIBS="-lcygwin $SDL_LIBS"
  24843. fi
  24844. ;;
  24845. *-*-beos*)
  24846. as_fn_error $? "
  24847. *** BeOS support has been removed as of SDL 2.0.2.
  24848. " "$LINENO" 5
  24849. ;;
  24850. *-*-haiku*)
  24851. ARCH=haiku
  24852. ac_default_prefix=/boot/system
  24853. CheckDummyVideo
  24854. CheckOffscreenVideo
  24855. CheckDiskAudio
  24856. CheckDummyAudio
  24857. CheckDLOPEN
  24858. CheckO_CLOEXEC
  24859. CheckHaikuVideo
  24860. CheckHaikuGL
  24861. CheckPTHREAD
  24862. # Set up files for the audio library
  24863. if test x$enable_audio = xyes; then
  24864. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  24865. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  24866. SUMMARY_audio="${SUMMARY_audio} haiku"
  24867. have_audio=yes
  24868. fi
  24869. # Set up files for the joystick library
  24870. if test x$enable_joystick = xyes; then
  24871. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  24872. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  24873. have_joystick=yes
  24874. fi
  24875. # Set up files for the timer library
  24876. if test x$enable_timers = xyes; then
  24877. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  24878. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  24879. have_timers=yes
  24880. fi
  24881. # Set up files for the system power library
  24882. if test x$enable_power = xyes; then
  24883. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  24884. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  24885. have_power=yes
  24886. fi
  24887. # Set up files for the system filesystem library
  24888. if test x$enable_filesystem = xyes; then
  24889. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  24890. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  24891. have_filesystem=yes
  24892. fi
  24893. # Set up files for the misc library
  24894. if test x$enable_misc = xyes; then
  24895. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24896. have_misc=yes
  24897. fi
  24898. # Set up files for the locale library
  24899. if test x$enable_locale = xyes; then
  24900. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24901. have_locale=yes
  24902. fi
  24903. # The Haiku platform requires special setup.
  24904. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24905. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24906. ;;
  24907. *-ios-*)
  24908. ARCH=ios
  24909. CheckVisibilityHidden
  24910. CheckDeclarationAfterStatement
  24911. CheckDummyVideo
  24912. CheckOffscreenVideo
  24913. CheckDiskAudio
  24914. CheckDummyAudio
  24915. CheckDLOPEN
  24916. CheckO_CLOEXEC
  24917. CheckMETAL
  24918. CheckVulkan
  24919. CheckPTHREAD
  24920. # Set up files for the misc library
  24921. if test x$enable_misc = xyes; then
  24922. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  24923. have_misc=yes
  24924. fi
  24925. # Set up files for the locale library
  24926. if test x$enable_locale = xyes; then
  24927. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24928. have_locale=yes
  24929. fi
  24930. # Set up files for the audio library
  24931. if test x$enable_audio = xyes; then
  24932. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24933. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24934. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24935. have_audio=yes
  24936. fi
  24937. # Set up files for the joystick library
  24938. if test x$enable_joystick = xyes; then
  24939. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  24940. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24941. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24942. have_joystick=yes
  24943. else
  24944. # Need this code for accelerometer as joystick support
  24945. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24946. fi
  24947. # Set up files for the haptic library
  24948. #if test x$enable_haptic = xyes; then
  24949. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24950. # have_haptic=yes
  24951. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24952. #fi
  24953. # Set up files for the sensor library
  24954. if test x$enable_sensor = xyes; then
  24955. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  24956. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  24957. have_sensor=yes
  24958. fi
  24959. # Set up files for the power library
  24960. if test x$enable_power = xyes; then
  24961. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  24962. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  24963. have_power=yes
  24964. fi
  24965. # Set up files for the filesystem library
  24966. if test x$enable_filesystem = xyes; then
  24967. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24968. have_filesystem=yes
  24969. fi
  24970. # Set up additional files for the file library
  24971. if test x$enable_file = xyes; then
  24972. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24973. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24974. fi
  24975. # Set up files for the timer library
  24976. if test x$enable_timers = xyes; then
  24977. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24978. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24979. have_timers=yes
  24980. fi
  24981. # Set up other core UNIX files
  24982. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24983. # The iOS platform requires special setup.
  24984. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  24985. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  24986. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  24987. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  24988. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  24989. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  24990. SUMMARY_video="${SUMMARY_video} uikit"
  24991. have_video=yes
  24992. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  24993. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  24994. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  24995. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  24996. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  24997. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  24998. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  24999. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25000. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25001. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25002. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25003. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25004. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25005. fi
  25006. ;;
  25007. *-*-darwin* )
  25008. # This could be either full "Mac OS X", or plain "Darwin" which is
  25009. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25010. # Next line is broken, and a few files below require Mac OS X (full)
  25011. ARCH=macosx
  25012. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25013. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25014. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25015. CheckObjectiveCARC
  25016. CheckVisibilityHidden
  25017. CheckDeclarationAfterStatement
  25018. CheckDummyVideo
  25019. CheckOffscreenVideo
  25020. CheckDiskAudio
  25021. CheckDummyAudio
  25022. CheckDLOPEN
  25023. CheckO_CLOEXEC
  25024. CheckCOCOA
  25025. CheckMETAL
  25026. CheckX11
  25027. CheckMacGL
  25028. CheckMacGLES
  25029. CheckGLX
  25030. CheckOpenGL
  25031. CheckVulkan
  25032. CheckPTHREAD
  25033. CheckHIDAPI
  25034. # Set up files for the misc library
  25035. if test x$enable_misc = xyes; then
  25036. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25037. have_misc=yes
  25038. fi
  25039. # Set up files for the locale library
  25040. if test x$enable_locale = xyes; then
  25041. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25042. have_locale=yes
  25043. fi
  25044. # Set up files for the audio library
  25045. if test x$enable_audio = xyes; then
  25046. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25047. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25048. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25049. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25050. have_audio=yes
  25051. fi
  25052. # Set up files for the joystick library
  25053. if test x$enable_joystick = xyes; then
  25054. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25055. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25056. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25057. CheckJoystickMFI
  25058. have_joystick=yes
  25059. fi
  25060. # Set up files for the haptic library
  25061. if test x$enable_haptic = xyes; then
  25062. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25063. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25064. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25065. have_haptic=yes
  25066. fi
  25067. # Set up files for the power library
  25068. if test x$enable_power = xyes; then
  25069. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25070. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25071. have_power=yes
  25072. fi
  25073. # Set up files for the filesystem library
  25074. if test x$enable_filesystem = xyes; then
  25075. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25076. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25077. have_filesystem=yes
  25078. fi
  25079. # Set up files for the timer library
  25080. if test x$enable_timers = xyes; then
  25081. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25082. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25083. have_timers=yes
  25084. fi
  25085. # Set up additional files for the file library
  25086. if test x$enable_file = xyes; then
  25087. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25088. fi
  25089. # Set up other core UNIX files
  25090. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25091. # The Mac OS X platform requires special setup.
  25092. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25093. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25094. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25095. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25096. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25097. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25098. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25099. fi
  25100. ;;
  25101. *-nacl|*-pnacl)
  25102. ARCH=nacl
  25103. CheckNativeClient
  25104. CheckDummyAudio
  25105. CheckDummyVideo
  25106. CheckOffscreenVideo
  25107. CheckInputEvents
  25108. CheckPTHREAD
  25109. CheckO_CLOEXEC
  25110. # Set up files for the timer library
  25111. if test x$enable_timers = xyes; then
  25112. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25113. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25114. have_timers=yes
  25115. fi
  25116. if test x$enable_filesystem = xyes; then
  25117. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25118. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25119. have_filesystem=yes
  25120. fi
  25121. ;;
  25122. *-*-emscripten* )
  25123. if test x$enable_video = xyes; then
  25124. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25125. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25126. have_video=yes
  25127. SUMMARY_video="${SUMMARY_video} emscripten"
  25128. fi
  25129. if test x$enable_audio = xyes; then
  25130. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25131. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25132. have_audio=yes
  25133. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25134. fi
  25135. CheckVisibilityHidden
  25136. CheckDeclarationAfterStatement
  25137. CheckDummyVideo
  25138. CheckOffscreenVideo
  25139. CheckDiskAudio
  25140. CheckDummyAudio
  25141. CheckPTHREAD
  25142. CheckDLOPEN
  25143. CheckClockGettime
  25144. CheckEmscriptenGLES
  25145. # Set up files for the misc library
  25146. if test x$enable_misc = xyes; then
  25147. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25148. have_misc=yes
  25149. fi
  25150. # Set up files for the power library
  25151. if test x$enable_power = xyes; then
  25152. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25153. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25154. have_power=yes
  25155. fi
  25156. # Set up files for the joystick library
  25157. if test x$enable_joystick = xyes; then
  25158. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25159. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25160. have_joystick=yes
  25161. fi
  25162. # Set up files for the filesystem library
  25163. if test x$enable_filesystem = xyes; then
  25164. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25165. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25166. have_filesystem=yes
  25167. fi
  25168. # Set up files for the timer library
  25169. if test x$enable_timers = xyes; then
  25170. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25171. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25172. have_timers=yes
  25173. fi
  25174. # Set up files for the locale library
  25175. if test x$enable_locale = xyes; then
  25176. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25177. have_locale=yes
  25178. fi
  25179. ;;
  25180. *-*-riscos*)
  25181. ARCH=riscos
  25182. CheckVisibilityHidden
  25183. CheckDeclarationAfterStatement
  25184. CheckDummyVideo
  25185. CheckOffscreenVideo
  25186. CheckDiskAudio
  25187. CheckDummyAudio
  25188. CheckDLOPEN
  25189. CheckO_CLOEXEC
  25190. CheckOSS
  25191. CheckPTHREAD
  25192. CheckClockGettime
  25193. # Set up files for the misc library
  25194. if test x$enable_misc = xyes; then
  25195. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25196. have_misc=yes
  25197. fi
  25198. # Set up files for the video library
  25199. if test x$enable_video = xyes; then
  25200. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25201. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25202. have_video=yes
  25203. SUMMARY_video="${SUMMARY_video} riscos"
  25204. fi
  25205. # Set up files for the filesystem library
  25206. if test x$enable_filesystem = xyes; then
  25207. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25208. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25209. have_filesystem=yes
  25210. fi
  25211. # Set up files for the timer library
  25212. if test x$enable_timers = xyes; then
  25213. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25214. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25215. have_timers=yes
  25216. fi
  25217. ;;
  25218. *-*-os2*)
  25219. ARCH=os2
  25220. if test "$build" != "$host"; then # cross-compiling
  25221. # Default cross-compile location
  25222. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25223. else
  25224. # Look for the location of the tools and install there
  25225. if test "$BUILD_PREFIX" != ""; then
  25226. ac_default_prefix=$BUILD_PREFIX
  25227. fi
  25228. fi
  25229. enable_static=no # disable static builds
  25230. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25231. CheckOS2
  25232. CheckDeclarationAfterStatement
  25233. CheckDummyVideo
  25234. CheckDiskAudio
  25235. CheckDummyAudio
  25236. CheckHIDAPI
  25237. # Set up the core platform files
  25238. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25239. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25240. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25241. fi
  25242. # Use the Unix locale APIs.
  25243. if test x$enable_locale = xyes; then
  25244. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25245. have_locale=yes
  25246. fi
  25247. # Set up files for the video library
  25248. if test x$enable_video = xyes; then
  25249. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25250. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25251. have_video=yes
  25252. SUMMARY_video="${SUMMARY_video} os/2"
  25253. fi
  25254. # Set up files for the audio library
  25255. if test x$enable_audio = xyes; then
  25256. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25257. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25258. have_audio=yes
  25259. SUMMARY_audio="${SUMMARY_audio} os/2"
  25260. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25261. fi
  25262. # Set up files for the thread library
  25263. if test x$enable_threads = xyes; then
  25264. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25265. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25266. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25267. have_threads=yes
  25268. fi
  25269. # Set up files for the timer library
  25270. if test x$enable_timers = xyes; then
  25271. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25272. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25273. have_timers=yes
  25274. fi
  25275. # Set up files for the shared object loading library
  25276. if test x$enable_loadso = xyes; then
  25277. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25278. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25279. have_loadso=yes
  25280. fi
  25281. # Set up files for the filesystem library
  25282. if test x$enable_filesystem = xyes; then
  25283. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25284. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25285. have_filesystem=yes
  25286. fi
  25287. # Set up files for the joystick library
  25288. if test x$enable_joystick = xyes; then
  25289. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25290. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25291. have_joystick=yes
  25292. fi
  25293. ;;
  25294. *)
  25295. as_fn_error $? "
  25296. *** Unsupported host: Please add to configure.ac
  25297. " "$LINENO" 5
  25298. ;;
  25299. esac
  25300. CheckVirtualJoystick
  25301. # Check whether to install sdl2-config
  25302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25303. printf %s "checking whether to install sdl2-config... " >&6; }
  25304. # Check whether --enable-sdl2-config was given.
  25305. if test ${enable_sdl2_config+y}
  25306. then :
  25307. enableval=$enable_sdl2_config; case "${enableval}" in
  25308. yes) enable_sdl2_config="TRUE" ;;
  25309. no) enable_sdl2_config="FALSE" ;;
  25310. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25311. esac
  25312. else $as_nop
  25313. enable_sdl2_config="TRUE"
  25314. fi
  25315. if test "$enable_sdl2_config" = "TRUE"; then
  25316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25317. printf "%s\n" "yes" >&6; }
  25318. else
  25319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25320. printf "%s\n" "no" >&6; }
  25321. fi
  25322. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25323. # Verify that we have all the platform specific files we need
  25324. if test x$have_audio != xyes; then
  25325. if test x$enable_audio = xyes; then
  25326. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25327. fi
  25328. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25329. fi
  25330. if test x$have_video != xyes; then
  25331. if test x$enable_video = xyes; then
  25332. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25333. fi
  25334. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25335. fi
  25336. if test x$have_misc != xyes; then
  25337. if test x$enable_misc = xyes; then
  25338. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25339. fi
  25340. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25341. fi
  25342. if test x$have_locale != xyes; then
  25343. if test x$enable_locale = xyes; then
  25344. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25345. fi
  25346. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25347. fi
  25348. if test x$have_joystick != xyes; then
  25349. if test x$enable_joystick = xyes; then
  25350. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25351. fi
  25352. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25353. fi
  25354. if test x$have_haptic != xyes; then
  25355. if test x$enable_haptic = xyes; then
  25356. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25357. fi
  25358. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25359. fi
  25360. if test x$have_sensor != xyes; then
  25361. if test x$enable_sensor = xyes; then
  25362. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25363. fi
  25364. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25365. fi
  25366. if test x$have_threads != xyes; then
  25367. if test x$enable_threads = xyes; then
  25368. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25369. fi
  25370. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25371. fi
  25372. if test x$have_timers != xyes; then
  25373. if test x$enable_timers = xyes; then
  25374. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25375. fi
  25376. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25377. fi
  25378. if test x$have_filesystem != xyes; then
  25379. if test x$enable_filesystem = xyes; then
  25380. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25381. fi
  25382. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25383. fi
  25384. if test x$have_loadso != xyes; then
  25385. if test x$enable_loadso = xyes; then
  25386. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25387. fi
  25388. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25389. fi
  25390. if test x$SDLMAIN_SOURCES = x; then
  25391. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25392. fi
  25393. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25394. if test x$video_wayland = xyes; then
  25395. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25396. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25397. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25398. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25399. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25400. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25401. echo ;\
  25402. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25403. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25404. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25405. echo ;\
  25406. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25407. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25408. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25409. echo ;\
  25410. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25411. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25412. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25413. done ;\
  25414. echo ;\
  25415. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25416. fi
  25417. OBJECTS=`echo $SOURCES`
  25418. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25419. for EXT in asm cc m c S; do
  25420. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25421. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25422. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25423. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25424. done
  25425. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25426. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25427. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25428. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25429. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25430. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25431. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25432. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25433. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25434. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25435. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25436. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25437. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25438. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25439. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25440. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25441. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25442. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25443. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25444. # Set runtime shared library paths as needed
  25445. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25446. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25447. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25449. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25450. have_enable_new_dtags=no
  25451. save_LDFLAGS="$LDFLAGS"
  25452. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25454. /* end confdefs.h. */
  25455. int
  25456. main (void)
  25457. {
  25458. ;
  25459. return 0;
  25460. }
  25461. _ACEOF
  25462. if ac_fn_c_try_link "$LINENO"
  25463. then :
  25464. have_enable_new_dtags=yes
  25465. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25466. fi
  25467. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25468. conftest$ac_exeext conftest.$ac_ext
  25469. LDFLAGS="$save_LDFLAGS"
  25470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25471. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25472. fi
  25473. if test $ARCH = solaris; then
  25474. SDL_RLD_FLAGS="-R\${libdir}"
  25475. fi
  25476. else
  25477. SDL_RLD_FLAGS=""
  25478. fi
  25479. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25480. pkg_cmakedir='$libdir/cmake/SDL2'
  25481. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25482. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25483. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25484. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25485. _lcl_receval="$_lcl_from"
  25486. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25487. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25488. _lcl_receval_old=''
  25489. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25490. _lcl_receval_old="$_lcl_receval"
  25491. eval _lcl_receval="\"$_lcl_receval\""
  25492. done
  25493. echo "$_lcl_receval")`
  25494. _lcl_receval="$_lcl_to"
  25495. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25496. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25497. _lcl_receval_old=''
  25498. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25499. _lcl_receval_old="$_lcl_receval"
  25500. eval _lcl_receval="\"$_lcl_receval\""
  25501. done
  25502. echo "$_lcl_receval")`
  25503. _lcl_notation="$_lcl_from$_lcl_to"
  25504. case ":$_lcl_from:" in
  25505. # change empty paths to '.'
  25506. ::) _lcl_from='.' ;;
  25507. # strip trailing slashes
  25508. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25509. :*:) ;;
  25510. esac
  25511. # squeeze repeated slashes
  25512. case '/' in
  25513. # if the path contains any backslashes, turn slashes into backslashes
  25514. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25515. # if the path contains slashes, also turn backslashes into slashes
  25516. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25517. esac
  25518. case ":$_lcl_to:" in
  25519. # change empty paths to '.'
  25520. ::) _lcl_to='.' ;;
  25521. # strip trailing slashes
  25522. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25523. :*:) ;;
  25524. esac
  25525. # squeeze repeated slashes
  25526. case '/' in
  25527. # if the path contains any backslashes, turn slashes into backslashes
  25528. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25529. # if the path contains slashes, also turn backslashes into slashes
  25530. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25531. esac
  25532. _lcl_common_prefix=''
  25533. _lcl_second_prefix_match=''
  25534. while test "$_lcl_second_prefix_match" != 0; do
  25535. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25536. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25537. if test "$_lcl_second_prefix_match" != 0; then
  25538. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25539. _lcl_common_prefix="$_lcl_first_prefix"
  25540. else
  25541. _lcl_second_prefix_match=0
  25542. fi
  25543. fi
  25544. done
  25545. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25546. _lcl_first_rel=''
  25547. _lcl_tmp='xxx'
  25548. while test "$_lcl_tmp" != ''; do
  25549. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25550. if test "$_lcl_first_suffix" != ''; then
  25551. _lcl_first_suffix="$_lcl_tmp"
  25552. _lcl_first_rel="../$_lcl_first_rel"
  25553. fi
  25554. done
  25555. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25556. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25557. case ":$_lcl_result_tmp:" in
  25558. # change empty paths to '.'
  25559. ::) _lcl_result_tmp='.' ;;
  25560. # strip trailing slashes
  25561. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25562. :*:) ;;
  25563. esac
  25564. # squeeze repeated slashes
  25565. case "$_lcl_notation" in
  25566. # if the path contains any backslashes, turn slashes into backslashes
  25567. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25568. # if the path contains slashes, also turn backslashes into slashes
  25569. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25570. esac
  25571. eval $_lcl_result_var='$_lcl_result_tmp'
  25572. done
  25573. if test x$enable_shared = xyes; then
  25574. PKGCONFIG_LIBS_PRIV="
  25575. Libs.private:"
  25576. ENABLE_SHARED_TRUE=
  25577. ENABLE_SHARED_FALSE="#"
  25578. else
  25579. PKGCONFIG_LIBS_PRIV=
  25580. ENABLE_SHARED_TRUE="#"
  25581. ENABLE_SHARED_FALSE=
  25582. fi
  25583. if test x$enable_static = xyes; then
  25584. ENABLE_STATIC_TRUE=
  25585. ENABLE_STATIC_FALSE="#"
  25586. else
  25587. ENABLE_STATIC_TRUE="#"
  25588. ENABLE_STATIC_FALSE=
  25589. fi
  25590. cat >Makefile.rules <<__EOF__
  25591. # Build rules for objects
  25592. -include \$(OBJECTS:.lo=.d)
  25593. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25594. $srcdir/src/SDL.c: update-revision
  25595. $DEPENDS
  25596. $VERSION_DEPENDS
  25597. $SDLMAIN_DEPENDS
  25598. $SDLTEST_DEPENDS
  25599. $WAYLAND_PROTOCOLS_DEPENDS
  25600. __EOF__
  25601. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25602. ac_config_commands="$ac_config_commands sdl2_config"
  25603. SUMMARY="SDL2 Configure Summary:\n"
  25604. if test x$enable_shared = xyes; then
  25605. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25606. fi
  25607. if test x$enable_static = xyes; then
  25608. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25609. fi
  25610. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25611. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25612. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25613. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25614. if test x$have_x = xyes; then
  25615. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25616. fi
  25617. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25618. if test x$have_joystick_virtual = xyes; then
  25619. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25620. else
  25621. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25622. fi
  25623. if test x$have_samplerate_h_hdr = xyes; then
  25624. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25625. else
  25626. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25627. fi
  25628. if test x$have_libudev_h_hdr = xyes; then
  25629. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25630. else
  25631. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25632. fi
  25633. if test x$have_dbus_dbus_h_hdr = xyes; then
  25634. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25635. else
  25636. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25637. fi
  25638. if test x$enable_ime = xyes; then
  25639. SUMMARY="${SUMMARY}Using ime : YES\n"
  25640. else
  25641. SUMMARY="${SUMMARY}Using ime : NO\n"
  25642. fi
  25643. if test x$have_ibus_ibus_h_hdr = xyes; then
  25644. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25645. else
  25646. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25647. fi
  25648. if test x$have_fcitx = xyes; then
  25649. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25650. else
  25651. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25652. fi
  25653. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25654. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25655. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25656. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25657. SUMMARY="${SUMMARY}configure script with:\n"
  25658. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25659. fi
  25660. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25661. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25662. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25663. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25664. SUMMARY="${SUMMARY}configure script with:\n"
  25665. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25666. fi
  25667. ac_config_commands="$ac_config_commands summary"
  25668. cat >confcache <<\_ACEOF
  25669. # This file is a shell script that caches the results of configure
  25670. # tests run on this system so they can be shared between configure
  25671. # scripts and configure runs, see configure's option --config-cache.
  25672. # It is not useful on other systems. If it contains results you don't
  25673. # want to keep, you may remove or edit it.
  25674. #
  25675. # config.status only pays attention to the cache file if you give it
  25676. # the --recheck option to rerun configure.
  25677. #
  25678. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25679. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25680. # following values.
  25681. _ACEOF
  25682. # The following way of writing the cache mishandles newlines in values,
  25683. # but we know of no workaround that is simple, portable, and efficient.
  25684. # So, we kill variables containing newlines.
  25685. # Ultrix sh set writes to stderr and can't be redirected directly,
  25686. # and sets the high bit in the cache file unless we assign to the vars.
  25687. (
  25688. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25689. eval ac_val=\$$ac_var
  25690. case $ac_val in #(
  25691. *${as_nl}*)
  25692. case $ac_var in #(
  25693. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25694. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25695. esac
  25696. case $ac_var in #(
  25697. _ | IFS | as_nl) ;; #(
  25698. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25699. *) { eval $ac_var=; unset $ac_var;} ;;
  25700. esac ;;
  25701. esac
  25702. done
  25703. (set) 2>&1 |
  25704. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25705. *${as_nl}ac_space=\ *)
  25706. # `set' does not quote correctly, so add quotes: double-quote
  25707. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25708. sed -n \
  25709. "s/'/'\\\\''/g;
  25710. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25711. ;; #(
  25712. *)
  25713. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25714. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25715. ;;
  25716. esac |
  25717. sort
  25718. ) |
  25719. sed '
  25720. /^ac_cv_env_/b end
  25721. t clear
  25722. :clear
  25723. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25724. t end
  25725. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25726. :end' >>confcache
  25727. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25728. if test -w "$cache_file"; then
  25729. if test "x$cache_file" != "x/dev/null"; then
  25730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25731. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25732. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25733. cat confcache >"$cache_file"
  25734. else
  25735. case $cache_file in #(
  25736. */* | ?:*)
  25737. mv -f confcache "$cache_file"$$ &&
  25738. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25739. *)
  25740. mv -f confcache "$cache_file" ;;
  25741. esac
  25742. fi
  25743. fi
  25744. else
  25745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25746. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25747. fi
  25748. fi
  25749. rm -f confcache
  25750. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25751. # Let make expand exec_prefix.
  25752. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25753. DEFS=-DHAVE_CONFIG_H
  25754. ac_libobjs=
  25755. ac_ltlibobjs=
  25756. U=
  25757. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25758. # 1. Remove the extension, and $U if already installed.
  25759. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25760. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25761. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25762. # will be set to the directory where LIBOBJS objects are built.
  25763. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25764. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25765. done
  25766. LIBOBJS=$ac_libobjs
  25767. LTLIBOBJS=$ac_ltlibobjs
  25768. : "${CONFIG_STATUS=./config.status}"
  25769. ac_write_fail=0
  25770. ac_clean_files_save=$ac_clean_files
  25771. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25773. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25774. as_write_fail=0
  25775. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25776. #! $SHELL
  25777. # Generated by $as_me.
  25778. # Run this file to recreate the current configuration.
  25779. # Compiler output produced by configure, useful for debugging
  25780. # configure, is in config.log if it exists.
  25781. debug=false
  25782. ac_cs_recheck=false
  25783. ac_cs_silent=false
  25784. SHELL=\${CONFIG_SHELL-$SHELL}
  25785. export SHELL
  25786. _ASEOF
  25787. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25788. ## -------------------- ##
  25789. ## M4sh Initialization. ##
  25790. ## -------------------- ##
  25791. # Be more Bourne compatible
  25792. DUALCASE=1; export DUALCASE # for MKS sh
  25793. as_nop=:
  25794. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25795. then :
  25796. emulate sh
  25797. NULLCMD=:
  25798. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25799. # is contrary to our usage. Disable this feature.
  25800. alias -g '${1+"$@"}'='"$@"'
  25801. setopt NO_GLOB_SUBST
  25802. else $as_nop
  25803. case `(set -o) 2>/dev/null` in #(
  25804. *posix*) :
  25805. set -o posix ;; #(
  25806. *) :
  25807. ;;
  25808. esac
  25809. fi
  25810. # Reset variables that may have inherited troublesome values from
  25811. # the environment.
  25812. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25813. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25814. # side effect of setting IFS to empty, thus disabling word splitting.)
  25815. # Quoting is to prevent editors from complaining about space-tab.
  25816. as_nl='
  25817. '
  25818. export as_nl
  25819. IFS=" "" $as_nl"
  25820. PS1='$ '
  25821. PS2='> '
  25822. PS4='+ '
  25823. # Ensure predictable behavior from utilities with locale-dependent output.
  25824. LC_ALL=C
  25825. export LC_ALL
  25826. LANGUAGE=C
  25827. export LANGUAGE
  25828. # We cannot yet rely on "unset" to work, but we need these variables
  25829. # to be unset--not just set to an empty or harmless value--now, to
  25830. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  25831. # also avoids known problems related to "unset" and subshell syntax
  25832. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  25833. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  25834. do eval test \${$as_var+y} \
  25835. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25836. done
  25837. # Ensure that fds 0, 1, and 2 are open.
  25838. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  25839. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  25840. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  25841. # The user is always right.
  25842. if ${PATH_SEPARATOR+false} :; then
  25843. PATH_SEPARATOR=:
  25844. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25845. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25846. PATH_SEPARATOR=';'
  25847. }
  25848. fi
  25849. # Find who we are. Look in the path if we contain no directory separator.
  25850. as_myself=
  25851. case $0 in #((
  25852. *[\\/]* ) as_myself=$0 ;;
  25853. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25854. for as_dir in $PATH
  25855. do
  25856. IFS=$as_save_IFS
  25857. case $as_dir in #(((
  25858. '') as_dir=./ ;;
  25859. */) ;;
  25860. *) as_dir=$as_dir/ ;;
  25861. esac
  25862. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  25863. done
  25864. IFS=$as_save_IFS
  25865. ;;
  25866. esac
  25867. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25868. # in which case we are not to be found in the path.
  25869. if test "x$as_myself" = x; then
  25870. as_myself=$0
  25871. fi
  25872. if test ! -f "$as_myself"; then
  25873. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25874. exit 1
  25875. fi
  25876. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25877. # ----------------------------------------
  25878. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25879. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25880. # script with STATUS, using 1 if that was 0.
  25881. as_fn_error ()
  25882. {
  25883. as_status=$1; test $as_status -eq 0 && as_status=1
  25884. if test "$4"; then
  25885. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25886. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25887. fi
  25888. printf "%s\n" "$as_me: error: $2" >&2
  25889. as_fn_exit $as_status
  25890. } # as_fn_error
  25891. # as_fn_set_status STATUS
  25892. # -----------------------
  25893. # Set $? to STATUS, without forking.
  25894. as_fn_set_status ()
  25895. {
  25896. return $1
  25897. } # as_fn_set_status
  25898. # as_fn_exit STATUS
  25899. # -----------------
  25900. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  25901. as_fn_exit ()
  25902. {
  25903. set +e
  25904. as_fn_set_status $1
  25905. exit $1
  25906. } # as_fn_exit
  25907. # as_fn_unset VAR
  25908. # ---------------
  25909. # Portably unset VAR.
  25910. as_fn_unset ()
  25911. {
  25912. { eval $1=; unset $1;}
  25913. }
  25914. as_unset=as_fn_unset
  25915. # as_fn_append VAR VALUE
  25916. # ----------------------
  25917. # Append the text in VALUE to the end of the definition contained in VAR. Take
  25918. # advantage of any shell optimizations that allow amortized linear growth over
  25919. # repeated appends, instead of the typical quadratic growth present in naive
  25920. # implementations.
  25921. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  25922. then :
  25923. eval 'as_fn_append ()
  25924. {
  25925. eval $1+=\$2
  25926. }'
  25927. else $as_nop
  25928. as_fn_append ()
  25929. {
  25930. eval $1=\$$1\$2
  25931. }
  25932. fi # as_fn_append
  25933. # as_fn_arith ARG...
  25934. # ------------------
  25935. # Perform arithmetic evaluation on the ARGs, and store the result in the
  25936. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  25937. # must be portable across $(()) and expr.
  25938. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  25939. then :
  25940. eval 'as_fn_arith ()
  25941. {
  25942. as_val=$(( $* ))
  25943. }'
  25944. else $as_nop
  25945. as_fn_arith ()
  25946. {
  25947. as_val=`expr "$@" || test $? -eq 1`
  25948. }
  25949. fi # as_fn_arith
  25950. if expr a : '\(a\)' >/dev/null 2>&1 &&
  25951. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25952. as_expr=expr
  25953. else
  25954. as_expr=false
  25955. fi
  25956. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  25957. as_basename=basename
  25958. else
  25959. as_basename=false
  25960. fi
  25961. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  25962. as_dirname=dirname
  25963. else
  25964. as_dirname=false
  25965. fi
  25966. as_me=`$as_basename -- "$0" ||
  25967. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  25968. X"$0" : 'X\(//\)$' \| \
  25969. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  25970. printf "%s\n" X/"$0" |
  25971. sed '/^.*\/\([^/][^/]*\)\/*$/{
  25972. s//\1/
  25973. q
  25974. }
  25975. /^X\/\(\/\/\)$/{
  25976. s//\1/
  25977. q
  25978. }
  25979. /^X\/\(\/\).*/{
  25980. s//\1/
  25981. q
  25982. }
  25983. s/.*/./; q'`
  25984. # Avoid depending upon Character Ranges.
  25985. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  25986. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  25987. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  25988. as_cr_digits='0123456789'
  25989. as_cr_alnum=$as_cr_Letters$as_cr_digits
  25990. # Determine whether it's possible to make 'echo' print without a newline.
  25991. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  25992. # for compatibility with existing Makefiles.
  25993. ECHO_C= ECHO_N= ECHO_T=
  25994. case `echo -n x` in #(((((
  25995. -n*)
  25996. case `echo 'xy\c'` in
  25997. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  25998. xy) ECHO_C='\c';;
  25999. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26000. ECHO_T=' ';;
  26001. esac;;
  26002. *)
  26003. ECHO_N='-n';;
  26004. esac
  26005. # For backward compatibility with old third-party macros, we provide
  26006. # the shell variables $as_echo and $as_echo_n. New code should use
  26007. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26008. as_echo='printf %s\n'
  26009. as_echo_n='printf %s'
  26010. rm -f conf$$ conf$$.exe conf$$.file
  26011. if test -d conf$$.dir; then
  26012. rm -f conf$$.dir/conf$$.file
  26013. else
  26014. rm -f conf$$.dir
  26015. mkdir conf$$.dir 2>/dev/null
  26016. fi
  26017. if (echo >conf$$.file) 2>/dev/null; then
  26018. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26019. as_ln_s='ln -s'
  26020. # ... but there are two gotchas:
  26021. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26022. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26023. # In both cases, we have to default to `cp -pR'.
  26024. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26025. as_ln_s='cp -pR'
  26026. elif ln conf$$.file conf$$ 2>/dev/null; then
  26027. as_ln_s=ln
  26028. else
  26029. as_ln_s='cp -pR'
  26030. fi
  26031. else
  26032. as_ln_s='cp -pR'
  26033. fi
  26034. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26035. rmdir conf$$.dir 2>/dev/null
  26036. # as_fn_mkdir_p
  26037. # -------------
  26038. # Create "$as_dir" as a directory, including parents if necessary.
  26039. as_fn_mkdir_p ()
  26040. {
  26041. case $as_dir in #(
  26042. -*) as_dir=./$as_dir;;
  26043. esac
  26044. test -d "$as_dir" || eval $as_mkdir_p || {
  26045. as_dirs=
  26046. while :; do
  26047. case $as_dir in #(
  26048. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26049. *) as_qdir=$as_dir;;
  26050. esac
  26051. as_dirs="'$as_qdir' $as_dirs"
  26052. as_dir=`$as_dirname -- "$as_dir" ||
  26053. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26054. X"$as_dir" : 'X\(//\)[^/]' \| \
  26055. X"$as_dir" : 'X\(//\)$' \| \
  26056. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26057. printf "%s\n" X"$as_dir" |
  26058. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26059. s//\1/
  26060. q
  26061. }
  26062. /^X\(\/\/\)[^/].*/{
  26063. s//\1/
  26064. q
  26065. }
  26066. /^X\(\/\/\)$/{
  26067. s//\1/
  26068. q
  26069. }
  26070. /^X\(\/\).*/{
  26071. s//\1/
  26072. q
  26073. }
  26074. s/.*/./; q'`
  26075. test -d "$as_dir" && break
  26076. done
  26077. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26078. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26079. } # as_fn_mkdir_p
  26080. if mkdir -p . 2>/dev/null; then
  26081. as_mkdir_p='mkdir -p "$as_dir"'
  26082. else
  26083. test -d ./-p && rmdir ./-p
  26084. as_mkdir_p=false
  26085. fi
  26086. # as_fn_executable_p FILE
  26087. # -----------------------
  26088. # Test if FILE is an executable regular file.
  26089. as_fn_executable_p ()
  26090. {
  26091. test -f "$1" && test -x "$1"
  26092. } # as_fn_executable_p
  26093. as_test_x='test -x'
  26094. as_executable_p=as_fn_executable_p
  26095. # Sed expression to map a string onto a valid CPP name.
  26096. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26097. # Sed expression to map a string onto a valid variable name.
  26098. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26099. exec 6>&1
  26100. ## ----------------------------------- ##
  26101. ## Main body of $CONFIG_STATUS script. ##
  26102. ## ----------------------------------- ##
  26103. _ASEOF
  26104. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26105. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26106. # Save the log message, to keep $0 and so on meaningful, and to
  26107. # report actual input values of CONFIG_FILES etc. instead of their
  26108. # values after options handling.
  26109. ac_log="
  26110. This file was extended by $as_me, which was
  26111. generated by GNU Autoconf 2.71. Invocation command line was
  26112. CONFIG_FILES = $CONFIG_FILES
  26113. CONFIG_HEADERS = $CONFIG_HEADERS
  26114. CONFIG_LINKS = $CONFIG_LINKS
  26115. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26116. $ $0 $@
  26117. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26118. "
  26119. _ACEOF
  26120. case $ac_config_files in *"
  26121. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26122. esac
  26123. case $ac_config_headers in *"
  26124. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26125. esac
  26126. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26127. # Files that config.status was made for.
  26128. config_files="$ac_config_files"
  26129. config_headers="$ac_config_headers"
  26130. config_commands="$ac_config_commands"
  26131. _ACEOF
  26132. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26133. ac_cs_usage="\
  26134. \`$as_me' instantiates files and other configuration actions
  26135. from templates according to the current configuration. Unless the files
  26136. and actions are specified as TAGs, all are instantiated by default.
  26137. Usage: $0 [OPTION]... [TAG]...
  26138. -h, --help print this help, then exit
  26139. -V, --version print version number and configuration settings, then exit
  26140. --config print configuration, then exit
  26141. -q, --quiet, --silent
  26142. do not print progress messages
  26143. -d, --debug don't remove temporary files
  26144. --recheck update $as_me by reconfiguring in the same conditions
  26145. --file=FILE[:TEMPLATE]
  26146. instantiate the configuration file FILE
  26147. --header=FILE[:TEMPLATE]
  26148. instantiate the configuration header FILE
  26149. Configuration files:
  26150. $config_files
  26151. Configuration headers:
  26152. $config_headers
  26153. Configuration commands:
  26154. $config_commands
  26155. Report bugs to the package provider."
  26156. _ACEOF
  26157. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26158. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26159. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26160. ac_cs_config='$ac_cs_config_escaped'
  26161. ac_cs_version="\\
  26162. config.status
  26163. configured by $0, generated by GNU Autoconf 2.71,
  26164. with options \\"\$ac_cs_config\\"
  26165. Copyright (C) 2021 Free Software Foundation, Inc.
  26166. This config.status script is free software; the Free Software Foundation
  26167. gives unlimited permission to copy, distribute and modify it."
  26168. ac_pwd='$ac_pwd'
  26169. srcdir='$srcdir'
  26170. INSTALL='$INSTALL'
  26171. AWK='$AWK'
  26172. test -n "\$AWK" || AWK=awk
  26173. _ACEOF
  26174. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26175. # The default lists apply if the user does not specify any file.
  26176. ac_need_defaults=:
  26177. while test $# != 0
  26178. do
  26179. case $1 in
  26180. --*=?*)
  26181. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26182. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26183. ac_shift=:
  26184. ;;
  26185. --*=)
  26186. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26187. ac_optarg=
  26188. ac_shift=:
  26189. ;;
  26190. *)
  26191. ac_option=$1
  26192. ac_optarg=$2
  26193. ac_shift=shift
  26194. ;;
  26195. esac
  26196. case $ac_option in
  26197. # Handling of the options.
  26198. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26199. ac_cs_recheck=: ;;
  26200. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26201. printf "%s\n" "$ac_cs_version"; exit ;;
  26202. --config | --confi | --conf | --con | --co | --c )
  26203. printf "%s\n" "$ac_cs_config"; exit ;;
  26204. --debug | --debu | --deb | --de | --d | -d )
  26205. debug=: ;;
  26206. --file | --fil | --fi | --f )
  26207. $ac_shift
  26208. case $ac_optarg in
  26209. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26210. '') as_fn_error $? "missing file argument" ;;
  26211. esac
  26212. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26213. ac_need_defaults=false;;
  26214. --header | --heade | --head | --hea )
  26215. $ac_shift
  26216. case $ac_optarg in
  26217. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26218. esac
  26219. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26220. ac_need_defaults=false;;
  26221. --he | --h)
  26222. # Conflict between --help and --header
  26223. as_fn_error $? "ambiguous option: \`$1'
  26224. Try \`$0 --help' for more information.";;
  26225. --help | --hel | -h )
  26226. printf "%s\n" "$ac_cs_usage"; exit ;;
  26227. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26228. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26229. ac_cs_silent=: ;;
  26230. # This is an error.
  26231. -*) as_fn_error $? "unrecognized option: \`$1'
  26232. Try \`$0 --help' for more information." ;;
  26233. *) as_fn_append ac_config_targets " $1"
  26234. ac_need_defaults=false ;;
  26235. esac
  26236. shift
  26237. done
  26238. ac_configure_extra_args=
  26239. if $ac_cs_silent; then
  26240. exec 6>/dev/null
  26241. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26242. fi
  26243. _ACEOF
  26244. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26245. if \$ac_cs_recheck; then
  26246. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26247. shift
  26248. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26249. CONFIG_SHELL='$SHELL'
  26250. export CONFIG_SHELL
  26251. exec "\$@"
  26252. fi
  26253. _ACEOF
  26254. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26255. exec 5>>config.log
  26256. {
  26257. echo
  26258. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26259. ## Running $as_me. ##
  26260. _ASBOX
  26261. printf "%s\n" "$ac_log"
  26262. } >&5
  26263. _ACEOF
  26264. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26265. #
  26266. # INIT-COMMANDS
  26267. #
  26268. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26269. # if CDPATH is set.
  26270. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26271. sed_quote_subst='$sed_quote_subst'
  26272. double_quote_subst='$double_quote_subst'
  26273. delay_variable_subst='$delay_variable_subst'
  26274. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26275. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26276. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26277. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26278. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26279. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26280. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26281. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26282. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26283. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26284. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26285. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26286. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26287. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26288. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26289. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26290. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26291. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26292. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26293. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26294. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26295. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26296. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26297. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26298. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26299. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26300. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26301. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26302. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26303. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26304. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26305. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26306. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26307. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26308. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26309. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26310. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26311. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26312. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26313. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26314. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26315. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26316. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26317. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26318. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26319. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26320. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26321. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26322. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26323. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26324. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26325. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26326. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26327. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26328. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26329. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26330. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26331. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26332. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26333. 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"`'
  26334. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26335. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26336. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26337. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26338. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26339. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26340. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26341. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26342. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26343. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26344. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26345. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26346. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26347. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26348. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26349. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26350. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26351. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26352. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26353. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26354. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26355. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26356. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26357. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26358. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26359. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26360. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26361. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26362. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26363. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26364. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26365. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26366. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26367. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26368. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26369. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26370. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26371. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26372. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26373. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26374. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26375. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26376. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26377. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26378. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26379. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26380. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26381. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26382. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26383. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26384. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26385. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26386. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26387. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26388. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26389. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26390. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26391. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26392. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26393. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26394. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26395. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26396. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26397. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26398. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26399. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26400. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26401. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26402. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26403. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26404. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26405. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26406. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26407. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26408. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26409. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26410. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26411. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26412. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26413. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26414. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26415. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26416. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26417. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26418. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26419. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26420. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26421. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26422. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26423. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26424. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26425. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26426. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26427. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26428. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26429. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26430. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26431. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26432. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26433. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26434. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26435. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26436. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26437. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26438. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26439. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26440. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26441. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26442. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26443. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26444. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26445. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26446. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26447. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26448. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26449. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26450. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26451. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26452. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26453. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26454. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26455. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26456. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26457. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26458. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26459. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26460. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26461. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26462. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26463. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26464. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26465. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26466. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26467. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26468. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26469. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26470. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26471. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26472. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26473. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26474. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26475. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26476. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26477. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26478. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26479. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26480. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26481. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26482. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26483. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26484. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26485. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26486. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26487. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26488. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26489. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26490. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26491. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26492. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26493. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26494. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26495. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26496. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26497. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26498. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26499. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26500. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26501. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26502. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26503. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26504. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26505. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26506. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26507. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26508. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26509. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26510. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26511. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26512. LTCC='$LTCC'
  26513. LTCFLAGS='$LTCFLAGS'
  26514. compiler='$compiler_DEFAULT'
  26515. # A function that is used when there is no print builtin or printf.
  26516. func_fallback_echo ()
  26517. {
  26518. eval 'cat <<_LTECHO_EOF
  26519. \$1
  26520. _LTECHO_EOF'
  26521. }
  26522. # Quote evaled strings.
  26523. for var in AS \
  26524. DLLTOOL \
  26525. OBJDUMP \
  26526. SHELL \
  26527. ECHO \
  26528. PATH_SEPARATOR \
  26529. SED \
  26530. GREP \
  26531. EGREP \
  26532. FGREP \
  26533. LD \
  26534. NM \
  26535. LN_S \
  26536. lt_SP2NL \
  26537. lt_NL2SP \
  26538. reload_flag \
  26539. deplibs_check_method \
  26540. file_magic_cmd \
  26541. file_magic_glob \
  26542. want_nocaseglob \
  26543. sharedlib_from_linklib_cmd \
  26544. AR \
  26545. AR_FLAGS \
  26546. archiver_list_spec \
  26547. STRIP \
  26548. RANLIB \
  26549. CC \
  26550. CFLAGS \
  26551. compiler \
  26552. lt_cv_sys_global_symbol_pipe \
  26553. lt_cv_sys_global_symbol_to_cdecl \
  26554. lt_cv_sys_global_symbol_to_import \
  26555. lt_cv_sys_global_symbol_to_c_name_address \
  26556. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26557. lt_cv_nm_interface \
  26558. nm_file_list_spec \
  26559. lt_cv_truncate_bin \
  26560. lt_prog_compiler_no_builtin_flag \
  26561. lt_prog_compiler_pic \
  26562. lt_prog_compiler_wl \
  26563. lt_prog_compiler_static \
  26564. lt_cv_prog_compiler_c_o \
  26565. need_locks \
  26566. MANIFEST_TOOL \
  26567. DSYMUTIL \
  26568. NMEDIT \
  26569. LIPO \
  26570. OTOOL \
  26571. OTOOL64 \
  26572. shrext_cmds \
  26573. export_dynamic_flag_spec \
  26574. whole_archive_flag_spec \
  26575. compiler_needs_object \
  26576. with_gnu_ld \
  26577. allow_undefined_flag \
  26578. no_undefined_flag \
  26579. hardcode_libdir_flag_spec \
  26580. hardcode_libdir_separator \
  26581. exclude_expsyms \
  26582. include_expsyms \
  26583. file_list_spec \
  26584. variables_saved_for_relink \
  26585. libname_spec \
  26586. library_names_spec \
  26587. soname_spec \
  26588. install_override_mode \
  26589. finish_eval \
  26590. old_striplib \
  26591. striplib \
  26592. compiler_lib_search_dirs \
  26593. predep_objects \
  26594. postdep_objects \
  26595. predeps \
  26596. postdeps \
  26597. compiler_lib_search_path \
  26598. LD_RC \
  26599. LD_CXX \
  26600. reload_flag_RC \
  26601. reload_flag_CXX \
  26602. compiler_RC \
  26603. compiler_CXX \
  26604. lt_prog_compiler_no_builtin_flag_RC \
  26605. lt_prog_compiler_no_builtin_flag_CXX \
  26606. lt_prog_compiler_pic_RC \
  26607. lt_prog_compiler_pic_CXX \
  26608. lt_prog_compiler_wl_RC \
  26609. lt_prog_compiler_wl_CXX \
  26610. lt_prog_compiler_static_RC \
  26611. lt_prog_compiler_static_CXX \
  26612. lt_cv_prog_compiler_c_o_RC \
  26613. lt_cv_prog_compiler_c_o_CXX \
  26614. export_dynamic_flag_spec_RC \
  26615. export_dynamic_flag_spec_CXX \
  26616. whole_archive_flag_spec_RC \
  26617. whole_archive_flag_spec_CXX \
  26618. compiler_needs_object_RC \
  26619. compiler_needs_object_CXX \
  26620. with_gnu_ld_RC \
  26621. with_gnu_ld_CXX \
  26622. allow_undefined_flag_RC \
  26623. allow_undefined_flag_CXX \
  26624. no_undefined_flag_RC \
  26625. no_undefined_flag_CXX \
  26626. hardcode_libdir_flag_spec_RC \
  26627. hardcode_libdir_flag_spec_CXX \
  26628. hardcode_libdir_separator_RC \
  26629. hardcode_libdir_separator_CXX \
  26630. exclude_expsyms_RC \
  26631. exclude_expsyms_CXX \
  26632. include_expsyms_RC \
  26633. include_expsyms_CXX \
  26634. file_list_spec_RC \
  26635. file_list_spec_CXX \
  26636. compiler_lib_search_dirs_RC \
  26637. compiler_lib_search_dirs_CXX \
  26638. predep_objects_RC \
  26639. predep_objects_CXX \
  26640. postdep_objects_RC \
  26641. postdep_objects_CXX \
  26642. predeps_RC \
  26643. predeps_CXX \
  26644. postdeps_RC \
  26645. postdeps_CXX \
  26646. compiler_lib_search_path_RC \
  26647. compiler_lib_search_path_CXX; do
  26648. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26649. *[\\\\\\\`\\"\\\$]*)
  26650. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26651. ;;
  26652. *)
  26653. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26654. ;;
  26655. esac
  26656. done
  26657. # Double-quote double-evaled strings.
  26658. for var in reload_cmds \
  26659. old_postinstall_cmds \
  26660. old_postuninstall_cmds \
  26661. old_archive_cmds \
  26662. extract_expsyms_cmds \
  26663. old_archive_from_new_cmds \
  26664. old_archive_from_expsyms_cmds \
  26665. archive_cmds \
  26666. archive_expsym_cmds \
  26667. module_cmds \
  26668. module_expsym_cmds \
  26669. export_symbols_cmds \
  26670. prelink_cmds \
  26671. postlink_cmds \
  26672. postinstall_cmds \
  26673. postuninstall_cmds \
  26674. finish_cmds \
  26675. sys_lib_search_path_spec \
  26676. configure_time_dlsearch_path \
  26677. configure_time_lt_sys_library_path \
  26678. reload_cmds_RC \
  26679. reload_cmds_CXX \
  26680. old_archive_cmds_RC \
  26681. old_archive_cmds_CXX \
  26682. old_archive_from_new_cmds_RC \
  26683. old_archive_from_new_cmds_CXX \
  26684. old_archive_from_expsyms_cmds_RC \
  26685. old_archive_from_expsyms_cmds_CXX \
  26686. archive_cmds_RC \
  26687. archive_cmds_CXX \
  26688. archive_expsym_cmds_RC \
  26689. archive_expsym_cmds_CXX \
  26690. module_cmds_RC \
  26691. module_cmds_CXX \
  26692. module_expsym_cmds_RC \
  26693. module_expsym_cmds_CXX \
  26694. export_symbols_cmds_RC \
  26695. export_symbols_cmds_CXX \
  26696. prelink_cmds_RC \
  26697. prelink_cmds_CXX \
  26698. postlink_cmds_RC \
  26699. postlink_cmds_CXX; do
  26700. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26701. *[\\\\\\\`\\"\\\$]*)
  26702. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26703. ;;
  26704. *)
  26705. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26706. ;;
  26707. esac
  26708. done
  26709. ac_aux_dir='$ac_aux_dir'
  26710. # See if we are running on zsh, and set the options that allow our
  26711. # commands through without removal of \ escapes INIT.
  26712. if test -n "\${ZSH_VERSION+set}"; then
  26713. setopt NO_GLOB_SUBST
  26714. fi
  26715. PACKAGE='$PACKAGE'
  26716. VERSION='$VERSION'
  26717. RM='$RM'
  26718. ofile='$ofile'
  26719. SUMMARY="$SUMMARY"
  26720. _ACEOF
  26721. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26722. # Handling of arguments.
  26723. for ac_config_target in $ac_config_targets
  26724. do
  26725. case $ac_config_target in
  26726. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26727. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26728. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26729. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26730. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26731. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26732. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26733. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26734. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26735. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26736. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26737. esac
  26738. done
  26739. # If the user did not use the arguments to specify the items to instantiate,
  26740. # then the envvar interface is used. Set only those that are not.
  26741. # We use the long form for the default assignment because of an extremely
  26742. # bizarre bug on SunOS 4.1.3.
  26743. if $ac_need_defaults; then
  26744. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26745. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26746. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26747. fi
  26748. # Have a temporary directory for convenience. Make it in the build tree
  26749. # simply because there is no reason against having it here, and in addition,
  26750. # creating and moving files from /tmp can sometimes cause problems.
  26751. # Hook for its removal unless debugging.
  26752. # Note that there is a small window in which the directory will not be cleaned:
  26753. # after its creation but before its name has been assigned to `$tmp'.
  26754. $debug ||
  26755. {
  26756. tmp= ac_tmp=
  26757. trap 'exit_status=$?
  26758. : "${ac_tmp:=$tmp}"
  26759. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26760. ' 0
  26761. trap 'as_fn_exit 1' 1 2 13 15
  26762. }
  26763. # Create a (secure) tmp directory for tmp files.
  26764. {
  26765. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26766. test -d "$tmp"
  26767. } ||
  26768. {
  26769. tmp=./conf$$-$RANDOM
  26770. (umask 077 && mkdir "$tmp")
  26771. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26772. ac_tmp=$tmp
  26773. # Set up the scripts for CONFIG_FILES section.
  26774. # No need to generate them if there are no CONFIG_FILES.
  26775. # This happens for instance with `./config.status config.h'.
  26776. if test -n "$CONFIG_FILES"; then
  26777. ac_cr=`echo X | tr X '\015'`
  26778. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26779. # But we know of no other shell where ac_cr would be empty at this
  26780. # point, so we can use a bashism as a fallback.
  26781. if test "x$ac_cr" = x; then
  26782. eval ac_cr=\$\'\\r\'
  26783. fi
  26784. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26785. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26786. ac_cs_awk_cr='\\r'
  26787. else
  26788. ac_cs_awk_cr=$ac_cr
  26789. fi
  26790. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26791. _ACEOF
  26792. {
  26793. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26794. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26795. echo "_ACEOF"
  26796. } >conf$$subs.sh ||
  26797. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26798. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26799. ac_delim='%!_!# '
  26800. for ac_last_try in false false false false false :; do
  26801. . ./conf$$subs.sh ||
  26802. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26803. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26804. if test $ac_delim_n = $ac_delim_num; then
  26805. break
  26806. elif $ac_last_try; then
  26807. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26808. else
  26809. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26810. fi
  26811. done
  26812. rm -f conf$$subs.sh
  26813. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26814. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26815. _ACEOF
  26816. sed -n '
  26817. h
  26818. s/^/S["/; s/!.*/"]=/
  26819. p
  26820. g
  26821. s/^[^!]*!//
  26822. :repl
  26823. t repl
  26824. s/'"$ac_delim"'$//
  26825. t delim
  26826. :nl
  26827. h
  26828. s/\(.\{148\}\)..*/\1/
  26829. t more1
  26830. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26831. p
  26832. n
  26833. b repl
  26834. :more1
  26835. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26836. p
  26837. g
  26838. s/.\{148\}//
  26839. t nl
  26840. :delim
  26841. h
  26842. s/\(.\{148\}\)..*/\1/
  26843. t more2
  26844. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26845. p
  26846. b
  26847. :more2
  26848. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26849. p
  26850. g
  26851. s/.\{148\}//
  26852. t delim
  26853. ' <conf$$subs.awk | sed '
  26854. /^[^""]/{
  26855. N
  26856. s/\n//
  26857. }
  26858. ' >>$CONFIG_STATUS || ac_write_fail=1
  26859. rm -f conf$$subs.awk
  26860. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26861. _ACAWK
  26862. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  26863. for (key in S) S_is_set[key] = 1
  26864. FS = ""
  26865. }
  26866. {
  26867. line = $ 0
  26868. nfields = split(line, field, "@")
  26869. substed = 0
  26870. len = length(field[1])
  26871. for (i = 2; i < nfields; i++) {
  26872. key = field[i]
  26873. keylen = length(key)
  26874. if (S_is_set[key]) {
  26875. value = S[key]
  26876. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26877. len += length(value) + length(field[++i])
  26878. substed = 1
  26879. } else
  26880. len += 1 + keylen
  26881. }
  26882. print line
  26883. }
  26884. _ACAWK
  26885. _ACEOF
  26886. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26887. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26888. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26889. else
  26890. cat
  26891. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26892. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26893. _ACEOF
  26894. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26895. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  26896. # trailing colons and then remove the whole line if VPATH becomes empty
  26897. # (actually we leave an empty line to preserve line numbers).
  26898. if test "x$srcdir" = x.; then
  26899. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  26900. h
  26901. s///
  26902. s/^/:/
  26903. s/[ ]*$/:/
  26904. s/:\$(srcdir):/:/g
  26905. s/:\${srcdir}:/:/g
  26906. s/:@srcdir@:/:/g
  26907. s/^:*//
  26908. s/:*$//
  26909. x
  26910. s/\(=[ ]*\).*/\1/
  26911. G
  26912. s/\n//
  26913. s/^[^=]*=[ ]*$//
  26914. }'
  26915. fi
  26916. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26917. fi # test -n "$CONFIG_FILES"
  26918. # Set up the scripts for CONFIG_HEADERS section.
  26919. # No need to generate them if there are no CONFIG_HEADERS.
  26920. # This happens for instance with `./config.status Makefile'.
  26921. if test -n "$CONFIG_HEADERS"; then
  26922. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  26923. BEGIN {
  26924. _ACEOF
  26925. # Transform confdefs.h into an awk script `defines.awk', embedded as
  26926. # here-document in config.status, that substitutes the proper values into
  26927. # config.h.in to produce config.h.
  26928. # Create a delimiter string that does not exist in confdefs.h, to ease
  26929. # handling of long lines.
  26930. ac_delim='%!_!# '
  26931. for ac_last_try in false false :; do
  26932. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  26933. if test -z "$ac_tt"; then
  26934. break
  26935. elif $ac_last_try; then
  26936. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  26937. else
  26938. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26939. fi
  26940. done
  26941. # For the awk script, D is an array of macro values keyed by name,
  26942. # likewise P contains macro parameters if any. Preserve backslash
  26943. # newline sequences.
  26944. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  26945. sed -n '
  26946. s/.\{148\}/&'"$ac_delim"'/g
  26947. t rset
  26948. :rset
  26949. s/^[ ]*#[ ]*define[ ][ ]*/ /
  26950. t def
  26951. d
  26952. :def
  26953. s/\\$//
  26954. t bsnl
  26955. s/["\\]/\\&/g
  26956. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26957. D["\1"]=" \3"/p
  26958. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  26959. d
  26960. :bsnl
  26961. s/["\\]/\\&/g
  26962. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26963. D["\1"]=" \3\\\\\\n"\\/p
  26964. t cont
  26965. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  26966. t cont
  26967. d
  26968. :cont
  26969. n
  26970. s/.\{148\}/&'"$ac_delim"'/g
  26971. t clear
  26972. :clear
  26973. s/\\$//
  26974. t bsnlc
  26975. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  26976. d
  26977. :bsnlc
  26978. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  26979. b cont
  26980. ' <confdefs.h | sed '
  26981. s/'"$ac_delim"'/"\\\
  26982. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  26983. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26984. for (key in D) D_is_set[key] = 1
  26985. FS = ""
  26986. }
  26987. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  26988. line = \$ 0
  26989. split(line, arg, " ")
  26990. if (arg[1] == "#") {
  26991. defundef = arg[2]
  26992. mac1 = arg[3]
  26993. } else {
  26994. defundef = substr(arg[1], 2)
  26995. mac1 = arg[2]
  26996. }
  26997. split(mac1, mac2, "(") #)
  26998. macro = mac2[1]
  26999. prefix = substr(line, 1, index(line, defundef) - 1)
  27000. if (D_is_set[macro]) {
  27001. # Preserve the white space surrounding the "#".
  27002. print prefix "define", macro P[macro] D[macro]
  27003. next
  27004. } else {
  27005. # Replace #undef with comments. This is necessary, for example,
  27006. # in the case of _POSIX_SOURCE, which is predefined and required
  27007. # on some systems where configure will not decide to define it.
  27008. if (defundef == "undef") {
  27009. print "/*", prefix defundef, macro, "*/"
  27010. next
  27011. }
  27012. }
  27013. }
  27014. { print }
  27015. _ACAWK
  27016. _ACEOF
  27017. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27018. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27019. fi # test -n "$CONFIG_HEADERS"
  27020. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27021. shift
  27022. for ac_tag
  27023. do
  27024. case $ac_tag in
  27025. :[FHLC]) ac_mode=$ac_tag; continue;;
  27026. esac
  27027. case $ac_mode$ac_tag in
  27028. :[FHL]*:*);;
  27029. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27030. :[FH]-) ac_tag=-:-;;
  27031. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27032. esac
  27033. ac_save_IFS=$IFS
  27034. IFS=:
  27035. set x $ac_tag
  27036. IFS=$ac_save_IFS
  27037. shift
  27038. ac_file=$1
  27039. shift
  27040. case $ac_mode in
  27041. :L) ac_source=$1;;
  27042. :[FH])
  27043. ac_file_inputs=
  27044. for ac_f
  27045. do
  27046. case $ac_f in
  27047. -) ac_f="$ac_tmp/stdin";;
  27048. *) # Look for the file first in the build tree, then in the source tree
  27049. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27050. # because $ac_f cannot contain `:'.
  27051. test -f "$ac_f" ||
  27052. case $ac_f in
  27053. [\\/$]*) false;;
  27054. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27055. esac ||
  27056. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27057. esac
  27058. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27059. as_fn_append ac_file_inputs " '$ac_f'"
  27060. done
  27061. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27062. # use $as_me), people would be surprised to read:
  27063. # /* config.h. Generated by config.status. */
  27064. configure_input='Generated from '`
  27065. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27066. `' by configure.'
  27067. if test x"$ac_file" != x-; then
  27068. configure_input="$ac_file. $configure_input"
  27069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27070. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27071. fi
  27072. # Neutralize special characters interpreted by sed in replacement strings.
  27073. case $configure_input in #(
  27074. *\&* | *\|* | *\\* )
  27075. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27076. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27077. *) ac_sed_conf_input=$configure_input;;
  27078. esac
  27079. case $ac_tag in
  27080. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27081. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27082. esac
  27083. ;;
  27084. esac
  27085. ac_dir=`$as_dirname -- "$ac_file" ||
  27086. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27087. X"$ac_file" : 'X\(//\)[^/]' \| \
  27088. X"$ac_file" : 'X\(//\)$' \| \
  27089. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27090. printf "%s\n" X"$ac_file" |
  27091. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27092. s//\1/
  27093. q
  27094. }
  27095. /^X\(\/\/\)[^/].*/{
  27096. s//\1/
  27097. q
  27098. }
  27099. /^X\(\/\/\)$/{
  27100. s//\1/
  27101. q
  27102. }
  27103. /^X\(\/\).*/{
  27104. s//\1/
  27105. q
  27106. }
  27107. s/.*/./; q'`
  27108. as_dir="$ac_dir"; as_fn_mkdir_p
  27109. ac_builddir=.
  27110. case "$ac_dir" in
  27111. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27112. *)
  27113. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27114. # A ".." for each directory in $ac_dir_suffix.
  27115. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27116. case $ac_top_builddir_sub in
  27117. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27118. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27119. esac ;;
  27120. esac
  27121. ac_abs_top_builddir=$ac_pwd
  27122. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27123. # for backward compatibility:
  27124. ac_top_builddir=$ac_top_build_prefix
  27125. case $srcdir in
  27126. .) # We are building in place.
  27127. ac_srcdir=.
  27128. ac_top_srcdir=$ac_top_builddir_sub
  27129. ac_abs_top_srcdir=$ac_pwd ;;
  27130. [\\/]* | ?:[\\/]* ) # Absolute name.
  27131. ac_srcdir=$srcdir$ac_dir_suffix;
  27132. ac_top_srcdir=$srcdir
  27133. ac_abs_top_srcdir=$srcdir ;;
  27134. *) # Relative name.
  27135. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27136. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27137. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27138. esac
  27139. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27140. case $ac_mode in
  27141. :F)
  27142. #
  27143. # CONFIG_FILE
  27144. #
  27145. case $INSTALL in
  27146. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27147. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27148. esac
  27149. _ACEOF
  27150. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27151. # If the template does not know about datarootdir, expand it.
  27152. # FIXME: This hack should be removed a few years after 2.60.
  27153. ac_datarootdir_hack=; ac_datarootdir_seen=
  27154. ac_sed_dataroot='
  27155. /datarootdir/ {
  27156. p
  27157. q
  27158. }
  27159. /@datadir@/p
  27160. /@docdir@/p
  27161. /@infodir@/p
  27162. /@localedir@/p
  27163. /@mandir@/p'
  27164. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27165. *datarootdir*) ac_datarootdir_seen=yes;;
  27166. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27168. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27169. _ACEOF
  27170. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27171. ac_datarootdir_hack='
  27172. s&@datadir@&$datadir&g
  27173. s&@docdir@&$docdir&g
  27174. s&@infodir@&$infodir&g
  27175. s&@localedir@&$localedir&g
  27176. s&@mandir@&$mandir&g
  27177. s&\\\${datarootdir}&$datarootdir&g' ;;
  27178. esac
  27179. _ACEOF
  27180. # Neutralize VPATH when `$srcdir' = `.'.
  27181. # Shell code in configure.ac might set extrasub.
  27182. # FIXME: do we really want to maintain this feature?
  27183. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27184. ac_sed_extra="$ac_vpsub
  27185. $extrasub
  27186. _ACEOF
  27187. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27188. :t
  27189. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27190. s|@configure_input@|$ac_sed_conf_input|;t t
  27191. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27192. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27193. s&@srcdir@&$ac_srcdir&;t t
  27194. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27195. s&@top_srcdir@&$ac_top_srcdir&;t t
  27196. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27197. s&@builddir@&$ac_builddir&;t t
  27198. s&@abs_builddir@&$ac_abs_builddir&;t t
  27199. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27200. s&@INSTALL@&$ac_INSTALL&;t t
  27201. $ac_datarootdir_hack
  27202. "
  27203. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27204. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27205. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27206. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27207. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27208. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27210. which seems to be undefined. Please make sure it is defined" >&5
  27211. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27212. which seems to be undefined. Please make sure it is defined" >&2;}
  27213. rm -f "$ac_tmp/stdin"
  27214. case $ac_file in
  27215. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27216. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27217. esac \
  27218. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27219. ;;
  27220. :H)
  27221. #
  27222. # CONFIG_HEADER
  27223. #
  27224. if test x"$ac_file" != x-; then
  27225. {
  27226. printf "%s\n" "/* $configure_input */" >&1 \
  27227. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27228. } >"$ac_tmp/config.h" \
  27229. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27230. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27232. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27233. else
  27234. rm -f "$ac_file"
  27235. mv "$ac_tmp/config.h" "$ac_file" \
  27236. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27237. fi
  27238. else
  27239. printf "%s\n" "/* $configure_input */" >&1 \
  27240. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27241. || as_fn_error $? "could not create -" "$LINENO" 5
  27242. fi
  27243. ;;
  27244. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27245. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27246. ;;
  27247. esac
  27248. case $ac_file$ac_mode in
  27249. "libtool":C)
  27250. # See if we are running on zsh, and set the options that allow our
  27251. # commands through without removal of \ escapes.
  27252. if test -n "${ZSH_VERSION+set}"; then
  27253. setopt NO_GLOB_SUBST
  27254. fi
  27255. cfgfile=${ofile}T
  27256. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27257. $RM "$cfgfile"
  27258. cat <<_LT_EOF >> "$cfgfile"
  27259. #! $SHELL
  27260. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27261. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27262. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27263. # Provide generalized library-building support services.
  27264. # Written by Gordon Matzigkeit, 1996
  27265. # Copyright (C) 2014 Free Software Foundation, Inc.
  27266. # This is free software; see the source for copying conditions. There is NO
  27267. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27268. # GNU Libtool is free software; you can redistribute it and/or modify
  27269. # it under the terms of the GNU General Public License as published by
  27270. # the Free Software Foundation; either version 2 of of the License, or
  27271. # (at your option) any later version.
  27272. #
  27273. # As a special exception to the GNU General Public License, if you
  27274. # distribute this file as part of a program or library that is built
  27275. # using GNU Libtool, you may include this file under the same
  27276. # distribution terms that you use for the rest of that program.
  27277. #
  27278. # GNU Libtool is distributed in the hope that it will be useful, but
  27279. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27280. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27281. # GNU General Public License for more details.
  27282. #
  27283. # You should have received a copy of the GNU General Public License
  27284. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27285. # The names of the tagged configurations supported by this script.
  27286. available_tags='RC CXX '
  27287. # Configured defaults for sys_lib_dlsearch_path munging.
  27288. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27289. # ### BEGIN LIBTOOL CONFIG
  27290. # Which release of libtool.m4 was used?
  27291. macro_version=$macro_version
  27292. macro_revision=$macro_revision
  27293. # Assembler program.
  27294. AS=$lt_AS
  27295. # DLL creation program.
  27296. DLLTOOL=$lt_DLLTOOL
  27297. # Object dumper program.
  27298. OBJDUMP=$lt_OBJDUMP
  27299. # Whether or not to build shared libraries.
  27300. build_libtool_libs=$enable_shared
  27301. # Whether or not to build static libraries.
  27302. build_old_libs=$enable_static
  27303. # What type of objects to build.
  27304. pic_mode=$pic_mode
  27305. # Whether or not to optimize for fast installation.
  27306. fast_install=$enable_fast_install
  27307. # Shared archive member basename,for filename based shared library versioning on AIX.
  27308. shared_archive_member_spec=$shared_archive_member_spec
  27309. # Shell to use when invoking shell scripts.
  27310. SHELL=$lt_SHELL
  27311. # An echo program that protects backslashes.
  27312. ECHO=$lt_ECHO
  27313. # The PATH separator for the build system.
  27314. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27315. # The host system.
  27316. host_alias=$host_alias
  27317. host=$host
  27318. host_os=$host_os
  27319. # The build system.
  27320. build_alias=$build_alias
  27321. build=$build
  27322. build_os=$build_os
  27323. # A sed program that does not truncate output.
  27324. SED=$lt_SED
  27325. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27326. Xsed="\$SED -e 1s/^X//"
  27327. # A grep program that handles long lines.
  27328. GREP=$lt_GREP
  27329. # An ERE matcher.
  27330. EGREP=$lt_EGREP
  27331. # A literal string matcher.
  27332. FGREP=$lt_FGREP
  27333. # A BSD- or MS-compatible name lister.
  27334. NM=$lt_NM
  27335. # Whether we need soft or hard links.
  27336. LN_S=$lt_LN_S
  27337. # What is the maximum length of a command?
  27338. max_cmd_len=$max_cmd_len
  27339. # Object file suffix (normally "o").
  27340. objext=$ac_objext
  27341. # Executable file suffix (normally "").
  27342. exeext=$exeext
  27343. # whether the shell understands "unset".
  27344. lt_unset=$lt_unset
  27345. # turn spaces into newlines.
  27346. SP2NL=$lt_lt_SP2NL
  27347. # turn newlines into spaces.
  27348. NL2SP=$lt_lt_NL2SP
  27349. # convert \$build file names to \$host format.
  27350. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27351. # convert \$build files to toolchain format.
  27352. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27353. # Method to check whether dependent libraries are shared objects.
  27354. deplibs_check_method=$lt_deplibs_check_method
  27355. # Command to use when deplibs_check_method = "file_magic".
  27356. file_magic_cmd=$lt_file_magic_cmd
  27357. # How to find potential files when deplibs_check_method = "file_magic".
  27358. file_magic_glob=$lt_file_magic_glob
  27359. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27360. want_nocaseglob=$lt_want_nocaseglob
  27361. # Command to associate shared and link libraries.
  27362. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27363. # The archiver.
  27364. AR=$lt_AR
  27365. # Flags to create an archive.
  27366. AR_FLAGS=$lt_AR_FLAGS
  27367. # How to feed a file listing to the archiver.
  27368. archiver_list_spec=$lt_archiver_list_spec
  27369. # A symbol stripping program.
  27370. STRIP=$lt_STRIP
  27371. # Commands used to install an old-style archive.
  27372. RANLIB=$lt_RANLIB
  27373. old_postinstall_cmds=$lt_old_postinstall_cmds
  27374. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27375. # Whether to use a lock for old archive extraction.
  27376. lock_old_archive_extraction=$lock_old_archive_extraction
  27377. # A C compiler.
  27378. LTCC=$lt_CC
  27379. # LTCC compiler flags.
  27380. LTCFLAGS=$lt_CFLAGS
  27381. # Take the output of nm and produce a listing of raw symbols and C names.
  27382. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27383. # Transform the output of nm in a proper C declaration.
  27384. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27385. # Transform the output of nm into a list of symbols to manually relocate.
  27386. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27387. # Transform the output of nm in a C name address pair.
  27388. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27389. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27390. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27391. # The name lister interface.
  27392. nm_interface=$lt_lt_cv_nm_interface
  27393. # Specify filename containing input files for \$NM.
  27394. nm_file_list_spec=$lt_nm_file_list_spec
  27395. # The root where to search for dependent libraries,and where our libraries should be installed.
  27396. lt_sysroot=$lt_sysroot
  27397. # Command to truncate a binary pipe.
  27398. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27399. # The name of the directory that contains temporary libtool files.
  27400. objdir=$objdir
  27401. # Used to examine libraries when file_magic_cmd begins with "file".
  27402. MAGIC_CMD=$MAGIC_CMD
  27403. # Must we lock files when doing compilation?
  27404. need_locks=$lt_need_locks
  27405. # Manifest tool.
  27406. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27407. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27408. DSYMUTIL=$lt_DSYMUTIL
  27409. # Tool to change global to local symbols on Mac OS X.
  27410. NMEDIT=$lt_NMEDIT
  27411. # Tool to manipulate fat objects and archives on Mac OS X.
  27412. LIPO=$lt_LIPO
  27413. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27414. OTOOL=$lt_OTOOL
  27415. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27416. OTOOL64=$lt_OTOOL64
  27417. # Old archive suffix (normally "a").
  27418. libext=$libext
  27419. # Shared library suffix (normally ".so").
  27420. shrext_cmds=$lt_shrext_cmds
  27421. # The commands to extract the exported symbol list from a shared archive.
  27422. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27423. # Variables whose values should be saved in libtool wrapper scripts and
  27424. # restored at link time.
  27425. variables_saved_for_relink=$lt_variables_saved_for_relink
  27426. # Do we need the "lib" prefix for modules?
  27427. need_lib_prefix=$need_lib_prefix
  27428. # Do we need a version for libraries?
  27429. need_version=$need_version
  27430. # Library versioning type.
  27431. version_type=$version_type
  27432. # Shared library runtime path variable.
  27433. runpath_var=$runpath_var
  27434. # Shared library path variable.
  27435. shlibpath_var=$shlibpath_var
  27436. # Is shlibpath searched before the hard-coded library search path?
  27437. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27438. # Format of library name prefix.
  27439. libname_spec=$lt_libname_spec
  27440. # List of archive names. First name is the real one, the rest are links.
  27441. # The last name is the one that the linker finds with -lNAME
  27442. library_names_spec=$lt_library_names_spec
  27443. # The coded name of the library, if different from the real name.
  27444. soname_spec=$lt_soname_spec
  27445. # Permission mode override for installation of shared libraries.
  27446. install_override_mode=$lt_install_override_mode
  27447. # Command to use after installation of a shared archive.
  27448. postinstall_cmds=$lt_postinstall_cmds
  27449. # Command to use after uninstallation of a shared archive.
  27450. postuninstall_cmds=$lt_postuninstall_cmds
  27451. # Commands used to finish a libtool library installation in a directory.
  27452. finish_cmds=$lt_finish_cmds
  27453. # As "finish_cmds", except a single script fragment to be evaled but
  27454. # not shown.
  27455. finish_eval=$lt_finish_eval
  27456. # Whether we should hardcode library paths into libraries.
  27457. hardcode_into_libs=$hardcode_into_libs
  27458. # Compile-time system search path for libraries.
  27459. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27460. # Detected run-time system search path for libraries.
  27461. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27462. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27463. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27464. # Whether dlopen is supported.
  27465. dlopen_support=$enable_dlopen
  27466. # Whether dlopen of programs is supported.
  27467. dlopen_self=$enable_dlopen_self
  27468. # Whether dlopen of statically linked programs is supported.
  27469. dlopen_self_static=$enable_dlopen_self_static
  27470. # Commands to strip libraries.
  27471. old_striplib=$lt_old_striplib
  27472. striplib=$lt_striplib
  27473. # The linker used to build libraries.
  27474. LD=$lt_LD
  27475. # How to create reloadable object files.
  27476. reload_flag=$lt_reload_flag
  27477. reload_cmds=$lt_reload_cmds
  27478. # Commands used to build an old-style archive.
  27479. old_archive_cmds=$lt_old_archive_cmds
  27480. # A language specific compiler.
  27481. CC=$lt_compiler
  27482. # Is the compiler the GNU compiler?
  27483. with_gcc=$GCC
  27484. # Compiler flag to turn off builtin functions.
  27485. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27486. # Additional compiler flags for building library objects.
  27487. pic_flag=$lt_lt_prog_compiler_pic
  27488. # How to pass a linker flag through the compiler.
  27489. wl=$lt_lt_prog_compiler_wl
  27490. # Compiler flag to prevent dynamic linking.
  27491. link_static_flag=$lt_lt_prog_compiler_static
  27492. # Does compiler simultaneously support -c and -o options?
  27493. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27494. # Whether or not to add -lc for building shared libraries.
  27495. build_libtool_need_lc=$archive_cmds_need_lc
  27496. # Whether or not to disallow shared libs when runtime libs are static.
  27497. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27498. # Compiler flag to allow reflexive dlopens.
  27499. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27500. # Compiler flag to generate shared objects directly from archives.
  27501. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27502. # Whether the compiler copes with passing no objects directly.
  27503. compiler_needs_object=$lt_compiler_needs_object
  27504. # Create an old-style archive from a shared archive.
  27505. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27506. # Create a temporary old-style archive to link instead of a shared archive.
  27507. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27508. # Commands used to build a shared archive.
  27509. archive_cmds=$lt_archive_cmds
  27510. archive_expsym_cmds=$lt_archive_expsym_cmds
  27511. # Commands used to build a loadable module if different from building
  27512. # a shared archive.
  27513. module_cmds=$lt_module_cmds
  27514. module_expsym_cmds=$lt_module_expsym_cmds
  27515. # Whether we are building with GNU ld or not.
  27516. with_gnu_ld=$lt_with_gnu_ld
  27517. # Flag that allows shared libraries with undefined symbols to be built.
  27518. allow_undefined_flag=$lt_allow_undefined_flag
  27519. # Flag that enforces no undefined symbols.
  27520. no_undefined_flag=$lt_no_undefined_flag
  27521. # Flag to hardcode \$libdir into a binary during linking.
  27522. # This must work even if \$libdir does not exist
  27523. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27524. # Whether we need a single "-rpath" flag with a separated argument.
  27525. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27526. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27527. # DIR into the resulting binary.
  27528. hardcode_direct=$hardcode_direct
  27529. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27530. # DIR into the resulting binary and the resulting library dependency is
  27531. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27532. # library is relocated.
  27533. hardcode_direct_absolute=$hardcode_direct_absolute
  27534. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27535. # into the resulting binary.
  27536. hardcode_minus_L=$hardcode_minus_L
  27537. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27538. # into the resulting binary.
  27539. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27540. # Set to "yes" if building a shared library automatically hardcodes DIR
  27541. # into the library and all subsequent libraries and executables linked
  27542. # against it.
  27543. hardcode_automatic=$hardcode_automatic
  27544. # Set to yes if linker adds runtime paths of dependent libraries
  27545. # to runtime path list.
  27546. inherit_rpath=$inherit_rpath
  27547. # Whether libtool must link a program against all its dependency libraries.
  27548. link_all_deplibs=$link_all_deplibs
  27549. # Set to "yes" if exported symbols are required.
  27550. always_export_symbols=$always_export_symbols
  27551. # The commands to list exported symbols.
  27552. export_symbols_cmds=$lt_export_symbols_cmds
  27553. # Symbols that should not be listed in the preloaded symbols.
  27554. exclude_expsyms=$lt_exclude_expsyms
  27555. # Symbols that must always be exported.
  27556. include_expsyms=$lt_include_expsyms
  27557. # Commands necessary for linking programs (against libraries) with templates.
  27558. prelink_cmds=$lt_prelink_cmds
  27559. # Commands necessary for finishing linking programs.
  27560. postlink_cmds=$lt_postlink_cmds
  27561. # Specify filename containing input files.
  27562. file_list_spec=$lt_file_list_spec
  27563. # How to hardcode a shared library path into an executable.
  27564. hardcode_action=$hardcode_action
  27565. # The directories searched by this compiler when creating a shared library.
  27566. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27567. # Dependencies to place before and after the objects being linked to
  27568. # create a shared library.
  27569. predep_objects=$lt_predep_objects
  27570. postdep_objects=$lt_postdep_objects
  27571. predeps=$lt_predeps
  27572. postdeps=$lt_postdeps
  27573. # The library search path used internally by the compiler when linking
  27574. # a shared library.
  27575. compiler_lib_search_path=$lt_compiler_lib_search_path
  27576. # ### END LIBTOOL CONFIG
  27577. _LT_EOF
  27578. cat <<'_LT_EOF' >> "$cfgfile"
  27579. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27580. # func_munge_path_list VARIABLE PATH
  27581. # -----------------------------------
  27582. # VARIABLE is name of variable containing _space_ separated list of
  27583. # directories to be munged by the contents of PATH, which is string
  27584. # having a format:
  27585. # "DIR[:DIR]:"
  27586. # string "DIR[ DIR]" will be prepended to VARIABLE
  27587. # ":DIR[:DIR]"
  27588. # string "DIR[ DIR]" will be appended to VARIABLE
  27589. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27590. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27591. # "DIRA[ DIRA]" will be appended to VARIABLE
  27592. # "DIR[:DIR]"
  27593. # VARIABLE will be replaced by "DIR[ DIR]"
  27594. func_munge_path_list ()
  27595. {
  27596. case x$2 in
  27597. x)
  27598. ;;
  27599. *:)
  27600. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27601. ;;
  27602. x:*)
  27603. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27604. ;;
  27605. *::*)
  27606. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27607. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27608. ;;
  27609. *)
  27610. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27611. ;;
  27612. esac
  27613. }
  27614. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27615. func_cc_basename ()
  27616. {
  27617. for cc_temp in $*""; do
  27618. case $cc_temp in
  27619. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27620. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27621. \-*) ;;
  27622. *) break;;
  27623. esac
  27624. done
  27625. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27626. }
  27627. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27628. _LT_EOF
  27629. case $host_os in
  27630. aix3*)
  27631. cat <<\_LT_EOF >> "$cfgfile"
  27632. # AIX sometimes has problems with the GCC collect2 program. For some
  27633. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27634. # vanish in a puff of smoke.
  27635. if test set != "${COLLECT_NAMES+set}"; then
  27636. COLLECT_NAMES=
  27637. export COLLECT_NAMES
  27638. fi
  27639. _LT_EOF
  27640. ;;
  27641. esac
  27642. ltmain=$ac_aux_dir/ltmain.sh
  27643. # We use sed instead of cat because bash on DJGPP gets confused if
  27644. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27645. # text mode, it properly converts lines to CR/LF. This bash problem
  27646. # is reportedly fixed, but why not run on old versions too?
  27647. sed '$q' "$ltmain" >> "$cfgfile" \
  27648. || (rm -f "$cfgfile"; exit 1)
  27649. mv -f "$cfgfile" "$ofile" ||
  27650. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27651. chmod +x "$ofile"
  27652. cat <<_LT_EOF >> "$ofile"
  27653. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27654. # The linker used to build libraries.
  27655. LD=$lt_LD_RC
  27656. # How to create reloadable object files.
  27657. reload_flag=$lt_reload_flag_RC
  27658. reload_cmds=$lt_reload_cmds_RC
  27659. # Commands used to build an old-style archive.
  27660. old_archive_cmds=$lt_old_archive_cmds_RC
  27661. # A language specific compiler.
  27662. CC=$lt_compiler_RC
  27663. # Is the compiler the GNU compiler?
  27664. with_gcc=$GCC_RC
  27665. # Compiler flag to turn off builtin functions.
  27666. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27667. # Additional compiler flags for building library objects.
  27668. pic_flag=$lt_lt_prog_compiler_pic_RC
  27669. # How to pass a linker flag through the compiler.
  27670. wl=$lt_lt_prog_compiler_wl_RC
  27671. # Compiler flag to prevent dynamic linking.
  27672. link_static_flag=$lt_lt_prog_compiler_static_RC
  27673. # Does compiler simultaneously support -c and -o options?
  27674. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27675. # Whether or not to add -lc for building shared libraries.
  27676. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27677. # Whether or not to disallow shared libs when runtime libs are static.
  27678. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27679. # Compiler flag to allow reflexive dlopens.
  27680. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27681. # Compiler flag to generate shared objects directly from archives.
  27682. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27683. # Whether the compiler copes with passing no objects directly.
  27684. compiler_needs_object=$lt_compiler_needs_object_RC
  27685. # Create an old-style archive from a shared archive.
  27686. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27687. # Create a temporary old-style archive to link instead of a shared archive.
  27688. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27689. # Commands used to build a shared archive.
  27690. archive_cmds=$lt_archive_cmds_RC
  27691. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27692. # Commands used to build a loadable module if different from building
  27693. # a shared archive.
  27694. module_cmds=$lt_module_cmds_RC
  27695. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27696. # Whether we are building with GNU ld or not.
  27697. with_gnu_ld=$lt_with_gnu_ld_RC
  27698. # Flag that allows shared libraries with undefined symbols to be built.
  27699. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27700. # Flag that enforces no undefined symbols.
  27701. no_undefined_flag=$lt_no_undefined_flag_RC
  27702. # Flag to hardcode \$libdir into a binary during linking.
  27703. # This must work even if \$libdir does not exist
  27704. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27705. # Whether we need a single "-rpath" flag with a separated argument.
  27706. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27707. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27708. # DIR into the resulting binary.
  27709. hardcode_direct=$hardcode_direct_RC
  27710. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27711. # DIR into the resulting binary and the resulting library dependency is
  27712. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27713. # library is relocated.
  27714. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27715. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27716. # into the resulting binary.
  27717. hardcode_minus_L=$hardcode_minus_L_RC
  27718. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27719. # into the resulting binary.
  27720. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27721. # Set to "yes" if building a shared library automatically hardcodes DIR
  27722. # into the library and all subsequent libraries and executables linked
  27723. # against it.
  27724. hardcode_automatic=$hardcode_automatic_RC
  27725. # Set to yes if linker adds runtime paths of dependent libraries
  27726. # to runtime path list.
  27727. inherit_rpath=$inherit_rpath_RC
  27728. # Whether libtool must link a program against all its dependency libraries.
  27729. link_all_deplibs=$link_all_deplibs_RC
  27730. # Set to "yes" if exported symbols are required.
  27731. always_export_symbols=$always_export_symbols_RC
  27732. # The commands to list exported symbols.
  27733. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27734. # Symbols that should not be listed in the preloaded symbols.
  27735. exclude_expsyms=$lt_exclude_expsyms_RC
  27736. # Symbols that must always be exported.
  27737. include_expsyms=$lt_include_expsyms_RC
  27738. # Commands necessary for linking programs (against libraries) with templates.
  27739. prelink_cmds=$lt_prelink_cmds_RC
  27740. # Commands necessary for finishing linking programs.
  27741. postlink_cmds=$lt_postlink_cmds_RC
  27742. # Specify filename containing input files.
  27743. file_list_spec=$lt_file_list_spec_RC
  27744. # How to hardcode a shared library path into an executable.
  27745. hardcode_action=$hardcode_action_RC
  27746. # The directories searched by this compiler when creating a shared library.
  27747. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  27748. # Dependencies to place before and after the objects being linked to
  27749. # create a shared library.
  27750. predep_objects=$lt_predep_objects_RC
  27751. postdep_objects=$lt_postdep_objects_RC
  27752. predeps=$lt_predeps_RC
  27753. postdeps=$lt_postdeps_RC
  27754. # The library search path used internally by the compiler when linking
  27755. # a shared library.
  27756. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27757. # ### END LIBTOOL TAG CONFIG: RC
  27758. _LT_EOF
  27759. cat <<_LT_EOF >> "$ofile"
  27760. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27761. # The linker used to build libraries.
  27762. LD=$lt_LD_CXX
  27763. # How to create reloadable object files.
  27764. reload_flag=$lt_reload_flag_CXX
  27765. reload_cmds=$lt_reload_cmds_CXX
  27766. # Commands used to build an old-style archive.
  27767. old_archive_cmds=$lt_old_archive_cmds_CXX
  27768. # A language specific compiler.
  27769. CC=$lt_compiler_CXX
  27770. # Is the compiler the GNU compiler?
  27771. with_gcc=$GCC_CXX
  27772. # Compiler flag to turn off builtin functions.
  27773. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27774. # Additional compiler flags for building library objects.
  27775. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27776. # How to pass a linker flag through the compiler.
  27777. wl=$lt_lt_prog_compiler_wl_CXX
  27778. # Compiler flag to prevent dynamic linking.
  27779. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27780. # Does compiler simultaneously support -c and -o options?
  27781. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27782. # Whether or not to add -lc for building shared libraries.
  27783. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27784. # Whether or not to disallow shared libs when runtime libs are static.
  27785. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27786. # Compiler flag to allow reflexive dlopens.
  27787. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27788. # Compiler flag to generate shared objects directly from archives.
  27789. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27790. # Whether the compiler copes with passing no objects directly.
  27791. compiler_needs_object=$lt_compiler_needs_object_CXX
  27792. # Create an old-style archive from a shared archive.
  27793. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27794. # Create a temporary old-style archive to link instead of a shared archive.
  27795. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27796. # Commands used to build a shared archive.
  27797. archive_cmds=$lt_archive_cmds_CXX
  27798. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27799. # Commands used to build a loadable module if different from building
  27800. # a shared archive.
  27801. module_cmds=$lt_module_cmds_CXX
  27802. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27803. # Whether we are building with GNU ld or not.
  27804. with_gnu_ld=$lt_with_gnu_ld_CXX
  27805. # Flag that allows shared libraries with undefined symbols to be built.
  27806. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27807. # Flag that enforces no undefined symbols.
  27808. no_undefined_flag=$lt_no_undefined_flag_CXX
  27809. # Flag to hardcode \$libdir into a binary during linking.
  27810. # This must work even if \$libdir does not exist
  27811. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27812. # Whether we need a single "-rpath" flag with a separated argument.
  27813. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27814. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27815. # DIR into the resulting binary.
  27816. hardcode_direct=$hardcode_direct_CXX
  27817. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27818. # DIR into the resulting binary and the resulting library dependency is
  27819. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27820. # library is relocated.
  27821. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27822. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27823. # into the resulting binary.
  27824. hardcode_minus_L=$hardcode_minus_L_CXX
  27825. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27826. # into the resulting binary.
  27827. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  27828. # Set to "yes" if building a shared library automatically hardcodes DIR
  27829. # into the library and all subsequent libraries and executables linked
  27830. # against it.
  27831. hardcode_automatic=$hardcode_automatic_CXX
  27832. # Set to yes if linker adds runtime paths of dependent libraries
  27833. # to runtime path list.
  27834. inherit_rpath=$inherit_rpath_CXX
  27835. # Whether libtool must link a program against all its dependency libraries.
  27836. link_all_deplibs=$link_all_deplibs_CXX
  27837. # Set to "yes" if exported symbols are required.
  27838. always_export_symbols=$always_export_symbols_CXX
  27839. # The commands to list exported symbols.
  27840. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  27841. # Symbols that should not be listed in the preloaded symbols.
  27842. exclude_expsyms=$lt_exclude_expsyms_CXX
  27843. # Symbols that must always be exported.
  27844. include_expsyms=$lt_include_expsyms_CXX
  27845. # Commands necessary for linking programs (against libraries) with templates.
  27846. prelink_cmds=$lt_prelink_cmds_CXX
  27847. # Commands necessary for finishing linking programs.
  27848. postlink_cmds=$lt_postlink_cmds_CXX
  27849. # Specify filename containing input files.
  27850. file_list_spec=$lt_file_list_spec_CXX
  27851. # How to hardcode a shared library path into an executable.
  27852. hardcode_action=$hardcode_action_CXX
  27853. # The directories searched by this compiler when creating a shared library.
  27854. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  27855. # Dependencies to place before and after the objects being linked to
  27856. # create a shared library.
  27857. predep_objects=$lt_predep_objects_CXX
  27858. postdep_objects=$lt_postdep_objects_CXX
  27859. predeps=$lt_predeps_CXX
  27860. postdeps=$lt_postdeps_CXX
  27861. # The library search path used internally by the compiler when linking
  27862. # a shared library.
  27863. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  27864. # ### END LIBTOOL TAG CONFIG: CXX
  27865. _LT_EOF
  27866. ;;
  27867. "sdl2_config":C) chmod a+x sdl2-config ;;
  27868. "summary":C) printf "$SUMMARY" ;;
  27869. esac
  27870. done # for ac_tag
  27871. as_fn_exit 0
  27872. _ACEOF
  27873. ac_clean_files=$ac_clean_files_save
  27874. test $ac_write_fail = 0 ||
  27875. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27876. # configure is writing to config.log, and then calls config.status.
  27877. # config.status does its own redirection, appending to config.log.
  27878. # Unfortunately, on DOS this fails, as config.log is still kept open
  27879. # by configure, so config.status won't be able to write to it; its
  27880. # output is simply discarded. So we exec the FD to /dev/null,
  27881. # effectively closing config.log, so it can be properly (re)opened and
  27882. # appended to by config.status. When coming back to configure, we
  27883. # need to make the FD available again.
  27884. if test "$no_create" != yes; then
  27885. ac_cs_success=:
  27886. ac_config_status_args=
  27887. test "$silent" = yes &&
  27888. ac_config_status_args="$ac_config_status_args --quiet"
  27889. exec 5>/dev/null
  27890. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27891. exec 5>>config.log
  27892. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27893. # would make configure fail if this is the last instruction.
  27894. $ac_cs_success || as_fn_exit 1
  27895. fi
  27896. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  27897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  27898. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  27899. fi